Installing and Uninstalling Addons Failing in Paper UI

Hi all,

I installed openHABian on my Pi yesterday and am having issues installing and uninstalling addons. From the Paper UI, I have tried to install 2 different bindings (MQTT and Network) and 1 misc (Cloud Connector). When I click “Install” (or “Uninstall”) the loading circle appears but the process never seems to complete. What’s strange is that sometimes the installation will actually be successful but I have to reload the page for it to show as being installed. More often than not though, the installation never happens. Sometimes the installation doesn’t work but then when I reboot, the log shows the installation successfully happening right after rebooting. I’m not familiar with the openHAB log but from what I can see, the problems seem to be linked to the openHAB cloud service connection shutting down. Here are some logs while I tried a few things:

Log on startup:

2017-06-21 17:51:07.840 [INFO ] [io.openhabcloud.internal.CloudClient] - Shutting down openHAB Cloud service connection
2017-06-21 17:51:07.960 [INFO ] [assic.internal.servlet.WebAppServlet] - Stopped Classic UI
2017-06-21 17:51:08.033 [INFO ] [ui.habmin.internal.servlet.HABminApp] - Stopped HABmin servlet
2017-06-21 17:51:08.444 [INFO ] [arthome.ui.paper.internal.PaperUIApp] - Stopped Paper UI
2017-06-21 17:51:08.461 [INFO ] [panel.internal.HABPanelDashboardTile] - Stopped HABPanel
2017-06-21 17:51:08.470 [INFO ] [.dashboard.internal.DashboardService] - Stopped dashboard
2017-06-21 17:51:47.409 [ERROR] [io.openhabcloud.internal.CloudClient] - Socket.IO error: not authorized
2017-06-21 17:51:58.433 [INFO ] [.dashboard.internal.DashboardService] - Started dashboard at /start
2017-06-21 17:51:59.248 [INFO ] [basic.internal.servlet.WebAppServlet] - Started Basic UI at /basicui/app
2017-06-21 17:51:59.455 [INFO ] [assic.internal.servlet.WebAppServlet] - Started Classic UI at /classicui/app
2017-06-21 17:51:59.718 [INFO ] [arthome.ui.paper.internal.PaperUIApp] - Started Paper UI at /paperui
2017-06-21 17:51:59.886 [INFO ] [ui.habmin.internal.servlet.HABminApp] - Started HABmin servlet at /habmin
2017-06-21 17:52:00.027 [INFO ] [panel.internal.HABPanelDashboardTile] - Started HABPanel at /habpanel

Log after trying to uninstall Network binding:

2017-06-21 17:56:06.916 [INFO ] [io.openhabcloud.internal.CloudClient] - Shutting down openHAB Cloud service connection
2017-06-21 17:56:08.378 [ERROR] [io.openhabcloud.internal.CloudClient] - Socket.IO error: not authorized
2017-06-21 17:56:11.111 [INFO ] [ui.habmin.internal.servlet.HABminApp] - Stopped HABmin servlet
2017-06-21 17:56:11.175 [INFO ] [basic.internal.servlet.WebAppServlet] - Stopped Basic UI
2017-06-21 17:56:11.377 [INFO ] [io.openhabcloud.internal.CloudClient] - Shutting down openHAB Cloud service connection
2017-06-21 17:56:13.354 [ERROR] [io.openhabcloud.internal.CloudClient] - Socket.IO error: not authorized
2017-06-21 17:56:13.792 [INFO ] [ui.habmin.internal.servlet.HABminApp] - Started HABmin servlet at /habmin
2017-06-21 17:56:14.396 [INFO ] [basic.internal.servlet.WebAppServlet] - Started Basic UI at /basicui/app
2017-06-21 17:56:14.790 [INFO ] [core.karaf.internal.FeatureInstaller] - Uninstalled 'openhab-binding-network'

Log after trying to reinstall Network binding:

