New install startup error

hello

Installed using option 2 here … Download openHAB | openHAB on a clean install of debian buster

everything went fine, but openhab not starting up…

sudo systemctl status openhab.service gives following output…


● openhab.service - openHAB - empowering the smart home
Loaded: loaded (/lib/systemd/system/openhab.service; disabled; vendor preset: enabled)
Active: activating (auto-restart) (Result: exit-code) since Mon 2021-05-31 08:44:29 BST; 3s ago
Docs: Introduction | openHAB
https://community.openhab.org
Process: 3824 ExecStart=/usr/share/openhab/runtime/bin/karaf ${OPENHAB_STARTMODE} (code=exited, status=1/FAILURE)
Main PID: 3824 (code=exited, status=1/FAILURE)


Any ideas please?

Thanks

Run

sudo journalctl -u openhab -b

that might give a hint on the root cause.
Also have a look to the log files in /var/log/openhab/.

On what hardware ?

hi, output…

May 31 22:04:10 hgenieopenlab systemd[1]: Stopped openHAB - empowering the smart home.
May 31 22:04:10 hgenieopenlab systemd[1]: Started openHAB - empowering the smart home.
May 31 22:04:10 hgenieopenlab karaf[6603]: java command not found
May 31 22:04:10 hgenieopenlab systemd[1]: openhab.service: Main process exited, code=exited, status=1/FAILURE
May 31 22:04:10 hgenieopenlab systemd[1]: openhab.service: Failed with result ‘exit-code’.
May 31 22:04:15 hgenieopenlab systemd[1]: openhab.service: Service RestartSec=5s expired, scheduling restart.
May 31 22:04:15 hgenieopenlab systemd[1]: openhab.service: Scheduled restart job, restart counter is at 9331.
May 31 22:04:15 hgenieopenlab systemd[1]: Stopped openHAB - empowering the smart home.
May 31 22:04:15 hgenieopenlab systemd[1]: Started openHAB - empowering the smart home.
May 31 22:04:15 hgenieopenlab karaf[6624]: java command not found
May 31 22:04:15 hgenieopenlab systemd[1]: openhab.service: Main process exited, code=exited, status=1/FAILURE
May 31 22:04:15 hgenieopenlab systemd[1]: openhab.service: Failed with result ‘exit-code’.

hi, its running on a virtual machine (on promo ve)

… just realised, have to install java … duh :slight_smile: