[SOLVED] Openhab not starting - Error downloading mvn:org.openhab.ui.bundles/org.openhab.ui.dashboard/2.5.0.M2

  • Platform information:
    • Hardware: RPi 3
    • OS: openhabian
    • Java Runtime Environment: OpenJDK Runtime Environment (Zulu Embedded 8.25.0.76-linux-aarch32hf) (build 1.8.0_152-b76)
    • openHAB version: 2.5.0

Hello,

I have since last weekend a problem that prevents my openhab installation from even starting.
This is the error message I get (nearly the first message in the log when I restart openhab service).
I paste below the full error message. I know I’m cross posting a bit, sorry for that… but I am hoping my message will be more visible and someone will have an idea of where to look for unblocking this…

Thanks a lot in advance for any hint.

2019-08-18 14:32:09.779 [ERROR] [ternal.service.BootFeaturesInstaller] - Error installing boot features
org.apache.karaf.features.internal.util.MultiException: Error:
	Error downloading mvn:org.openhab.ui.bundles/org.openhab.ui.dashboard/2.5.0.M2
	at org.apache.karaf.features.internal.download.impl.MavenDownloadManager$MavenDownloader.<init>(MavenDownloadManager.java:91) ~[?:?]
	at org.apache.karaf.features.internal.download.impl.MavenDownloadManager.createDownloader(MavenDownloadManager.java:72) ~[?:?]
	at org.apache.karaf.features.internal.region.Subsystem.downloadBundles(Subsystem.java:457) ~[?:?]
	at org.apache.karaf.features.internal.region.Subsystem.downloadBundles(Subsystem.java:452) ~[?:?]
	at org.apache.karaf.features.internal.region.SubsystemResolver.resolve(SubsystemResolver.java:224) ~[?:?]
	at org.apache.karaf.features.internal.service.Deployer.deploy(Deployer.java:393) ~[?:?]
	at org.apache.karaf.features.internal.service.FeaturesServiceImpl.doProvision(FeaturesServiceImpl.java:1062) ~[?:?]
	at org.apache.karaf.features.internal.service.FeaturesServiceImpl.lambda$doProvisionInThread$13(FeaturesServiceImpl.java:998) ~[?:?]
	at java.util.concurrent.FutureTask.run(FutureTask.java:266) [?:?]
	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) [?:?]
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) [?:?]
	at java.lang.Thread.run(Thread.java:748) [?:?]
	Suppressed: java.io.IOException: Error downloading mvn:org.openhab.ui.bundles/org.openhab.ui.dashboard/2.5.0.M2
		at org.apache.karaf.features.internal.download.impl.AbstractRetryableDownloadTask.run(AbstractRetryableDownloadTask.java:81) ~[?:?]
		at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) [?:?]
		at java.util.concurrent.FutureTask.run(FutureTask.java:266) [?:?]
		at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(ScheduledThreadPoolExecutor.java:180) ~[?:?]
		at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:293) ~[?:?]
		at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) [?:?]
		at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) [?:?]
		at java.lang.Thread.run(Thread.java:748) [?:?]
	Caused by: java.lang.ClassFormatError: Truncated class file
		at sun.net.idn.StringPrep.<init>(StringPrep.java:230) ~[?:?]
		at java.net.IDN.<clinit>(IDN.java:240) ~[?:?]
		at javax.net.ssl.SNIHostName.<init>(SNIHostName.java:99) ~[?:?]
		at sun.security.ssl.Utilities.rawToSNIHostName(Utilities.java:102) ~[?:?]
		at sun.security.ssl.Utilities.addToSNIServerNameList(Utilities.java:49) ~[?:?]
		at sun.security.ssl.SSLSocketImpl.<init>(SSLSocketImpl.java:571) ~[?:?]
		at sun.security.ssl.SSLSocketFactoryImpl.createSocket(SSLSocketFactoryImpl.java:110) ~[?:?]
		at shaded.org.apache.http.conn.ssl.SSLConnectionSocketFactory.createLayeredSocket(SSLConnectionSocketFactory.java:365) ~[?:?]
		at shaded.org.apache.http.conn.ssl.SSLConnectionSocketFactory.connectSocket(SSLConnectionSocketFactory.java:355) ~[?:?]
		at shaded.org.apache.http.impl.conn.DefaultHttpClientConnectionOperator.connect(DefaultHttpClientConnectionOperator.java:142) ~[?:?]
		at shaded.org.apache.http.impl.conn.PoolingHttpClientConnectionManager.connect(PoolingHttpClientConnectionManager.java:373) ~[?:?]
		at shaded.org.apache.http.impl.execchain.MainClientExec.establishRoute(MainClientExec.java:394) ~[?:?]
		at shaded.org.apache.http.impl.execchain.MainClientExec.execute(MainClientExec.java:237) ~[?:?]
		at shaded.org.apache.http.impl.execchain.ProtocolExec.execute(ProtocolExec.java:185) ~[?:?]
		at shaded.org.apache.http.impl.execchain.RetryExec.execute(RetryExec.java:89) ~[?:?]
		at shaded.org.apache.http.impl.execchain.RedirectExec.execute(RedirectExec.java:110) ~[?:?]
		at shaded.org.apache.http.impl.client.InternalHttpClient.doExecute(InternalHttpClient.java:185) ~[?:?]
		at shaded.org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:83) ~[?:?]
		at org.ops4j.pax.url.mvn.internal.wagon.ConfigurableHttpWagon.execute(ConfigurableHttpWagon.java:162) ~[?:?]
		at shaded.org.apache.maven.wagon.shared.http.AbstractHttpClientWagon.fillInputData(AbstractHttpClientWagon.java:1095) ~[?:?]
		at shaded.org.apache.maven.wagon.shared.http.AbstractHttpClientWagon.fillInputData(AbstractHttpClientWagon.java:1072) ~[?:?]
		at shaded.org.apache.maven.wagon.StreamWagon.getInputStream(StreamWagon.java:126) ~[?:?]
		at shaded.org.apache.maven.wagon.StreamWagon.getIfNewer(StreamWagon.java:88) ~[?:?]
		at shaded.org.apache.maven.wagon.StreamWagon.get(StreamWagon.java:61) ~[?:?]
		at shaded.org.eclipse.aether.transport.wagon.WagonTransporter$GetTaskRunner.run(WagonTransporter.java:567) ~[?:?]
		at shaded.org.eclipse.aether.transport.wagon.WagonTransporter.execute(WagonTransporter.java:435) ~[?:?]
		at shaded.org.eclipse.aether.transport.wagon.WagonTransporter.get(WagonTransporter.java:412) ~[?:?]
		at shaded.org.eclipse.aether.connector.basic.BasicRepositoryConnector$GetTaskRunner.runTask(BasicRepositoryConnector.java:456) ~[?:?]
		at shaded.org.eclipse.aether.connector.basic.BasicRepositoryConnector$TaskRunner.run(BasicRepositoryConnector.java:363) ~[?:?]
		at shaded.org.eclipse.aether.util.concurrency.RunnableErrorForwarder$1.run(RunnableErrorForwarder.java:75) ~[?:?]
		at shaded.org.eclipse.aether.connector.basic.BasicRepositoryConnector$DirectExecutor.execute(BasicRepositoryConnector.java:642) ~[?:?]
		at shaded.org.eclipse.aether.connector.basic.BasicRepositoryConnector.get(BasicRepositoryConnector.java:262) ~[?:?]
		at shaded.org.eclipse.aether.internal.impl.DefaultArtifactResolver.performDownloads(DefaultArtifactResolver.java:489) ~[?:?]
		at shaded.org.eclipse.aether.internal.impl.DefaultArtifactResolver.resolve(DefaultArtifactResolver.java:390) ~[?:?]
		at shaded.org.eclipse.aether.internal.impl.DefaultArtifactResolver.resolveArtifacts(DefaultArtifactResolver.java:215) ~[?:?]
		at shaded.org.eclipse.aether.internal.impl.DefaultArtifactResolver.resolveArtifact(DefaultArtifactResolver.java:192) ~[?:?]
		at shaded.org.eclipse.aether.internal.impl.DefaultRepositorySystem.resolveArtifact(DefaultRepositorySystem.java:247) ~[?:?]
		at org.ops4j.pax.url.mvn.internal.AetherBasedResolver.resolve(AetherBasedResolver.java:767) ~[?:?]
		at org.ops4j.pax.url.mvn.internal.AetherBasedResolver.resolve(AetherBasedResolver.java:657) ~[?:?]
		at org.ops4j.pax.url.mvn.internal.AetherBasedResolver.resolve(AetherBasedResolver.java:598) ~[?:?]
		at org.ops4j.pax.url.mvn.internal.AetherBasedResolver.resolve(AetherBasedResolver.java:565) ~[?:?]
		at org.apache.karaf.features.internal.download.impl.MavenDownloadTask.download(MavenDownloadTask.java:49) ~[?:?]
		at org.apache.karaf.features.internal.download.impl.AbstractRetryableDownloadTask.run(AbstractRetryableDownloadTask.java:60) ~[?:?]
		... 7 more

