Myopenhab Cloud connector not going online

Hi Team,

to allow a usage with an Amazon Echo I wanted to activate the myopencloud connector.

I have followed instructions (installed and activated addon, registered on myopenhab.org with uuid /secret and set the settings in paperui accordingly). After updating settings in PaperUI i see the following entry in events.log

12-02 11:03:47.932 [INFO ] [io.openhabcloud.internal.CloudClient] - Shutting down openHAB Cloud service connection

and in openhab.log

2017-12-01 17:32:08.431 [DEBUG] [io.socket.client.Manager            ] - opening https://myopenhab.org:443/
2017-12-01 17:32:08.453 [DEBUG] [ngineio.client.transports.PollingXHR] - xhr open GET: https://myopenhab.org/socket.io/?EIO=3&transport=polling
2017-12-01 17:32:08.458 [DEBUG] [ngineio.client.transports.PollingXHR] - sending xhr with url https://myopenhab.org/socket.io/?EIO=3&transport=polling | data null

some background to my environment:
- I have Openhab 2.1.0 running on a Raspberry / installed via apt
- java version is up-to-date:

java -version
java version "1.8.0_151"  
Java(TM) SE Runtime Environment (build 1.8.0_151-b12)
Java HotSpot(TM) Client VM (build 25.151-b12, mixed mode)

- network connectivity is working

curl https://myopenhab.org 

<!DOCTYPE html>
<html>
<!--[if lt IE 7 ]><html class="ie ie6" lang="en"> <![endif]-->
<!--[if IE 7 ]><html class="ie ie7" lang="en"> <![endif]-->
<!--[if IE 8 ]><html class="ie ie8" lang="en"> <![endif]-->
<!--[if (gte IE 9)|!(IE)]><!-->
<html lang="en">
<!—<![endif]-->
…

Thanks for helping
Ata

I have set the loglevel for the cloudconnector to debug, but still do not see an error. In myopenhab ith says still offline…

:frowning:

