BASIC UI "Offline: Waiting for Connection to become available" WHY?

I’ve searched the forum but I’ve not found an answer which seems to point to a solution for me.
I’m running OH2 v2.4… all is working ok.
EXCEPT I get that pop-up message every minute (or more) with the message:
“Offline: Waiting for Connection to become available”.

Is this normal behavior for BASIC UI? It does not matter which broswer (Firefox, Safari, Chrome)… iPhone or desktop iMac.

Here is the DEBUG LOG FILE from when this occurs.
Any help greatly appreciated!
Thanks
Dave

EXAMPLE 1 - LOG FILE during the period of time when BASIC UI “Offline: Waiting for connection to become available”

2019-03-07 16:00:50.431 [DEBUG] [ding.omnilink.handler.AudioSourceHandler] - Polling for event log messages.
2019-03-07 16:00:50.779 [DEBUG] [ding.omnilink.handler.AudioSourceHandler] - Polling for event log messages.
2019-03-07 16:00:50.861 [DEBUG] [ding.omnilink.handler.AudioSourceHandler] - Polling for event log messages.
2019-03-07 16:00:51.476 [DEBUG] [ding.omnilink.handler.AudioSourceHandler] - Polling for event log messages.
2019-03-07 16:00:51.812 [DEBUG] [ding.omnilink.handler.AudioSourceHandler] - Polling for event log messages.
2019-03-07 16:00:51.917 [DEBUG] [ding.omnilink.handler.AudioSourceHandler] - Polling for event log messages.
2019-03-07 16:00:52.264 [DEBUG] [hab.core.karaf.internal.FeatureInstaller] - Running scheduled sync job
2019-03-07 16:00:52.564 [DEBUG] [ding.omnilink.handler.AudioSourceHandler] - Polling for event log messages.
2019-03-07 16:00:52.630 [DEBUG] [hab.core.karaf.internal.FeatureInstaller] - Installed ‘openhab-binding-omnilink’
2019-03-07 16:00:52.892 [DEBUG] [ding.omnilink.handler.AudioSourceHandler] - Polling for event log messages.
2019-03-07 16:00:52.972 [DEBUG] [ding.omnilink.handler.AudioSourceHandler] - Polling for event log messages.
2019-03-07 16:00:53.158 [DEBUG] [rest.sitemap.internal.SitemapEventOutput] - Sent sitemap event for widget 0400 to subscription 8b7d290c-97d6-46c2-9055-492aceb1c4b7.
2019-03-07 16:00:53.160 [DEBUG] [io.rest.sitemap.internal.SitemapResource] - SSE connection for subscription 0b8a4832-b88f-49d3-8260-5b1cbe44e025 has been closed.
2019-03-07 16:00:53.162 [DEBUG] [rest.sitemap.internal.SitemapEventOutput] - Sent sitemap event for widget 0402 to subscription 8b7d290c-97d6-46c2-9055-492aceb1c4b7.
2019-03-07 16:00:53.163 [DEBUG] [.rest.sitemap.SitemapSubscriptionService] - Removed subscription with id 0b8a4832-b88f-49d3-8260-5b1cbe44e025 (1 active subscriptions)
2019-03-07 16:00:53.630 [DEBUG] [ding.omnilink.handler.AudioSourceHandler] - Polling for event log messages.
2019-03-07 16:00:53.935 [DEBUG] [ding.omnilink.handler.AudioSourceHandler] - Polling for event log messages.
2019-03-07 16:00:54.041 [DEBUG] [ding.omnilink.handler.AudioSourceHandler] - Polling for event log messages.
2019-03-07 16:00:54.046 [DEBUG] [rest.sitemap.internal.SitemapEventOutput] - Sent sitemap event for widget 0000 to subscription 8b7d290c-97d6-46c2-9055-492aceb1c4b7.
==> /var/log/openhab2/events.log <==
2019-03-07 16:00:54.049 [smarthome.event.ItemStateChangedEvent] - CurrentDate changed from 2019-03-07T15:59:54.047-0600 to 2019-03-07T16:00:54.048-0600
2019-03-07 16:00:54.049 [smarthome.event.ItemStateChangedEvent] - CurrentTime changed from 2019-03-07T15:59:54.047-0600 to 2019-03-07T16:00:54.048-0600
==> /var/log/openhab2/openhab.log <==
2019-03-07 16:00:54.048 [DEBUG] [rest.sitemap.internal.SitemapEventOutput] - Sent sitemap event for widget 0001 to subscription 8b7d290c-97d6-46c2-9055-492aceb1c4b7.
2019-03-07 16:00:54.683 [DEBUG] [ding.omnilink.handler.AudioSourceHandler] - Polling for event log messages.
2019-03-07 16:00:55.032 [DEBUG] [ding.omnilink.handler.AudioSourceHandler] - Polling for event log messages.
2019-03-07 16:00:55.075 [DEBUG] [ding.omnilink.handler.AudioSourceHandler] - Polling for event log messages.
2019-03-07 16:00:55.772 [DEBUG] [ding.omnilink.handler.AudioSourceHandler] - Polling for event log messages.
2019-03-07 16:00:56.072 [DEBUG] [ding.omnilink.handler.AudioSourceHandler] - Polling for event log messages.
2019-03-07 16:00:56.106 [DEBUG] [ding.omnilink.handler.AudioSourceHandler] - Polling for event log messages.
2019-03-07 16:00:56.835 [DEBUG] [ding.omnilink.handler.AudioSourceHandler] - Polling for event log messages.
2019-03-07 16:00:57.105 [DEBUG] [ding.omnilink.handler.AudioSourceHandler] - Polling for event log messages.
2019-03-07 16:00:57.182 [DEBUG] [ding.omnilink.handler.AudioSourceHandler] - Polling for event log messages.
2019-03-07 16:00:57.903 [DEBUG] [ding.omnilink.handler.AudioSourceHandler] - Polling for event log messages.
2019-03-07 16:00:58.196 [DEBUG] [ding.omnilink.handler.AudioSourceHandler] - Polling for event log messages.
2019-03-07 16:00:58.227 [DEBUG] [ding.omnilink.handler.AudioSourceHandler] - Polling for event log messages.
2019-03-07 16:00:58.955 [DEBUG] [ding.omnilink.handler.AudioSourceHandler] - Polling for event log messages.
2019-03-07 16:00:59.228 [DEBUG] [ding.omnilink.handler.AudioSourceHandler] - Polling for event log messages.
2019-03-07 16:00:59.306 [DEBUG] [ding.omnilink.handler.AudioSourceHandler] - Polling for event log messages.
2019-03-07 16:01:00.040 [DEBUG] [ding.omnilink.handler.AudioSourceHandler] - Polling for event log messages.
2019-03-07 16:01:00.305 [DEBUG] [ding.omnilink.handler.AudioSourceHandler] - Polling for event log messages.
2019-03-07 16:01:00.340 [DEBUG] [ding.omnilink.handler.AudioSourceHandler] - Polling for event log messages.
2019-03-07 16:01:01.097 [DEBUG] [ding.omnilink.handler.AudioSourceHandler] - Polling for event log messages.
2019-03-07 16:01:01.339 [DEBUG] [ding.omnilink.handler.AudioSourceHandler] - Polling for event log messages.
2019-03-07 16:01:01.415 [DEBUG] [ding.omnilink.handler.AudioSourceHandler] - Polling for event log messages.
2019-03-07 16:01:02.202 [DEBUG] [ding.omnilink.handler.AudioSourceHandler] - Polling for event log messages.
2019-03-07 16:01:02.373 [DEBUG] [ding.omnilink.handler.AudioSourceHandler] - Polling for event log messages.
2019-03-07 16:01:02.476 [DEBUG] [ding.omnilink.handler.AudioSourceHandler] - Polling for event log messages.
2019-03-07 16:01:03.175 [DEBUG] [.rest.sitemap.SitemapSubscriptionService] - Created new subscription with id 7c326e9c-39c3-487b-9e0c-f4b96ba2818a (2 active subscriptions for a max of 50)
2019-03-07 16:01:03.177 [DEBUG] [io.rest.sitemap.internal.SitemapResource] - Client from IP 192.168.1.40 requested new subscription => got id 7c326e9c-39c3-487b-9e0c-f4b96ba2818a.
2019-03-07 16:01:03.184 [DEBUG] [.ui.basic.internal.servlet.WebAppServlet] - Servlet request received!
2019-03-07 16:01:03.184 [DEBUG] [.ui.basic.internal.servlet.WebAppServlet] - reading sitemap demo
2019-03-07 16:01:03.185 [DEBUG] [.ui.basic.internal.servlet.WebAppServlet] - Basic UI requested a non-existing event subscription id (0b8a4832-b88f-49d3-8260-5b1cbe44e025)
2019-03-07 16:01:03.217 [DEBUG] [ome.ui.icon.AbstractResourceIconProvider] - Use icon calendar.png as calendar-2019-03-07t16:00:54.048-0600.png is not found
2019-03-07 16:01:03.220 [DEBUG] [.rest.sitemap.SitemapSubscriptionService] - Subscription 7c326e9c-39c3-487b-9e0c-f4b96ba2818a changed to page demo of sitemap demo (2 active subscriptions}
2019-03-07 16:01:03.219 [DEBUG] [ome.ui.icon.AbstractResourceIconProvider] - Use icon time.png as time-2019-03-07t16:00:54.048-0600.png is not found
2019-03-07 16:01:03.222 [DEBUG] [io.rest.sitemap.internal.SitemapResource] - Client from IP 192.168.1.40 requested sitemap event stream for subscription 7c326e9c-39c3-487b-9e0c-f4b96ba2818a.
2019-03-07 16:01:03.235 [DEBUG] [ding.omnilink.handler.AudioSourceHandler] - Polling for event log messages.
2019-03-07 16:01:03.433 [DEBUG] [ding.omnilink.handler.AudioSourceHandler] - Polling for event log messages.
2019-03-07 16:01:03.561 [DEBUG] [ding.omnilink.handler.AudioSourceHandler] - Polling for event log messages.
2019-03-07 16:01:04.307 [DEBUG] [ding.omnilink.handler.AudioSourceHandler] - Polling for event log messages.
2019-03-07 16:01:04.472 [DEBUG] [ding.omnilink.handler.AudioSourceHandler] - Polling for event log messages.

