Need help debugging a randomly rebooting RPI 3b+ with HA

No idea where to start, I have several instances of HA 2 running on RPI 3b+ and one as a VM.

One of the RPIs keeps randomly restarting about every few hours or so.

image

I imported this instance of HA from a backup, cleaned up after restoring to this RPI by removing integrations, add-ons and templates until it only runs the basic stuff I need.

There is not much to see in the logs after a restart, at least I don’t see anythign directly related.

The power supply of the RPI is stable:

CPU and RAM usage seem OK:

I’m really hoping someone has an idea on what else to check. Next thing I was going to clone the SD card to anotehr one but this one is new, well, a couple of months old.

EDIT:
The RPI doesn’t do much, shows the weather data, controls play/pause and vol +/- of spotify connect, controls 1 TRV, a few zigbee plugs and that is about it. A handfull of automations, like loudly announcing that my washing is done and easy stuff like that.

RPi rebooting issues are nearly always the power supply.

I understand you are going by that PS sensor. Not sure how tight the tolerance is between the RPi reporting low voltage and it actually causing issues.

I’d certainly try a different PS before spending too much time chasing anything else.

Check the host-log. My old 3b had a high ram usage similar to yours and then kills processes. In my case add-ons were stopped.
I replaced it with a Pi 4.

I agree with Lutz that it’s probably memory. Try to increase the swap file size and see if it makes the RPI3 more stabel. It’ll buy you a few more months before you need to move to a new device.

Thanks for the feedback but I am unsure about it.

I forgot to mention that it ran stable for a couple of months before showing the current symptoms. I also had to go through 3 different power supplies, all leading to crashes also signaled by the RPi power sensor until I bought an original RPI power supply after which the sensor was stable and the RPi running fine.

About the memory, afaik this is how linux works, using all available RAM so 80% RAM usage shouldn’t be anything unusual. It also never goes about this value.

Still, I looked into memory usage and it seems swap is set to 300MB and 100% used. Will see if increasing it will delay the random reboots. If it does, tis definitely a memory problem and I will ugprade to an RPI 4.

Found a couple of mroe threads with the exact same problem: RPI 3b+ RAM/SWAP consumption identical to mine so I went ahead and ordered an RPI 5 :slight_smile:

I wanted to follow-up and say that creating a backup, replacing the RPI 3b+ with an RPI 5 and importing the backup worked flawlessly.

I realized, another HA instance I had running in a holliday home on an RPI 3b+ has also become mostly unresponsive and needs frequent reboots to become reachable again.

I suspect that recent updates of HA have raised memory requirements. This particular remote HA instance was running nothing but Z2M controlling 4 TRVs and 3 thermostats and has been running perfectly fine for 2 years. That is until now.