Not sure where to start but my HA seems to hang and no buttons or automations seem to work each day. Its as if an automation runs and then hangs the system after this.
Where do I start to problem solve this.
Nothing in the logs to say anything new?
Running 23.4.4 on a Raspberry PI
Does it hang everyday at the same time? Which integrations do you use? Did it ever work without hanging? What did you change just before it started hanging every day?
Please provide some more info.
I have a non-responsive issue as well but the thing just - stops. Freezes up (and is cold to the touch so not overheating - it’s just like it decided to go on vacation and there was nobody home!)…
So that is what happens from time to time witrh my RPI. I was running from an SSD (makes a HUGE speed difference - samsung T7 which comes with the cable needed and requires no extra power supply).
Some people have said they also notice the RPI’s always after a while start having issues like this, and they trypically switch to more beefed up hardware. I thought that might be the case, but am still running with my RPI and this is how I solved it (for now, anyway)…*
That being said, mine (RPI4b w/8Gig of RAM) would lock up every 5 days or so. I booted plain OS off an SD Card and then afterward attached the SSD to run bunch of linux commands to look for and fix any file system errors on the SSD. The last time I did that it only found one fragmented file which did not even have any issues but it removed that fragmentation. So that should not have resolved my issues - but it did.
So, I would suggest doing the same - if you are working off a MicroSD Card, put it on your list to move over to an SSD, but in the meantime, get a usb dongle to plug your card into, so you can attach it to check the file system afdter you had booted up from an sd card that just has the OS.
*It could be the I/O management firmware on these tiny RPI’s are not very sophisticated, and the other more beefed up hardware just doesn’t have the same issue due to a more robust I/O logic built into their base hardware contolling firmware that isn’t present on the RPI.
Hope that helps -
UPDATE:
It’s been 8 days and it locked up again. I checked every single log - nothing. Restarted the PI - works fine. Note the strikeout (correction) above. I did not defragment the drive. So, I have worked through a repair and defragmented it this time as well. We’ll see if that holds for a while. FYI here are the instructions I wrote myself to do the file repairs and defragmentation:
-
Completely shut down the RPI and disconnect all SSD’s
-
Boot up the RPI with only the sdcard attached - get into it at a command prompt with telnet.
-
Attach the SSD and make sure it flickers -
-
At a command prompt, run to get a list of what is attached:
lsblk -f
4 & 5. This will tell you which are which, check to make sure the vfat is the sda1 and the ext4 is the sda2. Assuming that is the case, then unmount them with the correct paths:
sudo umount /dev/sda1
sudo umount /dev/sda2
- Check (and fix if needed) the VFAT (run more than once):
sudo dosfsck -w -r -l -a -v -t /dev/sda1
- Check and (and fix if needed) the EXT4 (run more than once):
sudo e2fsck -vf /dev/sda2
Then this time I looked into defragmentation as well. The drive had to be mounted, but this was the command for the EXT4 partition (be sure to include the asterisk which means everything).
sudo e4defrag /dev/sda2*
next thing I will have to do is figure out if it would be worth the effort to defrag sda1 (?)
Anyone else have any ideas? I’ll come back here again if I pass the 8 day mark - and let you know how long it has been -
Don’t know if it is the reason, but if you didn’t install “Raspberry Pi Power Supply Checker” integration yet, I would start with that and check its “binary_sensor.rpi_power_status” for a day, to investigate if there are no power problems (it should be “OK” for the whole time!).
Seems to be after dark at this stage, I have been trying to nut it out but so far not much info. I can turn things on and off through the mobile app as well as the browser on the laptop. All of a sudden can turn a light on, but then becomes unresponsive after that and cant turn off. Just now turned the office downlight on, then couldnt turn off. Tried turning the lounge lights off that where on and that worked but could not turn back on. Got me stumped.
You can try to restore your system in another MicroSD card from a backup to discard MicroSD failure.