Hi @BirdingPix

I have also recognized that basicUI reports more offline since the update to OH2.4, but I have no idea yet why it’s happening that way.

But I think your log excerpt could be reduced to this. I’m not sure if the rest is relevant to dig deeper.
I need to have a look into my logs as well.

Cheers
Stefan

Users having this problem every minute is generally due to a setup problem leading to a try to install binding(s) every minute. Look at the names of bindings in your addons cfg file.

1 Like

Look also into the system-written file Addons.config, in my case the obosele mqtt1 was still in there causing such effect. Stopping openhab and deleting this file (only the addons.config NOT .cfg) did resolve it.

Look also into the system-written file Addons.config, in my case the obosele mqtt1 was still in there causing such effect. Stopping openhab and deleting this file (only the addons.config NOT .cfg) did resolve

I removed the file, re-started OH2… it was re-created as shown above… but this had no affect on my problem. Thanks but I’m still needing answer… 25%20AM

The OFFLINE window always appears just before and during the CurrentDate and CurrentTime item gets updated (every minute)

I had read somewhere in here that this problem was related to having the astro binding installed. So I removed all items related to that, removed the binding… and same problem still.

Hmmm. Notice that the ‘omnilink’ binding is being installed every minute per this LOG capture:

2019-03-07 12:36:52.068 [DEBUG] [hab.core.karaf.internal.FeatureInstaller] - Running scheduled sync job
2019-03-07 12:36:52.399 [DEBUG] [hab.core.karaf.internal.FeatureInstaller] - Installed ‘openhab-binding-omnilink’

What is this ‘scheduled sync job’ about trying to install the binding… which of course is already installed… ?

See this topic if it helps: Basic UI - continually disconnects 'waiting for server to become available'

1 Like

Update. Problem of “Offline: Waiting for Connection to become available” in BasicUI is SOLVED. Thanks for your suggestions…

I created an entirely new VM install, slowly created a sitemap, and added bindings and things one by one.

Added NTP, and ASTRO… all worked fine and no Offline pop-ups.

When it came time to add the Levition OMNILINK binding… I first had to add the .jar file into the ‘/usr/share/openhab2/addons’ folder manually… since this binding is NOT listed in PaperUI.

And before I added that binding name into the ‘/etc/openhab2/services/addons.cfg’ file … I noticed the binding was already active and running!?

So I SHOULD NOT add that binding name into the addons.cfg file… which I expected I needed to do since all the other bindings are listed there.

When I went back to my older OH2 machine, and removed that name from the addons.cfg file… it all started working properly and no more Offline pop-up!

It was not clear at all that if a manual .jar file is added… DO NOT include that binding name in the addons.cfg file.

Thanks again everyone for your help.
Dave