HA is randomly restarting

In my case it was the stream component. After checking forums, I found that “stream” has a reputation for instability for many people. Component removed 4 days ago: no more crashes nor entries in the log, I didn’t lose any functionality, i really almost never open the live streams on HA, I just check for packages in the porch or baby status :slight_smile: on the still images.
I get overall less CPU usage unless I open the live streams, but the RPi4 can handle it and again, I almost never use live streams. And I also added rtsp hardlinks on the picture-glance card that open directly on VLC when clicked in case I need to leave live streams open for a while (works on android, mac and linux), so the cpu load on HA is zero, even less than with “stream” activated.

Now looking back the crashes may have started after playing with the “preload” feature in the picture card of the Hikvision cam, or maybe when I added that second cam. Anyways since the system was so brittle I just prefer to remove stream and be sure that HA is rock solid no matter what settings are done in the UI

Since two days I also have the issue of random reboots.
Power should be fine, was also no issue the months before.
I already tried a new SD card with a fresh image and my backup, same behaviour.

If I look at the log for the last restart, I see

2022-03-31 12:11:00 ERROR (MainThread) [homeassistant.components.hassio.handler] Timeout on /addons/15d21743_samba_backup/stats request
2022-03-31 12:11:00 ERROR (MainThread) [homeassistant.components.hassio.handler] Timeout on /addons/core_configurator/stats request
2022-03-31 12:11:00 ERROR (MainThread) [homeassistant.components.hassio.handler] Timeout on /addons/core_mosquitto/stats request
2022-03-31 12:11:00 ERROR (MainThread) [homeassistant.components.hassio.handler] Timeout on /addons/a0d7b954_bitwarden/stats request
2022-03-31 12:11:00 WARNING (MainThread) [homeassistant.components.hassio] Can't read Supervisor data: 
2022-03-31 12:16:11 ERROR (MainThread) [homeassistant.components.hassio.handler] Timeout on /addons/core_duckdns/stats request
2022-03-31 12:16:11 ERROR (MainThread) [homeassistant.components.hassio.handler] Timeout on /addons/core_mariadb/stats request
2022-03-31 12:16:11 ERROR (MainThread) [homeassistant.components.hassio.handler] Timeout on /addons/core_mosquitto/stats request
2022-03-31 12:16:11 ERROR (MainThread) [homeassistant.components.hassio.handler] Timeout on /addons/a0d7b954_sonweb/stats request
2022-03-31 12:16:11 ERROR (MainThread) [homeassistant.components.hassio.handler] Timeout on /addons/a0d7b954_adguard/stats request
2022-03-31 12:16:11 ERROR (MainThread) [homeassistant.components.hassio.handler] Timeout on /addons/core_configurator/stats request
2022-03-31 12:16:11 ERROR (MainThread) [homeassistant.components.hassio.handler] Timeout on /addons/a0d7b954_nginxproxymanager/stats request
2022-03-31 12:16:11 ERROR (MainThread) [homeassistant.components.hassio.handler] Timeout on /addons/a0d7b954_bitwarden/stats request
2022-03-31 12:16:11 ERROR (MainThread) [homeassistant.components.hassio.handler] Timeout on /addons/15d21743_samba_backup/stats request
2022-03-31 12:16:11 ERROR (MainThread) [homeassistant.components.hassio.handler] Timeout on /addons/core_samba/stats request
2022-03-31 12:16:11 ERROR (MainThread) [homeassistant.components.hassio.handler] Timeout on /addons/core_ssh/stats request
2022-03-31 12:16:11 WARNING (MainThread) [homeassistant.components.hassio] Can't read Supervisor data: 

So looks like somehow the supervisor died, and with it all add-ons, leading to a reboot?!
Strange also that first just a few addons timed out, and five minutes later (without any other log entry in between, which usually occur more frequently) basically all…

1 Like

Is there a guide somewhere on how someone can troubleshoot this? My HA randomly restarts as well (all other addons run fine) and there is nothing in the logs. It randomly started happening a few months ago.

It’s happened to me twice.

Both times I’ve started disabling custom components and one of them has been the cause.

Luckily for me they were things I could do without.

Tracked it. Looks like I suffered the fate of the famous Stream component like @ariel did. You’d think there would be some safeguards there so it wouldn’t crash the whole HA if it’s having issues with a camera stream.