HELP please - all things disappeared?

Hi there,

I’ve got a strange problem - somehow the buttons in my habpanel are not working anymore.
I went to the paper UI and discovered that the “Control” page is empty.

When I open the things page in configuration it says “no things configured yet”

What happened here?
Is this a problem with writing to the SD Card? I could only find one out of memory error in the log

The weird thing is that I’m still seeing this in the log:
2018-02-05 19:26:37.559 [vent.ItemStateChangedEvent] - EGWZTVPowerswitch_2_Power changed from NULL to 23.67

So it seems the items did not really disappear?

I’ve checked the jsondb folder, this is the content:

-rw-r–r-- 1 openhab openhab 2 Jan 13 18:40 org.eclipse.smarthome.core.thing.link.ItemThingLink.json
-rw-r–r-- 1 openhab openhab 2 Feb 5 19:40 org.eclipse.smarthome.core.thing.Thing.json
-rw-r–r-- 1 openhab openhab 21989 Feb 5 19:40 org.eclipse.smarthome.core.items.Item.json
-rw-r–r-- 1 openhab openhab 73801 Feb 5 19:40 org.eclipse.smarthome.core.thing.link.ItemChannelLink.json
-rw-r–r-- 1 openhab openhab 222724 Feb 5 19:40 org.eclipse.smarthome.config.discovery.DiscoveryResult.json

As you can see ItemThingLink and Thing.json are empty - is that the cause?
Can I just copy over the latest non empty file from the backup dir?

Can I somehow recreate them or import a json storage backup?

Please help :frowning:

Who knows. I, too, encountered this on a number of occasions, but I haven’t found out about the series of events that led me there. No it’s no SD card problem (that would show many more, different symptoms).
If you are able to reproduce this behavior, please open a Github issue and describe the circumstances and steps to reproduction to help the developers find and fix the code issue.

Things are things and items are items, and the log message clearly refers to an item and the item file is still there.

Yes. (the latter)

Yes, that’s your best option.
It’s actually a text file, so you can even recover any older copy and edit it (just take care of the syntax).

1 Like

Thanks, I will try that!