Openhab 2.1.0 hangs when starting for the first time

In the terminal, I see the commandline interface. Then in the web-interface I choose “standard” package. After that it finds my long/lat and then…hangs in “Please stand by while UIs are being installed. This can take several minutes.”. I waited literally more than a day.
Any suggestions?

on Windows or Linux? (using manual or apt-get installation method?)

with which java -version ?

Did you go through: http://docs.openhab.org/installation/index.html ?

Linux; I’m testing it under my own user on my laptop which is a core i5. java is 1.8.0_121. distro is debian. running manual installation (from zip)

one possibility is that the process cannot create userdata/cache folder due to permissions (just an idea)
you could try to run start_debug.sh to see if anything useful comes up

I ran start_debug.sh as root. Same problem and no extra output; not on console nor on the web-interface.

This sounds worrying:

017-07-15 22:15:01.190 [WARN ] [url.mvn.internal.AetherBasedResolver] - Error resolving artifact org.openhab.core:org.openhab.ui.paperui:jar:2.1.0: [Could not transfer artifact org.openhab.core:org.openhab.ui.paperui:jar:2.1.0 from/to openhab (https://dl.bintray.com/openhab/mvn/online-repo/2.1/): RSA premaster secret error]
java.io.IOException: Error resolving artifact org.openhab.core:org.openhab.ui.paperui:jar:2.1.0: [Could not transfer artifact org.openhab.core:org.openhab.ui.paperui:jar:2.1.0 from/to openhab (https://dl.bintray.com/openhab/mvn/online-repo/2.1/): RSA premaster secret error]
at org.ops4j.pax.url.mvn.internal.AetherBasedResolver.resolve(AetherBasedResolver.java:720)[7:org.ops4j.pax.url.mvn:2.5.2]
at org.ops4j.pax.url.mvn.internal.AetherBasedResolver.resolve(AetherBasedResolver.java:659)[7:org.ops4j.pax.url.mvn:2.5.2]
at org.ops4j.pax.url.mvn.internal.AetherBasedResolver.resolve(AetherBasedResolver.java:600)[7:org.ops4j.pax.url.mvn:2.5.2]
at org.ops4j.pax.url.mvn.internal.AetherBasedResolver.resolve(AetherBasedResolver.java:567)[7:org.ops4j.pax.url.mvn:2.5.2]
at org.apache.karaf.features.internal.download.impl.MavenDownloadTask.download(MavenDownloadTask.java:36)[8:org.apache.karaf.features.core:4.0.8]
at org.apache.karaf.features.internal.download.impl.AbstractRetryableDownloadTask.run(AbstractRetryableDownloadTask.java:60)[8:org.apache.karaf.features.core:4.0.8]
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)[:1.8.0_121]
at java.util.concurrent.FutureTask.run(FutureTask.java:266)[:1.8.0_121]
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(ScheduledThreadPoolExecutor.java:180)[:1.8.0_121]
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:293)[:1.8.0_121]
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)[:1.8.0_121]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)[:1.8.0_121]
at java.lang.Thread.run(Thread.java:745)[:1.8.0_121]
Caused by: shaded.org.eclipse.aether.resolution.ArtifactResolutionException: Error resolving artifact org.openhab.core:org.openhab.ui.paperui:jar:2.1.0
at shaded.org.eclipse.aether.internal.impl.DefaultArtifactResolver.resolve(DefaultArtifactResolver.java:444)
at shaded.org.eclipse.aether.internal.impl.DefaultArtifactResolver.resolveArtifacts(DefaultArtifactResolver.java:246)
at shaded.org.eclipse.aether.internal.impl.DefaultArtifactResolver.resolveArtifact(DefaultArtifactResolver.java:223)
at shaded.org.eclipse.aether.internal.impl.DefaultRepositorySystem.resolveArtifact(DefaultRepositorySystem.java:294)
at org.ops4j.pax.url.mvn.internal.AetherBasedResolver.resolve(AetherBasedResolver.java:705)[7:org.ops4j.pax.url.mvn:2.5.2]
… 12 more
2017-07-15 22:15:01.203 [ERROR] [core.karaf.internal.FeatureInstaller] - Failed installing ‘openhab-ui-basic, openhab-ui-habpanel, openhab-ui-paper’: Error

interesting… OH2 is trying to download from the online repo the addons (more specifically, the UIs) and for some reason the secure connection is failing…

why… I don’t know :slight_smile:

I downloaded the addons manually and placed the kar file in the addons directory. Now it works!

