OpenHAB 3 not working after install on debian

Platform information - capable to run OH 2.5, java 11 openjdk, OS debian

java --version
openjdk 11.0.9.1 2020-11-04
OpenJDK Runtime Environment (build 11.0.9.1+1-post-Debian-1deb10u2)
OpenJDK Server VM (build 11.0.9.1+1-post-Debian-1deb10u2, mixed mode, sharing)

=======================================================

/var/log/openhab/openhab.log:

OH3 starting, running, after change to repo with OH3 stable still on:

Dec 22 07:59:00 debian-4 systemd[1]: Started openHAB - empowering the smart home.
root@debian-4:/home/mlody# tail -f /var/log/openhab
openhab/ openhab2/
root@debian-4:/home/mlody# tail -f /var/log/openhab/
openhab.log Readme.txt
root@debian-4:/home/mlody# tail -f /var/log/openhab/openhab.log
Dec 22, 2020 7:59:05 AM org.apache.karaf.main.Main launch
INFO: Installing and starting initial bundles
Dec 22, 2020 7:59:06 AM org.apache.karaf.main.Main launch
INFO: All initial bundles installed and set to start
Dec 22, 2020 7:59:06 AM org.apache.karaf.main.lock.SimpleFileLock lock
INFO: Trying to lock /var/lib/openhab/tmp/lock
Dec 22, 2020 7:59:06 AM org.apache.karaf.main.lock.SimpleFileLock lock
INFO: Lock acquired
Dec 22, 2020 7:59:06 AM org.apache.karaf.main.Main$KarafLockCallback lockAcquired
INFO: Lock acquired. Setting startlevel to 100

OS cleaned atfer removing OH2.5/OH3.0 SNAPSHOT
OH3 not starting, not listening on tcp port.

Full log from install to start:

root@debian-4:/home/mlody# apt-cache search openhab
openhab-addons - openhab-addons
openhab - openhab
openhab2-addons - openhab2-addons
openhab2-addons-legacy - openhab2-addons-legacy
openhab2 - openhab2
root@debian-4:/home/mlody# apt-get install openhab
Reading package lists… Done
Building dependency tree
Reading state information… Done
The following NEW packages will be installed:
openhab
0 upgraded, 1 newly installed, 0 to remove and 5 not upgraded.
Need to get 0 B/83.2 MB of archives.
After this operation, 94.0 MB of additional disk space will be used.
Selecting previously unselected package openhab.
(Reading database … 39279 files and directories currently installed.)
Preparing to unpack …/openhab_3.0.0-1_all.deb …
Unpacking openhab (3.0.0-1) …
Setting up openhab (3.0.0-1) …

[openHAB] openHAB was not running so will not start after upgrade.
[openHAB] Please use the command:
sudo /bin/systemctl start openhab.service

Processing triggers for systemd (241-7~deb10u5) …
root@debian-4:/home/mlody# systemctl status openhab
● openhab.service - openHAB - empowering the smart home
Loaded: loaded (/lib/systemd/system/openhab.service; disabled; vendor preset: enabled)
Active: inactive (dead)
Docs: https://www.openhab.org/docs/
https://community.openhab.org

Dec 22 07:15:30 debian-4 karaf[6842]: at org.eclipse.osgi.internal.framework.EquinoxBundle$SystemBundle$EquinoxSystemModule.asyncStop(EquinoxBundle.java:156)
Dec 22 07:15:30 debian-4 karaf[6842]: at org.eclipse.osgi.internal.framework.EquinoxBundle$SystemBundle.stop(EquinoxBundle.java:262)
Dec 22 07:15:30 debian-4 karaf[6842]: at org.eclipse.osgi.internal.framework.EquinoxBundle$SystemBundle.stop(EquinoxBundle.java:267)
Dec 22 07:15:30 debian-4 karaf[6842]: at org.eclipse.osgi.launch.Equinox.stop(Equinox.java:123)
Dec 22 07:15:30 debian-4 karaf[6842]: at org.apache.karaf.main.Main$2.run(Main.java:354)
Dec 22 07:15:30 debian-4 karaf[6842]: Caused by: java.util.concurrent.TimeoutException: Timeout after waiting 5 seconds to acquire the lock.
Dec 22 07:15:30 debian-4 karaf[6842]: at org.eclipse.osgi.container.Module.lockStateChange(Module.java:334)
Dec 22 07:15:30 debian-4 karaf[6842]: … 5 more
Dec 22 07:15:36 debian-4 systemd[1]: openhab.service: Succeeded.
Dec 22 07:15:36 debian-4 systemd[1]: Stopped openHAB - empowering the smart home.
root@debian-4:/home/mlody# systemctl start openhab
root@debian-4:/home/mlody# systemctl status openhab
● openhab.service - openHAB - empowering the smart home
Loaded: loaded (/lib/systemd/system/openhab.service; disabled; vendor preset: enabled)
Active: active (running) since Tue 2020-12-22 07:59:00 CET; 1s ago
Docs: https://www.openhab.org/docs/
https://community.openhab.org
Main PID: 2165 (java)
Tasks: 17 (limit: 4764)
Memory: 23.6M
CGroup: /system.slice/openhab.service
└─2165 /usr/bin/java -XX:-UsePerfData -Dopenhab.home=/usr/share/openhab -Dopenhab.conf=/etc/openhab -Dopenhab.runtime=/usr/share/openhab/runtime -Dopenhab.userdata=/var/li

