openHAB Cloud instance: not authorized

Hello I need some help. I had Openhab 2.4 until last month and I had no issues connecting to the openhabcloud. I have since upgraded my system to Openhab 4.2.1 and I have not been able to connect to the cloud. it keeps showing offline and my log says openhanded Cloud instance : not authorised. I have gone through the forums and tried most of the solutions but to no avail. I have tried uninstalling and reinstalling openHab cloud 3 times. Made sure my UUID and secret is correct each time. Lots of restarts as well including waiting for 24 hours. Would really appreciate some guidance.

Try stopping OH, removing the secret and UID file, starting OH again and have the add-on generate a new UID and secret. Register those with the cloud server. That should at least eliminate the possibility that there is some cruft left on the server side getting in the way.

Thank you Rich. I did try your suggestion.
stopped Openhab,
rm UUID and the secret,
started openhab and let the
add-on generate the UUID and secret again.
Updated the details new on myopenhab account.
Still no joy.

I even tried to delete my account in myopenhab and created a new account still the same. Is there any way to see my requests coming through on the myopenhab server to understand why its "not authorised ".

I think only an admin of the cloud server can see that and I’m not wone of those.

You can try to put the cloud connector add-on into debug or trace level logging and see it it spits out anything useful. Post the logs here (use code fences).

```
code goes here
```

Ok so I have turned on trace log and here is what it shows Socket.IO Packet: ERROR (4)

2024-09-06 22:00:23.824 [WARN ] [io.openhabcloud.internal.CloudClient] - Error connecting to the openHAB Cloud instance: try again in 5 seconds. Reconnecting after 22107 ms.

2024-09-06 22:00:23.827 [DEBUG] [io.openhabcloud.internal.CloudClient] - Socket.IO CLOSE: forced close

2024-09-06 22:00:45.938 [TRACE] [io.openhabcloud.internal.CloudClient] - Manager.EVENT_TRANSPORT

2024-09-06 22:00:45.940 [TRACE] [io.openhabcloud.internal.CloudClient] - Transport.EVENT_REQUEST_HEADERS

2024-09-06 22:00:45.942 [DEBUG] [io.openhabcloud.internal.CloudClient] - Socket.IO connecting

2024-09-06 22:00:47.603 [DEBUG] [io.openhabcloud.internal.CloudClient] - Socket.IO OPEN

2024-09-06 22:00:47.605 [TRACE] [io.openhabcloud.internal.CloudClient] - Socket.IO Packet: ERROR (4)

2024-09-06 22:00:47.606 [WARN ] [io.openhabcloud.internal.CloudClient] - Error connecting to the openHAB Cloud instance: not authorized. Reconnecting after 50348 ms.

2024-09-06 22:00:47.608 [DEBUG] [io.openhabcloud.internal.CloudClient] - Socket.IO CLOSE: forced close

2024-09-06 22:01:37.959 [TRACE] [io.openhabcloud.internal.CloudClient] - Manager.EVENT_TRANSPORT

2024-09-06 22:01:37.960 [TRACE] [io.openhabcloud.internal.CloudClient] - Transport.EVENT_REQUEST_HEADERS

2024-09-06 22:01:37.963 [DEBUG] [io.openhabcloud.internal.CloudClient] - Socket.IO connecting

2024-09-06 22:01:39.173 [DEBUG] [io.openhabcloud.internal.CloudClient] - Socket.IO OPEN

2024-09-06 22:01:39.176 [TRACE] [io.openhabcloud.internal.CloudClient] - Socket.IO Packet: ERROR (4)

2024-09-06 22:01:39.178 [WARN ] [io.openhabcloud.internal.CloudClient] - Error connecting to the openHAB Cloud instance: try again in 8 seconds. Reconnecting after 60000 ms.

2024-09-06 22:01:39.180 [DEBUG] [io.openhabcloud.internal.CloudClient] - Socket.IO CLOSE: forced close

Hi, so the server is responding back that you are not authorized, so there is a problem with your UUID and/or secret. Feel free to private message me and i can check on your account.

2 Likes

Thank you Dan. I have messaged you.