Address in use while starting HomeAssistant, new install

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

OS: Ubuntu 20.04.1 LTS

Anyone got any hints?
Thanks,
Jay

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                                

There should be a lot more from the log file - try

docker logs abb8c234e31d        

Unfortunately, there is no additional information in docker logs. Are there any other logs that I can check?

docker@server1:~$ docker logs abb8c234e31d
[s6-init] making user provided files available at /var/run/s6/etc...exited 0.
[s6-init] ensuring user provided files have correct perms...exited 0.
[fix-attrs.d] applying ownership & permissions fixes...
[fix-attrs.d] done.
[cont-init.d] executing container initialization scripts...
[cont-init.d] udev.sh: executing...
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@server1:~$

Check the HA log file then, certainly on my system the container has logs from HA’s console output.

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 {}