Myopenhab shows online and offline several times a day

Good Morning all,

I noticed over the past 3 days the cloud connection is not working. My Alexa commands are failing and i cannot access the hub from remote sporadically

I have not changed anything in several months.

Checked the secret and the UUID all match. When i check status on the cloud i show several connections and disconnections.

Running Openhab 3.3.0 on a windows laptop
Restarted laptop and the sporadic online off line activity continues.

Internally OH works just fine.
Logs show no issues.

This seems to be a general problem right now. There are several topics describing the same problem, that I have, btw, too. So far no hints or solutions.

1 Like

Currently my openHAB instance is offline.

And from here it looks like that is now for five days.

And this are the logs from the last days.

2022-10-25 08:49:42.745 [INFO ] [io.openhabcloud.internal.CloudClient] - Connected to the openHAB Cloud service (UUID = 59f29f8e-f3a6-4462-ae18-15af65f0971e, base URL = http://localhost:8080)
2022-10-25 14:08:47.557 [INFO ] [io.openhabcloud.internal.CloudClient] - Disconnected from the openHAB Cloud service (UUID = 59f29f8e-f3a6-4462-ae18-15af65f0971e, base URL = http://localhost:8080)
2022-10-25 14:10:00.077 [INFO ] [io.openhabcloud.internal.CloudClient] - Connected to the openHAB Cloud service (UUID = 59f29f8e-f3a6-4462-ae18-15af65f0971e, base URL = http://localhost:8080)
2022-10-25 14:10:10.087 [ERROR] [io.openhabcloud.internal.CloudClient] - Error during communication
2022-10-25 14:10:10.125 [INFO ] [io.openhabcloud.internal.CloudClient] - Disconnected from the openHAB Cloud service (UUID = 59f29f8e-f3a6-4462-ae18-15af65f0971e, base URL = http://localhost:8080)
2022-10-25 14:10:38.122 [INFO ] [io.openhabcloud.internal.CloudClient] - Connected to the openHAB Cloud service (UUID = 59f29f8e-f3a6-4462-ae18-15af65f0971e, base URL = http://localhost:8080)
2022-10-25 14:10:48.130 [ERROR] [io.openhabcloud.internal.CloudClient] - Error during communication
2022-10-25 14:10:48.137 [INFO ] [io.openhabcloud.internal.CloudClient] - Disconnected from the openHAB Cloud service (UUID = 59f29f8e-f3a6-4462-ae18-15af65f0971e, base URL = http://localhost:8080)
2022-10-25 14:10:50.186 [INFO ] [io.openhabcloud.internal.CloudClient] - Connected to the openHAB Cloud service (UUID = 59f29f8e-f3a6-4462-ae18-15af65f0971e, base URL = http://localhost:8080)
2022-10-25 14:15:49.633 [WARN ] [okhttp3.OkHttpClient                ] - A connection to https://myopenhab.org/ was leaked. Did you forget to close a response body? To see where this was allocated, set the OkHttpClient logger level to FINE: Logger.getLogger(OkHttpClient.class.getName()).setLevel(Level.FINE);
2022-10-25 21:17:54.669 [INFO ] [io.openhabcloud.internal.CloudClient] - Disconnected from the openHAB Cloud service (UUID = 59f29f8e-f3a6-4462-ae18-15af65f0971e, base URL = http://localhost:8080)
2022-10-25 21:19:21.970 [INFO ] [io.openhabcloud.internal.CloudClient] - Connected to the openHAB Cloud service (UUID = 59f29f8e-f3a6-4462-ae18-15af65f0971e, base URL = http://localhost:8080)

So last log message in the logs says, I’m connected, myhab.org says, I’m disconnected.

Same

2022-10-30 04:03:29.483 [INFO ] [io.openhabcloud.internal.CloudClient] - Disconnected from the openHAB Cloud service (UUID = b8eb51e4-d882-475d-9411-56faa5482c9c, base URL = http://localhost:8080)
2022-10-30 04:03:31.638 [INFO ] [io.openhabcloud.internal.CloudClient] - Connected to the openHAB Cloud service (UUID = b8eb51e4-d882-475d-9411-56faa5482c9c, base URL = http://localhost:8080)
2022-10-30 08:23:02.803 [INFO ] [io.openhabcloud.internal.CloudClient] - Disconnected from the openHAB Cloud service (UUID = b8eb51e4-d882-475d-9411-56faa5482c9c, base URL = http://localhost:8080)
2022-10-30 08:23:05.119 [INFO ] [io.openhabcloud.internal.CloudClient] - Connected to the openHAB Cloud service (UUID = b8eb51e4-d882-475d-9411-56faa5482c9c, base URL = http://localhost:8080)
2022-10-30 08:24:50.366 [INFO ] [io.openhabcloud.internal.CloudClient] - Disconnected from the openHAB Cloud service (UUID = b8eb51e4-d882-475d-9411-56faa5482c9c, base URL = http://localhost:8080)
2022-10-30 08:24:52.141 [INFO ] [io.openhabcloud.internal.CloudClient] - Connected to the openHAB Cloud service (UUID = b8eb51e4-d882-475d-9411-56faa5482c9c, base URL = http://localhost:8080)
2022-10-30 08:25:21.996 [INFO ] [io.openhabcloud.internal.CloudClient] - Disconnected from the openHAB Cloud service (UUID = b8eb51e4-d882-475d-9411-56faa5482c9c, base URL = http://localhost:8080)
2022-10-30 08:25:23.272 [INFO ] [io.openhabcloud.internal.CloudClient] - Connected to the openHAB Cloud service (UUID = b8eb51e4-d882-475d-9411-56faa5482c9c, base URL = http://localhost:8080)
2022-10-30 08:26:18.268 [INFO ] [io.openhabcloud.internal.CloudClient] - Disconnected from the openHAB Cloud service (UUID = b8eb51e4-d882-475d-9411-56faa5482c9c, base URL = http://localhost:8080)
2022-10-30 08:26:19.323 [INFO ] [io.openhabcloud.internal.CloudClient] - Connected to the openHAB Cloud service (UUID = b8eb51e4-d882-475d-9411-56faa5482c9c, base URL = http://localhost:8080)

Same here.

Same here. Any solutions? It is very unpredictable at the moment.

Same here since around 3 weeks now. The openhab is very often offline but changes it state during the week

Does it show connected in myopenhab.org?

There was maintenance few weeks ago that brought some fixes server side myopenHAB Maintenance Jan 29 @ 5pm GMT (DONE)

This is not a lot of info to go off of. What version of openhab do you have, are there any log files you can share, what do you do to get it back online, how long does it stay online, etc…

If you can PM me your UUID i can check our logs to see if there is anything there.

1 Like

Seems like I have the same issue - on and off quite a lot today
And that’s why Alexa is not working I think…

Also it shows online on myopenhab but that’s definitely not the case:

Seems like it tries to reconnect every 30 seconds without success…
If all instances would do this - maybe the cloud service does not come back to life under this “high load”?
@digitaldan

I don’t see any issues with the service or extra load and i can see a normal amount of healthy connections that are active, so i don’t think this is a wide spread issue. Again, would be help full to have info like your openhab version. Feel free to PM your UUID and i can see if there are any logs that may help.

Wrote you a PM :wink:

So it shows you had 2 connections with the same UUID, one was actively connected, the other failing to connect b/c there was already an active one. Another user this happened to discovered they had restored an openhab backup to another machine , hence two trying to connect. I also suspect that 3.3 and older versions of the binding had a thread leak where this could happen. Restarting the OS as you did would clear that issue. Glad to hear its working now.

1 Like

Had the same issue again today. Reboot solved the problem again.
I do not have a second machine running an my side that could result in conflicts.
Is it possible to update the cloud binding to 3.4 without doing a full upgrade of the system to 3.4?

It would probably work, although i have not tested it. I would suggest going to 3.4.2 as thats now the production stable build, but you could download the current addons kar file, rename it as a zip (kar is just a zip archive) and get the 3.4.2 cloud binding there.

https://github.com/openhab/openhab-distro/releases/download/3.4.2/openhab-addons-3.4.2.kar

That’s what I tried - but 3.4.0 and 3.4.2 jar for cloud connector seems not to be compatible with 3.3 because of a missing framework.
Upgraded now to 3.4.2 - fingers crossed that nothing is broken now :see_no_evil::see_no_evil::see_no_evil: