hass startup error with ipv6 disabled <OSError: illegal IP address string passed to inet_pton>
The problem
homeassistant 2024.10.1 startup error only if ipv6 is disabled
homeassistant | 2024-10-05 18:29:28.286 ERROR (MainThread) [homeassistant] Error doing job: Task exception was never retrieved (None)
homeassistant | Traceback (most recent call last):
homeassistant | File "/usr/src/homeassistant/homeassistant/components/dhcp/init.py", line 149, in _async_initialize
homeassistant | await aiodhcpwatcher.async_init()
homeassistant | File "/usr/local/lib/python3.12/site-packages/aiodhcpwatcher/init.py", line 217, in async_init
homeassistant | await asyncio.get_running_loop().run_in_executor(None, _init_scapy)
homeassistant | File "/usr/local/lib/python3.12/concurrent/futures/thread.py", line 58, in run
homeassistant | result = self.fn(*self.args, **self.kwargs)
homeassistant | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
homeassistant | File "/usr/local/lib/python3.12/site-packages/aiodhcpwatcher/init.py", line 242, in _init_scapy
homeassistant | from scapy.layers.dhcp import (
homeassistant | File "/usr/local/lib/python3.12/site-packages/scapy/layers/dhcp.py", line 43, in
What version of Home Assistant Core has the issue?
core-2024.10.1
What was the last working version of Home Assistant Core?
core-2024.9.2
What type of installation are you running?
Home Assistant Container
Integration causing the issue
No response
Link to integration documentation on our website
No response
Diagnostics information
homeassistant | 2024-10-05 18:29:28.286 ERROR (MainThread) [homeassistant] Error doing job: Task exception was never retrieved (None)
homeassistant | Traceback (most recent call last):
homeassistant | File "/usr/src/homeassistant/homeassistant/components/dhcp/init.py", line 149, in _async_initialize
homeassistant | await aiodhcpwatcher.async_init()
homeassistant | File "/usr/local/lib/python3.12/site-packages/aiodhcpwatcher/init.py", line 217, in async_init
homeassistant | await asyncio.get_running_loop().run_in_executor(None, _init_scapy)
homeassistant | File "/usr/local/lib/python3.12/concurrent/futures/thread.py", line 58, in run
homeassistant | result = self.fn(*self.args, **self.kwargs)
homeassistant | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
homeassistant | File "/usr/local/lib/python3.12/site-packages/aiodhcpwatcher/init.py", line 242, in _init_scapy
homeassistant | from scapy.layers.dhcp import (
homeassistant | File "/usr/local/lib/python3.12/site-packages/scapy/layers/dhcp.py", line 43, in
Example YAML snippet
No response
Anything in the logs that might be useful for us?
No response
Additional information
no error with ipv6 enabled
i see this error only with ipv6 disabled
i disabled ipv6 via: /boot/firmware/cmdline.txt .... ipv6.disable=1 .....
Hey there @bdraco, mind taking a look at this issue as it has been labeled with an integration (dhcp) you are listed as a code owner for? Thanks!
Code owner commands
Code owners of dhcp can trigger bot actions by commenting:
@home-assistant closeCloses the issue.@home-assistant rename Awesome new titleRenames the issue.@home-assistant reopenReopen the issue.@home-assistant unassign dhcpRemoves the current integration label and assignees on the issue, add the integration domain after the command.@home-assistant add-label needs-more-informationAdd a label (needs-more-information, problem in dependency, problem in custom component) to the issue.@home-assistant remove-label needs-more-informationRemove a label (needs-more-information, problem in dependency, problem in custom component) on the issue.
(message by CodeOwnersMention)
dhcp documentation dhcp source (message by IssueLinks)
Same here with 2024.10.2
Hi. This is a bug in Scapy 2.6.0 which was fixed in Scapy 2.6.1, sorry about that. You should be able to work around it by using either 2.5.0 or 2.6.1.
Next build should use 2.6.1
Thanks