Failed with result 'exit-code'


(Tobias Kwant) #1
  • Platform information:
    • Hardware: linux 2 gb ram 20 gb harddisk drive
    • OS: Ubuntu 18.04.1
    • Java Runtime Environment: build 1.8.0_181-b13
    • openHAB version: dont know (newest)
  • Issue of the topic: Failed with result ‘exit-code’.

When i want to start openHAB and then enter sudo systemctl status openhab2.service i get this message:
openhab2.service - openHAB 2 - empowering the smart home
Loaded: loaded (/usr/lib/systemd/system/openhab2.service; enabled; vendor preset: enabled)
Active: activating (auto-restart) (Result: exit-code) since Sun 2018-09-16 11:30:30 PDT; 3s ago
Docs: https://www.openhab.org/docs/
https://community.openhab.org
Process: 58575 ExecStart=/usr/share/openhab2/runtime/bin/karaf $OPENHAB_STARTMODE (code=exited, status=1/FAILURE)
Main PID: 58575 (code=exited, status=1/FAILURE)

Sep 16 11:30:30 ubuntu systemd[1]: openhab2.service: Main process exited, code=exited, status=1/FAILURE
Sep 16 11:30:30 ubuntu systemd[1]: openhab2.service: Failed with result ‘exit-code’.

I installed java in /usr/java and set the JAVA_HOME in .bashrc file with
export PATH=$PATH:/usr/java/jre1.8.0_181/bin/


(Tobias Kwant) #2

nobody has an idea? I have installed ubuntu in a virtual machine (vmWare)


(Rich Koshak) #3

That that the only Java on your system?

Adding java to your login’s path doesn’t do anything because OH is running as another user and it doesn’t load your environment variables.

How did you install Java? How did you install OH?


(illnesse) #4

If this is snapshot then it’s probably due to the karaf breakage going on currently, try an older version like M3?


(Tobias Kwant) #5

installed zulu instead of jdk and now it works.
Maybe i did somthing wrong with JAVA_HOME Variable with JDK.