Myopenhab authentication

Hi
I reinstalled openhab now, however my secret and uiud file are gone, how can i generate new ones?

f you loose this files during openHAB upgrade or by another occasion openHAB will automatically generate new ones and you will have to reconfigure UUID and secret in my.openHAB under My account section.

Somehow it did not automatically made new ones. Any idea how i can generate those files?

Thanks for the help so far

In my case they were created as soon as I put the myopenhab jar into the addon folder and openhab noticed that …

As soon as you have my.openhab bundle in your addons dir they should be generated automatically.

Hi everybody, i think i have similar issues…i don’t care opening a new thread but maybe it’s not worthy; here is my extract from openhab.log, i don’t understand the “Socket” errors…

2015-10-23 02:00:01.466 [ERROR] [.myopenhab.internal.MyOHClient] - Socket.IO error: com.github.nkzawa.engineio.client.EngineIOException: xhr poll error
2015-10-23 02:00:01.472 [INFO ] [.myopenhab.internal.MyOHClient] - Disconnected from my.openHAB service (UUID = hidden, base URL = http://localhost:8080)
2015-10-23 02:00:12.428 [ERROR] [.myopenhab.internal.MyOHClient] - Socket.IO error: not authorized
2015-10-23 02:46:08.109 [ERROR] [.myopenhab.internal.MyOHClient] - Socket.IO error: com.github.nkzawa.engineio.client.EngineIOException: xhr poll error
2015-10-23 02:46:08.119 [INFO ] [.myopenhab.internal.MyOHClient] - Disconnected from my.openHAB service (UUID = hidden, base URL = http://localhost:8080)
2015-10-23 02:46:23.497 [ERROR] [.myopenhab.internal.MyOHClient] - Socket.IO error: not authorized
2015-10-23 08:49:04.218 [ERROR] [.myopenhab.internal.MyOHClient] - Socket.IO error: com.github.nkzawa.engineio.client.EngineIOException: xhr post error
2015-10-23 08:49:04.225 [INFO ] [.myopenhab.internal.MyOHClient] - Disconnected from my.openHAB service (UUID = hidden, base URL = http://localhost:8080)
2015-10-23 08:49:08.943 [ERROR] [.myopenhab.internal.MyOHClient] - Socket.IO error: not authorized
2015-10-23 08:50:31.826 [INFO ] [.myopenhab.internal.MyOHClient] - Disconnected from my.openHAB service (UUID = hidden, base URL = http://localhost:8080)
2015-10-23 08:50:35.520 [ERROR] [.myopenhab.internal.MyOHClient] - Socket.IO error: not authorized
2015-10-23 09:55:21.344 [INFO ] [.myopenhab.internal.MyOHClient] - Disconnected from my.openHAB service (UUID = hidden, base URL = http://localhost:8080)
2015-10-23 09:55:28.625 [ERROR] [.myopenhab.internal.MyOHClient] - Socket.IO error: not authorized
2015-10-23 12:47:18.853 [INFO ] [.myopenhab.internal.MyOHClient] - Disconnected from my.openHAB service (UUID = hidden, base URL = http://localhost:8080)
2015-10-23 12:48:50.228 [INFO ] [.myopenhab.internal.MyOHClient] - Disconnected from my.openHAB service (UUID = hidden, base URL = http://localhost:8080)
2015-10-23 12:53:01.592 [ERROR] [.myopenhab.internal.MyOHClient] - Socket.IO error: not authorized

This is because i have the binding installed (with my.openhab) even though i don’t use it ?
(maybe in the future)

Thank you very much!
Maxi

As soon as you install my.openhab bundle it generates UUID and secret and starts trying to connect to my.openHAB. I assume ‘don’t use it’ means you didn’t create my.openhab account with those uuid and secret, so your bundle can’t authenticate and thus you get those messages in your log.

Victor, thank you very much for your answer. Yes, i didn’t create the account yet.

it came after a few reboots:)

now i can even see it online:

14:07:32.542 [DEBUG] [.myopenhab.internal.MyOHClient:164 ] - Socket.IO connected
14:07:32.545 [INFO ] [.myopenhab.internal.MyOHClient:205 ] - Connected to my.openHAB service (UUID = 110b3b28-ba70-4888-92fe-f1xxxxxx918, base URL = http://localhost:8080)

thanks, hope it keeps working.

Seems like reinstalling openhab did the trick.

Myopenhab disconnects all the time. I think this is because of unstable internet. However it seems that it does not connect itself back online when internet is recovered. Is that true ? Do I need to restart Openhab if my internet has been down ? Here is my eventlog:

  Today at 5:00 AM	openHAB is online
Today at 1:27 AM	openHAB is offline
Yesterday at 10:01 PM	openHAB is online
Last Tuesday at 9:16 PM	openHAB is offline
Last Tuesday at 3:28 PM	openHAB is online
Last Tuesday at 3:28 PM	openHAB is online
Last Tuesday at 3:24 PM	openHAB is offline

Nope. It should reconnect automatically as soon as connection to my.openHAB is available again. But your log messages could be caused by minor instability issues we had last week.

Thanks, maybe that was the reason why it went ofline several times then:
However it still goes down once in a while but not so often anymore:

Yesterday at 5:00 PM	openhab	online
Yesterday at 3:11 PM	openhab	offline
Yesterday at 5:00 AM	openhab	online
Yesterday at 12:37 AM	openhab	offline

Is my.openhab down? Or did i get locked out?

Any help would make my amazon echo work again…

The service is up and running: 11:45:28 AM GMT +00:00

Great, maybe we could add a status on https://my.openhab.org/ saying if the service is up running or not in the future, were a few post on the forum today about it…

1 Like

Hi @skatun
I logged in to my.openhab.org successfully and
openhab is also running and events.log I’m continuously getting data.
But on link : https://my.openhab.org/events nothing is coming, the page is blank.

Any configuration issue …?
Please help me as soon as possible

Thanks
shrikant