Hello
this seems to be a problem for a few people. Some had luck that creating /var/lib/openhab2/tmp was the solution as it was missing (not missing on my install).
My install does not work anymore. I am not 100% sure if right after an apt-get upgrade was done…
service openhab2 status shows the following
● openhab2.service - openHAB 2 - empowering the smart home
Loaded: loaded (/usr/lib/systemd/system/openhab2.service; enabled)
Active: active (running) since Thu 2017-01-12 18:40:54 CET; 4s ago
Docs: http://docs.openhab.org
https://community.openhab.org
Process: 23293 ExecStop=/usr/share/openhab2/runtime/karaf/bin/stop (code=exited, status=203/EXEC)
Main PID: 23297 (karaf)
CGroup: /system.slice/openhab2.service
├─23297 /bin/bash /usr/share/openhab2/runtime/bin/karaf server
└─23446 /usr/bin/java -Dopenhab.home=/usr/share/openhab2 -Dopenhab.conf=/etc/openhab2 -Dopenhab.runtime=/usr/share/open...
Jan 12 18:40:54 openhab2 systemd[1]: Starting openHAB 2 - empowering the smart home...
Jan 12 18:40:54 openhab2 systemd[1]: Started openHAB 2 - empowering the smart home.
Jan 12 18:40:54 openhab2 start.sh[23297]: Launching the openHAB runtime...
/var/log/daemon.log shows the following
Jan 12 18:39:54 openhab2 systemd[1]: Starting openHAB 2 - empowering the smart home...
Jan 12 18:39:54 openhab2 systemd[1]: Started openHAB 2 - empowering the smart home.
Jan 12 18:39:54 openhab2 start.sh[21337]: Launching the openHAB runtime...
Jan 12 18:39:59 openhab2 start.sh[21337]: Error initializing storage.
Jan 12 18:39:59 openhab2 systemd[1]: openhab2.service: main process exited, code=exited, status=255/n/a
Jan 12 18:39:59 openhab2 systemd[21497]: Failed at step EXEC spawning /usr/share/openhab2/runtime/karaf/bin/stop: No such file or directory
Jan 12 18:39:59 openhab2 systemd[1]: openhab2.service: control process exited, code=exited status=203
Jan 12 18:39:59 openhab2 systemd[1]: Unit openhab2.service entered failed state.
Jan 12 18:39:59 openhab2 systemd[1]: openhab2.service holdoff time over, scheduling restart.
Jan 12 18:39:59 openhab2 systemd[1]: Stopping openHAB 2 - empowering the smart home...
From my checks rights seem ok.
Checked ownership of
/var/lib/openhab2 /
/usr/share/openhab2/
/var/log/openhab2
/etc/openhab2
Everything owned by openhab:openhab
Any ideas what might be the issue?
As topic states it is an apt-based install on a RPi
Thanks for any support
EDIT
/var/log/openhab.log states the following:
2017-01-12 18:46:36.069 [SEVERE] [org.apache.karaf.main.Main] - Could not launch framework
java.lang.RuntimeException: Error initializing storage.
at org.eclipse.osgi.internal.framework.EquinoxContainer.<init>(EquinoxContainer.java:77)
at org.eclipse.osgi.launch.Equinox.<init>(Equinox.java:31)
at org.eclipse.osgi.launch.EquinoxFactory.newFramework(EquinoxFactory.java:24)
at org.apache.karaf.main.Main.launch(Main.java:253)
at org.apache.karaf.main.Main.main(Main.java:177)
Caused by: java.io.EOFException
at java.io.DataInputStream.readInt(DataInputStream.java:392)
at org.eclipse.osgi.container.ModuleDatabase$Persistence.readMap(ModuleDatabase.java:1332)
at org.eclipse.osgi.container.ModuleDatabase$Persistence.readGenericInfo(ModuleDatabase.java:1280)
at org.eclipse.osgi.container.ModuleDatabase$Persistence.readModule(ModuleDatabase.java:1107)
at org.eclipse.osgi.container.ModuleDatabase$Persistence.load(ModuleDatabase.java:1015)
at org.eclipse.osgi.container.ModuleDatabase.load(ModuleDatabase.java:879)
at org.eclipse.osgi.storage.Storage.<init>(Storage.java:147)
at org.eclipse.osgi.storage.Storage.createStorage(Storage.java:87)
at org.eclipse.osgi.internal.framework.EquinoxContainer.<init>(EquinoxContainer.java:75)
... 4 more
Hello
I did not yet try that, as I would not learn to much from that “did you try turning it off and on again” approach.
Currently my OH2 is just a test-platform and non-productive. Therefore I would like to learn as much as possible to be able to troubleshoot best once my house is build
If you have any recommendations for further debugging I would appreciate that.
If not I could at least test my config-backup-and-restore process with this
Best regards
That’s a thought I can totally relate to. However as we (I suspect) are talking about an unstable snapshot build, the problem could simply be related to some already fixed bug. Nothing big to learn here besides “Unstable, use at your own risk”
One thing you could test because of “Error initializing storage.”: Try deleting your jsondb.
I was having similar issues and ended up backing up all my conf files and my jasondb files, then did a remove, purge and reinstall. I then manually readded bindings and all my zwave devices. From there I could use the item link and items jasondb files (you need to replace your zwave id in the link file) and restore all my conf files to get back to a clean system.
What was the last changes you did to the system? **dont know :stuck_out_tongue:**
Is openhab responsive via web? **no as it is not starting up**
Can you log into the karaf console? **no as it is not starting up**
Is the error reproduceable after restarting the PC? **yes**
Where do I find the jsondb?
I would like to test this approach and otherwise finish my backup script and give that a “live-testrun” with a apt-get remove/install
Hello
after reinstallation OH2 runs smoothly again. I will restore the backup of the config over the weekend and see if my backup script did its job good