Openhab cloud regularly offline and it use to be stable, i changed nothing Why?

Since some weeks i’m experiencing regular problems with openhabcloud, i only use it for Alexa, wich means Alexa is also not working.
When the problem occurs, Openhab is up en running en no problems to report.

When i login into myopenhab i see this message.
"
Your openHAB is not online. Please check if your installation is running or recheck the openHAB settings in your account.
"

Runing openhab openHAB 2.4.0-1 (Release Build) on Rpi 3B+
Linux openHABianPi 4.14.70-v7+ #1144 SMP Tue Sep 18 17:34:46 BST 2018 armv7l

Can anyone help me?

Thanks

Do you see any errors in openhab.log?

I just looked and saw this when it goes offline:

2018-12-31 16:07:17.117 [INFO ] [io.openhabcloud.internal.CloudClient] - Disconnected from the openHAB Cloud service (UUID = xx, base URL = http://localhost:8080)
2018-12-31 16:08:00.434 [ERROR] [io.openhabcloud.internal.CloudClient] - Socket.IO error: {}
io.socket.engineio.client.EngineIOException: xhr poll error
at io.socket.engineio.client.Transport.onError(Transport.java:71) [210:org.openhab.io.openhabcloud:2.4.0]
at io.socket.engineio.client.transports.PollingXHR.access$100(PollingXHR.java:19) [210:org.openhab.io.openhabcloud:2.4.0]
at io.socket.engineio.client.transports.PollingXHR$6$1.run(PollingXHR.java:124) [210:org.openhab.io.openhabcloud:2.4.0]
at io.socket.thread.EventThread$2.run(EventThread.java:80) [210:org.openhab.io.openhabcloud:2.4.0]
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) [?:?]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) [?:?]
at java.lang.Thread.run(Thread.java:748) [?:?]
Caused by: java.io.IOException: 400
at io.socket.engineio.client.transports.PollingXHR$Request$1.run(PollingXHR.java:218) ~[?:?]
… 1 more
2018-12-31 16:08:00.485 [INFO ] [io.openhabcloud.internal.CloudClient] - Disconnected from the openHAB Cloud service (UUID = xx, base URL = http://localhost:8080)

and this befire it’s back online:

2019-01-02 11:11:55.994 [ERROR] [io.openhabcloud.internal.CloudClient] - Socket.IO error: {}
io.socket.engineio.client.EngineIOException: websocket error
at io.socket.engineio.client.Transport.onError(Transport.java:71) [210:org.openhab.io.openhabcloud:2.4.0]
at io.socket.engineio.client.transports.WebSocket.access$500(WebSocket.java:28) [210:org.openhab.io.openhabcloud:2.4.0]
at io.socket.engineio.client.transports.WebSocket$2$5.run(WebSocket.java:150) [210:org.openhab.io.openhabcloud:2.4.0]
at io.socket.thread.EventThread$2.run(EventThread.java:80) [210:org.openhab.io.openhabcloud:2.4.0]
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) [?:?]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) [?:?]
at java.lang.Thread.run(Thread.java:748) [?:?]
Caused by: java.io.EOFException
at okio.RealBufferedSource.require(RealBufferedSource.java:59) ~[?:?]
at okio.RealBufferedSource.readByte(RealBufferedSource.java:72) ~[?:?]
at okhttp3.internal.ws.WebSocketReader.readHeader(WebSocketReader.java:115) ~[?:?]
at okhttp3.internal.ws.WebSocketReader.processNextFrame(WebSocketReader.java:104) ~[?:?]
at okhttp3.internal.ws.RealWebSocket.readMessage(RealWebSocket.java:97) ~[?:?]
at okhttp3.ws.WebSocketCall.createWebSocket(WebSocketCall.java:152) ~[?:?]
at okhttp3.ws.WebSocketCall.access$000(WebSocketCall.java:41) ~[?:?]
at okhttp3.ws.WebSocketCall$1.onResponse(WebSocketCall.java:97) ~[?:?]
at okhttp3.RealCall$AsyncCall.execute(RealCall.java:126) ~[?:?]
at okhttp3.internal.NamedRunnable.run(NamedRunnable.java:32) ~[?:?]
… 3 more
2019-01-02 11:11:56.157 [INFO ] [io.openhabcloud.internal.CloudClient] - Disconnected from the openHAB Cloud service (UUID = xx, base URL = http://localhost:8080)
2019-01-02 11:12:11.104 [INFO ] [io.openhabcloud.internal.CloudClient] - Connected to the openHAB Cloud service (UUID = xx, base URL = http://localhost:8080)

Any idea?
Since then it is still online.
Thanks

The logout for 2019-01-02 might correlate with a Service outage of myopenhab (see Status page).
If it is remaining online since then I wouldn’t bother.

If you have more dropouts, you need to give some more Information. What bindings/transformations etc do you have installed? What are the Contents of
/etc/openhab2/services/addons.cfg
and
/var/lib/openhab2/config/org/openhab/addons.config

Is your System running stable/responsive or do observe problems accessing the openHAB GUIs?

Hi @opus

I as well strange log messages…

2019-01-05 19:34:06.783 [ERROR] [io.openhabcloud.internal.CloudClient] - Socket.IO error: {}
io.socket.engineio.client.EngineIOException: xhr poll error
	at io.socket.engineio.client.Transport.onError(Transport.java:71) [226:org.openhab.io.openhabcloud:2.4.0]
	at io.socket.engineio.client.transports.PollingXHR.access$100(PollingXHR.java:19) [226:org.openhab.io.openhabcloud:2.4.0]
	at io.socket.engineio.client.transports.PollingXHR$6$1.run(PollingXHR.java:124) [226:org.openhab.io.openhabcloud:2.4.0]
	at io.socket.thread.EventThread$2.run(EventThread.java:80) [226:org.openhab.io.openhabcloud:2.4.0]
	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) [?:?]
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) [?:?]
	at java.lang.Thread.run(Thread.java:748) [?:?]
Caused by: java.io.IOException: 502
	at io.socket.engineio.client.transports.PollingXHR$Request$1.run(PollingXHR.java:218) ~[?:?]
	... 1 more
2019-01-05 19:34:06.801 [INFO ] [io.openhabcloud.internal.CloudClient] - Disconnected from the openHAB Cloud service (UUID = XXX, base URL = http://localhost:8080)

Later

2019-01-05 19:39:04.587 [WARN ] [okhttp3.OkHttpClient                ] - A connection to https://myopenhab.org/ was leaked. Did you forget to close a response body?

Any hints or ideas?

/etc/openhab2/services/addons.cfg does not exist in my case
/var/lib/openhab2/config/org/openhab/addons.config shows:

binding="yahooweather,astro,fritzboxtr0641,exec,mqtt1,http1,systeminfo,homematic,miio,samsungtv"
misc="market,restdocs,openhabcloud"
package="standard"
persistence="rrd4j"
service.pid="org.openhab.addons"
transformation="map,regex"
ui="basic,paper,habpanel,homebuilder,habmin"

I have furthermore connections issues while reaching accessing openHab Panel on my wall tablet and by APP. I am running openHAB 2.4.0-1 (Release Build).

Thank you.

I also see this errors and i get also error when it tries http-pos-commands with a 30 sec timeout to myopenhab at this moment.
Internet works fine.

2019-01-05 19:46:40.196 [INFO ] [io.openhabcloud.internal.CloudClient] - Disconnected from the openHAB Cloud service (UUID = xxx, base URL = http://localhost:8080)
2019-01-05 19:46:43.318 [INFO ] [io.openhabcloud.internal.CloudClient] - Connected to the openHAB Cloud service (UUID = xxx, base URL = http://localhost:8080)
2019-01-05 19:46:55.016 [ERROR] [.smarthome.model.script.actions.HTTP] - Fatal transport error: java.util.concurrent.TimeoutException: Total timeout 30000 ms elapsed
2019-01-05 19:47:08.370 [ERROR] [io.openhabcloud.internal.CloudClient] - Socket.IO error: {}
io.socket.engineio.client.EngineIOException: xhr post error
at io.socket.engineio.client.Transport.onError(Transport.java:71) [224:org.openhab.io.openhabcloud:2.4.0]
at io.socket.engineio.client.transports.PollingXHR.access$000(PollingXHR.java:19) [224:org.openhab.io.openhabcloud:2.4.0]
at io.socket.engineio.client.transports.PollingXHR$4$1.run(PollingXHR.java:88) [224:org.openhab.io.openhabcloud:2.4.0]
at io.socket.thread.EventThread$2.run(EventThread.java:80) [224:org.openhab.io.openhabcloud:2.4.0]
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) [?:?]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) [?:?]
at java.lang.Thread.run(Thread.java:748) [?:?]
Caused by: java.io.IOException: 502
at io.socket.engineio.client.transports.PollingXHR$Request$1.run(PollingXHR.java:218) ~[?:?]
… 1 more
2019-01-05 19:47:08.373 [INFO ] [io.openhabcloud.internal.CloudClient] - Disconnected from the openHAB Cloud service (UUID = xxx, base URL = http://localhost:8080)
2019-01-05 19:47:35.025 [ERROR] [.smarthome.model.script.actions.HTTP] - Fatal transport error: java.util.concurrent.TimeoutException: Total timeout 30000 ms elapsed
2019-01-05 19:48:14.928 [ERROR] [io.openhabcloud.internal.CloudClient] - Socket.IO error: {}
io.socket.engineio.client.EngineIOException: xhr poll error
at io.socket.engineio.client.Transport.onError(Transport.java:71) [224:org.openhab.io.openhabcloud:2.4.0]
at io.socket.engineio.client.transports.PollingXHR.access$100(PollingXHR.java:19) [224:org.openhab.io.openhabcloud:2.4.0]
at io.socket.engineio.client.transports.PollingXHR$6$1.run(PollingXHR.java:124) [224:org.openhab.io.openhabcloud:2.4.0]
at io.socket.thread.EventThread$2.run(EventThread.java:80) [224:org.openhab.io.openhabcloud:2.4.0]
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) [?:?]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) [?:?]
at java.lang.Thread.run(Thread.java:748) [?:?]
Caused by: java.io.IOException: 502
at io.socket.engineio.client.transports.PollingXHR$Request$1.run(PollingXHR.java:218) ~[?:?]
… 1 more
2019-01-05 19:48:14.932 [INFO ] [io.openhabcloud.internal.CloudClient] - Disconnected from the openHAB Cloud service (UUID = xxx, base URL = http://localhost:8080)
2019-01-05 19:49:35.145 [INFO ] [io.openhabcloud.internal.CloudClient] - Connected to the openHAB Cloud service (UUID = xxx, base URL = http://localhost:8080)
2019-01-05 19:50:38.900 [WARN ] [okhttp3.OkHttpClient ] - A connection to https://myopenhab.org/ was leaked. Did you forget to close a response body?

The first one I have on my system during the same timeframe happening also.
The second ( leaking…) is coming from time to time ( I think it is coming from a connectio instance that isn’t closed correctly ).
On your connection problems to your UIs, are all entries in the addon.config valid for you? ( mqtt1 migth be a wrong)

MQTT should be fine, I have it in place for 433mhz devices to sniff the signal there… But an other crazy thing is that my items in myopenhab are not updated. This should happens automatic or?

If you are referring to the items tab on myopenhab.org, you will only see updates if you set the items to be exposed to myopenhab.org on PaperUI.

Did that, but no update in the cloud

changed these two values:

but no change in the cloud:

It has been stable for a few weeks now, and this night 2:53 am the cloud went offline again, and still is.
I use the openwebnet binding which is working in paper UI so that is not the problem

here is my addons.cfg
# The installation package of this openHAB instance

Note: This is only regarded at the VERY FIRST START of openHAB

Note: If you want to specify your add-ons yourself through entries below, set the package to “minimal”

as otherwise your definition might be in conflict with what the installation package defines.

Optional. If not set, the dashboard (https://:8080/) will ask you to choose a package.

Valid options:

- minimal : Installation only with dashboard, but no UIs or other add-ons. Use this for custom setups.

- simple : Setup for using openHAB purely through UIs - you need to expect MANY constraints in functionality!

- standard : Default setup for normal users, best for textual setup

- expert : Setup for expert users, especially for people migrating from openHAB 1.x

- demo : A demo setup which includes UIs, a few bindings, config files etc.

See https://www.openhab.org/docs/configuration/packages.html for a detailed explanation of these packages.

#package = minimal

Access Remote Add-on Repository

Defines whether the remote openHAB add-on repository should be used for browsing and installing add-ons.

This not only makes latest snapshots of add-ons available, it is also required for the installation of

any legacy 1.x add-on. (default is true)

#remote = true

Include legacy 1.x bindings. If set to true, it also allows the installation of 1.x bindings for which there is

already a 2.x version available (requires remote repo access, see above). (default is false)

#legacy = true

A comma-separated list of bindings to install (e.g. “binding = sonos,knx,zwave”)

#binding =

A comma-separated list of UIs to install (e.g. “ui = basic,paper”)

#ui =

A comma-separated list of persistence services to install (e.g. “persistence = rrd4j,jpa”)

#persistence =

A comma-separated list of actions to install (e.g. “action = mail,pushover”)

#action =

A comma-separated list of transformation services to install (e.g. “transformation = map,jsonpath”)

#transformation =

A comma-separated list of voice services to install (e.g. “voice = marytts,freetts”)

#voice =

A comma-separated list of miscellaneous services to install (e.g. “misc = myopenhab”)

#misc =

And here the addons.config
binding=",amazonechocontrol,sonos,logreader,weather1,yahooweather"
legacy=B"false"
misc=“openhabcloud”
package=“standard”
remote=B"true"
service.pid=“org.openhab.addons”
ui=“basic,paper,habpanel,homebuilder”

Any idea?

Here is more log info, it seems i get disconected and reconected sometimes.

2019-01-25 18:39:25.334 [INFO ] [io.openhabcloud.internal.CloudClient] - Disconnected from the openHAB Cloud service (UUID = xxx, base URL = http://localhost:8080)
2019-01-25 18:40:35.130 [INFO ] [io.openhabcloud.internal.CloudClient] - Connected to the openHAB Cloud service (UUID = xxx, base URL = http://localhost:8080)
2019-01-25 18:40:35.230 [ERROR] [io.openhabcloud.internal.CloudClient] - Socket.IO error: {}
io.socket.engineio.client.EngineIOException: xhr poll error
at io.socket.engineio.client.Transport.onError(Transport.java:71) [210:org.openhab.io.openhabcloud:2.4.0]
at io.socket.engineio.client.transports.PollingXHR.access$100(PollingXHR.java:19) [210:org.openhab.io.openhabcloud:2.4.0]
at io.socket.engineio.client.transports.PollingXHR$6$1.run(PollingXHR.java:124) [210:org.openhab.io.openhabcloud:2.4.0]
at io.socket.thread.EventThread$2.run(EventThread.java:80) [210:org.openhab.io.openhabcloud:2.4.0]
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) [?:?]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) [?:?]
at java.lang.Thread.run(Thread.java:748) [?:?]
Caused by: java.io.IOException: 400
at io.socket.engineio.client.transports.PollingXHR$Request$1.run(PollingXHR.java:218) ~[?:?]
… 1 more
2019-01-25 18:40:35.271 [INFO ] [io.openhabcloud.internal.CloudClient] - Disconnected from the openHAB Cloud service (UUID = xxx, base URL = http://localhost:8080)
2019-01-25 18:41:02.203 [INFO ] [io.openhabcloud.internal.CloudClient] - Connected to the openHAB Cloud service (UUID = xxx, base URL = http://localhost:8080)
2019-01-25 18:42:02.322 [ERROR] [io.openhabcloud.internal.CloudClient] - Socket.IO error: {}
io.socket.engineio.client.EngineIOException: xhr poll error
at io.socket.engineio.client.Transport.onError(Transport.java:71) [210:org.openhab.io.openhabcloud:2.4.0]
at io.socket.engineio.client.transports.PollingXHR.access$100(PollingXHR.java:19) [210:org.openhab.io.openhabcloud:2.4.0]
at io.socket.engineio.client.transports.PollingXHR$6$1.run(PollingXHR.java:124) [210:org.openhab.io.openhabcloud:2.4.0]
at io.socket.thread.EventThread$2.run(EventThread.java:80) [210:org.openhab.io.openhabcloud:2.4.0]
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) [?:?]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) [?:?]
at java.lang.Thread.run(Thread.java:748) [?:?]
Caused by: java.io.IOException: 502
at io.socket.engineio.client.transports.PollingXHR$Request$1.run(PollingXHR.java:218) ~[?:?]
… 1 more
2019-01-25 18:42:02.357 [INFO ] [io.openhabcloud.internal.CloudClient] - Disconnected from the openHAB Cloud service (UUID = xxx, base URL = http://localhost:8080)
2019-01-25 18:42:04.191 [INFO ] [io.openhabcloud.internal.CloudClient] - Connected to the openHAB Cloud service (UUID = xxx, base URL = http://localhost:8080)
2019-01-25 18:46:02.102 [WARN ] [okhttp3.OkHttpClient ] - A connection to https://myopenhab.org/ was leaked. Did you forget to close a response body?

and another one

2019-01-25 21:33:44.738 [ERROR] [io.openhabcloud.internal.CloudClient] - Socket.IO error: {}
io.socket.engineio.client.EngineIOException: websocket error
at io.socket.engineio.client.Transport.onError(Transport.java:71) [210:org.openhab.io.openhabcloud:2.4.0]
at io.socket.engineio.client.transports.WebSocket.access$500(WebSocket.java:28) [210:org.openhab.io.openhabcloud:2.4.0]
at io.socket.engineio.client.transports.WebSocket$2$5.run(WebSocket.java:150) [210:org.openhab.io.openhabcloud:2.4.0]
at io.socket.thread.EventThread$2.run(EventThread.java:80) [210:org.openhab.io.openhabcloud:2.4.0]
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) [?:?]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) [?:?]
at java.lang.Thread.run(Thread.java:748) [?:?]
Caused by: java.io.EOFException
at okio.RealBufferedSource.require(RealBufferedSource.java:59) ~[?:?]
at okio.RealBufferedSource.readByte(RealBufferedSource.java:72) ~[?:?]
at okhttp3.internal.ws.WebSocketReader.readHeader(WebSocketReader.java:115) ~[?:?]
at okhttp3.internal.ws.WebSocketReader.processNextFrame(WebSocketReader.java:104) ~[?:?]
at okhttp3.internal.ws.RealWebSocket.readMessage(RealWebSocket.java:97) ~[?:?]
at okhttp3.ws.WebSocketCall.createWebSocket(WebSocketCall.java:152) ~[?:?]
at okhttp3.ws.WebSocketCall.access$000(WebSocketCall.java:41) ~[?:?]
at okhttp3.ws.WebSocketCall$1.onResponse(WebSocketCall.java:97) ~[?:?]
at okhttp3.RealCall$AsyncCall.execute(RealCall.java:126) ~[?:?]
at okhttp3.internal.NamedRunnable.run(NamedRunnable.java:32) ~[?:?]
… 3 more
2019-01-25 21:33:44.833 [INFO ] [io.openhabcloud.internal.CloudClient] - Disconnected from the openHAB Cloud service (UUID = xxx, base URL = http://localhost:8080)
2019-01-25 21:34:05.004 [INFO ] [io.openhabcloud.internal.CloudClient] - Connected to the openHAB Cloud service (UUID = xxx, base URL = http://localhost:8080)
2019-01-25 22:30:23.588 [INFO ] [overy.BusGatewayDiscoveryParticipant] - ================================================

I just did a reboot and it is back online.
Am i the only one with this problem?

My problem with the cloud service is, that I do not get exceptions in the log. And I still see updates to items and the event log in myopenhab.org, but this is not working:

  • Google Assistant voice commands (“provider openHAB not reachable”)
  • connecting to my openHAB instance via myopenhab.org (“gateway timeout”)

I can fix both problems by just restarting the cloud service “restart org.openhab.io.openhabcloud”, it’s not necessary to restart openHAB.

If I could monitor this in a rule, I could do the restart automatically, but since the could service is still halfways working, I don’t know how.

I have had the same problem some minutes ago and solved it with restarting the cloud service.

We can monitor things, why not also the cloud service?

I’m running the latest stable 2.4. I’m having the same issue:

  • Logging in to the myopenhab.org shows Online status
  • connecting to my openHAB instance via myopenhab.org (“gateway timeout”)
  • IFTTT service cannot update items

Restarting the IO Cloud service resolves the problem.

It seems that last time it started having problems was on 20-Jun-2019 and on that day status page is reporting problems with Openhab Cloud Service server.

Maybe my Openhab’s IO Cloud service is not able to reconnect to the Cloud Service server after these problems.

Behavior confirmed. On 26.7. there was an problem with myopenHAB Cloud Service according to the openhab infrastructure status page. Same behavior on the openhab instance with symptoms above.

Restarting openhab IO Cloud service resolves problem.

Do we have bug report opened regarding this? If not will open one.