Oct 19 02:19:43 OpenHAB systemd[1]: openhab2.service: Control process exited, code=exited status=1
Oct 19 02:19:43 OpenHAB systemd[1]: openhab2.service: Unit entered failed state.
Oct 19 02:19:43 OpenHAB systemd[1]: openhab2.service: Failed with result 'exit-code'.
Oct 19 02:19:49 OpenHAB systemd[1]: openhab2.service: Service hold-off time over, scheduling restart.
Oct 19 02:19:49 OpenHAB systemd[1]: Stopped openHAB 2 - empowering the smart home.
Oct 19 02:19:49 OpenHAB systemd[1]: Started openHAB 2 - empowering the smart home.
Oct 19 02:19:50 OpenHAB karaf[14798]: There is a Root instance already running with name main and pid 476
Oct 19 02:19:50 OpenHAB systemd[1]: openhab2.service: Main process exited, code=exited, status=1/FAILURE
Oct 19 02:19:51 OpenHAB karaf[14914]: Can't connect to the container. The container is not running.
Oct 19 02:19:51 OpenHAB systemd[1]: openhab2.service: Control process exited, code=exited status=1
Oct 19 02:19:51 OpenHAB systemd[1]: openhab2.service: Unit entered failed state.
Oct 19 02:19:51 OpenHAB systemd[1]: openhab2.service: Failed with result 'exit-code'.
Oct 19 02:19:56 OpenHAB systemd[1]: openhab2.service: Service hold-off time over, scheduling restart.
Oct 19 02:19:56 OpenHAB systemd[1]: Stopped openHAB 2 - empowering the smart home.
lines 1-40
Since you’re using the snapshot version, with apt, try stopping the service and then stopping any additional instance: (If the following doesn’t work, what did the output of the status command give below?)
pi@OpenHAB:~ $ sudo openhab-cli status
A systemd service configuration exists...
Use 'sudo /bin/systemctl status openhab2.service' to find the status of an openHAB service
openHAB is not running.
To summarise what we’ve been doing, and what I expect has happened. There may have been an issue in updating JAVA while openHAB was running, from the first journalctl post it was clear that it couldn’t start because there was another stuck instance. This is clearly no-longer the case but there’s still a failure somewhere.
sudo openhab-cli start --debug
A systemd service configuration exists...
Use 'sudo /bin/systemctl start openhab2.service' to start an openHAB service
Launching an instance in this terminal..
Launching the openHAB runtime...
There is a Root instance already running with name main and pid 476