[SOLVED] Installation on raspbian with openhabian-config not working

  • Platform information:

    • Hardware: Raspberry Pi 3B
    • OS: raspbian buster lite
    • openHAB version: 2.4
  • Issue of the topic: Hi I followed the guide over at https://www.openhab.org/docs/installation/openhabian.html#other-linux-systems-add-openhabian-just-like-any-other-software but after having all steps completed in the Manual/Fresh Install section the Karaf console is not running, but I need it to install the compatibility layer!

    systemctl status openhab2
    ● openhab2.service - openHAB 2 - empowering the smart home
    Loaded: loaded (/usr/lib/systemd/system/openhab2.service; enabled; vendor preset: enabled)
    Active: active (running) since Wed 2019-07-03 12:42:50 BST; 22min ago
    Docs: https://www.openhab.org/docs/
    https://community.openhab.org
    Main PID: 6929 (java)
    Tasks: 91 (limit: 2200)
    Memory: 225.9M
    CGroup: /system.slice/openhab2.service
    └─6929 /usr/bin/java -Dopenhab.home=/usr/share/openhab2 -Dopenhab.conf=/etc/openhab2 -Dopenhab.runtime=/usr/share/openhab2/runtime -Dopenhab.us

    Jul 03 12:42:50 raspberrypi systemd[1]: Started openHAB 2 - empowering the smart home.

    pi@raspberrypi:/opt/FireMotD $ ps aux | grep karaf
    openhab 6929 8.2 19.6 420496 185896 ? Ssl 12:42 1:56 /usr/bin/java -Dopenhab.home=/usr/share/openhab2 -Dopenhab.conf=/etc/openhab2 -Dopenhab.runtime=/usr/share/openhab2/runtime -Dopenhab.userdata=/var/lib/openhab2 -Dopenhab.logdir=/var/log/openhab2 -Dfelix.cm.dir=/var/lib/openhab2/config -Djava.library.path=/var/lib/openhab2/tmp/lib -Djetty.host=0.0.0.0 -Djetty.http.compliance=RFC2616 -Dorg.ops4j.pax.web.listening.addresses=0.0.0.0 -Dorg.osgi.service.http.port=8080 -Dorg.osgi.service.http.port.secure=8443 -Djava.awt.headless=true -Djava.endorsed.dirs=/opt/jdk/zulu8.38.0.163-ca-jdk1.8.0_212-linux_aarch32hf/jre/lib/endorsed:/opt/jdk/zulu8.38.0.163-ca-jdk1.8.0_212-linux_aarch32hf/lib/endorsed:/usr/share/openhab2/runtime/lib/endorsed -Djava.ext.dirs=/opt/jdk/zulu8.38.0.163-ca-jdk1.8.0_212-linux_aarch32hf/jre/lib/ext:/opt/jdk/zulu8.38.0.163-ca-jdk1.8.0_212-linux_aarch32hf/lib/ext:/usr/share/openhab2/runtime/lib/ext -Dkaraf.instances=/var/lib/openhab2/tmp/instances -Dkaraf.home=/usr/share/openhab2/runtime -Dkaraf.base=/var/lib/openhab2 -Dkaraf.data=/var/lib/openhab2 -Dkaraf.etc=/var/lib/openhab2/etc -Dkaraf.logs=/var/log/openhab2 -Dkaraf.restart.jvm.supported=true -Djava.io.tmpdir=/var/lib/openhab2/tmp -Djava.util.logging.config.file=/var/lib/openhab2/etc/java.util.logging.properties -Dkaraf.startLocalConsole=false -Dkaraf.startRemoteShell=true -classpath /usr/share/openhab2/runtime/lib/boot/activation-1.1.1.jar:/usr/share/openhab2/runtime/lib/boot/jaxb-api-2.3.0.jar:/usr/share/openhab2/runtime/lib/boot/jaxb-core-2.2.11.jar:/usr/share/openhab2/runtime/lib/boot/jaxb-impl-2.2.11.jar:/usr/share/openhab2/runtime/lib/boot/org.apache.karaf.diagnostic.boot-4.2.1.jar:/usr/share/openhab2/runtime/lib/boot/org.apache.karaf.jaas.boot-4.2.1.jar:/usr/share/openhab2/runtime/lib/boot/org.apache.karaf.main-4.2.1.jar:/usr/share/openhab2/runtime/lib/boot/org.osgi.core-6.0.0.jar org.apache.karaf.main.Main
    pi 11043 0.0 0.0 7348 568 pts/0 S+ 13:06 0:00 grep --color=auto karaf
    pi@raspberrypi:/opt/FireMotD $ ssh -p 8081 openhab@localhost
    ssh: connect to host localhost port 8081: Connection refused

    journalctl -u openhab2.service -b
    – Logs begin at Thu 2019-06-20 17:59:48 BST, end at Wed 2019-07-03 13:17:03 BST. –
    Jul 03 12:42:50 raspberrypi systemd[1]: Started openHAB 2 - empowering the smart home.
    Jul 03 13:12:10 raspberrypi systemd[1]: Stopping openHAB 2 - empowering the smart home…
    Jul 03 13:12:17 raspberrypi karaf[6929]: org.osgi.framework.BundleException: Unable to acquire the state change lock for the module: osgi.identity; osgi.i
    Jul 03 13:12:17 raspberrypi karaf[6929]: at org.eclipse.osgi.container.Module.lockStateChange(Module.java:337)
    Jul 03 13:12:17 raspberrypi karaf[6929]: at org.eclipse.osgi.internal.framework.EquinoxBundle$SystemBundle$EquinoxSystemModule.asyncStop(EquinoxBu
    Jul 03 13:12:17 raspberrypi karaf[6929]: at org.eclipse.osgi.internal.framework.EquinoxBundle$SystemBundle.stop(EquinoxBundle.java:262)
    Jul 03 13:12:17 raspberrypi karaf[6929]: at org.eclipse.osgi.internal.framework.EquinoxBundle$SystemBundle.stop(EquinoxBundle.java:267)
    Jul 03 13:12:17 raspberrypi karaf[6929]: at org.eclipse.osgi.launch.Equinox.stop(Equinox.java:123)
    Jul 03 13:12:17 raspberrypi karaf[6929]: at org.apache.karaf.main.Main$2.run(Main.java:354)
    Jul 03 13:12:17 raspberrypi karaf[6929]: Caused by: java.util.concurrent.TimeoutException: Timeout after waiting 5 seconds to acquire the lock.
    Jul 03 13:12:17 raspberrypi karaf[6929]: at org.eclipse.osgi.container.Module.lockStateChange(Module.java:334)
    Jul 03 13:12:17 raspberrypi karaf[6929]: … 5 more
    Jul 03 13:12:22 raspberrypi systemd[1]: openhab2.service: Succeeded.
    Jul 03 13:12:22 raspberrypi systemd[1]: Stopped openHAB 2 - empowering the smart home.
    Jul 03 13:12:22 raspberrypi systemd[1]: Started openHAB 2 - empowering the smart home.

I’ll try it with raspbian stretch instead

Why?
Raspbian Buster has already been released and Debian Buster will be the new stable release as of Saturday.

Because it apparently doesn’t work

I’ll take this as a lesson.
The port of karaf is 8101 not 8081