Dec 22 07:59:00 debian-4 systemd[1]: Started openHAB - empowering the smart home.
root@debian-4:/home/mlody# systemctl status openhab
● openhab.service - openHAB - empowering the smart home
Loaded: loaded (/lib/systemd/system/openhab.service; disabled; vendor preset: enabled)
Active: active (running) since Tue 2020-12-22 07:59:00 CET; 14s ago
Docs: https://www.openhab.org/docs/
https://community.openhab.org
Main PID: 2165 (java)
Tasks: 32 (limit: 4764)
Memory: 96.8M
CGroup: /system.slice/openhab.service
└─2165 /usr/bin/java -XX:-UsePerfData -Dopenhab.home=/usr/share/openhab -Dopenhab.conf=/etc/openhab -Dopenhab.runtime=/usr/share/openhab/runtime -Dopenhab.userdata=/var/li

Dec 22 07:59:00 debian-4 systemd[1]: Started openHAB - empowering the smart home.
root@debian-4:/home/mlody# tail -f /var/log/openhab
openhab/ openhab2/
root@debian-4:/home/mlody# tail -f /var/log/openhab/
openhab.log Readme.txt
root@debian-4:/home/mlody# tail -f /var/log/openhab/openhab.log
Dec 22, 2020 7:59:05 AM org.apache.karaf.main.Main launch
INFO: Installing and starting initial bundles
Dec 22, 2020 7:59:06 AM org.apache.karaf.main.Main launch
INFO: All initial bundles installed and set to start
Dec 22, 2020 7:59:06 AM org.apache.karaf.main.lock.SimpleFileLock lock
INFO: Trying to lock /var/lib/openhab/tmp/lock
Dec 22, 2020 7:59:06 AM org.apache.karaf.main.lock.SimpleFileLock lock
INFO: Lock acquired
Dec 22, 2020 7:59:06 AM org.apache.karaf.main.Main$KarafLockCallback lockAcquired
INFO: Lock acquired. Setting startlevel to 100

Please install Zulu 11 as your Java version. OpenJDK is not recommended and has known issues.

2 Likes

after manual install zulu11 java

root@debian-4:~# java -version
openjdk version “11.0.9.1” 2020-11-04 LTS
OpenJDK Runtime Environment Zulu11.43+55-CA (build 11.0.9.1+1-LTS)
OpenJDK Server VM Zulu11.43+55-CA (build 11.0.9.1+1-LTS, mixed mode)
root@debian-4:~# systemctl status openhab
● openhab.service - openHAB - empowering the smart home
Loaded: loaded (/lib/systemd/system/openhab.service; disabled; vendor preset: enabled)
Active: inactive (dead)
Docs: https://www.openhab.org/docs/
https://community.openhab.org
root@debian-4:~# systemctl start openhab
root@debian-4:~# systemctl status openhab
● 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 Tue 2020-12-22 08:48:39 CET; 2s ago
Docs: https://www.openhab.org/docs/
https://community.openhab.org
Process: 1411 ExecStart=/usr/share/openhab/runtime/bin/karaf ${OPENHAB_STARTMODE} (code=exited, status=1/FAILURE)
Main PID: 1411 (code=exited, status=1/FAILURE)
root@debian-4:~#

and next one:

root@debian-4:~# systemctl status openhab
● openhab.service - openHAB - empowering the smart home
Loaded: loaded (/lib/systemd/system/openhab.service; enabled; vendor preset: enabled)
Active: activating (auto-restart) (Result: exit-code) since Tue 2020-12-22 08:50:46 CET; 4s ago
Docs: https://www.openhab.org/docs/
https://community.openhab.org
Process: 2642 ExecStart=/usr/share/openhab/runtime/bin/karaf ${OPENHAB_STARTMODE} (code=exited, status=1/FAILURE)
Main PID: 2642 (code=exited, status=1/FAILURE)
root@debian-4:~# /usr/share/open
openal/ openhab/ openssh/
root@debian-4:~# /usr/share/openhab/runtime/bin/karaf

                       _   _     _     ____

___ ___ ___ ___ | | | | / \ | __ )
/ _ \ / _ \ / _ \ / _ \ | || | / _ \ | _
| (
) | () | __/| | | || _ | / ___ \ | |) )
___/| / _/|| |||| ||// _|__/
|
| 3.0.0 - Release Build

Use ‘’ for a list of available commands
and ‘[cmd] --help’ for help on a specific command.
To exit, use ‘’ or ‘logout’.

Error in initialization script: /var/lib/openhab/etc/shell.init.script: /var/lib/openhab/etc/shell.init.script
openhab>

is that the complete message ?

Yes
It is complete

File /var/lib/openhab/etc/shell.init.script not exist in my system
OH3 is from deb from repo:
deb https://dl.bintray.com/openhab/apt-repo2 stable main

I have the same issue today - is there any solution out there?