[SOLVED] Suddenly became offline from openhabcloud- "Error connecting to the openHAB Cloud instance: EngineIOException websocket error. Should reconnect automatically."

I have an openhab 4.11 installation connected with openhabcloud account. Since 3 days website says I’m Offline. Nothing changed in my configuration.
activated log says:

2024-03-09 12:44:54.306 [DEBUG] [io.openhabcloud.internal.CloudClient] - Socket.IO re-connect attempt error: SocketIOException Connection error
2024-03-09 12:45:54.307 [DEBUG] [io.openhabcloud.internal.CloudClient] - Socket.IO re-connecting (attempt 2308)
2024-03-09 12:45:54.411 [DEBUG] [io.openhabcloud.internal.CloudClient] - Error connecting to the openHAB Cloud instance: EngineIOException websocket error. Should reconnect automatically.

Does someone else have same issue?
PS: tried to reboot , restart openhab, clear cache… without success.

Hi, can you send me a PM with the email address and UUID you use for myopenHAB? I’ll take a look and see what i can find.

I basically have the same behavior since like ~3 days - Alexa tells me that the Hub is offline, when I go to myopenhab.org my system is marked as Offline.
I rebooted my host yesterday and no change. Today I switched the openHAB Cloud Connector to Debug log and got the same error as TolosBand reported:

2024-03-10 13:10:40.323 [INFO ] [io.openhabcloud.internal.CloudClient] - Shutting down openHAB Cloud service connection
2024-03-10 13:10:41.750 [DEBUG] [io.openhabcloud.internal.CloudClient] - Socket.IO re-connecting (attempt 1)
2024-03-10 13:10:41.830 [DEBUG] [io.openhabcloud.internal.CloudClient] - Error connecting to the openHAB Cloud instance: EngineIOException websocket error. Should reconnect automatically.
2024-03-10 13:10:41.832 [DEBUG] [io.openhabcloud.internal.CloudClient] - Socket.IO re-connect attempt error: SocketIOException Connection error

I am writing in this thread as it may be a more general issue and not just an individual one?

1 Like

Thanks for the report, i’ll take a look

FYI - I did turn on trace log for the cloud connector but it has not really any useful detailed information:

2024-03-13 21:37:37.967 [DEBUG] [o.openhabcloud.internal.CloudService] - bundle org.openhab.io.openhabcloud:4.1.1 (278)[org.openhab.io.openhabcloud.internal.CloudService(375)] : ConfigurableComponentHolder configuration updated for pid org.openhab.openhabcloud with change count 5
2024-03-13 21:37:37.968 [DEBUG] [o.openhabcloud.internal.CloudService] - bundle org.openhab.io.openhabcloud:4.1.1 (278)[org.openhab.io.openhabcloud.internal.CloudService(375)] : Querying state active
2024-03-13 21:37:37.969 [DEBUG] [o.openhabcloud.internal.CloudService] - bundle org.openhab.io.openhabcloud:4.1.1 (278)[org.openhab.io.openhabcloud.internal.CloudService(375)] : Querying state active
2024-03-13 21:37:37.969 [DEBUG] [o.openhabcloud.internal.CloudService] - bundle org.openhab.io.openhabcloud:4.1.1 (278)[org.openhab.io.openhabcloud.internal.CloudService(375)] : invoking modified: modified: parameters [org.apache.felix.scr.impl.helper.ReadOnlyDictionary]
2024-03-13 21:37:37.970 [DEBUG] [o.openhabcloud.internal.CloudService] - remoteAccessEnabled is not set, keeping value 'true'
2024-03-13 21:37:37.971 [DEBUG] [o.openhabcloud.internal.CloudService] - Using secret at '/var/lib/openhab/openhabcloud/secret' with content '<removed>'
2024-03-13 21:37:37.971 [DEBUG] [o.openhabcloud.internal.CloudService] - UUID = <removed>, secret = <removed>
2024-03-13 21:37:37.972 [INFO ] [io.openhabcloud.internal.CloudClient] - Shutting down openHAB Cloud service connection
2024-03-13 21:37:37.973 [DEBUG] [o.openhabcloud.internal.CloudService] - Using secret at '/var/lib/openhab/openhabcloud/secret' with content '<removed>'
2024-03-13 21:37:37.975 [DEBUG] [o.openhabcloud.internal.CloudService] - bundle org.openhab.io.openhabcloud:4.1.1 (278)[org.openhab.io.openhabcloud.internal.CloudService(375)] : invoked modified: modified
2024-03-13 21:37:37.975 [DEBUG] [o.openhabcloud.internal.CloudService] - bundle org.openhab.io.openhabcloud:4.1.1 (278)[org.openhab.io.openhabcloud.internal.CloudService(375)] : No change in target property for dependency $000: currently registered: true
2024-03-13 21:37:37.976 [DEBUG] [o.openhabcloud.internal.CloudService] - bundle org.openhab.io.openhabcloud:4.1.1 (278)[org.openhab.io.openhabcloud.internal.CloudService(375)] : No change in target property for dependency $001: currently registered: true
2024-03-13 21:37:37.977 [DEBUG] [o.openhabcloud.internal.CloudService] - bundle org.openhab.io.openhabcloud:4.1.1 (278)[org.openhab.io.openhabcloud.internal.CloudService(375)] : No change in target property for dependency $002: currently registered: true
2024-03-13 21:37:38.027 [DEBUG] [o.openhabcloud.internal.CloudService] - bundle org.openhab.io.openhabcloud:4.1.1 (278)[org.openhab.io.openhabcloud.internal.CloudService(375)] : No change in target property for dependency osgi.ds.satisfying.condition: currently registered: true
2024-03-13 21:37:38.027 [DEBUG] [o.openhabcloud.internal.CloudService] - bundle org.openhab.io.openhabcloud:4.1.1 (278)[org.openhab.io.openhabcloud.internal.CloudService(375)] : Querying state active
2024-03-13 21:37:38.029 [DEBUG] [ons.NotificationModuleHandlerFactory] - bundle org.openhab.io.openhabcloud:4.1.1 (278)[org.openhab.io.openhabcloud.internal.actions.NotificationModuleHandlerFactory(377)] : dm $000 tracking 4 SingleStatic modified {org.openhab.io.openhabcloud.internal.CloudService, org.openhab.core.events.EventSubscriber, org.openhab.core.model.script.engine.action.ActionService}={service.id=584, service.bundleid=278, service.scope=bundle, osgi.ds.satisfying.condition.target=(osgi.condition.id=true), service.config.label=openHAB Cloud, component.name=org.openhab.io.openhabcloud.internal.CloudService, component.id=375, service.config.factory=false, service.config.category=io, service.pid=[org.openhab.openhabcloud, org.openhab.openhabcloud], service.config.description.uri=io:openhabcloud} (enter)
2024-03-13 21:37:38.030 [DEBUG] [ons.NotificationModuleHandlerFactory] - bundle org.openhab.io.openhabcloud:4.1.1 (278)[org.openhab.io.openhabcloud.internal.actions.NotificationModuleHandlerFactory(377)] : dm $000 tracking 4 SingleStatic modified {org.openhab.io.openhabcloud.internal.CloudService, org.openhab.core.events.EventSubscriber, org.openhab.core.model.script.engine.action.ActionService}={service.id=584, service.bundleid=278, service.scope=bundle, osgi.ds.satisfying.condition.target=(osgi.condition.id=true), service.config.label=openHAB Cloud, component.name=org.openhab.io.openhabcloud.internal.CloudService, component.id=375, service.config.factory=false, service.config.category=io, service.pid=[org.openhab.openhabcloud, org.openhab.openhabcloud], service.config.description.uri=io:openhabcloud} (exit)
2024-03-13 21:37:38.031 [DEBUG] [o.openhabcloud.internal.CloudService] - bundle org.openhab.io.openhabcloud:4.1.1 (278)[org.openhab.io.openhabcloud.internal.CloudService(375)] : ImmediateComponentHolder Finished configuring the dependency managers for component for pid org.openhab.openhabcloud
2024-03-13 21:37:38.031 [DEBUG] [o.openhabcloud.internal.CloudService] - bundle org.openhab.io.openhabcloud:4.1.1 (278)[org.openhab.io.openhabcloud.internal.CloudService(375)] : ImmediateComponentHolder Will not enable component for pid org.openhab.openhabcloud: holder enabled state: true, metadata enabled: true
2024-03-13 21:37:38.062 [DEBUG] [io.openhabcloud.internal.CloudClient] - Error connecting to the openHAB Cloud instance: EngineIOException websocket error. Should reconnect automatically.
2024-03-13 21:37:41.520 [DEBUG] [io.openhabcloud.internal.CloudClient] - Socket.IO re-connecting (attempt 1)
2024-03-13 21:37:41.522 [TRACE] [io.openhabcloud.internal.CloudClient] - Manager.EVENT_TRANSPORT
2024-03-13 21:37:41.522 [TRACE] [io.openhabcloud.internal.CloudClient] - Transport.EVENT_REQUEST_HEADERS
2024-03-13 21:37:41.602 [DEBUG] [io.openhabcloud.internal.CloudClient] - Error connecting to the openHAB Cloud instance: EngineIOException websocket error. Should reconnect automatically.
2024-03-13 21:37:41.603 [DEBUG] [io.openhabcloud.internal.CloudClient] - Socket.IO re-connect attempt error: SocketIOException Connection error
2024-03-13 21:37:46.657 [DEBUG] [io.openhabcloud.internal.CloudClient] - Socket.IO re-connecting (attempt 2)
2024-03-13 21:37:46.658 [TRACE] [io.openhabcloud.internal.CloudClient] - Manager.EVENT_TRANSPORT
2024-03-13 21:37:46.659 [TRACE] [io.openhabcloud.internal.CloudClient] - Transport.EVENT_REQUEST_HEADERS
2024-03-13 21:37:46.739 [DEBUG] [io.openhabcloud.internal.CloudClient] - Error connecting to the openHAB Cloud instance: EngineIOException websocket error. Should reconnect automatically.
2024-03-13 21:37:46.741 [DEBUG] [io.openhabcloud.internal.CloudClient] - Socket.IO re-connect attempt error: SocketIOException Connection error

