Hi all
I need your help. My OH 3 is running on a Pi and when I try to create a backup (sudo openhab-cli backup) I get the error “structure needs cleaning”
I identify some files in var/lib/openhab/jsondb/backup which have no owner and no group
Hmmm. That’s a pretty unhealthy file system. Are you running openHABian with zram (default settings enables zram)?
This is an OS problem, not an OH problem. Often these sorts of problems can be fixed using fsck but want exactly the command is is going to depend a lot on how your system is configured.
First create a disk image so you for sure don’t lose any data.
Then if openHABian and zram I’d try a restart and hope for the best. If not, we’ll need to know what file system is being used and run the correct fsck command to detect and hopefully repair errors.
You would normally only see stuff like this if the machine suddenly lost power without shutting down nicely, or the SD card might be wearing out.
Hi Rich
I did not modify the openhab System and at the moment I don’t know the brand of the SD Card.
But I setup the raspbian with the image for the RPi from the OH Website. The System here is running for a about half a year.
Let me create a image with WIN32 Disk-Imager
Hope you can give me the command for the fsck
If “the image for the RPi from the OH website” means openHABian, than you are likely running ZRAM. If that’s the case it gets complicated.
Doesn’t matter. Something got corrupted. This can happen without you touching the system, particularly if the machine loses power without getting a chance to shutdown normally.