You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have the issue when I have a TrueNAS Scale host with mDNS active and install HomeAssistent as a docker container in host network mode.
The zeroconf cannot use the address.
With other implementation for example in nodejs the issue happens only in IPv4 mode but in IPv6 the binding works when the host the host is already binding the mDNS port.
Why python-zeroconf fails here to bind ?
File "/usr/src/homeassistant/homeassistant/setup.py", line 333, in _async_setup_component
result = await task
^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/components/zeroconf/__init__.py", line 216, in async_setup
aio_zc = await _async_get_instance(hass, **zc_args)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/components/zeroconf/__init__.py", line 157, in _async_get_instance
zeroconf = HaZeroconf(**zcargs)
^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/zeroconf/_core.py", line 176, in __init__
listen_socket, respond_sockets = create_sockets(interfaces, unicast, ip_version, apple_p2p=apple_p2p)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/zeroconf/_utils/net.py", line 358, in create_sockets
listen_socket = new_socket(ip_version=ip_version, apple_p2p=apple_p2p, bind_addr=('',))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/zeroconf/_utils/net.py", line 248, in new_socket
s.bind(bind_tup)
OSError: [Errno 98] Address in use
2024-02-10 22:09:38.791 INFO (MainThread) [homeassistant.setup] Setting up zeroconf
2024-02-10 22:09:38.791 DEBUG (MainThread) [zeroconf] Creating new socket with port 5353, ip_version IPVersion.V6Only, apple_p2p False and bind_addr ('',)
The text was updated successfully, but these errors were encountered:
I have the issue when I have a TrueNAS Scale host with mDNS active and install HomeAssistent as a docker container in host network mode.
The zeroconf cannot use the address.
With other implementation for example in nodejs the issue happens only in IPv4 mode but in IPv6 the binding works when the host the host is already binding the mDNS port.
Why python-zeroconf fails here to bind ?
The text was updated successfully, but these errors were encountered: