DHCP Error, dependencies and default_config - Home Assistant CORE

Hi All! At the startup I receive 3 errors, which seems all linked one to the others:

FIRST ERROR

Logger: homeassistant.setup
Source: components/dhcp/__init__.py:17
First occurred: 10:02:53 AM (1 occurrences)
Last logged: 10:02:53 AM

Setup failed for dhcp: unknown error
Traceback (most recent call last):
  File "/data/data/com.termux/files/home/homeassistant/lib/python3.9/site-packages/homeassistant/setup.py", line 200, in _async_setup_component
    component = integration.get_component()
  File "/data/data/com.termux/files/home/homeassistant/lib/python3.9/site-packages/homeassistant/loader.py", line 485, in get_component
    cache[self.domain] = importlib.import_module(self.pkg_path)
  File "/data/data/com.termux/files/usr/lib/python3.9/importlib/__init__.py", line 127, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
  File "<frozen importlib._bootstrap>", line 1030, in _gcd_import
  File "<frozen importlib._bootstrap>", line 1007, in _find_and_load
  File "<frozen importlib._bootstrap>", line 986, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 680, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 790, in exec_module
  File "<frozen importlib._bootstrap>", line 228, in _call_with_frames_removed
  File "/data/data/com.termux/files/home/homeassistant/lib/python3.9/site-packages/homeassistant/components/dhcp/__init__.py", line 17, in <module>
    from scapy.arch.common import compile_filter
  File "/data/data/com.termux/files/home/homeassistant/lib/python3.9/site-packages/scapy/arch/__init__.py", line 135, in <module>
    _set_conf_sockets()  # Apply config
  File "/data/data/com.termux/files/home/homeassistant/lib/python3.9/site-packages/scapy/config.py", line 618, in _set_conf_sockets
    conf.ifaces.reload()
  File "/data/data/com.termux/files/home/homeassistant/lib/python3.9/site-packages/scapy/interfaces.py", line 238, in reload
    self._reload_provs()
  File "/data/data/com.termux/files/home/homeassistant/lib/python3.9/site-packages/scapy/interfaces.py", line 234, in _reload_provs
    self._load(prov.reload(), prov)
  File "/data/data/com.termux/files/home/homeassistant/lib/python3.9/site-packages/scapy/interfaces.py", line 53, in reload
    return self.load()
  File "/data/data/com.termux/files/home/homeassistant/lib/python3.9/site-packages/scapy/arch/linux.py", line 420, in load
    get_if_raw_hwaddr(i, siocgifhwaddr=SIOCGIFHWADDR)[1]
  File "/data/data/com.termux/files/home/homeassistant/lib/python3.9/site-packages/scapy/arch/common.py", line 87, in get_if_raw_hwaddr
    get_if(iff, siocgifhwaddr)
  File "/data/data/com.termux/files/home/homeassistant/lib/python3.9/site-packages/scapy/arch/common.py", line 65, in get_if
    return ioctl(sck, cmd, struct.pack("16s16x", iff.encode("utf8")))
PermissionError: [Errno 13] Permission denied

SECOND ERROR

Logger: homeassistant.setup
Source: setup.py:152
First occurred: 10:03:10 AM (1 occurrences)
Last logged: 10:03:10 AM
Unable to set up dependencies of default_config. Setup failed for dependencies: dhcp

THIRD ERROR

Logger: homeassistant.setup
Source: setup.py:172
First occurred: 10:03:10 AM (1 occurrences)
Last logged: 10:03:10 AM
Setup failed for default_config: Could not set up all dependencies.

What should I do? I have Home Assistant CORE last version 2021.5.3. Errors started to pop up from 2021.5.1 version but I am not sure the 2 things are related.

Version core-2021.5.3
Installation Type Home Assistant Core
Development false
Supervisor false
Docker false
Virtual Environment true
Python Version 3.9.1
Operating System Family Linux
Operating System Version 3.18.14-19831441-QB36271825
CPU Architecture aarch64
Timezone Europe/Rome

Could you help me? Thanks in advance!

Same error here. Starting from 2021.5.1 and still there in 2021.5.4. Here it’s running on a Mac:

Version core-2021.5.4
Installationstyp Unknown
Entwicklung false
Supervisor false
Docker false
Virtuelle Umgebung false
Python-Version 3.8.10
Betriebssystemfamilie Darwin
Betriebssystem-Version 10.14.6
CPU-Architektur x86_64
Zeitzone Europe/Berlin

