home-assistant / core

:house_with_garden: Open source home automation that puts local control and privacy first.
https://www.home-assistant.io
Apache License 2.0
73.52k stars 30.71k forks source link

Home Assistant (OS) freezes regularly #72705

Closed maxbrandes closed 1 year ago

maxbrandes commented 2 years ago

The problem

Every night, from Sunday to Monday, my HASS freezes and is not usable anymore. I have to do a hard reboot (power off/power on) my Rasperry Pi 4 in order to get HASS up and running again.

Today, it already froze 3 times between 6AM and 1PM - this is why I am opening up this issue.

What version of Home Assistant Core has the issue?

2022.5.5

What was the last working version of Home Assistant Core?

No response

What type of installation are you running?

Home Assistant OS

Integration causing the issue

No response

Link to integration documentation on our website

No response

Diagnostics information

HASS_ErrorLog.pdf

ErrorScreenshot

Example YAML snippet

No response

Anything in the logs that might be useful for us?

from scapy.layers.dhcp import DHCP  # pylint: disable=import-outside-toplevel
  File "/usr/local/lib/python3.9/site-packages/scapy/layers/dhcp.py", line 20, in <module>
    from scapy.ansmachine import AnsweringMachine
  File "/usr/local/lib/python3.9/site-packages/scapy/ansmachine.py", line 20, in <module>
    from scapy.sendrecv import send, sniff
  File "/usr/local/lib/python3.9/site-packages/scapy/sendrecv.py", line 61, in <module>
    import scapy.route  # noqa: F401
  File "/usr/local/lib/python3.9/site-packages/scapy/route.py", line 221, in <module>
    conf.ifaces.reload()
  File "/usr/local/lib/python3.9/site-packages/scapy/interfaces.py", line 238, in reload
    self._reload_provs()
  File "/usr/local/lib/python3.9/site-packages/scapy/interfaces.py", line 234, in _reload_provs
    self._load(prov.reload(), prov)
  File "/usr/local/lib/python3.9/site-packages/scapy/interfaces.py", line 53, in reload
    return self.load()
  File "/usr/local/lib/python3.9/site-packages/scapy/arch/linux.py", line 417, in load
    ifflags = struct.unpack("16xH14x", get_if(i, SIOCGIFFLAGS))[0]
  File "/usr/local/lib/python3.9/site-packages/scapy/arch/common.py", line 65, in get_if
    return ioctl(sck, cmd, struct.pack("16s16x", iff.encode("utf8")))