The keys have changed:

Hello sihui,

Thanks for the answer.

I had done that last weekend during my many attemps to fix the problem. I did it again and got the OK as answer…
I then restarted openhab service and… still have the same problem.

Am I missing something?

Also, is it correct that the key expiration issue was really impacting the installation process than the running of openhab itself?

Make sure you have “Access Remote Repository” enabled.

If that does not work delete
/var/lib/openhab2/config/org/openhab/addons.config
and restart openHAB.

thanks for following up sihui. I did not find how to enable “Access Remote Repository” since openhab does not start, so I went to delete the addons.config file but no luck, I still have the same problem:-(

Is there a way to configure “Access Remote Repository” via config parameter somewhere?

Yes, in your addons.cfg.

Ok, I found the parameter in the addons.config file that i removed and put back, and it have

remote="true"

At this stage, neither the remote parameter nor removing the addons.config file seems to have effect.

Wrong file, add it to your addons.cfg.

… and wrong syntax:

remote=true

ok, I tried the following
I did add remote=true (by un-commenting the line) and even tried remote = true as it appears when commented out in the file, but no change, the error is still there.
I also tried to remove the file addons.cfg that you suggested I’d remove if the above would not work, and it did not change anything either…

It can’t because you are not doing what I suggested.
addons.config in /var/lib/openhab2/config/org/openhab/ is autogenerated during startup of openHAB and should not be edited manually.
The contents of addons.config are generated from your addons.cfg.
So delete addons.config, add remote=true to your addons.cfg and restart openHAB.

It could always be this of course :slight_smile: but in this case I believe I did what you suggested, but was probably not clear in my last message:

The last edits I did were in the addons.cfg file, not in the addons.config one. And I restarted openhab after that.

This sound pretty clear and I did not suggest that :sunglasses:

Ahhh… This is an edit mistake : What I did was to remove the addons.config… Sorry for burning your time like this…

1 Like

Last idea: add package=expert to your addons.cfg

Delete cache and tmp files after shutting down OH?

Thanks Bruce. I did that 20 times already, after properly shutting down openhab service… I had an issue long time ago and cleaning the cache was the solution, so it is the first thing I tried…

1 Like

I just tried that… No luck either…

One general question :

Why is openhab downloading this
Error downloading mvn:org.openhab.ui.bundles/org.openhab.ui.dashboard/2.5.0.M2
at startup?

What exactly is it trying to do? Isn’t it the sign that something is not properly installed?

The dashboard is part of the core system. Try sudo apt-get install --reinstall openhab. Perhaps it will correct things.