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.