Hubitat Hub C-7 hanging issue after multiple reboots and power recycling

I had an issue with my Hubitat C-7 firmware version 2.2.5.131. After the first 4 weeks, the Hub started to be nonresponsive, and then I had to reboot it. Success! All came back to normal. After the next two weeks it happened again and this time it was not possible to reboot the Hub since Nothing was working on Web User Interface on PC nor on HUB. Hard power recycling solved the issue. Success. After next week yesterday, it hanged again and it was not possible to be rebooted shutdown gracefully. After the Hard power cycle, the Hub was still in hanging condition. The Dashboard stopped working. Settings stopped working. The only thing I could get was "Tools" on my cell phone then "Hub Diagnostics" and then I could "Reboot Hub" or "Shutdown" Hub however it was still partially hanging condition. Then I tried "Download Latest Version" which upgraded me to 2.2.6.129. Upgrade was successfull however the Hub was still in Hanging condition.

The next step was "Soft Reset" from "Hub Diagnostic" restore the last backup for 2.2.6.129 which was created automatically by the Hub when I upgraded it to that version (Very Good Thing) and finally after restore the Hub rebooted automatically. After those last steps all came back to normal.
However!
Such Hub behavior suggest me there is a possible leak/file system overload or something what is accumulating thru days and weeks and is not cleaning successfully what causes Hub to hang occasionally.

That sounds more like a corrupt database. One of the things hubitat does when it backs up is clean any corruption out during backup. So when you did the soft reset and restore, the corruption was no longer there. Well, at least that's my guess

1 Like

So is it possible to clean that DB manually? Like maybe by starting backup manually?

I used this command on one of my C-4 hubs that locked repeatedly.

http://hubitat.local/hub/cleanupDatabase

It took a very long time to complete but, when done, the backup file size was significantly smaller (1/10th the size) and the hub has been running better ever since.

I did this out of desperation at the time. I would suggest consulting with @bobbyD before doing it - I don't know about any risks or possible side effects.

Yes