OpenHAB suddenly stopped working

OpenHAB has been running fine for the last few weeks. Suddenly I have lost OpenHAB (everything on port 8080, myOpenHAB etc). This is the second time that it has happened now, the last time i completely reinstalled OpenHABian. I am running on a raspberry pi 2 and can still ssh etc.

There is an error message in the log which says:

2018-01-24 17:31:26.572 [SEVERE] [org.apache.karaf.main.Main] - Could not launch framework

java.lang.RuntimeException: Error initializing storage.

	at org.eclipse.osgi.internal.framework.EquinoxContainer.<init>(

	at org.eclipse.osgi.launch.Equinox.<init>(

	at org.eclipse.osgi.launch.EquinoxFactory.newFramework(

	at org.apache.karaf.main.Main.launch(

	at org.apache.karaf.main.Main.main(

Caused by: malformed input around byte 13






	at org.eclipse.osgi.internal.framework.EquinoxContainer.<init>(

	... 4 more

I would be grateful for any help to get it running again.

Seeing this and that you are using a pi, I assume SD Cards are involved… they are notorious for causing odd failures. Probably time for a new card. Reinstalling might help as it will avoid the now bad sectors but more will pop up causing this to repeat as you are seeing.