2017-06-21 17:59:00.864 [INFO ] [io.openhabcloud.internal.CloudClient] - Shutting down openHAB Cloud service connection
2017-06-21 17:59:01.763 [ERROR] [io.openhabcloud.internal.CloudClient] - Socket.IO error: not authorized
2017-06-21 17:59:05.098 [INFO ] [ui.habmin.internal.servlet.HABminApp] - Stopped HABmin servlet
2017-06-21 17:59:05.177 [INFO ] [basic.internal.servlet.WebAppServlet] - Stopped Basic UI
2017-06-21 17:59:05.480 [INFO ] [io.openhabcloud.internal.CloudClient] - Shutting down openHAB Cloud service connection
2017-06-21 17:59:06.676 [ERROR] [org.eclipse.smarthome.io.rest.sse   ] - FrameworkEvent ERROR - org.eclipse.smarthome.io.rest.sse
org.osgi.framework.BundleException: Exception in org.eclipse.smarthome.io.rest.sse.internal.SseActivator.start() of bundle org.eclipse.smarthome.io.rest.sse.
        at org.eclipse.osgi.internal.framework.BundleContextImpl.startActivator(BundleContextImpl.java:792)[org.eclipse.osgi-3.10.101.v20150820-1432.jar:]
        at org.eclipse.osgi.internal.framework.BundleContextImpl.start(BundleContextImpl.java:721)[org.eclipse.osgi-3.10.101.v20150820-1432.jar:]
at org.eclipse.osgi.internal.framework.EquinoxBundle.startWorker0(EquinoxBundle.java:941)[org.eclipse.osgi-3.10.101.v20150820-1432.jar:]
        at org.eclipse.osgi.internal.framework.EquinoxBundle$EquinoxModule.startWorker(EquinoxBundle.java:318)[org.eclipse.osgi-3.10.101.v20150820-1432.jar:]
        at org.eclipse.osgi.container.Module.doStart(Module.java:571)[org.eclipse.osgi-3.10.101.v20150820-1432.jar:]
        at org.eclipse.osgi.container.Module.start(Module.java:439)[org.eclipse.osgi-3.10.101.v20150820-1432.jar:]
        at org.eclipse.osgi.framework.util.SecureAction.start(SecureAction.java:454)[org.eclipse.osgi-3.10.101.v20150820-1432.jar:]
        at org.eclipse.osgi.container.ModuleContainer.applyDelta(ModuleContainer.java:717)[org.eclipse.osgi-3.10.101.v20150820-1432.jar:]
        at org.eclipse.osgi.container.ModuleContainer.resolveAndApply(ModuleContainer.java:491)[org.eclipse.osgi-3.10.101.v20150820-1432.jar:]
        at org.eclipse.osgi.container.ModuleContainer.resolve(ModuleContainer.java:437)[org.eclipse.osgi-3.10.101.v20150820-1432.jar:]
        at org.eclipse.osgi.container.ModuleContainer.refresh(ModuleContainer.java:955)[org.eclipse.osgi-3.10.101.v20150820-1432.jar:]
        at org.eclipse.osgi.container.ModuleContainer$ContainerWiring.dispatchEvent(ModuleContainer.java:1336)[org.eclipse.osgi-3.10.101.v20150820-1432.jar:]
        at org.eclipse.osgi.container.ModuleContainer$ContainerWiring.dispatchEvent(ModuleContainer.java:1)[org.eclipse.osgi-3.10.101.v20150820-1432.jar:]
        at org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEvent(EventManager.java:230)[org.eclipse.osgi-3.10.101.v20150820-1432.jar:]
        at org.eclipse.osgi.framework.eventmgr.EventManager$EventThread.run(EventManager.java:340)[org.eclipse.osgi-3.10.101.v20150820-1432.jar:]