OSError: [Errno 19] No such device
2022-05-30 09:40:32 WARNING (MainThread) [homeassistant.components.zha.core.channels.base] [0x0609:1:0x0008]: async_initialize: all attempts have failed: [DeliveryError('[0x0609:1:0x0008]: Message send failure'), DeliveryError('[0x0609:1:0x0008]: Message send failure'), DeliveryError('[0x0609:1:0x0008]: Message send failure'), DeliveryError('[0x0609:1:0x0008]: Message send failure')]
2022-05-30 09:40:32 WARNING (MainThread) [homeassistant.components.zha.core.channels.base] [0x2D0C:1:0x0008]: async_initialize: all attempts have failed: [DeliveryError('[0x2d0c:1:0x0008]: Message send failure'), DeliveryError('[0x2d0c:1:0x0008]: Message send failure'), DeliveryError('[0x2d0c:1:0x0008]: Message send failure'), DeliveryError('[0x2d0c:1:0x0008]: Message send failure')]
2022-05-30 09:41:11 WARNING (MainThread) [homeassistant.components.zha.core.channels.base] [0x2D0C:1:0x0006]: async_initialize: all attempts have failed: [DeliveryError('[0x2d0c:1:0x0006]: Message send failure'), DeliveryError('[0x2d0c:1:0x0006]: Message send failure'), DeliveryError('[0x2d0c:1:0x0006]: Message send failure'), DeliveryError('[0x2d0c:1:0x0006]: Message send failure')]
2022-05-30 09:41:12 WARNING (MainThread) [homeassistant.components.zha.core.channels.base] [0x0609:1:0x0006]: async_initialize: all attempts have failed: [DeliveryError('[0x0609:1:0x0006]: Message send failure'), DeliveryError('[0x0609:1:0x0006]: Message send failure'), DeliveryError('[0x0609:1:0x0006]: Message send failure'), DeliveryError('[0x0609:1:0x0006]: Message send failure')]
2022-05-30 10:06:39 ERROR (MainThread) [homeassistant.components.shelly] Timeout fetching Esszimmer links data
2022-05-30 10:16:53 ERROR (MainThread) [homeassistant.components.shelly] Timeout fetching Wohnzimmer data
2022-05-30 10:26:45 ERROR (MainThread) [homeassistant.components.shelly] Timeout fetching Esszimmer links data
[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.
2022-05-30 11:40:35 WARNING (Recorder) [homeassistant.components.recorder.util] The system could not validate that the sqlite3 database at //config/home-assistant_v2.db was shutdown cleanly
2022-05-30 11:40:35 WARNING (Recorder) [homeassistant.components.recorder.util] Ended unfinished session (id=123 from 2022-05-30 07:39:54.606273)
2022-05-30 11:40:51 WARNING (MainThread) [homeassistant.config_entries] Config entry 'Schlafzimmer' for shelly integration not ready yet: Cannot connect to host 192.168.0.52:80 ssl:default [Connect call failed ('192.168.0.52', 80)]; Retrying in background
2022-05-30 11:41:09 WARNING (MainThread) [homeassistant.components.zha.core.channels.base] [0x2D0C:1:0x0008]: async_initialize: all attempts have failed: [DeliveryError('[0x2d0c:1:0x0008]: Message send failure'), DeliveryError('[0x2d0c:1:0x0008]: Message send failure'), DeliveryError('[0x2d0c:1:0x0008]: Message send failure'), DeliveryError('[0x2d0c:1:0x0008]: Message send failure')]
2022-05-30 11:41:10 WARNING (MainThread) [homeassistant.components.zha.core.channels.base] [0x0609:1:0x0006]: async_initialize: all attempts have failed: [DeliveryError('[0x0609:1:0x0006]: Message send failure'), DeliveryError('[0x0609:1:0x0006]: Message send failure'), DeliveryError('[0x0609:1:0x0006]: Message send failure'), DeliveryError('[0x0609:1:0x0006]: Message send failure')]
2022-05-30 11:41:39 WARNING (MainThread) [homeassistant.components.zha.core.channels.base] [0x0609:1:0x0008]: async_initialize: all attempts have failed: [DeliveryError('[0x0609:1:0x0008]: Message send failure'), DeliveryError('[0x0609:1:0x0008]: Message send failure'), DeliveryError('[0x0609:1:0x0008]: Message send failure'), DeliveryError('[0x0609:1:0x0008]: Message send failure')]
2022-05-30 11:41:51 WARNING (MainThread) [homeassistant.components.zha.core.channels.base] [0x2D0C:1:0x0006]: async_initialize: all attempts have failed: [DeliveryError('[0x2d0c:1:0x0006]: Message send failure'), DeliveryError('[0x2d0c:1:0x0006]: Message send failure'), DeliveryError('[0x2d0c:1:0x0006]: Message send failure'), DeliveryError('[0x2d0c:1:0x0006]: Message send failure')]
2022-05-30 12:08:13 ERROR (MainThread) [homeassistant.components.shelly] Timeout fetching Wohnzimmer data
2022-05-30 12:12:36 ERROR (MainThread) [homeassistant.components.shelly] Timeout fetching Esszimmer rechts  data
2022-05-30 12:20:35 WARNING (MainThread) [homeassistant.components.zha.core.channels.base] [0xDB26:1:0x1000]: Couldn't get list of groups: [0xdb26:1:0x1000]: Message send failure
2022-05-30 12:20:35 ERROR (MainThread) [frontend.js.latest.202205041] http://192.168.0.85:8123/frontend_latest/fc001a90.js:249:29247 TypeError: undefined is not an object (evaluating 'this._clusterConfigurationStatuses.get')
2022-05-30 12:20:35 ERROR (MainThread) [frontend.js.latest.202205041] http://192.168.0.85:8123/frontend_latest/fc001a90.js:249:29247 TypeError: undefined is not an object (evaluating 'this._clusterConfigurationStatuses.get')
2022-05-30 12:20:35 ERROR (MainThread) [frontend.js.latest.202205041] http://192.168.0.85:8123/frontend_latest/fc001a90.js:249:29247 TypeError: undefined is not an object (evaluating 'this._clusterConfigurationStatuses.get')
2022-05-30 12:20:35 ERROR (MainThread) [frontend.js.latest.202205041] http://192.168.0.85:8123/frontend_latest/fc001a90.js:249:29247 TypeError: undefined is not an object (evaluating 'this._clusterConfigurationStatuses.get')
2022-05-30 12:20:35 ERROR (MainThread) [frontend.js.latest.202205041] http://192.168.0.85:8123/frontend_latest/fc001a90.js:249:29247 TypeError: undefined is not an object (evaluating 'this._clusterConfigurationStatuses.get')
2022-05-30 12:20:35 ERROR (MainThread) [frontend.js.latest.202205041] http://192.168.0.85:8123/frontend_latest/fc001a90.js:249:29247 TypeError: undefined is not an object (evaluating 'this._clusterConfigurationStatuses.get')
2022-05-30 12:20:35 ERROR (MainThread) [frontend.js.latest.202205041] http://192.168.0.85:8123/frontend_latest/fc001a90.js:249:29247 TypeError: undefined is not an object (evaluating 'this._clusterConfigurationStatuses.get')
2022-05-30 12:20:46 ERROR (MainThread) [frontend.js.latest.202205041] http://192.168.0.85:8123/frontend_latest/fc001a90.js:249:29247 TypeError: undefined is not an object (evaluating 'this._clusterConfigurationStatuses.get')
2022-05-30 12:20:56 ERROR (MainThread) [frontend.js.latest.202205041] http://192.168.0.85:8123/frontend_latest/fc001a90.js:249:29247 TypeError: undefined is not an object (evaluating 'this._clusterConfigurationStatuses.get')
[cont-finish.d] executing container finish scripts...
[cont-finish.d] done.
[s6-finish] waiting for services.
2022-05-30 12:22:05 ERROR (MainThread) [homeassistant.components.hassio.handler] Timeout on /homeassistant/restart request
[finish] process exit code 0
s6-svscanctl: fatal: unable to control /var/run/s6/services: supervisor not listening
[s6-finish] sending all processes the TERM signal.
[s6-finish] sending all processes the KILL signal and exiting.
[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.
2022-05-30 12:22:31 ERROR (MainThread) [homeassistant.components.websocket_api.http.connection] [548114371008] Received invalid command: zha/devices/reconfigure
2022-05-30 12:22:41 ERROR (MainThread) [homeassistant.components.websocket_api.http.connection] [548080018768] Received invalid command: mobile_app/push_notification_channel
2022-05-30 12:22:44 WARNING (MainThread) [homeassistant.config_entries] Config entry 'Schlafzimmer' for shelly integration not ready yet: Cannot connect to host 192.168.0.52:80 ssl:default [Connect call failed ('192.168.0.52', 80)]; Retrying in background
2022-05-30 12:22:55 WARNING (MainThread) [zigpy_deconz.api] Duplicate or delayed response for 0x:1a sequence
2022-05-30 12:22:55 WARNING (MainThread) [zigpy_deconz.api] No response to 'Command.aps_data_request' command with seq id '0x1a'
2022-05-30 12:22:58 WARNING (MainThread) [zigpy_deconz.zigbee.application] Unexpected transmit confirm for request id 10, Status: TXStatus.SUCCESS
2022-05-30 12:23:03 WARNING (MainThread) [homeassistant.components.zha.core.channels.base] [0x0609:1:0x0008]: async_initialize: all attempts have failed: [DeliveryError('[0x0609:1:0x0008]: Message send failure'), DeliveryError('[0x0609:1:0x0008]: Message send failure'), DeliveryError('[0x0609:1:0x0008]: Message send failure'), DeliveryError('[0x0609:1:0x0008]: Message send failure')]
2022-05-30 12:23:04 WARNING (MainThread) [homeassistant.components.zha.core.channels.base] [0x2D0C:1:0x0008]: async_initialize: all attempts have failed: [DeliveryError('[0x2d0c:1:0x0008]: Message send failure'), DeliveryError('[0x2d0c:1:0x0008]: Message send failure'), DeliveryError('[0x2d0c:1:0x0008]: Message send failure'), DeliveryError('[0x2d0c:1:0x0008]: Message send failure')]
2022-05-30 12:23:41 WARNING (MainThread) [homeassistant.components.zha.core.channels.base] [0x0609:1:0x0006]: async_initialize: all attempts have failed: [DeliveryError('[0x0609:1:0x0006]: Message send failure'), DeliveryError('[0x0609:1:0x0006]: Message send failure'), DeliveryError('[0x0609:1:0x0006]: Message send failure'), DeliveryError('[0x0609:1:0x0006]: Message send failure')]
2022-05-30 12:23:43 WARNING (MainThread) [homeassistant.components.zha.core.channels.base] [0x2D0C:1:0x0006]: async_initialize: all attempts have failed: [DeliveryError('[0x2d0c:1:0x0006]: Message send failure'), DeliveryError('[0x2d0c:1:0x0006]: Message send failure'), DeliveryError('[0x2d0c:1:0x0006]: Message send failure'), DeliveryError('[0x2d0c:1:0x0006]: Message send failure')]
2022-05-30 12:44:26 ERROR (MainThread) [homeassistant.components.shelly] Timeout fetching Esszimmer rechts  data
2022-05-30 12:46:56 ERROR (MainThread) [homeassistant.components.shelly] Timeout fetching Esszimmer rechts  data
[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.
2022-05-30 12:56:15 WARNING (Recorder) [homeassistant.components.recorder.util] The system could not validate that the sqlite3 database at //config/home-assistant_v2.db was shutdown cleanly
2022-05-30 12:56:16 WARNING (Recorder) [homeassistant.components.recorder.util] Ended unfinished session (id=125 from 2022-05-30 10:22:24.775279)
2022-05-30 12:56:32 WARNING (MainThread) [homeassistant.config_entries] Config entry 'Schlafzimmer' for shelly integration not ready yet: Cannot connect to host 192.168.0.52:80 ssl:default [Connect call failed ('192.168.0.52', 80)]; Retrying in background
2022-05-30 12:56:42 WARNING (MainThread) [zigpy_deconz.api] Duplicate or delayed response for 0x:1f sequence
2022-05-30 12:56:42 WARNING (MainThread) [zigpy_deconz.api] No response to 'Command.aps_data_request' command with seq id '0x1f'
2022-05-30 12:56:42 WARNING (MainThread) [zigpy_deconz.zigbee.application] Unexpected transmit confirm for request id 16, Status: TXStatus.SUCCESS
2022-05-30 12:56:47 WARNING (MainThread) [homeassistant.components.zha.core.channels.base] [0x0609:1:0x0008]: async_initialize: all attempts have failed: [DeliveryError('[0x0609:1:0x0008]: Message send failure'), DeliveryError('[0x0609:1:0x0008]: Message send failure'), DeliveryError('[0x0609:1:0x0008]: Message send failure'), DeliveryError('[0x0609:1:0x0008]: Message send failure')]
2022-05-30 12:56:48 WARNING (MainThread) [homeassistant.components.zha.core.channels.base] [0x2D0C:1:0x0008]: async_initialize: all attempts have failed: [DeliveryError('[0x2d0c:1:0x0008]: Message send failure'), DeliveryError('[0x2d0c:1:0x0008]: Message send failure'), DeliveryError('[0x2d0c:1:0x0008]: Message send failure'), DeliveryError('[0x2d0c:1:0x0008]: Message send failure')]
2022-05-30 12:57:28 WARNING (MainThread) [homeassistant.components.zha.core.channels.base] [0x2D0C:1:0x0006]: async_initialize: all attempts have failed: [DeliveryError('[0x2d0c:1:0x0006]: Message send failure'), DeliveryError('[0x2d0c:1:0x0006]: Message send failure'), DeliveryError('[0x2d0c:1:0x0006]: Message send failure'), DeliveryError('[0x2d0c:1:0x0006]: Message send failure')]
2022-05-30 12:57:28 WARNING (MainThread) [homeassistant.components.zha.core.channels.base] [0x0609:1:0x0006]: async_initialize: all attempts have failed: [DeliveryError('[0x0609:1:0x0006]: Message send failure'), DeliveryError('[0x0609:1:0x0006]: Message send failure'), DeliveryError('[0x0609:1:0x0006]: Message send failure'), DeliveryError('[0x0609:1:0x0006]: Message send failure')]

System Health

version core-2022.5.5
installation_type Home Assistant OS
dev false
hassio true
docker true
user root
virtualenv false
python_version 3.9.9
os_name Linux
os_version 5.15.32-v8
arch aarch64
timezone Europe/Berlin
Home Assistant Cloud logged_in | false -- | -- can_reach_cert_server | ok can_reach_cloud_auth | ok can_reach_cloud | ok
Home Assistant Supervisor host_os | Home Assistant OS 8.1 -- | -- update_channel | stable supervisor_version | supervisor-2022.05.3 docker_version | 20.10.14 disk_total | 28.8 GB disk_used | 5.5 GB healthy | true supported | true board | rpi4-64 supervisor_api | ok version_api | ok installed_addons | File editor (5.3.3), Home Assistant Google Drive Backup (0.107.2), Samba share (9.6.1), Node-RED (11.1.2), AdGuard Home (4.5.1), Check Home Assistant configuration (3.10.0)
Dashboards dashboards | 2 -- | -- resources | 0 views | 1 mode | storage

Additional information

I have the following add-ons. None of them show any errors in the log

stilcom commented 2 years ago

Hi,

I have the same regularly. I just upgraded to 2022.6 and will see if it is as frequent as before.

Logger: homeassistant Source: components/dhcp/init.py:437 First occurred: 10:21:26 (1 occurrences) Last logged: 10:21:26

Error doing job: Task exception was never retrieved Traceback (most recent call last): File "/usr/src/homeassistant/homeassistant/components/dhcp/init.py", line 136, in _initialize await active_watcher.async_start() File "/usr/src/homeassistant/homeassistant/components/dhcp/init.py", line 431, in async_start await self.hass.async_add_executor_job(self._start) File "/usr/local/lib/python3.9/concurrent/futures/thread.py", line 58, in run result = self.fn(*self.args, **self.kwargs) File "/usr/src/homeassistant/homeassistant/components/dhcp/init.py", line 437, in _start from scapy import ( # pylint: disable=import-outside-toplevel,unused-import # noqa: F401 File "/usr/local/lib/python3.9/site-packages/scapy/arch/init.py", line 135, in _set_conf_sockets() # Apply config File "/usr/local/lib/python3.9/site-packages/scapy/config.py", line 618, in _set_conf_sockets conf.ifaces.reload() File "/usr/local/lib/python3.9/site-packages/scapy/interfaces.py", line 238, in reload self._reload_provs() File "/usr/local/lib/python3.9/site-packages/scapy/interfaces.py", line 234, in _reload_provs self._load(prov.reload(), prov) File "/usr/local/lib/python3.9/site-packages/scapy/interfaces.py", line 53, in reload return self.load() File "/usr/local/lib/python3.9/site-packages/scapy/arch/linux.py", line 417, in load ifflags = struct.unpack("16xH14x", get_if(i, SIOCGIFFLAGS))[0] File "/usr/local/lib/python3.9/site-packages/scapy/arch/common.py", line 65, in get_if return ioctl(sck, cmd, struct.pack("16s16x", iff.encode("utf8"))) OSError: [Errno 19] No such device

If you guys need more environment info, please let me know.

Hacen

github-actions[bot] commented 2 years ago

There hasn't been any activity on this issue recently. Due to the high number of incoming GitHub notifications, we have to clean some of the old issues, as many of them have already been resolved with the latest updates. Please make sure to update to the latest Home Assistant version and check if that solves the issue. Let us know if that works for you by adding a comment đź‘Ť This issue has now been marked as stale and will be closed if no further activity occurs. Thank you for your contributions.