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!