OpenHab freezes or crashes after running for a few days
I’m starting to experience that my Openhab freezes or crashes after a few days running. Ping does not come back. i can’t connect using ssh and i can’t access OH UI anymore. OH2 usually stops working after a few days running. There is no message or anything at the screen. The PI does take any input from the keyboard. i still see the screen…. OH is basically just dead and I have no other change as unplug the power and go for a reboot.
i have looked at the following:
a.) My power supply should be suitable. I get throttled=0x0 using $ vcgencmd get_throttled which should indicate the PI is not underpowered.
b.) The SD card should not be an issue. After reboot everything works as expected at least until it stops again after a few days. There is nothing in fsck after shutdown with sudo shutdown -F -r now
c.) I don’t find anything useful openhab log.
Start with cleaning the cache and rebooting to see if that helps.
sudo systemctl stop openhab2
sudo openhab-cli clean-cache
If the issue remains l would try using a different persistence service as InfluxDB can sometimes be very taxing on memory. If it meets your needs RRD4J works well with the RPI.
Another thing to try is using a new SD card. I know you mentioned the SD should be fine but unplugging the power is never good and will eventually lead to a corrupt SD card. Once that happens troubleshooting/debugging becomes very difficult. If you have a spare SD card I would make a backup, install a fresh image, and restore the backup on the new card.
Look into your system log files if you see anything. I’ve had a similar problem (only I have a SSD) I never found the problem but it looked like it stopped during the night after the system did an automatic update. It happend a few times. I haven’t seen the problems lately, but I’ve also run update on the whole system and are currently running latest version of openHAB. The fact you cannot connect via SSH probably means it’s not directly related to openHAB itself.
processes: 106 running processes of 32768 maximum processes
Battery: 99% charging
I can access the system without any issues but firering ZWave devices are not acting at all.
A reboot of OpnHab is solving the issue for about 10 days. After about 10 days the ZWave devices don’t act anymore on commands . Actually OpenHab is not sending commands anymore. ZWave.log is not recording anything. After the restart ZWave logging is recording again and everything is working as should be.