OpenHab 2.2 does not start

Dear All

I am having huge problems with running OpenHab 2.2. I am on Raspbian, latest packages updated. I am on Zulu JDK.

pi@raspberrypi:/var/log/openhab2 $ apt show openhab2
Package: openhab2
Source: openhab2
Version: 2.2.0-1
Section: java
Priority: optional
Depends: adduser
Suggests: zulu-8 | zulu-embedded-8 | oracle-java8-installer |  openjdk-8-jdk-headless
Conflicts: openhab2-online, openhab2-offline
Installed-Size: 76,6 MB
Maintainer: https://community.openhab.org
Homepage: www.openhab.org
Download-Size: 68,6 MB
APT-Manual-Installed: yes
APT-Sources: https://dl.bintray.com/openhab/apt-repo2/ stable/main armhf Packages
Description: openhab2
 Linux installation package for openHAB 2.

N: There are 2 additional records. Please use the '-a' switch to see them.

It just hangs, does not start. The log file shows nothing:

gru 27, 2017 8:06:36 PM org.apache.karaf.main.Main launch
INFO: Installing and starting initial bundles
gru 27, 2017 8:06:37 PM org.apache.karaf.main.Main launch
INFO: All initial bundles installed and set to start
gru 27, 2017 8:06:37 PM org.apache.karaf.main.lock.SimpleFileLock lock
INFO: Trying to lock /var/lib/openhab2/tmp/lock
gru 27, 2017 8:06:37 PM org.apache.karaf.main.lock.SimpleFileLock lock
INFO: Lock acquired
gru 27, 2017 8:06:37 PM org.apache.karaf.main.Main$KarafLockCallback lockAquired
INFO: Lock acquired. Setting startlevel to 100
gru 27, 2017 8:37:46 PM org.apache.karaf.main.lock.SimpleFileLock lock
INFO: Trying to lock /var/lib/openhab2/tmp/lock
gru 27, 2017 8:37:46 PM org.apache.karaf.main.lock.SimpleFileLock lock
INFO: Lock acquired
gru 27, 2017 8:37:46 PM org.apache.karaf.main.Main$KarafLockCallback lockAquired
INFO: Lock acquired. Setting startlevel to 100

I connected to the Java proces via jstack and here is an acquired thread dump:

http://termbin.com/qgx4

Please advise?

Maciej

Also I am not sure how to increase logging level.

I tried:

  • modifying a system startup script /etc/init.d/openhab2 by adding:

    OPENHAB_STARTMODE=DEBUG
    export OPENHAB_STARTMODE

  • creating a file (this file was not preinstalled)

/var/lib/openhab2/etc/org.ops4j.pax.logging.cfg

With contents

log4j.rootLogger=DEBUG, out, osgi:VmLogAppender

But it did not help (nothing more in openhab.log)

I also tried running console - openhab-cli

but i just get

root@raspberrypi:/var/lib/openhab2/etc# openhab-cli console
/usr/bin/openhab-cli: 114: /usr/bin/openhab-cli: /bin/client: not found

this is strange. I discovered that by installing openhab2 2.2.0-1 using apt, the files

/etc/default/openhab2
/etc/profile.d/openhab2.sh

do not get installed. I extracted them from deb package manually using “dpkg -fsys-tarfile” and now at least i get something like this

root@raspberrypi:/var/cache/apt/archives/arch# su - openhab
Brak katalogu, loguję z HOME=/
openhab@raspberrypi:/$ openhab-cli console
Enter user: openhab
Password:
Password:
Password:
No more authentication methods available
openhab@raspberrypi:/$

Tried openhab/habopen - did not work. Openhab did not go any further and log file still empty.

Anybody actually succeeded installing openhab-2.2.0 from scratch using apt on RPI3? Frankly, I am stuck.

ok i got it working

i extracted the whole of deb package contents manually - and finally openhab started.

I think the deb package is broken.

Might be useful for anyone having the same issues.

best regards,
Maciej

Same issue … :frowning:
Who can fix it?

Same here. Purging the package and reinstalling works.

sudo apt remove --purge openhab2
sudo apt install openhab2

2 Likes