Constant crashes and restarts

I’m running on an rpi 3b. Home assistant constantly crashes with nothing pertinent in the logs. When I go to access the web ui I just notice “Home Assistant is starting, not everything will be available until it is finished.” it’s happened 3 times in the last 8 hours that I know of. I’m running 2022.6.1. What should I be looking at here? I trust it’s not this unstable for everyone???

Logs from before the most recent restart:

2022-06-03 17:17:36 WARNING (MainThread) [hass_nabucasa.cloud_api] Fetched https://alexa-api.nabucasa.com/access_token (400)
2022-06-03 17:17:36 ERROR (MainThread) [homeassistant] Error doing job: Task exception was never retrieved
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/components/cloud/alexa_config.py", line 367, in _handle_entity_registry_updated
    await self._sync_helper(to_update, to_remove)
  File "/usr/src/homeassistant/homeassistant/components/cloud/alexa_config.py", line 311, in _sync_helper
    await self.async_get_access_token()
  File "/usr/src/homeassistant/homeassistant/components/cloud/alexa_config.py", line 173, in async_get_access_token
    raise alexa_errors.RequireRelink
homeassistant.components.alexa.errors.RequireRelink
2022-06-03 17:17:58 ERROR (SyncWorker_17) [roombapy.remote_client] Can't connect to 192.168.1.130, error: [Errno 113] Host is unreachable
2022-06-03 17:18:02 ERROR (SyncWorker_17) [roombapy.remote_client] Can't connect to 192.168.1.130, error: [Errno 113] Host is unreachable
2022-06-03 17:18:05 ERROR (SyncWorker_17) [roombapy.remote_client] Can't connect to 192.168.1.130, error: [Errno 113] Host is unreachable
2022-06-03 17:18:05 ERROR (SyncWorker_17) [roombapy.remote_client] Unable to connect to 192.168.1.130
2022-06-03 17:19:28 ERROR (SyncWorker_12) [roombapy.remote_client] Can't connect to 192.168.1.130, error: [Errno 113] Host is unreachable
2022-06-03 17:19:30 ERROR (MainThread) [homeassistant.components.hassio.handler] Timeout on /addons/67f4b1af_weatherflow2mqtt/stats request
2022-06-03 17:19:30 WARNING (MainThread) [homeassistant.components.hassio] Could not fetch stats for 67f4b1af_weatherflow2mqtt:
2022-06-03 17:19:30 ERROR (MainThread) [homeassistant.components.hassio.handler] Timeout on /addons/a0d7b954_zwavejs2mqtt/stats request
2022-06-03 17:19:30 WARNING (MainThread) [homeassistant.components.hassio] Could not fetch stats for a0d7b954_zwavejs2mqtt:
2022-06-03 17:19:30 ERROR (MainThread) [homeassistant.components.hassio.handler] Timeout on /addons/core_configurator/stats request
2022-06-03 17:19:30 WARNING (MainThread) [homeassistant.components.hassio] Could not fetch stats for core_configurator:
2022-06-03 17:19:30 ERROR (MainThread) [homeassistant.components.hassio.handler] Timeout on /addons/7c966942_emulated_hue_dev/stats request
2022-06-03 17:19:30 WARNING (MainThread) [homeassistant.components.hassio] Could not fetch stats for 7c966942_emulated_hue_dev:
2022-06-03 17:19:30 ERROR (MainThread) [homeassistant.components.hassio.handler] Timeout on /addons/core_ssh/stats request
2022-06-03 17:19:30 WARNING (MainThread) [homeassistant.components.hassio] Could not fetch stats for core_ssh:
2022-06-03 17:19:30 ERROR (MainThread) [homeassistant.components.hassio.handler] Timeout on /addons/core_mosquitto/stats request
2022-06-03 17:19:30 WARNING (MainThread) [homeassistant.components.hassio] Could not fetch stats for core_mosquitto:
2022-06-03 17:19:31 ERROR (SyncWorker_12) [roombapy.remote_client] Can't connect to 192.168.1.130, error: [Errno 113] Host is unreachable
2022-06-03 17:19:34 ERROR (SyncWorker_12) [roombapy.remote_client] Can't connect to 192.168.1.130, error: [Errno 113] Host is unreachable
2022-06-03 17:19:34 ERROR (SyncWorker_12) [roombapy.remote_client] Unable to connect to 192.168.1.130

HI There,

I can relate to your issue.
With the same setup and on the same version, I have had two crashes within the last days.
Since I am not at home at the moment, I could not check it out myself. But it’s good to see I am not alone with this. Frankly so far: This is the first time is is making trouble. Has been running very well for some years now! Hope this gets identified very soon!

Any luck, I have tried for the last few days to get any of the 2022.6 releases to work and they all fail, most of the time without any output to home-assistant.log. I have to roll back to 2022.5 each time. I tried again today without any luck.

I noticed my host log shows it keeps running out of memory and terminates python3. Not sure what to do with that info though. Is the rpi3 just too old to really work? Not enough memory?

I’m running mine in docker and it just keeps restarting without any logs for 2022.6:stable, I always have to revert back to 2022.5 and everything functions perfectly

Hmm I had the issue in 2022.5 as well so my issue might be different.

Well, after a bit of searching it was just removing the --init option from my docker container. Never had an issue in the past.

1 Like

Glad you solved your issue but guessing mine is something different :frowning:

From the breaking changes section for 2022.6 under “Home Assistant Container”:

If you run Home Assistant Container in Docker (e.g., using Portainer, Docker (Compose), QNAP, and others), please make sure you are not specifying an init process.

This can be an init configuration option in your Docker management tools or Docker Compose, or the --init command line flag on the raw Docker command. These should NOT be set, as Home Assistant ships with the S6 init system.

While you are at it, make sure you also do not set a cmd or entrypoint. Setting these are not breaking, however, you should not set them.

This is only a problem for container users though. Considering this is in the HAOS section of the forum I’m pretty sure it doesn’t apply to @dman2306

1 Like

What are the specs of your rpi3? How much memory does it have?

1GB ram. Rpi 3b only comes in one configuration Buy a Raspberry Pi 3 Model B – Raspberry Pi I have another 8GB rpi4 on order but with the current state of the supply chain I had to spend a small fortune to get it :confused:

Oh yeah I’m pretty sure 1gb is too small. The vm install says 2gb is the minimum ram so less then that seems like a bad idea.

Raspberry Pi - Home Assistant Says a rpi 3 is supported which is why I gave it a shot. Maybe it’s outdated?

1 Like

Hm possibly. I thought there was variants of the rpi3 with more then 1gb but I’m not seeing them. You could also try just really trimming down what you’re using.

Like to start, no addons at all. And no custom integrations like HACS stuff. Maybe even strip down your config a bit if it’s still complex after that. If you find a point where it’s running then can start slowly adding stuff back.

Just figured I’d follow up - I upgraded to an rpi4 about a week ago. It’s been flawless ever since. Everything is super fast, no crashes, no lockups.

Is there any other solution than upgrading to a rpi 4?
I am running in the same problems and cant even resart anymore :frowning: After a few days my HA crashes completely and I can’t do anything against it :frowning: