OpenHAB 2 service failed to start

  • Platform information:
    • Hardware: 2vCPU / 2 Go RAM
    • OS: Ubuntu 16.04.4 LTS (VM)
    • openjdk version “9.0.4.1”
      OpenJDK Runtime Environment (Zulu build 9.0.4.1+11)
      OpenJDK 64-Bit Server VM (Zulu build 9.0.4.1+11, mixed mode)
    • openHAB version: Version: 2.2.0-1

Hello after Zulu & OpenHab 2 install I have this error during starting services :

openhab2.service - openHAB 2 - empowering the smart home
Loaded: loaded (/usr/lib/systemd/system/openhab2.service; disabled; vendor preset: enabled)
Active: activating (auto-restart) (Result: exit-code) since Tue 2018-04-10 11:35:34 EDT; 86ms ago
Docs: http://docs.openhab.org
https://community.openhab.org
Process: 17513 ExecStop=/usr/share/openhab2/runtime/bin/karaf stop (code=exited, status=1/FAILURE)
Process: 17427 ExecStart=/usr/share/openhab2/runtime/bin/karaf $OPENHAB_STARTMODE (code=exited, status=1/FAILURE)
Main PID: 17427 (code=exited, status=1/FAILURE)

Apr 10 11:35:34 openhab systemd[1]: openhab2.service: Unit entered failed state.
Apr 10 11:35:34 openhab systemd[1]: openhab2.service: Failed with result ‘exit-code’.

Does anyone can help me on this please ?

Thank you.

You need to use version 8;

https://docs.openhab.org/installation/index.html#prerequisites

Thanks I will do this and keep you posted.

OK what I did is :

Uninstall Zulu-9 package , install Zulu-8
Uninstall OpenHAB 2 packages and addons and reinstall , now I have this on service start :

● openhab2.service - openHAB 2 - empowering the smart home
Loaded: loaded (/usr/lib/systemd/system/openhab2.service; disabled; vendor preset: enabled)
Active: active (running) since Tue 2018-04-10 11:45:13 EDT; 1s ago
Docs: http://docs.openhab.org
https://community.openhab.org
Main PID: 1246 (karaf)
Tasks: 9
Memory: 17.0M
CPU: 150ms
CGroup: /system.slice/openhab2.service
├─1246 /bin/sh /usr/share/openhab2/runtime/bin/karaf daemon
├─1328 /usr/bin/java -version
└─1329 grep ^IBM

Apr 10 11:45:13 openhab systemd[1]: Started openHAB 2 - empowering the smart home.

I guess is a good start ?

Thanks

LGTM :+1:

Thanks ! Problem solved ! :slight_smile: