First time installing HomeAssistant using the command:
docker run --name=“home-assistant” -v /home/docker/apps/config/home1:/config -v /etc/localtime:/etc/localtime:ro --net=host homeassistant/home-assistant:stable
I got the following error:
2020-09-27 22:50:30 ERROR (MainThread) [homeassistant.setup] Error during setup of component zeroconf
...
...
OSError: [Errno 98] Address in use
home-assistant | 2020-09-27 22:50:30 ERROR (MainThread) [homeassistant.setup] Unable to set up dependencies of default_config. Setup failed for dependencies: zeroconf
home-assistant | 2020-09-27 22:50:30 ERROR (MainThread) [homeassistant.setup] Setup failed for default_config: Could not set up all dependencies.
It is not clear which port it is trying to bind. I looked for 8123 and there’s no process using it.
sudo netstat -tnlp | grep 8123
2020-09-27 22:50:30 ERROR (MainThread) [homeassistant.setup] Error during setup of component zeroconf
sounds like something is listening on the port that zeroconf wants to listen on. I don’t know all of what that package does, but if it includes mDNS look at port 5353.
Thank you, that was it - port 5353. Now, I am able to start without errors. However, it is not listening on any port and I can’t connect to http://localhost:8123
starting version 3.2.9
[12:24:33] INFO: Update udev information
[cont-init.d] udev.sh: exited 0.
[cont-init.d] done.
[services.d] starting services
[services.d] done.
docker ps:
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
abb8c234e31d homeassistant/home-assistant:stable "/init" 36 minutes ago Up 36 minutes
Enabled logging in configuration.yaml and restarted the container. There are no errors, the last few lines are:
2020-09-28 17:37:55 INFO (MainThread) [homeassistant.components.notify] Setting up notify.mobile_app
2020-09-28 17:37:55 INFO (MainThread) [homeassistant.setup] Setting up stream
2020-09-28 17:37:55 INFO (MainThread) [homeassistant.setup] Setup of domain stream took 0.0 seconds
2020-09-28 17:37:55 INFO (MainThread) [homeassistant.setup] Setup of domain default_config took 0.0 seconds
2020-09-28 17:37:55 INFO (MainThread) [homeassistant.bootstrap] Home Assistant initialized in 0.86s
2020-09-28 17:37:55 INFO (MainThread) [homeassistant.core] Starting Home Assistant
2020-09-28 17:37:55 INFO (SyncWorker_0) [homeassistant.components.zeroconf] Starting Zeroconf broadcast
2020-09-28 17:37:55 INFO (MainThread) [homeassistant.core] Timer:starting
2020-09-28 17:37:55 INFO (MainThread) [homeassistant.components.updater] Submitted analytics to Home Assistant servers. Information submitted includes {}