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?
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.
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 sudo su:
sudo su
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 update
apt-get install oracle-java8-installer
exit