OH2: my.openHAB stays offline

I have installed OH2 with my.opoenhab on windows and it works, so it might be something with my ubunbtu server intallation.

Hi Frederik,

I’m also on Windows for now. Could you please let me know where your ‘secret’ and ‘UUID’ files are kept?

Hi - same problem here. everything works fine on windows. raspbian does not connect to my.openhab. Strange thing is that my logfiles don’t even make any mention of my.openhab. did everything that Daflint did so please don’t ask me if UUID and secret etc. is correct. Again just to highlight - windows works fine, raspbian not. used offline snapshot for windows and apt-get for raspbian. java is OJ8.

Same issue here with raspbian and apt-get for raspbian

I can confirm now that I zipped my openhab2 snapshot on my windows machine that works perfectly, unzipped and ran it on my rpi3 and my.openhab doesn’t even feature in the log files, i.e. no attempt to actually start the service is made. I hope that can be a clue to someone, seems a lot of us are having this issue. I’ve seen some resolve it with different java versions etc. I have run the update upgrade and it is up to date. Not quite sure how to proceed or assist with debugging. I’m on jessie.

Got the same here. I made a fresh install of OH2, installed the binding and updated UUID + secret, but still no updates at my.openhab.org.
Maybe one of the @maintainers know how to fix it?

Did you all make sure that you are running at least Java 1.8.0_update101? see this thread.

Thanks @Kai, but is there also an alternative solution?
I personally think it is not very handy if you are using OH2 on a NAS, where you typically have to wait for an update.
Of course I can update here java from hand, but isn’t there a way to ship the certificate with the plugin? or ignore unverified connections? (for these people who can’t upgrade - so it is on their own risk?)

Hey @thopiekar, this might be useful

Thanks! Do you think it would be possible to copy the current cacerts into my openHAB installation, modify my copy and use it for the openHAB session?

I would better try not to modify anything else then openHAB :slight_smile:

Beats me. Maybe this could be accomplished inside the my.openhab addon. You should contact one of the developers. (I’m on the phone and don’t remember who that is)

@ThomDietrich Hmm, isn’t @Kai one of them?

I probably add some commands to my openHAB.sh script to download the latest JRE into my openHAB installation…

No, all I did was to create an OH2 compatible copy of the OH1 bundle.
Don’t know it it is possible to deal with lacking root CA certificate within the bundle without having to touch the JRE itself. Would have to investigate, but I am lacking the time - if someone has an idea and wants to come up with a PR, feel free!

@Kai Ah, ok, I saw that you’ve been working on the binding a long time ago.
Well, I’ve got no experiences in JAVA at all, but this is what I’ve did for the Cura project, where they also had this problem on OSX:

@ThomDietrich I added now commands to my script, which downloads, unpacks and uses the latest JRE on restart.
Also added a licence agreement message before the download starts.
Now after restarting OH2: “openHAB is online” :slight_smile:

No idea how useful this can be here: http://stackoverflow.com/a/2313963/6333993

Sounds good. Would you share it? Sounds like something others might be interested in as well.

Here ir preferably in a tutorial posting :wink:

Yes, it will be commited to my openhab-qnap-qpkg repository soon. Just need to add additional commands for all the different architectures. There will be commands like: installJREarm32,installJREarm64, etc.
I could use “uname” to detect the architecture, but I think it is not worth it, as I’m sure you can fix that in the binding easily and updating JRE isn’t needed every day.
My solution is not very handy, because you’ll have login via SSH to your NAS and use the service script (/etc/init.d/openHAB.sh) to do this. But at least there is an alternative :wink:

Here it is:

Nice :wink: Even includes checksum verification :candy:

The way it should be, isn’t it? :wink: :ok_hand:

1 Like