OH Webinterface not rechable

  • Platform information:
    • Hardware: RPI 3+b
    • OS: Linux openhab 5.10.17-v7+
    • Java Runtime Environment: OpenJDK Runtime Environment Zulu11.45+27-CA
    • openHAB version: 3.0.1 - Release Build
  • Issue of the topic:

I updated to OH3 with my OH setup on Rpi4 and everything was working. Explicitly the Webinterface was reachable as before. For performance reasons with another Pi Setup I moved the SD Card to my Rpi3 as suggested here and restarted. Everything seems to be working (rules and switches work) except the Webinterface. When I call http://IPoftheOHsetup:8080 from another computer I get “connection cancelled” error. I tried to find the reason in the logs from http://IPoftheOHsetup:9001 but it seems to only show logs till the day of the update to OH3 and in the Karaf Konsole with

ssh -p 8101 openhab@localhost
log:tail

I see recent logs but nothing seems to be related to the webinterface.

Probably I am not reading the (correct) logs correctly but I am stuck. Any suggestions how to investigate to problem correctly, so I can solve it?

So are we since you did not show us any logs or other useful troubleshooting information. We mere mortals, not gods or magicians.

Thanks for your quick response. I hesitated to include the useless logs I found via the mentioned command and concluded the first step would be I get a hint which logs to post and how to get them.

But let me show you what I got so far with

ssh -p 8101 openhab@localhost
log:tail