I am running openhab on Ubuntu 22.04.4 LTS - the system did not have any update at the time the “Offline” of the OpenHab Cloud happened.
However I did reboot update the system 3 days after, and had another reboot just today.
No change, still seeing the system being offline.
I checked my UUID and secret it is the same as the one I use to login on the website and both files have a file data of “February 11 2017
My German Internet Provider is O2 (Telefonica) (DSL connection).
I have no other idea at this time what to do or check.

I’m experiencing the same problems like Ronny. Since the 6th or 7th of March my system is Offline in the openHAB cloud. openHAB is also running on Ubuntu. I think I created my cloud account also in 2017, if this makes a difference.
Please let me know how I can help solving this problem.

1 Like

Does anyone have an idea what to do about the myopenhab.org / openhabcloud offline issue. My system is now offline since 9 days and I have no idea what to do to make it work again.
I did not yet create a new UUID & Secret as the websocket error seems to hint to something different then an authentication issue.
I am happy for any suggestion.

I now changed the UUID & secret, which did I was expecting not help to resolve the issue.
Does anyone know if you can
ping myopenhab.org
or is ping disabled on this address? From my host I can’t ping it

PING myopenhab.org (194.195.245.175) 56(84) bytes of data.
^C
--- myopenhab.org ping statistics ---
10 packets transmitted, 0 received, 100% packet loss, time 9193ms

I just don’t know now if this is expected or if this is something I need to worry about. Still the question would be, why all the sudden it stopped being reachable without any update on my host.

No ping for me too.
Already wrote this to admin @digitaldan he’s working on it.
Waiting for some other test for him if needed.

I used “ping”-tools like https://ping.eu/ping/ which also don’t work, so I expect this is not an issue on my host.
I uninstalled and re-installed the openhabcloud add-on, which did also not help similar to the new secret and UUID.
I am on a O2/Telefonica DSL internet connection behind a FritzBox - just wonder if the issue could be laying there somehow. I kind of need the cloud reachability and it would be good to know where to look at next.
It is strange that the issue seems to happen only to a few people, but for those it seemed to have started at the same timeframe … so it’s looks like an external cause to me.

:thinking: I’ve got a fritzbox too… tried with two different connections… in both I’ve got a fritzbox.
I’m in Italy, the first connection does not have a static ip the second does but with same result.
In any case fritzboxes did not received updates recently. I think something has definitely changed on the server side.

@digitaldan
Since the communication to myopenhab.org very likely is encrypted. Could it be a certificate is expired? Where could I find it, if existing, in my installation and how could I renew it or find out if it is expired?
I am just having some guesses as I really can’t find anything up to now.
(I cleared the cache, I reinstalled the openhabcloud connector, I restarted my FritzBox (DSL Router),the host itself was restarted a few times, I cleared the DNS cache of the host …)

Shouldn’t then all users be affected?

2 Likes

So if you can hit myopenhab.org in a browser, then you know its not an IP issue. Disabling ICMP is a pretty common firewall setting we use on the service, so pinging is not going to work.
And @Wolfgang_S is correct, if it was a cert, a lot of users would be having issues. We have 20k+ systems connected at any given time, so if this was a wide spread issue, i think we would be hearing a whole lot more shouting.

If someone can send me the public IP address that their system is coming from, i can check to see if maybe we have some logs in our load balancer.

Provided my current IP and a dyndns name.
Allowed number of open connections are usually limited, so if you say there are 20k systems connected. Could such a limit be reached and cause the trouble only for a few who had been unlucky to reconnect when the last connection was just consumed and now try till a new gap can be found and someone else get’s unlucky.
Just thinking of options.
Thanks for the investigation done on your end.

I have same problem last two weeks. i have no coonection with same log.

1 Like

No this this not a connection limit issue.

@vitj -
What version of openHab are you running.
What is your underlying OS?
I am still hoping we can correlate something that gives us a hint what’s hindering the cloud connector to get a connection.

I am using:
Ubuntu Server Linux version 22.04.4 LTS
openHAB 4.1.1 Release Build

Same Ubuntu Linux version as I have & sane openHab version.
Ubuntu 22.04.4 LTS
openHAB 4.1.1

(Still offline, now since 15 days).