Hello, I’m using openhab 3.1.0 on docker, and suddenly the connection to myopenhab stopped.
I saw in the logs:
2021-08-16 12:00:29.422 [ERROR] [io.openhabcloud.internal.CloudClient] - Error connecting to the openHAB Cloud instance
2021-08-16 12:00:29.424 [INFO ] [io.openhabcloud.internal.CloudClient] - Disconnected from the openHAB Cloud service (UUID = b12345678-c123-b123-a123-d12312312312, base URL = http://localhost:8080)
2021-08-16 12:00:30.483 [INFO ] [io.openhabcloud.internal.CloudClient] - Connected to the openHAB Cloud service (UUID = b12345678-c123-b123-a123-d12312312312, base URL = http://localhost:8080)
2021-08-16 12:10:30.899 [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);
When I tried to update the myopenhab address in order it will reconnect I got this error in the log:
2021-08-16 14:12:01.828 [INFO ] [io.openhabcloud.internal.CloudClient] - Shutting down openHAB Cloud service connection
2021-08-16 14:12:01.859 [INFO ] [io.openhabcloud.internal.CloudClient] - Disconnected from the openHAB Cloud service (UUID = b12345678-c123-b123-a123-d12312312312, base URL = http://localhost:8080)
2021-08-16 14:12:02.306 [ERROR] [io.openhabcloud.internal.CloudClient] - Error connecting to the openHAB Cloud instance
I tried restarting the server but still same problem.
any ideas what to do?
Do you have a private myopenhab service server? Or the official one? … Have you changed something in the configuration … Does the secret still fit? … Otherwise delete the connection and create a new one
First off, do not change anything in your configuration. If there were no changes on your end, the problem is not on your server.
It looks like myopenhab might be struggling at the moment, as happens from time to time. The first thing to check is https://status.openhab.org. However, sometimes the problems don’t show up there, as that page only shows if the servers are down. The second thing to do is look in the community to see if anyone else has reported a problem.
I see in my log that my server disconnected and reconnected about half an hour ago, but my connection seems fine now. If our provider is having issues, that might continue over the course of the day until they get it straightened out.
Your OH server should automatically reconnect, but if it doesn’t then the quick way to force a reconnection is to go into Main UI > Settings > openHAB Cloud and click the “Save” button without changing anything. That will restart the cloud connection.
Usually you can just leave it alone and it’ll sort itself out. If the problem persists, report back and we’ll escalate.
I re-entered the the UUID & Secret in the site and now its okay,
maybe the auto fill user/pass filled the data with my user and pass
Now I’m connected.
What really helped me is to change to log level of the package as mentioned here:
I think the auth problem should be more clarify in the logs (info, error…)
before I changed it I didn’t see the error log of not authorized
I’ve just got a problem: My OH3.1 connection stopped working. I had to force it to reconnect with a config modification + Save.
It may be due to a router restart a few hours before.
I’ve identified the issue thanks to Alexa, which was unable to connect to any of my devices.
My questions are:
- Is it possible to force a OH Cloud periodic reconnection?
- (better solution:) Can OH try to reconect itself periodically when connection is lost?