All Things lost from openHab


(Kristof Rado) #1

Dear Everyone!

I have restarted today my openHab rig and it lost all my things… all things were set-up through PaperUI so it was not stored in files…

Are there any chance to get back these things or should I re-add them? Why I’m experiencing this issue? I had same problems with items, the solution was to use .item files, not PaperUI. Should I do the same with things?

Thanks


(BlaineB) #2

This may be a dumb response, but this happened to me once, and all i did was wait a bit, then restart again, and the things showed back up. I presume you’re posting this only after a while and restarting? Try clearing TMP / Cache as well?


(Kristof Rado) #3

Thanks, I’ll try to restart it…

I don’t know why, but earlier one time when I cleared the cache, it almost did the same thing. Some of my bindings were gone (specifically if I can remember correctly) the ones which were installed through Eclipse IoT Market Binding.

However I will try clearing the cache, thanks.


(Rich Koshak) #4

I don’t know why they disappeared but it is curious and shouldn’t happen.

Luckily everything created through PaperUI gets stored in /var/lib/openhab2/jsondb/backup.

Look in there. The big number at the front of the file names are the timestamp so pick the set of files with the biggest numbers and copy them back to /var/lib/openhab2/jsondb, removing the big number from the name.

Do all this copying while OH is stopped.

If you are unlucky, whatever wiped out your original jsondb files also wiped out your automated backups.


(Kristof Rado) #5

Thanks @rlkoshak
I was lucky and I had backups there! If anyone has same issues, I have copied the Thing, ItemChannelLink backup files. Weird that for example homekit database wasn’t lost…

Thanks for your help!


(SiHui) #6

This is normal behaviour and not a bug:

Note 2 : The jars are installed in the OSGi cache - which means that they are lost upon an openHAB distro upgrade (which cleans the cache) - you will have to manually re-install then from the marketplace. As the main use case for the start will be for testing pre-releases, I think this is acceptable.


(Kristof Rado) #7

Oh thanks, I thought that something like this is behind that case :slight_smile: However I’m curious that some bindings are work as it is a stable version and yet not included in the OH bindings…