Hardware: Intel® Atom™ CPU D410 @ 1.66GHz, 2 cores
OS: debian 8
Java Runtime Environment: 8
openHAB version: 2.4
Issue of the topic: I’m new to openHAB and recently installed openHABian on my debian 8. I had some issues with python and java when installing, but these seem to have been fixed.
When I however want to access the webviewer on port 8080, I don’t get a web connection.
Here is some output that demonstrates current configuration:
java -version
openjdk version “1.8.0_202”
OpenJDK Runtime Environment (Zulu 8.36.0.1-CA-linux64) (build 1.8.0_202-b05)
OpenJDK 64-Bit Server VM (Zulu 8.36.0.1-CA-linux64) (build 25.202-b05, mixed mode)
journalctl -u openhab2.service -b
– Logs begin at Fri 2019-03-15 15:59:17 CET, end at Fri 2019-03-15 16:38:14 CET. –
Mar 15 15:59:26 lovemydebian systemd[1]: Starting openHAB 2 - empowering the smart home…
Mar 15 15:59:27 lovemydebian systemd[1]: Started openHAB 2 - empowering the smart home.
Mar 15 16:02:44 lovemydebian systemd[1]: Stopping openHAB 2 - empowering the smart home…
Mar 15 16:03:03 lovemydebian systemd[1]: Starting openHAB 2 - empowering the smart home…
Mar 15 16:03:03 lovemydebian systemd[1]: Started openHAB 2 - empowering the smart home.
The installation is completely default, so no ports have been changed or whatsoever. I however see from the netstat output that no java service seems to be listening on port 8080.
I had another service running which redirected traffic from port 8080 to 8443, so I killed that service. I tried disabling the host-based firewall rules completely.
Can somebody shed some light on this?
MDAR
(Stuart Hanlon, UK importer of Velbus hardware)
2
In /etc/default/openhab2, I set:
OPENHAB_HTTP_PORT=8070
OPENHAB_HTTPS_PORT=8433
systemctl restart openhab2.service
[12:26:00] root@xxx:~# journalctl -u openhab2.service -b
– Logs begin at Fri 2019-03-15 15:59:17 CET, end at Sat 2019-03-16 12:27:10 CET. –
Mar 15 15:59:26 lovemydebian systemd[1]: Starting openHAB 2 - empowering the smart home…
Mar 15 15:59:27 lovemydebian systemd[1]: Started openHAB 2 - empowering the smart home.
Mar 15 16:02:44 lovemydebian systemd[1]: Stopping openHAB 2 - empowering the smart home…
Mar 15 16:03:03 lovemydebian systemd[1]: Starting openHAB 2 - empowering the smart home…
Mar 15 16:03:03 lovemydebian systemd[1]: Started openHAB 2 - empowering the smart home.
Mar 15 16:49:20 lovemydebian systemd[1]: Stopping openHAB 2 - empowering the smart home…
Mar 15 16:49:38 lovemydebian systemd[1]: Starting openHAB 2 - empowering the smart home…
Mar 15 16:49:38 lovemydebian systemd[1]: Started openHAB 2 - empowering the smart home.
Mar 16 12:25:40 lovemydebian systemd[1]: Stopping openHAB 2 - empowering the smart home…
Mar 16 12:26:00 lovemydebian systemd[1]: Starting openHAB 2 - empowering the smart home…
Mar 16 12:26:00 lovemydebian systemd[1]: Started openHAB 2 - empowering the smart home.
Both port 8070 (http) and 8433 (https) are having a problem loading the page.
MDAR
(Stuart Hanlon, UK importer of Velbus hardware)
9
I really am shooting in the dark here, as I’m very much a Velbus hardware chap, who is still learning openHAB2. (98% Velbus knowledge, 2% coding / software)
May I ask if you’re looking at the web server from the same machine, or over a network?
(I had a client who had terrible network issues that were blocking all kinds of things)
I’m connecting through my internal network. An iptables rule has been made for 8080 and to be sure there is no iptables issue, I flushed the ruleset completely.
I however do see a (new?) error message in the log:
journalctl -u openhab2.service -b
– Logs begin at Fri 2019-03-15 15:59:17 CET, end at Sat 2019-03-16 15:15:03 CET. –
Mar 15 15:59:26 lovemydebian systemd[1]: Starting openHAB 2 - empowering the smart home…
Mar 15 15:59:27 lovemydebian systemd[1]: Started openHAB 2 - empowering the smart home.
Mar 15 16:02:44 lovemydebian systemd[1]: Stopping openHAB 2 - empowering the smart home…
Mar 15 16:03:03 lovemydebian systemd[1]: Starting openHAB 2 - empowering the smart home…
Mar 15 16:03:03 lovemydebian systemd[1]: Started openHAB 2 - empowering the smart home.
Mar 15 16:49:20 lovemydebian systemd[1]: Stopping openHAB 2 - empowering the smart home…
Mar 15 16:49:38 lovemydebian systemd[1]: Starting openHAB 2 - empowering the smart home…
Mar 15 16:49:38 lovemydebian systemd[1]: Started openHAB 2 - empowering the smart home.
Mar 16 12:25:40 lovemydebian systemd[1]: Stopping openHAB 2 - empowering the smart home…
Mar 16 12:26:00 lovemydebian systemd[1]: Starting openHAB 2 - empowering the smart home…
Mar 16 12:26:00 lovemydebian systemd[1]: Started openHAB 2 - empowering the smart home.
Mar 16 12:32:32 lovemydebian systemd[1]: Stopping openHAB 2 - empowering the smart home…
Mar 16 12:32:39 lovemydebian karaf[14090]: org.osgi.framework.BundleException: Unable to acquire the state change lock for the module: osgi.identity; type=“osgi.bundle”; version:Version=“3.12.100.v20180210-1608”; osgi.identity="org.eclip
Mar 16 12:32:39 lovemydebian karaf[14090]: at org.eclipse.osgi.container.Module.lockStateChange(Module.java:337)
Mar 16 12:32:40 lovemydebian karaf[14090]: at org.eclipse.osgi.internal.framework.EquinoxBundle$SystemBundle$EquinoxSystemModule.asyncStop(EquinoxBundle.java:156)
Mar 16 12:32:40 lovemydebian karaf[14090]: at org.eclipse.osgi.internal.framework.EquinoxBundle$SystemBundle.stop(EquinoxBundle.java:262)
Mar 16 12:32:40 lovemydebian karaf[14090]: at org.eclipse.osgi.internal.framework.EquinoxBundle$SystemBundle.stop(EquinoxBundle.java:267)
Mar 16 12:32:40 lovemydebian karaf[14090]: at org.eclipse.osgi.launch.Equinox.stop(Equinox.java:123)
Mar 16 12:32:40 lovemydebian karaf[14090]: at org.apache.karaf.main.Main$2.run(Main.java:354)
Mar 16 12:32:40 lovemydebian karaf[14090]: Caused by: java.util.concurrent.TimeoutException: Timeout after waiting 5 seconds to acquire the lock.
Mar 16 12:32:40 lovemydebian karaf[14090]: at org.eclipse.osgi.container.Module.lockStateChange(Module.java:334)
Mar 16 12:32:40 lovemydebian karaf[14090]: … 5 more
Mar 16 12:32:46 lovemydebian systemd[1]: Starting openHAB 2 - empowering the smart home…
Mar 16 12:32:46 lovemydebian systemd[1]: Started openHAB 2 - empowering the smart home.
Mar 16 15:09:21 lovemydebian systemd[1]: Stopping openHAB 2 - empowering the smart home…
Mar 16 15:09:28 lovemydebian karaf[20357]: org.osgi.framework.BundleException: Unable to acquire the state change lock for the module: osgi.identity; type=“osgi.bundle”; version:Version=“3.12.100.v20180210-1608”; osgi.identity="org.eclip
Mar 16 15:09:28 lovemydebian karaf[20357]: at org.eclipse.osgi.container.Module.lockStateChange(Module.java:337)
Mar 16 15:09:28 lovemydebian karaf[20357]: at org.eclipse.osgi.internal.framework.EquinoxBundle$SystemBundle$EquinoxSystemModule.asyncStop(EquinoxBundle.java:156)
Mar 16 15:09:28 lovemydebian karaf[20357]: at org.eclipse.osgi.internal.framework.EquinoxBundle$SystemBundle.stop(EquinoxBundle.java:262)
Mar 16 15:09:28 lovemydebian karaf[20357]: at org.eclipse.osgi.internal.framework.EquinoxBundle$SystemBundle.stop(EquinoxBundle.java:267)
Mar 16 15:09:28 lovemydebian karaf[20357]: at org.eclipse.osgi.launch.Equinox.stop(Equinox.java:123)
Mar 16 15:09:28 lovemydebian karaf[20357]: at org.apache.karaf.main.Main$2.run(Main.java:354)
Mar 16 15:09:28 lovemydebian karaf[20357]: Caused by: java.util.concurrent.TimeoutException: Timeout after waiting 5 seconds to acquire the lock.
Mar 16 15:09:28 lovemydebian karaf[20357]: at org.eclipse.osgi.container.Module.lockStateChange(Module.java:334)
Mar 16 15:09:28 lovemydebian karaf[20357]: … 5 more
Mar 16 15:09:35 lovemydebian systemd[1]: Starting openHAB 2 - empowering the smart home…
Mar 16 15:09:35 lovemydebian systemd[1]: Started openHAB 2 - empowering the smart home.
I didn’t see this before, is this something of a known issue (with Eclipse?)?