New install of openhab 4.3 does not start-help please

OS: Ubuntu server LTS 18.04. Installed openhab 4.5. Java 17, x86, 32-bit.

As part of the initial install I was able to connect via a browser and did an initial configuration of bindings (TP-link for Kasa plug), and binding for CM11a (X10). I created a simple model of a house, created a room, added two kasa plug things to the room. Was able to turn the Kasa plugs on/off. Rebooted the system and tried to run the openhab cli console, which resulted in:

jjh@saturn:~$ openhab-cli console

SLF4J(W): No SLF4J providers were found.
SLF4J(W): Defaulting to no-operation (NOP) logger implementation
SLF4J(W): See https://www.slf4j.org/codes.html#noProviders for further details.
SLF4J(W): Class path contains SLF4J bindings targeting slf4j-api versions 1.7.x                   or earlier.
SLF4J(W): Ignoring binding found at [jar:file:/usr/share/openhab/runtime/system/                  org/apache/karaf/org.apache.karaf.client/4.4.6/org.apache.karaf.client-4.4.6.jar                  !/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J(W): See https://www.slf4j.org/codes.html#ignoredBindings for an explanatio                  n.
Logging in as openhab
Failed to get the session.

Tried to get to the web ui via firefox, got the following: Unable to connect

Looked at process table

jjh@saturn:~$ ps -lax|grep 'openhab'
0  1000  2535  2116  20   0   5300   780 pipe_w S+   pts/0      0:00 grep --color=auto openhab

I am stuck…how can I get openhab running?
Thanks

Please try

sudo systemctl start openhab.service

If there is no output other than prompt at new line, try

systemctl status openhab.service

for further information.

thank you.

sudo systemctl start openhab.service

resulted in a prompt at new line.

systemctl status openhab.service

resulted in output:

jjh@saturn:~$ systemctl status openhab.service
â—Ź openhab.service - openHAB - empowering the smart home
   Loaded: loaded (/usr/lib/systemd/system/openhab.service; disabled; vendor preset: enabled)
   Active: active (running) since Tue 2025-06-24 20:06:26 EDT; 1min 24s ago
     Docs: https://www.openhab.org/docs/
           https://community.openhab.org
 Main PID: 2973 (java)
    Tasks: 75 (limit: 2218)
   CGroup: /system.slice/openhab.service
           └─2973 /usr/bin/java -XX:-UsePerfData -Dopenhab.home=/usr/share/openhab -Dopenhab.conf=/etc/openhab -Dopenhab.runtime=/us

Jun 24 20:06:26 saturn systemd[1]: Started openHAB - empowering the smart home.

was able to connect via the web interface. So I thought I configured the install to start openhab every time at startup. Apparently not?
How can I accomplish that?

Loaded: loaded (/usr/lib/systemd/system/openhab.service; disabled; vendor preset: enabled)`

The key is the service shows disabled.

sudo systemctl enable openhab.service

Error in title: OH 4.5 does not exist!

1 Like

Fat fingered the version number…fixed it - thanks

So apparently openhab was not installed to be enabled & start when the system is booted. What is the proper way to fix this so that it runs when system is booted?

Thanks

Read three posts back what @kjknauss posted….

1 Like

I did read it - the message is laconic with no explanation. The code:

sudo systemctl enable openhab.service

is issued from the CL. Right, it should probably be put in a start up file somewhere…but where? I’ve worked/developed in probably 40+ different OSs in my lifetime, I don’t remember details of all of them.

No, it is a one time command and should survive a reboot.

Further information can be found here