12:50:38.053 [INFO ] [openhab.event.ItemStateChangedEvent  ] - Item 'Verbrauch_Kodi' changed from 3.8 to 4.1
12:50:39.051 [INFO ] [openhab.event.ItemStateChangedEvent  ] - Item 'Verbrauch_Kodi' changed from 4.1 to 3.7
12:50:40.072 [INFO ] [openhab.event.ItemStateChangedEvent  ] - Item 'Verbrauch_Kodi' changed from 3.7 to 4
12:50:41.063 [INFO ] [openhab.event.ItemStateChangedEvent  ] - Item 'Verbrauch_Kodi' changed from 4 to 3.7
12:50:44.063 [INFO ] [openhab.event.ItemStateChangedEvent  ] - Item 'Verbrauch_Kodi' changed from 3.7 to 3.8
12:50:52.062 [INFO ] [openhab.event.ItemStateChangedEvent  ] - Item 'Verbrauch_Kodi' changed from 3.8 to 3.7
12:50:53.061 [INFO ] [openhab.event.ItemStateChangedEvent  ] - Item 'Verbrauch_Kodi' changed from 3.7 to 4.1
12:50:54.062 [INFO ] [openhab.event.ItemStateChangedEvent  ] - Item 'Verbrauch_Kodi' changed from 4.1 to 3.8
12:50:56.063 [INFO ] [openhab.event.ItemStateChangedEvent  ] - Item 'Verbrauch_Kodi' changed from 3.8 to 3.7
12:50:57.063 [INFO ] [openhab.event.ItemStateChangedEvent  ] - Item 'Verbrauch_Kodi' changed from 3.7 to 3.9
12:51:08.061 [INFO ] [openhab.event.ItemStateChangedEvent  ] - Item 'Verbrauch_Kodi' changed from 3.9 to 4.1
12:51:09.061 [INFO ] [openhab.event.ItemStateChangedEvent  ] - Item 'Verbrauch_Kodi' changed from 4.1 to 3.8
12:51:11.063 [INFO ] [openhab.event.ItemStateChangedEvent  ] - Item 'Verbrauch_Kodi' changed from 3.8 to 3.7
12:51:12.062 [INFO ] [openhab.event.ItemStateChangedEvent  ] - Item 'Verbrauch_Kodi' changed from 3.7 to 4.1
12:51:13.071 [INFO ] [openhab.event.ItemStateChangedEvent  ] - Item 'Verbrauch_Kodi' changed from 4.1 to 3.7
12:51:23.073 [INFO ] [openhab.event.ItemStateChangedEvent  ] - Item 'Verbrauch_Kodi' changed from 3.7 to 4
12:51:24.063 [INFO ] [openhab.event.ItemStateChangedEvent  ] - Item 'Verbrauch_Kodi' changed from 4 to 3.7
12:51:25.062 [INFO ] [openhab.event.ItemStateChangedEvent  ] - Item 'Verbrauch_Kodi' changed from 3.7 to 4
12:51:28.065 [INFO ] [openhab.event.ItemStateChangedEvent  ] - Item 'Verbrauch_Kodi' changed from 4 to 3.7
12:51:29.065 [INFO ] [openhab.event.ItemStateChangedEvent  ] - Item 'Verbrauch_Kodi' changed from 3.7 to 4
12:51:34.061 [INFO ] [openhab.event.ItemStateChangedEvent  ] - Item 'Verbrauch_Kodi' changed from 4 to 3.9
12:51:40.063 [INFO ] [openhab.event.ItemStateChangedEvent  ] - Item 'Verbrauch_Kodi' changed from 3.9 to 4.1
12:51:41.064 [INFO ] [openhab.event.ItemStateChangedEvent  ] - Item 'Verbrauch_Kodi' changed from 4.1 to 3.7
12:51:42.064 [INFO ] [openhab.event.ItemStateChangedEvent  ] - Item 'Verbrauch_Kodi' changed from 3.7 to 4
12:51:44.062 [INFO ] [openhab.event.ItemStateChangedEvent  ] - Item 'Verbrauch_Kodi' changed from 4 to 4.1
12:51:45.066 [INFO ] [openhab.event.ItemStateChangedEvent  ] - Item 'Verbrauch_Kodi' changed from 4.1 to 3.7
12:51:55.063 [INFO ] [openhab.event.ItemStateChangedEvent  ] - Item 'Verbrauch_Kodi' changed from 3.7 to 4
12:51:57.062 [INFO ] [openhab.event.ItemStateChangedEvent  ] - Item 'Verbrauch_Kodi' changed from 4 to 4.1
12:51:58.061 [INFO ] [openhab.event.ItemStateChangedEvent  ] - Item 'Verbrauch_Kodi' changed from 4.1 to 3.8
12:51:59.063 [INFO ] [openhab.event.ItemStateChangedEvent  ] - Item 'Verbrauch_Kodi' changed from 3.8 to 4.1
12:52:00.061 [INFO ] [openhab.event.ItemStateChangedEvent  ] - Item 'Verbrauch_Kodi' changed from 4.1 to 3.7
12:52:01.062 [INFO ] [openhab.event.ItemStateChangedEvent  ] - Item 'Verbrauch_Kodi' changed from 3.7 to 4
12:52:10.061 [INFO ] [openhab.event.ItemStateChangedEvent  ] - Item 'Verbrauch_Kodi' changed from 4 to 3.9
12:52:12.063 [INFO ] [openhab.event.ItemStateChangedEvent  ] - Item 'Verbrauch_Kodi' changed from 3.9 to 4.1
12:52:13.066 [INFO ] [openhab.event.ItemStateChangedEvent  ] - Item 'Verbrauch_Kodi' changed from 4.1 to 3.8
12:52:15.062 [INFO ] [openhab.event.ItemStateChangedEvent  ] - Item 'Verbrauch_Kodi' changed from 3.8 to 3.7
12:52:16.061 [INFO ] [openhab.event.ItemStateChangedEvent  ] - Item 'Verbrauch_Kodi' changed from 3.7 to 4
12:52:27.063 [INFO ] [openhab.event.ItemStateChangedEvent  ] - Item 'Verbrauch_Kodi' changed from 4 to 4.1
12:52:28.062 [INFO ] [openhab.event.ItemStateChangedEvent  ] - Item 'Verbrauch_Kodi' changed from 4.1 to 3.8
12:52:29.061 [INFO ] [openhab.event.ItemStateChangedEvent  ] - Item 'Verbrauch_Kodi' changed from 3.8 to 4.1
12:52:30.061 [INFO ] [openhab.event.ItemStateChangedEvent  ] - Item 'Verbrauch_Kodi' changed from 4.1 to 3.8
12:52:31.061 [INFO ] [openhab.event.ItemStateChangedEvent  ] - Item 'Verbrauch_Kodi' changed from 3.8 to 4.1
12:52:32.063 [INFO ] [openhab.event.ItemStateChangedEvent  ] - Item 'Verbrauch_Kodi' changed from 4.1 to 3.7
12:52:33.062 [INFO ] [openhab.event.ItemStateChangedEvent  ] - Item 'Verbrauch_Kodi' changed from 3.7 to 4
12:52:34.061 [INFO ] [openhab.event.ItemStateChangedEvent  ] - Item 'Verbrauch_Kodi' changed from 4 to 3.7
12:52:38.063 [INFO ] [openhab.event.ItemStateChangedEvent  ] - Item 'Verbrauch_Kodi' changed from 3.7 to 3.9
12:52:44.062 [INFO ] [openhab.event.ItemStateChangedEvent  ] - Item 'Verbrauch_Kodi' changed from 3.9 to 4.1
12:52:45.061 [INFO ] [openhab.event.ItemStateChangedEvent  ] - Item 'Verbrauch_Kodi' changed from 4.1 to 3.8
12:52:48.071 [INFO ] [openhab.event.ItemStateChangedEvent  ] - Item 'Verbrauch_Kodi' changed from 3.8 to 4.1
12:52:49.063 [INFO ] [openhab.event.ItemStateChangedEvent  ] - Item 'Verbrauch_Kodi' changed from 4.1 to 3.8

openHAB only has 2 log files. - openhab.log & events.log

We know nothing about the item(s referenced. Perhaps the following thread can help you, especially #10.

How to ask a good question / Help Us Help You - Tutorials & Examples - openHAB Community

I just realized you stated this:

I believe there are some OS kernel level differences in between those CPUs. As stated in the other thread, that is beyond the scope of the openHAB forum. Starting a new thread here does not change that fact.

Suggestions here would be:

  1. Do not do that
  2. If you want to move OH to the Pi 3, import a backup of OH on the Pi 4 to a different SD card on the Pi 3.

Thanks for your advices.

I will search in the other log file.

The only problem I am experiencing is with the Webinterface which is not reachable. Since the OH backup does not include my Z-Wave (RaZberry2) settings and devices I would appreciate not having to start from scratch, especially as everything except the Webinterface seems working. Nevertheless if I missed a way to backup Z-Wave settings and devices you might want to forward me to I will of course try again.

The Z-Wave network is stored on the controller itself unless you are using secure bindings. Then the security key is in the binding configuration.

The Things, Items. & Rules should be in your backup.

After following the recommendations by Bruce-Osborne above (installing from scratch and loading backup files) I learned that the Webinterface is first working fine and only after installing deConz Phoscon App it ist not reachable any more. Therefore I assume it is not a problem with Kernel Differences of the zwo Rpi’s I was using (since I did a fresh install and it was working first). It seems it is running on the same port (8080).

That’s why I came to the conclusion to change the pprot of deConz ans suggested here:
Phoscon/deCONZ on openHABian

Unfortunately it seems even after restarting deConz somehow still runs on 8080 but not OH:

sudo lsof -i :8080
COMMAND PID       USER   FD   TYPE DEVICE SIZE/OFF NODE NAME
deCONZ  383 openhabian   12u  IPv4  17334      0t0  TCP *:http-alt (LISTEN)

Then I found this post here which is also about deConz not changing the port as expected in the OH Community Post above: gitHub: dresden-elektronik / deconz-rest-plugin / can’t change ports with raspberry pi buster

And finally I got the solution:

You need to remove the

-platform minimal

in

/lib/systemd/system/deconz.service

Hence to change the Port of deConz you need to edit deconz.service:

sudo nano /lib/systemd/system/deconz.service

change the port to your desired port and remove the

-platform minimal

and also change the port in

/lib/systemd/system/deconz-gui.service

sudo nano /lib/systemd/system/deconz-gui.service
1 Like