Openhab-Cloud: Unable to connect my openhab dashboard from https://myopenhab.org/


(Dhanasekar Jaganathan) #1

Hi All,

I am unable to access OH2 dashboard from openhab-cloud, I am getting below error.

My Configuration:

Version : OpenHAB 2.0, SNAPSHOT-2.4.0, Build - 1451
Java Version:  
java version "1.8.0_191"
Java(TM) SE Runtime Environment (build 1.8.0_191-b12)
Java HotSpot(TM) 64-Bit Server VM (build 25.191-b12, mixed mode)

Please help me to solve this error.

Thanks,
Dhanasekar


(Jürgen Baginski) #2

When I’m logged in on myopenhab.org and click to get to the dashboard, I get redirected to “https://home.myopenhab.org/start/index”.
Note the missing “/login” compared to your link.

confirm you are logged in to myopenhab.org?


(Dhanasekar Jaganathan) #3

Hi,

Yes, I have looked into http://myopenhab.org/ and access the dashboard.

Home page of myopenhab:

After clicking dashboard link:


(Jürgen Baginski) #4

Is it the same on all browsers?
Is your openHAB instance up?

Other then that, I have no ideas!


(Dhanasekar Jaganathan) #5

In Mozila FireFox, I am getting this error,

In Chrome, I am getting this error,


(Jürgen Baginski) #6

While logged into myopenhab.org could you try the above link?


(Dhanasekar Jaganathan) #7

When I logged this link https://home.myopenhab.org/start/index , I am getting below error


(Jürgen Baginski) #8

I’m out of clues!
Your local openHAB instance seems to be online (see post #3), you are logged into myopenhab.org, what else could be wrong?
I even tried to open an “inkognito tab” when selecting the dashboard. However that resulted in a “inkongnito” tab asking for the Login credentials.


(Dhanasekar Jaganathan) #9

I also don’t know and I am debugging. I am new to this feature.

FYI, I have not linked any .iteam file with openhab.cloud.
Do I need to add or create any file for connecting openhab-cloud feature?


(Willem Spoelstra) #10

i am getting a 504.


(Skinah) #11

I had a similar issue which maybe the same.

To diagnose if this is your issue you can do a ping with a set packet size and see if you get fragmentation and 100% loss…

windows command

ping myopenhab.org -f -l 1500

Linux command

 ping -s 1500 -M do myopenhab.org

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


(Willem Spoelstra) #12

I was able to solve the 504 i restarted my openhab server. and it worked again.


(Dhanasekar Jaganathan) #13

Hi All,

Still, I am not able to access my dashboard from “https://myopenhab.org/”.
I have configured “openHAB Cloud” like this,

For debugging, I have entered https://localhost:8443 in Base URL for the openHAB Cloud server field and I am getting offline status in “https://myopenhab.org/

Please correct me, If I configured wrong value.


(Dhanasekar Jaganathan) #14

Hi Willem,

I am also getting “504 Gateway Time-out” issue. Even though I have restarted my openHAB sudo systemctl restart openhab2.service, Still I am facing the issue.


I have pasted configuration details,

Can you please share me your configuration details ?


(Skinah) #15

If anyone is getting the 504 error have you tried the special ping commands I posted above? Just because a browser shows the site does not mean that with a larger mtu / mru size that the ping will not fail. The error is clear the issue is it can not reach the server.


(Dhanasekar Jaganathan) #16

I have tried ping -s 1500 -M do myopenhab.org command, I am getting “local error”

x


(Skinah) #17

Now keep doing the ping, each time lowering the number from 1500 until you get no packet loss. Then once you have the number that works you need to add 28 to this number and set your MTU in your routers settings. Google your router/modem to find out how to find and set the MTU. This was the solution to my issues.


(Dhanasekar Jaganathan) #18

I have tried mtu is not dropping from 1500.


(Dhanasekar Jaganathan) #19

I am unable to connect “myopenhab.org” openhab cloud instance.
So, I am planning to setup a own openhab cloud server for my work.
Will Amazon Alex work in own openhab cloud server?

Please guide me and provide your suggestion.
I am waiting for community input…


(Dhanasekar Jaganathan) #20

Hi Skinah,

With this MTU value 1472, I am not getting any error and there is no pocket loss

ping -s 1472 -M do myopenhab.org
PING myopenhab.org (139.162.171.235) 1472(1500) bytes of data.
1480 bytes from li1488-235.members.linode.com (139.162.171.235): icmp_seq=1 ttl=57 time=135 ms
1480 bytes from li1488-235.members.linode.com (139.162.171.235): icmp_seq=2 ttl=57 time=131 ms
1480 bytes from li1488-235.members.linode.com (139.162.171.235): icmp_seq=3 ttl=57 time=135 ms
1480 bytes from li1488-235.members.linode.com (139.162.171.235): icmp_seq=4 ttl=57 time=133 ms
1480 bytes from li1488-235.members.linode.com (139.162.171.235): icmp_seq=5 ttl=57 time=132 ms
1480 bytes from li1488-235.members.linode.com (139.162.171.235): icmp_seq=6 ttl=57 time=130 ms
1480 bytes from li1488-235.members.linode.com (139.162.171.235): icmp_seq=7 ttl=57 time=132 ms
1480 bytes from li1488-235.members.linode.com (139.162.171.235): icmp_seq=8 ttl=57 time=131 ms
^C
--- myopenhab.org ping statistics ---
8 packets transmitted, 8 received, 0% packet loss, time 7009ms
rtt min/avg/max/mdev = 130.840/132.787/135.803/1.740 ms