So finally it happened, my hassio install completely died today… Started with issues to load and display history data, so I tried to restart hassio and then whole system… Nothing happening… Not only web UI is not available, but also ssh and smb access… It even does not respond to ping, so it seems something went whong on hassos level.
I removed SD card and it seems to be readable. I already moved all hassio files (basically eveything that is available on hassos-data partition), including snapshod I luckily did 2 days ago.
Now, havong this as starting poit, what would be the best stratedy to recover the system to workable condition and, if possible, to recover also as much of its stae history?
Restore the most recent snapshot
Then consider automating taking your backups and copying them off the system. There are add-ons for Dropbox and Google Drive, and probably more.
Eh… spend most of evening yesterday trying to get my home back under control:
- tried to recover SD, but nothing helped to boot from. So only recovered the most up to date snapshot
- Re etched hassio to same SD card (no issues reported during process) and tried to start with fresh install on RPi… no success… After waiting for an hour I gave up waiting for hassio UI to com out… should be faster. Tried 2 times, from the scratch, no success. I start to think that RPi failed, yet to confirm.
- Went another route… Since I have Synology NAS I installed Docker and native Synology package. Restored config from snapshot and instantly most of systems went alive. I had some problem with connecting ZWave stick (Aeotec Gen5), since I’m not familiar with Docker and USB passthrough, but thanks to excellent posts found on this forum I got it also up and running in less then and hour.
- during the whole process I found only one thing disturbing… Most likely as some problems started on the old system, history database seems went corrupted, so I could not load any historical data. Had to remove it and start from scratch.
- Interesting to know for the future - not all of my persistent variables (input number, input boolean) were initialized after reinstallation (I guess their values were also kept in database, so get erased). I had to manually initialize these or go through some automation cycles to get them to proper values.
Bottom line - everything seems to work fine at the moment.
And getting automated backups is great idea! I was really lucky to have only 2 days old snapshot and no config changes done in meantime
Far more likely that your SD card has failed.
That happens with the default database, but would also point to a corrupt/dead SD card.
There’s actually a separate file for those in .storage/