Systemctl status openhab2.service fails

Hi there,

I installed OH2 on a Raspi3. Everything worked well, but finally
systemctl status openhab2.service
is failing and gives this message:

pi@RaspberryPi3:~ $ sudo systemctl status openhab2.service

  • openhab2.service - openHAB 2 - empowering the smart home
    Loaded: loaded (/usr/lib/systemd/system/openhab2.service; enabled)
    Active: failed (Result: start-limit) since Do 2017-01-19 00:11:11 CET; 7min ago
    Docs: http://docs.openhab.org
    https://community.openhab.org
    Main PID: 7328 (code=exited, status=127)

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

Does anyone knows, what’s wrong?

Thanks in advance!

What version of Java are you running on the rPi3? (try "sudo java -version")
and which release of OH2 have you installed (with which method: manual or apt?)

That’s the reply:

pi@RaspberryPi3:~ $ java version "1.8.0_111"
java: error while loading shared libraries: libjli.so: cannot open shared object file: No such file or directory
pi@RaspberryPi3:~ $

meanwhile I tried several OH versions: OH2 beta release and snapshot release (apt installation) and also the most recent OH1 revision.
All of them give the same failure

sortry… wrong copy… this should it be:

java version "1.8.0_111"
Java™ SE Runtime Environment (build 1.8.0_111-b14)
Java HotSpot™ Client VM (build 25.111-b14, mixed mode)

Ok… Java seems to be in working order…

Did you ever get any release of openHAB to start up correctly in the past?
If yes: one possible root-cause could be SD Card filesystem corruption
If no: something may be wrong with your Java installation…

Another possibility is that you need to clean your old openHAB installation folders and then re-install (with apt) a new release (go for RC1)

@Dim

That’s it. :slight_smile:
I removed the installation using apt-get purge and found finally still some openhab files left (e.g. /opt/openhab folder).
I removed them manually and installed OH2 again.
Now it works :slight_smile:
Thanks for your help

1 Like