Hi,
Completely new to Raspberry and Openhab.
I managed to set up Raspbian Lite on my RasPI3B which seems to run ok.
Then manually downloaded and installed Zulu embeded Java libraries - v8 (as mentioned on the Openhab Installation Overview page). Installed to…
/usr/lib/jvm/zulu-8
I set up the JAVA_HOME environment variable, updated the PATH and running java -version I get back…
openjdk version "1.8.0_172"
OpenJDK Runtime Environment (Zulu Embedded 8.30.0.106-linux-aarch32hf) (build 1.8.0_172-106)
OpenJDK Client VM (Zulu Embedded 8.30.0.106-linux-aarch32hf) (build 25.172-b106, mixed mode, Evaluation)
Continued to openHab install, using the online package method which seemed to go well, but when checking the status after starting I get the following…
● 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 Fri 2018-05-25 09:55:07 UTC; 440ms ago**
** Docs: http://docs.openhab.org**
** https://community.openhab.org**
** Process: 1141 ExecStop=/usr/share/openhab2/runtime/bin/karaf stop (code=exited, status=1/FAILURE)**
** Process: 1123 ExecStart=/usr/share/openhab2/runtime/bin/karaf $OPENHAB_STARTMODE (code=exited, status=1/FAILURE)**
** Main PID: 1123 (code=exited, status=1/FAILURE)**
May 25 09:55:07 openhabpi systemd[1]: openhab2.service: Failed with result ‘exit-code’.
When I check the logs, there’s nothing in /var/log/openhab2 folder, which suggests the process hasn’t even had a chance to start.
When I check the daemon.log, I see a lot of these events…
May 25 09:57:45 openhabpi systemd[1]: Started openHAB 2 - empowering the smart home.
May 25 09:57:45 openhabpi karaf[2250]: java command not found
May 25 09:57:45 openhabpi systemd[1]: openhab2.service: Main process exited, code=exited, status=1/FAILURE
May 25 09:57:45 openhabpi karaf[2268]: java command not found
May 25 09:57:45 openhabpi systemd[1]: openhab2.service: Control process exited, code=exited status=1
May 25 09:57:45 openhabpi systemd[1]: openhab2.service: Unit entered failed state.
May 25 09:57:45 openhabpi systemd[1]: openhab2.service: Failed with result ‘exit-code’.
May 25 09:57:50 openhabpi systemd[1]: openhab2.service: Service hold-off time over, scheduling restart.
May 25 09:57:50 openhabpi systemd[1]: Stopped openHAB 2 - empowering the smart home.
Is there anywhere I can check to see what java command is being attempted? Or is it clear that the Java install is the issue?
Platform information:
- Hardware: Raspberry PI 3B+
- OS: RASPBIAN STRETCH LITE
- Java Runtime Environment: Zulu Embedded 1.8.0_172
- openHAB version: 2.2
Cheers,
Henryk.