After searching for days, I finally found this thread which worked! I would have been able to sort out that the SSL certs from _101 would magically solve the issue and finally result in detailed Log outputs without this thread.
In my troubleshooting, I wasn’t able to see any log lines with MyOpenHABClient or anything like that, just the repetitive XHR requests to the 'my.openhab ’ url. So it was extremely vague errors that had me scratching my head.
Finally updated my Java from 1.8.0_65 (which is still the default if you use apt-get as of 08/17/2016) and used the instructions provided by sihui in the post above here. and it updated!
Finally after full reboot I saw the MyOpenHABClient log lines and was able to get my Raspberry Pi ONLINE. Thanks!
This really should be in a small write up on the my.openhab docs site where I intuitively thought would have critical info. such as this. Thanks to all!
I slightly changed the topic and added some more tags to the topic. Maybe this helps other users with similar problems to find this thread (and the solution).
Thank you for this information.
MyOpenHab stopped on the day I went on holyday. After returning I tried (among other things) you script. I don’t understand what I am doing, but it works. I did not even need to reboot.
On my Debian Wheezy Raspberry Pi 2 I installed using the instructions provided by sihui above
(btw this website http://www.webupd8.org/2014/03/how-to-install-oracle-java-8-in-debian.html
indicated this Ubuntu instruction was good on a Debian installation)
2016-08-29 21:46:24 (583 KB/s) - `jdk-8u101-linux-arm32-vfp-hflt.tar.gz’ saved [81542641/81542641]
Download done.
Removing outdated cached downloads…
update-alternatives: using /usr/lib/jvm/java-8-oracle/jre/bin/jjs to provide /usr/bin/jjs (jjs) in auto mode
and then
Oracle JDK 8 installed
root@robsberrypi:/usr/bin# 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)
did
update-alternatives --config java
and selected 3 from
Selection Path Priority Status
and still get the same java version as before the update
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)
And so still getting:
22:26:01.482 [DEBUG] [o.myopenhab.internal.MyOpenHABClient] - No connection, Item update is not sent
That was what I was trying to update to:
`jdk-8u101-linux-arm32-vfp-hflt.tar.gz’ saved
After the installation it reports the same version even after I select the new version from
update-alternatives --config java
OK - got it.
I ran that same command again and selected the 0 option and now have:
java version “1.8.0_101”
Java™ SE Runtime Environment (build 1.8.0_101-b13)
Java HotSpot™ Client VM (build 25.101-b13, mixed mode)
Thanks.
Awesome this is PERFECT.
All this time I thought that my Java was ok but after finally tried to upgrade to the last manually (I was thinking that apt-upgrade that…) Everything is working flawless!
And of course you point me how to automatically upgrade it for next java update!
You need an Oracle Account to download this file. Download this one: Linux ARM 32 Hard Float ABI
Now to my problem. I have now the correct JAVA version running but my openhab is still marked as offline. One ideas what it won’t worked.
I restart openhab and the pi a many times.
Which version of openHAB? The file location for uuid and secret is different from version 1 and version 2. Double check you have the correct uuid and secret put into your my.openhab account.