Failed to start openHAB 2 on Raspberry PI 3

After I run the following commands:

sudo systemctl start openhab2.service
sudo systemctl status openhab2.service

I get the following result:

● openhab2.service - openHAB 2 - empowering the smart home
Loaded: loaded (/usr/lib/systemd/system/openhab2.service; enabled)
Active: failed (Result: start-limit) since Tue 2016-12-27 00:14:01 UTC; 56s ago
Docs: http://docs.openhab.org
https://community.openhab.org
Process: 3674 ExecStop=/usr/share/openhab2/runtime/bin/stop (code=exited, status=1/FAILURE)
Process: 3561 ExecStart=/usr/share/openhab2/start.sh server (code=exited, status=1/FAILURE)
Main PID: 3561 (code=exited, status=1/FAILURE)

Dec 27 00:14:01 raspberrypi systemd[1]: Unit openhab2.service entered failed state.
Dec 27 00:14:01 raspberrypi systemd[1]: openhab2.service holdoff time over, scheduling restart.
Dec 27 00:14:01 raspberrypi systemd[1]: Stopping openHAB 2 - empowering the smart home…
Dec 27 00:14:01 raspberrypi systemd[1]: Starting openHAB 2 - empowering the smart home…
Dec 27 00:14:01 raspberrypi systemd[1]: openhab2.service start request repeated too quickly, refusing to start.
Dec 27 00:14:01 raspberrypi systemd[1]: Failed to start openHAB 2 - empowering the smart home.
Dec 27 00:14:01 raspberrypi systemd[1]: Unit openhab2.service entered failed state.

Well I updated my version of Java to Java™ SE Runtime Environment (build 1.8.0_65-b17) and it now works

Remember that this java version is not the most recent one. For OH2 in general, it’s ok, but if you want to use myopenhab, you have to use a newer version (1.8.0_101 or above).

1 Like