Home assistant repeatedly stopped running over night

Good morning folks, my RPI was freezed fourth consecutive time in a row. So I am going to try the downgrading @jockesoft recommended and will tell you tomorrow if there is a change. Logs are free of any suspicious.

@Klabatzie I am not sure we have the same problem as I don’t have access to RPI at all, even ping does not work.

This might be the issue we are experiencing: https://github.com/home-assistant/operating-system/issues/1129

Stefan Agner: This issue is related to freezes with zram decompression failure, so make sure to check if you have this errors in the Host log to make sure its this actual issue.

A fix for zram decompression failure will be in 5.10 onwards.

As I never upgraded to 5.9 instead seeing those issues still on HASS OS 5.8, I think it might be https://github.com/home-assistant/operating-system/issues/1119 or https://github.com/home-assistant/operating-system/issues/1096.

And there´s no solution yet so I guess this topic is not “solved” too @ Vahaldor.

Fifth day and I am running after degrading to 4.8.

I will keep it as “unresolved” as some others experience freezing even on 4.8

I had the same problem.

After a few hours HA would become inresponsive an not accessible from all divices.

Error i got on mobile devices was “502 bad gateway”
After checking the logbook when i restarted HA icouls see that it couldn’t open the database.

“Error executing query: (sqlite3.OperationalError) unable to open database file (Background on this error at: http://sqlalche.me/e/13/e3q8)”

I’ve now made an new SD-card(high performance) with a snapshot i was able to get out of HA and everything works again as a charm!

Closing on 2 full days of uptime now after the downgrade from 5.9 -> 5.8. No problems seen at all so atleast for me it seem like there are some issue in 5.9 causing my RPi to completely freeze after ~10hours. Will stay at 5.8 since it seem more stable.

That’s the zram decompression. However, things can freeze for more reasons understandably .)

Let’s check together whether our rpis stay up after updating to 5.10

Has 5.10 been offered to you already? It´s been released (stable) but not showing up in the UI yet.

No, I dont see it as well. However, I will wait couple of days to be sure there is no other reason for my freezing than zram decompression bug in 5.9

Sixth day since the problem has revealed and second day running without interruption after downgrading back to 5.8

Updated to 5.10 and experienced freeze during morning, not over night.

I’m relatively new to HA.
I’m running HA on a Raspberry model 4.
At this moment, I’m only using the integrations Node-red, Denon Heos, Onvif, Zwave, KNX.
I still have plenty of RAM, SSD available. CPU % is always less than 10%.
I’m using the latest stable prod versions.

The core on my Raspberry hangs nearly every week, and stops doing automation or measuring.
A ping to the PI still is OK. A connection with the UI times-out. Until now, I’m always doing a hard reboot (power off). But this empties also the log file

Is there a way to keep an archive of the log files? So that at least I can try to find the problem in the older log file from before the hard reboot.

Does a watchdog mechanism exists for the Core on my PI, which reboots automatically?

Hi,

my HA has been constantly freezing (not accessible) since version 4.9. There was some memory issue, which was the cause for some but apparently not for me. So I was running 4.8 and have been trying to update, when there was a new version (to 5.0, then 5.10, then to 5.11 then to 5.12) and there is still no solution. I am running RPi 4.

Is there anybody with the same issue?