Ubuntu 64 16.04 install => (code=exited, status=1/FAILURE)

  • Platform information:
    • Hardware: Intel i7-4770T CPU @ 2.50GHz, 16GB RAM, 223GB SSD
    • OS: Ubuntu Studio 16.04 64
    • Java Runtime Environment: Zulu 9
    • openHAB version: 2.2
  • Issue of the topic:
    Would not even start;

will@will-ZBOX-ID92-ZBOX-IQ01:~$ sudo systemctl start openhab2.service
will@will-ZBOX-ID92-ZBOX-IQ01:~$ sudo systemctl status openhab2.service
● 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 Fri 2018-01-12 17:17:02 EST; 2s ago
Docs: http://docs.openhab.org
https://community.openhab.org
Process: 18757 ExecStop=/usr/share/openhab2/runtime/bin/karaf stop (code=exited, status=1/FAILURE)
Process: 18644 ExecStart=/usr/share/openhab2/runtime/bin/karaf $OPENHAB_STARTMODE (code=exited, status=1/FAILURE)
Main PID: 18644 (code=exited, status=1/FAILURE

How did you install?

What version of Java?

What do you see in syslog when you try to start OH?

Installed via repository

Zulu 9.0.1 per Openhab link

syslog shows;

Jan 12 17:17:02 will-ZBOX-ID92-ZBOX-IQ01 systemd[1]: Started openHAB 2 - empowering the smart home.
Jan 12 17:17:02 will-ZBOX-ID92-ZBOX-IQ01 karaf[18644]: Java 1.8 or higher is required. Aborting launch.
Jan 12 17:17:02 will-ZBOX-ID92-ZBOX-IQ01 systemd[1]: openhab2.service: Main process exited, code=exited, status=1/FAILURE
Jan 12 17:17:02 will-ZBOX-ID92-ZBOX-IQ01 karaf[18757]: Java 1.8 or higher is required. Aborting launch.
Jan 12 17:17:02 will-ZBOX-ID92-ZBOX-IQ01 systemd[1]: openhab2.service: Control process exited, code=exited status=1
Jan 12 17:17:02 will-ZBOX-ID92-ZBOX-IQ01 systemd[1]: openhab2.service: Unit entered failed state.
Jan 12 17:17:02 will-ZBOX-ID92-ZBOX-IQ01 systemd[1]: openhab2.service: Failed with result ‘exit-code’.
Jan 12 17:17:07 will-ZBOX-ID92-ZBOX-IQ01 systemd[1]: openhab2.service: Service hold-off time over, scheduling restart.
Jan 12 17:17:07 will-ZBOX-ID92-ZBOX-IQ01 systemd[1]: Stopped openHAB 2 - empowering the smart home.

java -version shows;

openjdk version "9.0.1.3"
OpenJDK Runtime Environment (Zulu build 9.0.1.3+11)
OpenJDK 64-Bit Server VM (Zulu build 9.0.1.3+11, mixed mode)

Actually the docs do state:

As for now, a pre-release Java 9 installation is not recommended and is not yet supported by openHAB 2.

That sentence needs to be fixed slightly as Java 9 is no longer prerelease, but it is still true. OH will not run on Java 9.

Thanks, that did the trick. I simply downloaded the Zulu 8 version, adjusted my java alternatives settings, and so far am now in configuration mode in PaperUI. Thanks!

Am having some unexpected exceptions, so reviewed the Zulu download comments which show “glibc v2.5 and higher”

I checked my glibc version with;

$ apt-cache policy libc6

Which responded with;

libc6:
Installed: 2.23-0ubuntu9
Candidate: 2.23-0ubuntu9
*** 2.23-0ubuntu9 500
500 Index of /ubuntu xenial-updates/main amd64 Packages
500 Index of /ubuntu xenial-security/main amd64 Packages
100 /var/lib/dpkg/status
2.23-0ubuntu3 500
500 Index of /ubuntu xenial/main amd64 Packages

I also tried;

$ apt-cache policy glibc-source

which responded with;

glibc-source:
Installed: (none)
Candidate: 2.23-0ubuntu9
Version table:
2.23-0ubuntu9 500
500 Index of /ubuntu xenial-updates/universe amd64 Packages
500 Index of /ubuntu xenial-updates/universe i386 Packages
500 Index of /ubuntu xenial-security/universe amd64 Packages
500 Index of /ubuntu xenial-security/universe i386 Packages
2.23-0ubuntu3 500
500 Index of /ubuntu xenial/universe amd64 Packages
500 Index of /ubuntu xenial/universe i386 Packages

I keep fairly current on updates, and running following update command below only resulting in a couple of small updates. Rerunning the glibc and libc6 resulted in the same output as before.

$ sudo apt-get update && sudo apt-get upgrade

As I am running Ubuntu Studio 16.04 LTS, it appears either I need to shift to the most recent Ubuntu version and hope that it upgrades to the minimum glibc, or try a different JRE. Hence, I will try the Oracle 8 JRE, and will report back.