I’ve got the same kind of issue with myopenhab.org as Aaron has. I’m running OH2 and after installing the openhab cloud connector myopenhab.org states “offline” and at the bottom it says I’m running OH 1.x
So I came across this thread and after checking my Java version it says the following: java version "1.8.0_65" Java ™ SE Runtime Enviroment (build 1.8.0_65-b17) Java Hotspot™ Client VM (build 25.65-b01, mixed mode)
Now I suspect this is not a high enough version right? The “65” should be “101” instead?
I’m running Raspbian Jessie on an RPi3.
When I do
sudo apt-get update
and
sudo apt-get install oracle-java8-jdk
I get a message saying that I already have the lastest version.
The commands automatically accept the Oracle license which makes it suitable for unattended installation. The package comes from third party Ubuntu PPA that should be compatible raspbian Jessie.
You should probably remove the existing java8 before installing the new one.
After getting rid of nginx it still showed offline.
I visited myopenhab, deleted my account, created my account again. Still
showed offline.
I rebooted, logged out of my account, logged back in and it said online.
Its been online for a few hours now, and I briefly saw my full dashboard.
I’ve just been back online and find that after clicking the link to view
the dashboard it times out. 504 Gateway Timeout.
I also notice that without some decent network security (eg https) or
virtual webserver presentation on the local side, using myopenhab/openhab
cloud presents a security risk to your openhab device/network. If you are
going to use these online services, make sure not to leave yourself
exposed. I’m sure that’s common sense to most.
I am facing the same issue, difference being that I am using Apache2 (SSL enabled) for reverse proxy purposes. I tried Nginx for testing (using the configuration suggested in the Getting Started guide) with the same result.
In both instances, the cloud connector drops the connection, according to the log.
When I bypass the reverse proxy (using http://my-openhab-cloud:3000), openHab establishes the connection and openHab cloud shows openHab as “online”.
It also works ok with myopenhab.org, so obviously, the issue must be with the reverse proxy configuration. I certainly do not want to use an unsecured connection on port 3000 for anything else than testing, so any suggestions on how to fix it or work around the issue is highly appreciated
Is it correct to conclude from this discussion that the openHAB2 Cloud Connector with myopenhab.org presents some potential security challenges?
I was just setting it up and stumbled across the same Nginx proxy issue (showing offline in myopenhab.org). But instead of pursuing this further, I will now consider running my own instance of Cloud Connector, somewhere on Azure or AWS…
hi Detorice. Thank you for you update it worked.
General advice for those who are copying and pasting from above message.
remove numerical 5 after /ubuntu
also copy past repalces the "with a . so ensure the quotes are as it is. Can be annoying as its too tiny a change to notice and your wondering what I doing wrong!!
thanks for your post!! the Java was updated and it works
I had the same issue after changing my system from raspberry to mach and the following steps did work for me:
I filled my account with the new uuid and pw and still got offline error.
Only ting helped was to delete my account and create a new one, confirm the email and restart openhab.