Now I’m getting the following error in openhab.log:
2016-12-25 10:32:10.302 [SEVERE] [org.apache.karaf.main.Main] - Could not launch framework
java.lang.RuntimeException: Could not resolve mvn:org.eclipse.birt.runtime/org.eclipse.osgi/3.10.2.v20150203-1939
at org.apache.karaf.main.util.SimpleMavenResolver.resolve(SimpleMavenResolver.java:59)
at org.apache.karaf.main.Main.createClassLoader(Main.java:410)
at org.apache.karaf.main.Main.launch(Main.java:251)
at org.apache.karaf.main.Main.main(Main.java:177)
I got this (for sudo systemctl status openhab2.service):
● openhab2.service - The openHAB 2 Home Automation Bus Solution
Loaded: loaded (/lib/systemd/system/openhab2.service; enabled)
Active: failed (Result: start-limit) since Sun 2016-12-25 11:51:25 ART; 57s ago
Docs: http://docs.openhab.org
Process: 19089 ExecStart=/opt/openhab2/start.sh server (code=exited, status=255)
Main PID: 19089 (code=exited, status=255)
Dec 25 11:51:25 zeus systemd[1]: Unit openhab2.service entered failed state.
Dec 25 11:51:25 zeus systemd[1]: openhab2.service holdoff time over, scheduling restart.
Dec 25 11:51:25 zeus systemd[1]: Stopping The openHAB 2 Home Automation Bus Solution...
Dec 25 11:51:25 zeus systemd[1]: Starting The openHAB 2 Home Automation Bus Solution...
Dec 25 11:51:25 zeus systemd[1]: openhab2.service start request repeated too quickly, refusing to start.
Dec 25 11:51:25 zeus systemd[1]: Failed to start The openHAB 2 Home Automation Bus Solution.
Dec 25 11:51:25 zeus systemd[1]: Unit openhab2.service entered failed state.
Launching the openHAB runtime...
Listening for transport dt_socket at address: 5005
Could not resolve mvn:org.eclipse.birt.runtime/org.eclipse.osgi/3.10.2.v20150203-1939
I was having the same issue. I backed up my conf and userdata directories, then wiped them out completely. After this it started ok. There must be something else in either conf or userdata that was causing issues. I had previously deleted the contents of cache and tmp before trying this.
I tried wiping out /opt/openhab2, downloading both beta (2.0.0.b5) and SNAPSHOT versions, installed from scratch and for some reason the runtime will not start. To worsen things, opehab.log contains nothing
I am using docker and updated to the latest snapshot for my install. I have /openhab/userdata and /openhab/conf both mounted outside of the docker container so the I wouldn’t expect the update/upgrade to take care of it.
I think the procedure then would be that if you pull a new docker image you will need to…
clear /openhab/userdata/tmp
clear /openhab/userdata/cache
clear /openhab/userdata/etc