[openHABian] Vanilla installation does not work

Hi,

I’m new to openHAB and tried to get it working a raspberry pi 3 with 16GB SD-card. Installation went fine. But after starting I can’t access port 8888 to continue the setup as the docs say.

In fact there is nothing listening to port 8888, netstat -atp tcp | grep -i “listen”:

    [12:06:39] pi@openHABianPi:/var/log$ netstat -atp tcp | grep -i "listen"
(Es konnten nicht alle Prozesse identifiziert werden; Informationen über
nicht-eigene Processe werden nicht angezeigt; Root kann sie anzeigen.)
tcp        0      0 localhost:smtp          *:*                     LISTEN      -
tcp        0      0 *:microsoft-ds          *:*                     LISTEN      -
tcp        0      0 *:netbios-ssn           *:*                     LISTEN      -
tcp        0      0 *:ssh                   *:*                     LISTEN      -
tcp6       0      0 ::1:smtp                [::]:*                  LISTEN      -
tcp6       0      0 [::]:microsoft-ds       [::]:*                  LISTEN      -
tcp6       0      0 [::]:netbios-ssn        [::]:*                  LISTEN      -
tcp6       0      0 [::]:ssh                [::]:*                  LISTEN      -

systemD reports the daemon failed:

[12:12:04] pi@openHABianPi:/var/log$ sudo systemctl status openhab2.service
● openhab2.service - openHAB 2 - empowering the smart home
   Loaded: loaded (/usr/lib/systemd/system/openhab2.service; enabled)
   Active: active (running) since Fr 2017-02-17 12:12:45 CET; 64ms ago
     Docs: http://docs.openhab.org
           https://community.openhab.org
  Process: 25578 ExecStop=/usr/share/openhab2/runtime/bin/stop (code=exited, status=1/FAILURE)
 Main PID: 25742 (karaf)
   CGroup: /system.slice/openhab2.service
           ├─25742 /bin/bash /usr/share/openhab2/runtime/bin/karaf server
           ├─25762 /bin/bash /usr/share/openhab2/runtime/bin/karaf server
           └─25763 /bin/bash /usr/share/openhab2/runtime/bin/karaf server

Feb 17 12:12:45 openHABianPi systemd[1]: Starting openHAB 2 - empowering the smart home...
Feb 17 12:12:45 openHABianPi systemd[1]: Started openHAB 2 - empowering the smart home.
Feb 17 12:12:45 openHABianPi start.sh[25742]: Launching the openHAB runtime...

And the syslog does also not look good:

Feb 17 12:06:32 openHABianPi systemd[1]: Starting openHAB 2 - empowering the smart home...
Feb 17 12:06:32 openHABianPi systemd[1]: Started openHAB 2 - empowering the smart home.
Feb 17 12:06:32 openHABianPi start.sh[28513]: Launching the openHAB runtime...
Feb 17 12:06:34 openHABianPi start.sh[28513]: null
Feb 17 12:06:34 openHABianPi start.sh[28513]: Error occurred shutting down framework: java.lang.NumberFormatException: null
Feb 17 12:06:34 openHABianPi start.sh[28513]: java.lang.NumberFormatException: null
Feb 17 12:06:34 openHABianPi start.sh[28513]: at java.lang.Integer.parseInt(Integer.java:542)
Feb 17 12:06:34 openHABianPi start.sh[28513]: at java.lang.Integer.parseInt(Integer.java:615)
Feb 17 12:06:34 openHABianPi start.sh[28513]: at org.apache.karaf.main.ConfigProperties.<init>(ConfigProperties.java:208)
Feb 17 12:06:34 openHABianPi start.sh[28513]: at org.apache.karaf.main.Main.updateInstancePidAfterShutdown(Main.java:226)
Feb 17 12:06:34 openHABianPi start.sh[28513]: at org.apache.karaf.main.Main.main(Main.java:191)
Feb 17 12:06:34 openHABianPi systemd[1]: openhab2.service: main process exited, code=exited, status=254/n/a
Feb 17 12:06:34 openHABianPi stop[28671]: stop: Ignoring predefined value for KARAF_HOME
Feb 17 12:06:36 openHABianPi stop[28671]: Exception in thread "main" java.lang.NumberFormatException: null
Feb 17 12:06:36 openHABianPi stop[28671]: at java.lang.Integer.parseInt(Integer.java:542)
Feb 17 12:06:36 openHABianPi stop[28671]: at java.lang.Integer.parseInt(Integer.java:615)
Feb 17 12:06:36 openHABianPi stop[28671]: at org.apache.karaf.main.ConfigProperties.<init>(ConfigProperties.java:208)
Feb 17 12:06:36 openHABianPi stop[28671]: at org.apache.karaf.main.Stop.main(Stop.java:42)
Feb 17 12:06:36 openHABianPi systemd[1]: openhab2.service: control process exited, code=exited status=1
Feb 17 12:06:36 openHABianPi systemd[1]: Unit openhab2.service entered failed state.
Feb 17 12:06:36 openHABianPi systemd[1]: openhab2.service holdoff time over, scheduling restart.
Feb 17 12:06:36 openHABianPi systemd[1]: Stopping openHAB 2 - empowering the smart home...

Am I the only one? I can’t find similar posts here in the forum.

You are having problems, so this might actually not be the case. Why do you think it went fine?

The port you are looking for is 8080

I never saw the errors you’ve posted from your syslog. Did you do the usual stuff, restart/reboot?
Are you indeed using openHABian? Did you change any configuration files?

Installation as in: download the image, write it to the sd card via dd, booting from it, observing the logs via HDMI, seeing the reboot and be able to login as the pi user. IMO that qualifies somewhat as an installation.

Sorry, yes I mean 8080, instead of 8888.

Hmm, looks similar to what you saw here: Openhab2 cannot start · Issue #65 · openhab/openhabian · GitHub - sadly the solution was running the setup again. I did that. Three times, hadn’t hat any luck. Most probably my next attempt is using plain raspbian and install all the deps myself.

  • Yep, I did the usual stuff. Rebooting the raspberry, restarting the systemd service.
  • What do you suggest in that I’m not using openHABian? I downloaded the v1.0 release from Releases · openhab/openhabian · GitHub and copied to a SD card.
  • Nope, did not change the configuration files.

But the Java integer parsing execption looks suspicious to me. Is mandatory to use a specific JDK and for whatever reason I’ve ended with an incompatible one?

The one which was installed is:

java -version
java version "1.8.0_121"
Java(TM) SE Runtime Environment (build 1.8.0_121-b13)
Java HotSpot(TM) Client VM (build 25.121-b13, mixed mode)

I just did this the other day and it worked without issue for me… After you dd the SD card and then booted the pi did you make sure it was connected to the network/internet and then leave it be to finished the installation process?? It takes like 45 minutes for the automatic installation procedure to finish…

Yep I did that and it looked fine to me. Perhaps there was a problem with one or more of the packages that day. I should probably try a fourth iteration…

1 Like

I have sadly no clear explanation for what you are experiencing.
However… I’m going to release a new version and a new revision of the image in a few minutes.
Wouldn’t hurt to try once more :wink: Subscribe to openHABian hassle-free openHAB Setup

Alright than, I’ll wait.

I didn’t waited for the new image and tried to install the old image one more time. This time it worked. So problem solved.

1 Like

Are you sure about the old/new image? I’ve released it yesterday morning :wink:

Wonderful

1 Like