Hi,
Got openHAB 4.04 running on a raspberry 4 (4Gb, bullseye, java17) running for years. Well not on 4.x, but since it’s available. Always did it job.
Yesterday is suddenly crashed. The logs I know to find don’t show special thing, just running along and “bang”. It happened a few times now. Symptoms I see (not consistent):
- Runs for 4-8 hours
- Rise in CPU usage just before crash
- Rapsberry reboots (but not ok, openHAB doesn’t resume right, a second reboot is needed)
- Sometimes it keeps running, but SSH remote access is lost and OH web-GUI is not reachable. I also run some nodejs webservices on it, they keep running.
- The openHAB log seems normal right until the reboot. But shows just before crashing a few unexepted messages:
- 2023-12-09 23:39:14.814 [WARN ] [nce.extensions.PersistenceExtensions] - There is no default persistence service configured!
- 2023-12-09 23:39:14.815 [WARN ] [nce.extensions.PersistenceExtensions] - There is no queryable persistence service registered with the id ‘null’
- (this is repeated, rules fail and UI shows no historic graphs anymore).
- 2023-12-09 23:39:16.919 [INFO ] [e.io.rest.internal.filter.CorsFilter] - enabled CORS for REST API.
- (lots of them, 1 every 100 ms, normally only present after startup i think). These are often the last in de openHAB log.
The Zigbee thing (USB POPP stick) didn’t recover after the first crash. Disabling it doesn’t change issues above.
So help is appreciated. Two questions I can think of:
- Do the persistence errors mean the rrd4j is broken? Or the database is corrupt? Is there a tool/way to discover which of the item-files is affected?
- Any other logs I could check for information? (checked also the openHAB event and audit log, but nothing beyond the normal in them). Tried the /var/log raspberry logs but don’t know what to look for in them (or what’s normal there). Can see it reboots after the openHAB runs into troubles.
edit/added: Did look into the zigbee device. It seems broken. Attaching it blocks all USB ports and probably the harddrive (with raspian). SSH command like ‘ls’ fail on input/output error. So I think I got the rootcause of the issues. But the crash/reset of the raspberry seems to have corrupted something. Or could it have broken the hardware USB?
Thanx in advance!