16:37:51.594 [INFO ] [io.openhabcloud.internal.CloudClient] - Shutting down openHAB Cloud service connection
17:11:08.778 [DEBUG] [org.openhab.io.openhabcloud         ] - ServiceEvent UNREGISTERING - {org.eclipse.smarthome.core.events.EventSubscriber, org.eclipse.smarthome.model.script.engine.action.ActionService}={component.name=org.openhab.openhabcloud, expose=[gAll, EG_Aussenbeleuchtung, EG_EZ_Esstisch, EG_EZ_Wand, EG_Fenster, EG_Flur_Strahler, EG_KU_Arbeitsplatte, EG_KU_LED, EG_KU_LEDSpot, EG_Treppe_Strahler, EG_WZ_Sofa_Links, EG_KU_Strahler, EG_KU_Saeule_Steckdosen, EG_WZ_Haupt, EG_WZ_Led, EG_WZ_Sofa_Rechts, EG_WZ_Strahler, gEG_Lights, Sunset_Event, All, gEG_ambient, gEG_Powerplug, gEG_Main, gEG_Spots, gEG_XMAS, gXMAS], baseURL=https://myopenhab.org/, service.config.category=io, service.config.description.uri=io:openhabcloud, mode=remote, service.pid=org.openhab.openhabcloud, service.config.label=openHAB Cloud, component.id=217, service.id=348, service.bundleid=217, service.scope=bundle} - org.openhab.io.openhabcloud
17:11:08.894 [DEBUG] [o.openhabcloud.internal.CloudService] - openHAB Cloud connector deactivated
17:11:08.922 [INFO ] [io.openhabcloud.internal.CloudClient] - Shutting down openHAB Cloud service connection
17:11:09.027 [DEBUG] [org.openhab.io.openhabcloud         ] - ServiceEvent REGISTERED - {org.eclipse.smarthome.core.events.EventSubscriber, org.eclipse.smarthome.model.script.engine.action.ActionService}={component.name=org.openhab.openhabcloud, expose=[gAll, EG_Aussenbeleuchtung, EG_EZ_Esstisch, EG_EZ_Wand, EG_Fenster, EG_Flur_Strahler, EG_KU_Arbeitsplatte, EG_KU_LED, EG_KU_LEDSpot, EG_Treppe_Strahler, EG_WZ_Sofa_Links, EG_KU_Strahler, EG_KU_Saeule_Steckdosen, EG_WZ_Haupt, EG_WZ_Led, EG_WZ_Sofa_Rechts, EG_WZ_Strahler, gEG_Lights, Sunset_Event, All, gEG_ambient, gEG_Powerplug, gEG_Main, gEG_Spots, gEG_XMAS, gXMAS], baseURL=https://myopenhab.org/, service.config.category=io, service.config.description.uri=io:openhabcloud, mode=remote, service.pid=org.openhab.openhabcloud, service.config.label=openHAB Cloud, component.id=217, service.id=349, service.bundleid=217, service.scope=bundle} - org.openhab.io.openhabcloud
17:11:09.109 [DEBUG] [o.openhabcloud.internal.CloudService] - openHAB Cloud connector activated
17:11:09.144 [DEBUG] [o.openhabcloud.internal.CloudService] - Could not determine update version of java 1.8.0
17:11:09.179 [DEBUG] [o.openhabcloud.internal.CloudService] - Using secret at '/var/lib/openhab2/openhabcloud/secret' with content 'MYSECRET'
17:11:09.206 [DEBUG] [o.openhabcloud.internal.CloudService] - UUID = MYUUID, secret = MYSECRET
17:11:09.241 [DEBUG] [o.openhabcloud.internal.CloudService] - Using secret at '/var/lib/openhab2/openhabcloud/secret' with content 'MYSECRET'
17:22:19.716 [DEBUG] [io.openhabcloud.internal.CloudClient] - No connection, Item update is not sent
17:22:22.107 [DEBUG] [io.openhabcloud.internal.CloudClient] - No connection, Item update is not sent

no tips anyone?

Hi!

I’m facing the same issue.
The only logs I see for the openhab-cloud are:

2018-02-03 21:06:19.708 [INFO ] [io.openhabcloud.internal.CloudClient] - Shutting down openHAB Cloud service connection
2018-02-03 21:07:45.172 [INFO ] [io.openhabcloud.internal.CloudClient] - Disconnected from the openHAB Cloud service (UUID = XXX, base URL = http://localhost:8080)
2018-02-03 21:15:41.476 [WARN ] [okhttp3.OkHttpClient                ] - A connection to https://myopenhab.org/ was leaked. Did you forget to close a response body?

https://home.myopenhab.org/start/index/, however, points me the following:

504 Gateway Time-out
nginx/1.10.0 (Ubuntu)
  1. I removed and then created a new user in myopenhab
  2. I re-created secret and uuid files (removed them and restarted OH)
  3. I’ve restarted the Cloud Connector bundle several times
  4. I double checked that remote access is set properly in the Cloud connector settings
  5. Tried updating openHAB multiple times

All this led me to no progress whatsoever :frowning:
@digitaldan I’ll be grateful for any advice.

1 Like

Hi @kubawolanin my man,

will try to look into this soon.
Sorry will be busy these days and get back to you!

BR mehmet

2 Likes

@kubawolanin
Did you fix this at all, if so how? I seem to be having the same issue.

This error when I try to open this link:
https://home.myopenhab.org/start/index

504 Gateway Time-out
nginx/1.10.0 (Ubuntu)

And I also get issues when trying to ‘sync my devices’ with more than 5 items with tags. This is because the same code in the cloud connector is used for both purposes.

I have traced the data flow and I see the following happening.

  1. myopenhab.org sends a request to my server.
  2. My server makes the request as asked using localhost and gets a response back.
  3. The response is then either sent or fails to be sent to myopenhab.org since it is HTTPS I am unsure how I can tap into it to sniff the traffic.

So far I think I have narrowed it down to either a myopenhab.org server issue or the packets never leave my network on the way back to that server. Any ideas? What the puzzling part is that it works for 5 or less items with tags, but any more and it breaks for google home.

EDIT: I have now solved this by decreasing my MTU size in my router. This explains why a small number of items worked as the packet size was smaller than the MTU. To diagnose you can do a ping with a set packet size and see if you get fragmentation and 100% loss…

ping myopenhab.org -f -l 1500

See this link for more info on how to test and set the size…
https://kb.netgear.com/19863/Ping-Test-to-determine-Optimal-MTU-Size-on-Router

1 Like

Please read or try this- i had problems too. i solved all with the java update. i hope it works.

java version “1.8.0_181”
Java™ SE Runtime Environment (build 1.8.0_181-b13)
Java HotSpot™ Client VM (build 25.181-b13, mixed mode)

please read this- written by besolved

I have this error: