today I noticed that my (previously working perfect) remote connection of my iOS app with my.openhab doesn’t work anymore. Local mode is working.
Interestingly, when I send a notification message through my.openhab, this message is delivered correctly to the device (even in remote mode). But the sitemap simply doesn’t show up and I get an “Error: connection timed out”.
My.openhab.org also shows “Online”.
And for the records: It has worked yesterday and I didn’t make any changes to my environment…
Furthermore, my log file says that my.openhab regularly disconnects every 4 hours and then reconnects immediately. This is the “normal” behavior. But at 6pm it as disconnected and not connected yet again.
Anyone with the same issues? Or is it a local problem of my installation?
This is probably caused by certificate change today. I’m looking into it now. Have no idea how it could affect though…
+1 … Having the same problem connecting with my.openhab.org but can connect fine directly on my local network (not through my.openhab.org).
I’m glad I’m not the only one…
Thanks for investigating @belovictor!
Ok. It took some time. And it is a problem after we upgraded certs on my.openhab.org. The old one was expiring today so we switched to letsencrypt.org certs and this was causing the problem. The same happened to myself. As soon as I upgraded java to latest 1.8 version on my opehab’s machine everything started working. So I assume this is an old standing problem - Oracle Java uses it’s own keystore instead of system one and there simply were no CA for letsencrypt.org there
So I recommend that everybody who experience this problem upgrade to the latest Java version.
Sorry for the inconvenience!
According to java -version I have the following version installed:
java version "1.8.0_65"
Java™ SE Runtime Environment (build 1.8.0_65-b17)
Java HotSpot™ Client VM (build 25.65-b01, mixed mode)
I don’t remember exactly how I installed it, but I assume it was via apt-get. So I thought this will be automatically updated with apt-get update && apt-get upgrade. Isn’t this the newest version? And if not, how can it be manually updated?
Got it updated to 1.8.0_101-b13 and now it seems to work again. I still get some weird java error in my log, but this seems to be because of an uninitialized item.
I just pushed an e-mail to all my.openHAB users describing the problem and possible ways to sort it out. You can either upgrade to the latest 1.8 or add letsencrypt.org certs to Java keystore manually using keytool.
How did you finally get the update?
@Roy, I followed the instructions at the link below and now it works on my RPi 2.
I simply installed the newest version according to Udo’s posting (#20) in this thread:
I did -almost- the same, but used the WebUpd8 installer in @Udo_Hartmann link to get automated java updates in the future (I wasn’t aware that this is not done automatically through apt-get update/upgrade on a Raspbian Jessie installation on a Raspberry Pi), but you have to make a slight change to the tutorial: instead of
su - use
echo "deb http://ppa.launchpad.net/webupd8team/java/ubuntu xenial main" | tee /etc/apt/sources.list.d/webupd8team-java.list
echo "deb-src http://ppa.launchpad.net/webupd8team/java/ubuntu xenial main" | tee -a /etc/apt/sources.list.d/webupd8team-java.list
apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys EEA14886
apt-get install oracle-java8-installer
After rebooting my.openhab started working again.
Yes, in my case too a reboot was necessary, thanks.
Thanks for the link, all up and working again.
i had java 1.8.0 on my pi2 before already
but still my.openhab stays offline
When you put java -version in to the terminal what version is it saying you have?
pi@raspberrypi ~ $ java -version
java version "1.8.0"
Java™ SE Runtime Environment (build 1.8.0-b132)
Java HotSpot™ Client VM (build 25.0-b70, mixed mode)
pi@raspberrypi ~ $ javac -version
pi@raspberrypi ~ $
You should use the instructions at the link I posted above. Those instructions will update you to 1.8.0_101-b13 (you’re currently at 1.80-b132),
I believe that’s an outdated version. Try using the WebUpd8 installer that @sihui posted.
and then reboot and you should be good to go.