Hi! New to Docker and Home Assistant. Ive followed the pretty simple install steps here, but I’m unable to access HA via http://[host]:8123.
I get the following error message in the logs: WARNING (MainThread) [homeassistant.components.ssdp] Failed to setup listener for 0.0.0.0: [Errno 98] Address in use
I’m not quite sure if this helps, but I saw someone with a similar issue post the output of sudo lsof -i :1900 for troubleshooting:
COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAME
docker-pr 130924 root 4u IPv4 456483 0t0 UDP *:1900
docker-pr 130929 root 4u IPv6 461008 0t0 UDP *:1900
Thanks in advance!
Full Docker HA logs:
[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] done.
[services.d] starting services
[services.d] done.
WARNING (MainThread) [homeassistant.components.ssdp] Failed to setup listener for 0.0.0.0: [Errno 98] Address in use
That won’t work, or at least it won’t allow both containers to receive the packets, if that’s the goal.
SSDP is a multicast udp protocol on port 1900. Exposing 1901 in place of 1900, the container just won’t receive the packets.
Thanks everyone for the input. @koying you’re correct in thinking 1900 isn’t important for Plex (as per Plex documentation), so I’ve unmapped the port from Plex which has solved the HA conflict.
While the warning no longer appears, unfortunately this hasn’t solved the root issue - and I still cannot access HA via http://[host]:8123.
I see ERR_CONNECTION_TIMED_OUT.
Full HA Docker logs:
[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] done.
[services.d] starting services
[services.d] done.
Sorry, it’s now working - I had to allow incoming connections from my laptop in ufw.
Out of curiosity (possibly silly question) - why do I need a ufw rule to enable access to my HA container, when I’m able to access other Docker containers via http://[server-IP]:[port] without allowing access?
The only difference I can see is HA running in Host mode, whereas my other Docker containers are running in Bridge - but I don’t know why that would make a difference!
Hi MD,
I’ve just tried to install HA into Docker on a laptop running Ubuntu. I seem to have a similar issue to that described in your post - was your ufw fix fairly easy to implement?
Thanks,
Alan