I’m in progress of moving my OH3 instance from an old PC to new hardware. My old instance was running via a manual instance. For my new installation I’m attempting to use the Docker implementation.
Everything has worked perfectly. All my devices are online and up and running. The only issue is that port 8443 is not listening.
If I create a completely fresh install, the port is listening and I can connect; however, if I restore from my backup script, the container no longer exposes 8443.
Here’s the docker-compose.yml file I’m using:
version: '2.2'
services:
openhab_test:
image: "openhab/openhab:3.0.1"
command: "bash -c 'if [ -e /openhab/backups/old_backup.zip ]; then echo y |/openhab/runtime/bin/restore /openhab/backups/old_backup.zip ; fi; exec tini -s ./start.sh server'"
network_mode: host
restart: always
volumes:
- "/etc/localtime:/etc/localtime:ro"
- "/etc/timezone:/etc/timezone:ro"
- "/opt/openhab_test/conf:/openhab/conf"
- "/opt/openhab_test/userdata:/openhab/userdata"
- "/opt/openhab_test/addons:/openhab/addons"
- "/opt/openhab_test/backups:/openhab/backups"
environment:
OPENHAB_HTTP_PORT: "8080"
OPENHAB_HTTPS_PORT: "8443"
EXTRA_JAVA_OPTS: "-Duser.timezone=America/New_York"
devices:
- "/dev/ttyACM0:/dev/ttyACM0:rwm"
I can attach the the shell of the container and confirm the environment variables are set. However, my output from ss -tulpn has nothing listening for 8443.
Netid State Recv-Q Send-Q Local Address:Port Peer Address:Port
udp UNCONN 0 0 0.0.0.0:5353 0.0.0.0:* users:(("avahi-daemon",pid=598,fd=12))
udp UNCONN 0 0 0.0.0.0:42043 0.0.0.0:* users:(("avahi-daemon",pid=598,fd=14))
udp UNCONN 0 0 *:1900 *:* users:(("java",pid=16562,fd=141))
udp UNCONN 0 0 [::]:51492 [::]:* users:(("avahi-daemon",pid=598,fd=15))
udp UNCONN 0 0 *:5353 *:* users:(("java",pid=16562,fd=164))
udp UNCONN 0 0 [::]:5353 [::]:* users:(("avahi-daemon",pid=598,fd=13))
udp UNCONN 0 0 [::ffff:192.168.0.18]:56260 *:* users:(("java",pid=16562,fd=167))
tcp LISTEN 0 128 0.0.0.0:22 0.0.0.0:* users:(("sshd",pid=653,fd=3))
tcp LISTEN 0 100 0.0.0.0:1883 0.0.0.0:* users:(("mosquitto",pid=1034,fd=5))
tcp LISTEN 0 80 127.0.0.1:3306 0.0.0.0:* users:(("mysqld",pid=722,fd=19))
tcp LISTEN 0 128 [::]:22 [::]:* users:(("sshd",pid=653,fd=4))
tcp LISTEN 0 100 [::]:1883 [::]:* users:(("mosquitto",pid=1034,fd=6))
tcp LISTEN 0 50 [::ffff:127.0.0.1]:8101 *:* users:(("java",pid=16562,fd=257))
tcp LISTEN 0 1 [::ffff:127.0.0.1]:34985 *:* users:(("java",pid=16562,fd=39))
tcp LISTEN 0 50 *:5007 *:* users:(("java",pid=16562,fd=272))
tcp LISTEN 0 50 *:8080 *:* users:(("java",pid=16562,fd=259))
The port works fine on my previous install.
Is there somewhere I can check the running configuration verify it isn’t being disabled? I’m at a lost as to why after my backup is restored, the port is no longer exposed. I get no errors during the restore process.
This is running on a Debian 10. My old install was CentOS 7.