Caused by: java.lang.LinkageError: ClassCastException: attempting to castbundleresource://22.fwk589604/javax/ws/rs/ext/RuntimeDelegate.class to bundleresource://22.f$
        at javax.ws.rs.ext.RuntimeDelegate.findDelegate(RuntimeDelegate.java:146)
        at javax.ws.rs.ext.RuntimeDelegate.getInstance(RuntimeDelegate.java:120)
        at javax.ws.rs.core.MediaType.valueOf(MediaType.java:179)
        at org.glassfish.jersey.media.sse.SseFeature.(SseFeature.java:62)
        at org.eclipse.smarthome.io.rest.sse.internal.SseActivator.start(SseActivator.java:44)
        at org.eclipse.osgi.internal.framework.BundleContextImpl$3.run(BundleContextImpl.java:771)[org.eclipse.osgi-3.10.101.v20150820-1432.jar:]
        at org.eclipse.osgi.internal.framework.BundleContextImpl$3.run(BundleContextImpl.java:1)[org.eclipse.osgi-3.10.101.v20150820-1432.jar:]
        at java.security.AccessController.doPrivileged(Native Method)[:1.8.0_121]
        at org.eclipse.osgi.internal.framework.BundleContextImpl.startActivator(BundleContextImpl.java:764)[org.eclipse.osgi-3.10.101.v20150820-1432.jar:]
        ... 14 more
2017-06-21 17:59:06.952 [INFO ] [ui.habmin.internal.servlet.HABminApp] - Started HABmin servlet at /habmin
2017-06-21 17:59:07.144 [ERROR] [io.openhabcloud.internal.CloudClient] - Socket.IO error: not authorized
2017-06-21 17:59:07.611 [INFO ] [basic.internal.servlet.WebAppServlet] - Started Basic UI at /basicui/app
2017-06-21 17:59:08.038 [ERROR] [core.karaf.internal.FeatureInstaller] - Failed installing 'openhab-binding-network': Error restarting bundles

I’ve tried reflashing openHABian several times with no change.

I found these similar topics but no solution that works for me yet:
https://community.openhab.org/t/addons-fail-to-install/21248
https://community.openhab.org/t/having-a-lot-of-trouble-installing-bindings/25700
https://community.openhab.org/t/addons-fail-to-install/21248

Any ideas for me?

Thanks!

Update
After reloading the page, Paper UI now shows the Network Binding as installed even though the last thing the log shows is still the failed installation…

Solution
I’m still not sure exactly what was going wrong with my openHABian install, but I just flashed a fresh install of Raspbian and followed the usual steps to install openHAB via apt and now everything is working fine!

I found another instance of a similar issue with no replies:
https://community.openhab.org/t/installing-ininstalling-loading-for-ever-openhab2/27502

Could someone at least tell me if it is normal behavior for the CloudClient to shut down and the UIs to stop and start so often? Or, are any of these java exceptions worth noting? (I’ve had some new ones show up today that I may try posting in a new topic later). Probably not surprising but I also have not been able to get my system to show “Online” at myopenhab.org, which I assume is related to the same problem as the Socket.IO error.

Any leads?

Thanks!

Another similar issue with no resolution…
https://community.openhab.org/t/openhabian-rasperrypi-rfxcom-binding-issues/27846

As a matter of fact, I have noticed the same, but as the add-ons in the end seem installed, in spite of the loading circle never seeming to finish, I just left it as a nuisance

Good to know I’m definitely not the only one! Have you noticed any other issues in your system so far? I was mainly just concerned that this was a symptom of something deeper that would come up again as I configure everything. If it is really limited to just this constantly-loading icon, I don’t mind!

no other issues, although the phone app seems to crash often, much more than with a previous openhabian distro

Thanks for letting me know! FYI, I just tried going the non-openHABian route and installed openHAB from a fresh Raspbian install and it’s working perfectly.

i will keep that inmind. I may go back to a previous openhabian distro

because of frequent crashes i had with latest distro, I went back to a previous distro i had used before. No more endless ‘loading circle’

Which build did you go back to?

