Openhab does not start after reboot

  • Platform information:

    • Hardware: Raspberry Pi Model B Plus Rev 1.2
    • OS: openHABian v1.6.1 (prebuild sd card image)
  • Issue of the topic:
    I restart the raspberry and after 3h nothing happend. Openhab does not start. The log file is not written yet (does not exist)

I know raspberry pi 2 is the minimal requirement but OH should start.

What can I do?

Thanks
Florian

I have had the same problem with openhabian 1.61b. I just shutdown and manually restart.

I will try this…

Here is the status overview:

sudo /bin/systemctl status openhab2.service

Warning: The unit file, source configuration file or drop-ins of openhab2.service c● openhab2.service - openHAB2 instance, reachable at http://openHABianDevice:8080
Loaded: loaded (/usr/lib/systemd/system/openhab2.service; enabled; vendor preset Drop-In: /etc/systemd/system/openhab2.service.d
└─override.conf
Active: activating (start-post) (Result: exit-code) since Sat 2020-12-19 09:26:3 Docs: https://www.openhab.org/docs/
https://community.openhab.org
Process: 9256 ExecStartPre=/bin/bash -c /usr/bin/find ${OPENHAB_CONF} -name "*.ru Process: 9258 ExecStart=/usr/share/openhab2/runtime/bin/karaf ${OPENHAB_STARTMODE Main PID: 9258 (code=exited, status=1/FAILURE); Control PID: 9259 (sleep)
Tasks: 1 (limit: 995)
CGroup: /system.slice/openhab2.service
└─9259 /bin/sleep 120

Dec 19 09:26:38 openHABianDevice systemd[1]: Starting openHAB2 instance, reachable Dec 19 09:26:39 openHABianDevice systemd[1]: openhab2.service: Main process exited,

Does the output of

sudo journalctl -xe

give any hint about the root cause ?

sudo journalctl -xe

– The job identifier is 1637 and the job result is done.
Dec 19 09:50:26 openHABianDevice systemd[1]: Stopped openHAB2 instance, reachable a-- Subject: A stop job for unit openhab2.service has finished
– Defined-By: systemd
– Support: https://www.debian.org/support

– A stop job for unit openhab2.service has finished.

– The job identifier is 1569 and the job result is done.
Dec 19 09:50:26 openHABianDevice systemd[1]: Starting openHAB2 instance, reachable – Subject: A start job for unit openhab2.service has begun execution
– Defined-By: systemd
– Support: https://www.debian.org/support

– A start job for unit openhab2.service has begun execution.

– The job identifier is 1569.
Dec 19 09:50:27 openHABianDevice karaf[1865]: java command not found
Dec 19 09:50:27 openHABianDevice systemd[1]: openhab2.service: Main process exited,-- Subject: Unit process exited
– Defined-By: systemd
– Support: https://www.debian.org/support

– An ExecStart= process belonging to unit openhab2.service has exited.

– The process’ exit code is ‘exited’ and its exit status is 1.
Dec 19 09:51:01 openHABianDevice CRON[1885]: pam_unix(cron:session): session openedDec 19 09:51:01 openHABianDevice CRON[1886]: (openhabian) CMD (cd /etc/openhab2/ &&Dec 19 09:51:03 openHABianDevice CRON[1885]: pam_unix(cron:session): session closedDec 19 09:51:33 openHABianDevice sudo[1904]: openhabian : TTY=pts/0 ; PWD=/etc/openDec 19 09:51:33 openHABianDevice sudo[1904]: pam_unix(sudo:session): session openedDec 19 09:51:33 openHABianDevice sudo[1904]: pam_unix(sudo:session): session closedDec 19 09:52:01 openHABianDevice CRON[1927]: pam_unix(cron:session): session openedDec 19 09:52:01 openHABianDevice CRON[1930]: (openhabian) CMD (cd /etc/openhab2/ &&Dec 19 09:52:03 openHABianDevice sudo[1934]: openhabian : TTY=pts/0 ; PWD=/etc/openDec 19 09:52:03 openHABianDevice sudo[1934]: pam_unix(sudo:session): session openedDec 19 09:52:03 openHABianDevice CRON[1927]: pam_unix(cron:session): session closed

I just saw that Java could not be found… But I didn’t deinstalled it :confused:

sudo openhab-cli start

A systemd service configuration exists…
Use ‘sudo /bin/systemctl start openhab2.service’ to start an openHAB service
Launching an instance in this terminal…
Launching the openHAB runtime…
java command not found

Where does the environment JAVA_HOME point to ? Does it point to a directory that includes the JAVA installation ?

JAVA_HOME is not set anymore… Where does it usally point?
Why is Java uninstalled from OH?

Can i just reinstall it?

yes, just reinstall java.

Which version / Java Provider do you recommend?

OH 2.5.X: zulu8
OH 3.0.X: zulu11

I reinstalled Java Zulu8 and it works again. Thanks for all the help!