MapDB - data were not fully read, check your serializer

Hi All, i have this problem for the second time within couple months.
i have been running openhab for years without this problem (from what i can remember)

I think the first time was shortly after updating to openHAB 3.4.0.M1 im currently running openHAB 3.4.0.M2

i think both times i was course by rpi4 (4gb) losing power.

2022-10-28 18:59:07.475 [ERROR] [pdb.internal.MapDbPersistenceService] - bundle org.openhab.persistence.mapdb:3.4.0.M2 (293)[org.openhab.persistence.mapdb.internal.MapDbPersistenceService(340)] : The activate method has thrown an exception
java.lang.AssertionError: data were not fully read, check your serializer 
	at org.mapdb.Store.deserialize( ~[?:?]
	at org.mapdb.StoreDirect.get2( ~[?:?]
	at org.mapdb.StoreWAL.get2( ~[?:?]
	at org.mapdb.StoreWAL.get( ~[?:?]
	at org.mapdb.Caches$HashTable.get( ~[?:?]
	at org.mapdb.EngineWrapper.get( ~[?:?]
	at org.mapdb.BTreeMap.<init>( ~

I know i can just delete the database file… but is there anyway to fix the database instead of just deleting it ?

Second question is there a way to make the system more robust to power outage ?

Thanks Mads

You need a UPS.
More information on how to do you can find e.g. in the following thread

Thanks ill try this :slight_smile: