HA crashes every couple days and I have no idea how to find out why

Hi all,

I do not know what to do anymore, having this problem for weeks already :frowning:
I just would like to find out more about the cause of my issue.

Running a standard setup on a raspberry pi with HAOS. Was running great for around two years.

Since one of the last updates, every like 2-4 days HA becomes not available anymore (at random times). I have to unplug the raspberry from power and then it is running fine again for some days until it crashes again.
I realize that, when like lights are not turning on :frowning: And then I realize UI is not loading (waiting multiple hours does not help), I cannot do anything except for power reset.

I have only 3 add-ons z2m & mosquitto and file editor.
Also no significant changes recently.

I want to try to find out what the problem is, and used file editor to download the logs
home-assistant.log.1
home-assistant.log
home-assistant.log.fault

I also check all the logs via GUI.

But I cannot find anything helpful, no real errors, just some warnings when starting.
Also no repairs showing, storage 99% free, CPU around 5%-8% when I check and RAM 0.7 from 1 GB used.

Do you have maybe more ideas how I can find out why the system becomes unavailable?

Thank you in advance

Is this an RPI4?

1 Like

How to Troubleshoot Raspberry Pi Crashing.

1 Like

Your ram amount is probably too low.
RPi3 which only have 1Gb have had a notice in the docs for some time now regarding the limited ram and HA keeps increasing in size with each updates, so eventually there will be too little available.
There have been many threads already with issues with RPi3 (and RPi4 with the 1Gb configuration).

The 0,7 used out of 1Gb is just a momentary picture.
The CPU will try to reserve memory and often it will have to be in a continuous address range, which will fail more often the less memory there is available.
You will not see this failed reservation in your overview. It just shows successful reservations.

Th RPi3 has a slow CPU too, but the slow CPU just makes HA slow to respond too.
The ram issue will however cause a crash.

2 Likes

Thank you all very much :heart_eyes:
This is very helpful, it is a 3b with 1GB RAM, so it really fits your descriptions and links.

The power supply is very solid, the SSD is also good.

I just ordered a Rpi5 with 4GB of RAM. Hope it will arrive soon.

This helps me very much, you guys are the best :+1:

2 Likes

Why 4, why not just get the 8gig?

price difference was the reason.
Considering 2GB system seem to be fine according to the information (even on a rpi4), 4 GB - so doubling that - on a rpi5 sounded like it easily is enough also for the future.

Just wanted to provide a quick confirmation feedback:

rp5 arrived and I migrated everything (over a week ago) and yes that was the solution :heart_eyes:
no crashes ever since, amazing :slight_smile: