openhab / openhab-webui

Web UIs of openHAB
Eclipse Public License 2.0
222 stars 240 forks source link

[BasicUI] Does not reconnect after server restart #2744

Open dilyanpalauzov opened 1 month ago

dilyanpalauzov commented 1 month ago

Which UI are you reporting an issue for?

The problem

With OpenHAB 4.2.1 I load /basicui/app and it works. I shut down OpenHAB. Basic UI shows “Offline… waiting for connection” message. I start OpenHAB. Now the Offline message disappears and at the top of Basic UI is shown horizontal/loading spinner.

The problem report is that BasicUI never manages to reconnect and has to be reloaded manually.

Probably it tries to reconnect only a single time, once the OpenHAB webserver is up, but OpenHAB is not yet fully loaded, and then gives up. Clicking on Text { … } items in the browser does not unfold these.

lolodomo commented 1 month ago

IICR there is an infinite 10 seconds retry mechanism.

dilyanpalauzov commented 1 month ago

IICR there is an infinite 10 seconds retry mechanism.

In my experiments it does not work. The last log of Firefox is:

GET https://192.168.0.10:8443/rest/events?topics=openhab/webaudio/playurl [HTTP/1.1 404 Not Found 573ms]

Firefox can’t establish a connection to the server at https://192.168.0.10:8443/rest/events?topics=openhab/webaudio/playurl.