Same error here. Starting from 2021.6.2 and still there in 2021.6.4. Here it’s running on a Termux :

System Health

version core-2021.6.4
installation_type Unknown
dev false
hassio false
docker false
virtualenv false
python_version 3.9.5
os_name Linux
os_version 4.9.148
arch aarch64
timezone Asia/Taipei
Home Assistant Community Store
GitHub API ok
Github API Calls Remaining 4347
Installed Version 1.12.4
Stage running
Available Repositories 845
Installed Repositories 10
Home Assistant Cloud
logged_in false
can_reach_cert_server ok
can_reach_cloud_auth ok
can_reach_cloud ok
Lovelace
dashboards 1
resources 1
views 4
mode storage

Logger: homeassistant.setup
Source: deps/lib/python3.9/site-packages/scapy/arch/common.py:65
First occurred: 01:30:01 (1 occurrences)
Last logged: 01:30:01

Setup failed for dhcp: unknown error
Traceback (most recent call last):
File “/data/data/com.termux/files/usr/lib/python3.9/site-packages/homeassistant/setup.py”, line 200, in _async_setup_component
component = integration.get_component()
File “/data/data/com.termux/files/usr/lib/python3.9/site-packages/homeassistant/loader.py”, line 490, in get_component
cache[self.domain] = importlib.import_module(self.pkg_path)
File “/data/data/com.termux/files/usr/lib/python3.9/importlib/init.py”, line 127, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File “”, line 1030, in _gcd_import
File “”, line 1007, in _find_and_load
File “”, line 986, in _find_and_load_unlocked
File “”, line 680, in _load_unlocked
File “”, line 855, in exec_module
File “”, line 228, in _call_with_frames_removed
File “/data/data/com.termux/files/usr/lib/python3.9/site-packages/homeassistant/components/dhcp/init.py”, line 17, in
from scapy.arch.common import compile_filter
File “/data/data/com.termux/files/home/.homeassistant/deps/lib/python3.9/site-packages/scapy/arch/init.py”, line 135, in
_set_conf_sockets() # Apply config
File “/data/data/com.termux/files/home/.homeassistant/deps/lib/python3.9/site-packages/scapy/config.py”, line 618, in _set_conf_sockets
conf.ifaces.reload()
File “/data/data/com.termux/files/home/.homeassistant/deps/lib/python3.9/site-packages/scapy/interfaces.py”, line 238, in reload
self._reload_provs()
File “/data/data/com.termux/files/home/.homeassistant/deps/lib/python3.9/site-packages/scapy/interfaces.py”, line 234, in _reload_provs
self._load(prov.reload(), prov)
File “/data/data/com.termux/files/home/.homeassistant/deps/lib/python3.9/site-packages/scapy/interfaces.py”, line 53, in reload
return self.load()
File “/data/data/com.termux/files/home/.homeassistant/deps/lib/python3.9/site-packages/scapy/arch/linux.py”, line 420, in load
get_if_raw_hwaddr(i, siocgifhwaddr=SIOCGIFHWADDR)[1]
File “/data/data/com.termux/files/home/.homeassistant/deps/lib/python3.9/site-packages/scapy/arch/common.py”, line 87, in get_if_raw_hwaddr
get_if(iff, siocgifhwaddr)
File “/data/data/com.termux/files/home/.homeassistant/deps/lib/python3.9/site-packages/scapy/arch/common.py”, line 65, in get_if
return ioctl(sck, cmd, struct.pack(“16s16x”, iff.encode(“utf8”)))
PermissionError: [Errno 13] Permission denied

Logger: homeassistant.setup
Source: setup.py:152
First occurred: 01:30:13 (1 occurrences)
Last logged: 01:30:13

Unable to set up dependencies of default_config. Setup failed for dependencies: dhcp

Logger: homeassistant.setup
Source: setup.py:172
First occurred: 01:30:13 (1 occurrences)
Last logged: 01:30:13

Setup failed for default_config: Could not set up all dependencies.

dhcp error is still a problem in 2021.7.4. I have recently downgraded to 2021.4 and then the error disappeared. after upgrading again to 2021.7.4 the error came back.

I have temporarily fixed this by removing default_config: from the configuration file, and adding history: to the config file.

I’m also encountering this error. First noticed it in 2021.5, and still see it in 2021.9.7.

Has anyone had any success addressing this?

Installing 2021.10 solved it, for whatever reason…-