I have no idea where to find the build.I downloaded it in i think february. are you helped by an UUID?

/userdata/etc/branding.properties

1 Like

not sure if you can pick the build from this:

\u001B[31m    /_/                       \u001B[0m 2.0.0\u001B[0m\r\n\
\u001B[31m                              \u001B[0m Release Build   \u001B[0m\r\n\

thank you

That is the (very old) stable build.
Not a good idea if you need recent features (for example zwave database updates).
If you are fine with the existing features that build is great, though.

just upgraded to the latest build

also addons in addons.cfg seem not get installed

1 Like

In #964 that is still working okay …

1 Like

I tested a little more…
seems binding depended …

zigbee and ekey throw an error “artifact not found”… from the bindings I tried

Thank you, I would prefer the newest build, but with that one I continuously had to restart my mobile app and even my raspberry, even after a reinstall. I think I downloaded the previous stable one it in february… but in terms of updates that may be very old :slight_smile: Currently not doing anything with Z-Wave, mainly MQTT, so for now I will be fine

also in current build for
ekey and zigbee binding I get an artifact missing error…
I can’t find any reason why this should be a local problem?

20:14:36.557 [WARN ] [url.mvn.internal.AetherBasedResolver] - Error resolving artifact org.openhab.addons:openhab-addons-external:cfg:ekey:1.10.0-SNAPSHOT: [Could not find artifact org.openhab.addons:openhab-addons-external:cfg:ekey:1.10.0-SNAPSHOT in oh-snapshot-repo (http://oss.jfrog.org/libs-snapshot/), Could not find artifact org.openhab.addons:openhab-addons-external:cfg:ekey:1.10.0-SNAPSHOT in esh-snapshot-repo (https://repo.eclipse.org/content/repositories/snapshots/), Could not find artifact org.openhab.addons:openhab-addons-external:cfg:ekey:1.10.0-SNAPSHOT in esh-snapshot-repo (https://repo.eclipse.org/content/repositories/snapshots/), Could not find artifact org.openhab.addons:openhab-addons-external:cfg:ekey:1.10.0-SNAPSHOT in oh-snapshot-repo (http://oss.jfrog.org/libs-snapshot/), Could not find artifact org.openhab.addons:openhab-addons-external:cfg:ekey:1.10.0-SNAPSHOT in openhab (https://dl.bintray.com/openhab/mvn/online-repo/2.0/)]
java.io.IOException: Error resolving artifact org.openhab.addons:openhab-addons-external:cfg:ekey:1.10.0-SNAPSHOT: [Could not find artifact org.openhab.addons:openhab-addons-external:cfg:ekey:1.10.0-SNAPSHOT in oh-snapshot-repo (http://oss.jfrog.org/libs-snapshot/), Could not find artifact org.openhab.addons:openhab-addons-external:cfg:ekey:1.10.0-SNAPSHOT in esh-snapshot-repo (https://repo.eclipse.org/content/repositories/snapshots/), Could not find artifact org.openhab.addons:openhab-addons-external:cfg:ekey:1.10.0-SNAPSHOT in esh-snapshot-repo (https://repo.eclipse.org/content/repositories/snapshots/), Could not find artifact org.openhab.addons:openhab-addons-external:cfg:ekey:1.10.0-SNAPSHOT in oh-snapshot-repo (http://oss.jfrog.org/libs-snapshot/), Could not find artifact org.openhab.addons:openhab-addons-external:cfg:ekey:1.10.0-SNAPSHOT in openhab (https://dl.bintray.com/openhab/mvn/online-repo/2.0/)]
	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.ops4j.pax.url.mvn.internal.AetherBasedResolver.resolve(AetherBasedResolver.java:557)[7:org.ops4j.pax.url.mvn:2.5.2]
	at org.ops4j.pax.url.mvn.internal.Connection.getInputStream(Connection.java:123)[7:org.ops4j.pax.url.mvn:2.5.2]