1 Like

it would help to try to debug this situation…
maybe we can update the docs or raise an issue that will assist other users.

By all means. But I have no idea how. Resolving works here, also no proxies (not even transparent) between here and the world.

I don’t see paperui on the repo…
https://dl.bintray.com/openhab/mvn/online-repo/2.1/org/openhab/ui/

checking again…

edit: it’s here: https://dl.bintray.com/openhab/mvn/online-repo/2.1/org/openhab/core/

openJDK or Oracle?

openjdk

I tried the set jdk.tls.disabledAlgorithms=EC,ECDHE,ECDH from the linked suggestion but that didn’t help.

1 Like

i will try to replicate this (clean OH2.1 manual zip deployment on openjdk 8u121) on debian (jessie or stretch?)

This looks like that it is (yet) another problem with openJDK.

Can you try either Zulu JDK or Oracle JRE or JDK to see if this problem goes away?

or apt-get upgrade your system to get the latest openjdk
it seems that there are alot of issues with 121 (one example: https://packages.qa.debian.org/o/openjdk-8/news/20170123T151441Z.html)

I run debian unstable. I’ve upgraded the jre to 8u131-b11-2 but won’t work:

2017-07-16 10:52:19.881 [ERROR] [ficate.internal.CertificateGenerator] - Failed to generate a new SSL Certificate.
java.security.cert.CertificateException: Failed to generate the new certificate.
at org.openhab.io.jetty.certificate.internal.CertificateGenerator.generateCertificate(CertificateGenerator.java:202)[168:org.openhab.io.jetty.certificate:2.1.0]

2017-07-16 10:52:36.747 [WARN ] [url.mvn.internal.AetherBasedResolver] - Error resolving artifact org.openhab.core:org.openhab.ui.paperui:jar:2.1.0: [Could not transfer artifact org.openhab.core:org.openhab.ui.paperui:jar:2.1.0 from/to openhab (https://dl.bintray.com/openhab/mvn/online-repo/2.1/): RSA premaster secret error]
java.io.IOException: Error resolving artifact org.openhab.core:org.openhab.ui.paperui:jar:2.1.0: [Could not transfer artifact org.openhab.core:org.openhab.ui.paperui:jar:2.1.0 from/to openhab (https://dl.bintray.com/openhab/mvn/online-repo/2.1/): RSA premaster secret error]

I would dump openjdk if I was you…
switch to Zulu or Oracle…

I found something similar here:

Same problem for me, openhab 2.1 hangs at starting, I had to download Offline Addons to by-pass.
Now when I restart Openhab I get the following error message :

2017-08-17 13:42:46.220 [ERROR] [ficate.internal.CertificateGenerator] - Failed to generate a new SSL Certificate.
java.security.cert.CertificateException: Failed to generate the new certificate.
...
Caused by: java.security.NoSuchAlgorithmException: EC KeyPairGenerator not available
        at java.security.KeyPairGenerator.getInstance(KeyPairGenerator.java:218)[:1.8.0_144]

but also :

2017-08-17 13:43:17.810 [WARN ] [url.mvn.internal.AetherBasedResolver] - Error resolving artifact org.openhab.distro:openhab-addons-legacy:xml:features:2.1.0: [Could not transfer artifact org.openhab.distro:openhab-addons-legacy:xml:features:2.1.0 from/to openhab (https://dl.bintray.com/openhab/mvn/online-repo/2.1/): RSA premaster secret error]
java.io.IOException: Error resolving artifact org.openhab.distro:openhab-addons-legacy:xml:features:2.1.0: [Could not transfer artifact org.openhab.distro:openhab-addons-legacy:xml:features:2.1.0 from/to openhab (https://dl.bintray.com/openhab/mvn/online-repo/2.1/): RSA premaster secret error]

Server is based on Debian 7.11, OpenJRE is not installed, Oracle Java 8 has been reinstalled …

# java -version
java version "1.8.0_144"
Java(TM) SE Runtime Environment (build 1.8.0_144-b01)
Java HotSpot(TM) 64-Bit Server VM (build 25.144-b01, mixed mode) 

Any ideas ?

:blush: found my problem

JAVA_HOME path was set to /usr in my .bashrc file which overrides /etc/profile.d/jdk.sh …

I see exactly the same problem as described here getting openhab running on FreeBSD.
FreeBSD has only openjdk version "1.8.0_144"available (no zulu is existing there).

Is there any change to get openhab running with openjdk or is this impossible?

I see also other errors like described here: