Installation or deinstallation of Bindings Error

Hey,

since a few weeks my openhab is getting crazy. Before it was absolutely easy to install bindings etc. But now, when I try to install or deinstall any binding, I get a lot of erros. It always looks somehow like this:

2018-11-01 10:32:38.660 [INFO ] [basic.internal.servlet.WebAppServlet] - Stopped Basic UI

2018-11-01 10:32:38.947 [INFO ] [panel.internal.HABPanelDashboardTile] - Stopped HABPanel

2018-11-01 10:32:39.191 [INFO ] [io.openhabcloud.internal.CloudClient] - Shutting down openHAB Cloud service connection

2018-11-01 10:32:39.199 [INFO ] [io.openhabcloud.internal.CloudClient] - Disconnected from the openHAB Cloud service (UUID = e66d9ebc-4bbd-439e-ac46-3cd84a290d24, base URL = http://localhost:8080)

2018-11-01 10:32:39.806 [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:800) [?:?]

at org.eclipse.osgi.internal.framework.BundleContextImpl.start(BundleContextImpl.java:729) [?:?]

at org.eclipse.osgi.internal.framework.EquinoxBundle.startWorker0(EquinoxBundle.java:933) [?:?]

at org.eclipse.osgi.internal.framework.EquinoxBundle$EquinoxModule.startWorker(EquinoxBundle.java:309) [?:?]

at org.eclipse.osgi.container.Module.doStart(Module.java:581) [?:?]

at org.eclipse.osgi.container.Module.start(Module.java:449) [?:?]

at org.eclipse.osgi.framework.util.SecureAction.start(SecureAction.java:468) [?:?]

at org.eclipse.osgi.container.ModuleContainer.start(ModuleContainer.java:750) [?:?]

at org.eclipse.osgi.container.ModuleContainer.applyDelta(ModuleContainer.java:741) [?:?]

at org.eclipse.osgi.container.ModuleContainer.resolveAndApply(ModuleContainer.java:511) [?:?]

at org.eclipse.osgi.container.ModuleContainer.resolve(ModuleContainer.java:457) [?:?]

at org.eclipse.osgi.container.ModuleContainer.refresh(ModuleContainer.java:1001) [?:?]

at org.eclipse.osgi.container.ModuleContainer$ContainerWiring.dispatchEvent(ModuleContainer.java:1382) [?:?]

at org.eclipse.osgi.container.ModuleContainer$ContainerWiring.dispatchEvent(ModuleContainer.java:1) [?:?]

at org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEvent(EventManager.java:230) [?:?]

at org.eclipse.osgi.framework.eventmgr.EventManager$EventThread.run(EventManager.java:340) [?:?]

Caused by: java.lang.LinkageError: ClassCastException: attempting to castbundleresource://33.fwk26700389/javax/ws/rs/ext/RuntimeDelegate.class to bundleresource://33.fwk26700389/javax/ws/rs/ext/RuntimeDelegate.class

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.<clinit>(SseFeature.java:62) ~[?:?]

at org.eclipse.smarthome.io.rest.sse.internal.SseActivator.start(SseActivator.java:49) ~[?:?]

at org.eclipse.osgi.internal.framework.BundleContextImpl$3.run(BundleContextImpl.java:779) ~[?:?]

at org.eclipse.osgi.internal.framework.BundleContextImpl$3.run(BundleContextImpl.java:1) ~[?:?]

at java.security.AccessController.doPrivileged(Native Method) ~[?:?]

at org.eclipse.osgi.internal.framework.BundleContextImpl.startActivator(BundleContextImpl.java:772) ~[?:?]

2018-11-01 10:32:55.451 [INFO ] [basic.internal.servlet.WebAppServlet] - Stopped Basic UI

2018-11-01 10:32:55.804 [INFO ] [panel.internal.HABPanelDashboardTile] - Stopped HABPanel

2018-11-01 10:32:56.113 [INFO ] [io.openhabcloud.internal.CloudClient] - Shutting down openHAB Cloud service connection

2018-11-01 10:32:56.119 [INFO ] [io.openhabcloud.internal.CloudClient] - Disconnected from the openHAB Cloud service (UUID = e66d9ebc-4bbd-439e-ac46-3cd84a290d24, base URL = http://localhost:8080)

2018-11-01 10:32:57.236 [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:800) [?:?]

at org.eclipse.osgi.internal.framework.BundleContextImpl.start(BundleContextImpl.java:729) [?:?]

at org.eclipse.osgi.internal.framework.EquinoxBundle.startWorker0(EquinoxBundle.java:933) [?:?]

at org.eclipse.osgi.internal.framework.EquinoxBundle$EquinoxModule.startWorker(EquinoxBundle.java:309) [?:?]

at org.eclipse.osgi.container.Module.doStart(Module.java:581) [?:?]

at org.eclipse.osgi.container.Module.start(Module.java:449) [?:?]

at org.eclipse.osgi.framework.util.SecureAction.start(SecureAction.java:468) [?:?]

at org.eclipse.osgi.container.ModuleContainer.start(ModuleContainer.java:750) [?:?]

at org.eclipse.osgi.container.ModuleContainer.applyDelta(ModuleContainer.java:741) [?:?]

at org.eclipse.osgi.container.ModuleContainer.resolveAndApply(ModuleContainer.java:511) [?:?]

at org.eclipse.osgi.container.ModuleContainer.resolve(ModuleContainer.java:457) [?:?]

at org.eclipse.osgi.container.ModuleContainer.refresh(ModuleContainer.java:1001) [?:?]

at org.eclipse.osgi.container.ModuleContainer$ContainerWiring.dispatchEvent(ModuleContainer.java:1382) [?:?]

at org.eclipse.osgi.container.ModuleContainer$ContainerWiring.dispatchEvent(ModuleContainer.java:1) [?:?]

at org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEvent(EventManager.java:230) [?:?]

at org.eclipse.osgi.framework.eventmgr.EventManager$EventThread.run(EventManager.java:340) [?:?]

Caused by: java.lang.LinkageError: ClassCastException: attempting to castbundleresource://33.fwk26700389/javax/ws/rs/ext/RuntimeDelegate.class to bundleresource://33.fwk26700389/javax/ws/rs/ext/RuntimeDelegate.class

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.<clinit>(SseFeature.java:62) ~[?:?]

at org.eclipse.smarthome.io.rest.sse.internal.SseActivator.start(SseActivator.java:49) ~[?:?]

at org.eclipse.osgi.internal.framework.BundleContextImpl$3.run(BundleContextImpl.java:779) ~[?:?]

at org.eclipse.osgi.internal.framework.BundleContextImpl$3.run(BundleContextImpl.java:1) ~[?:?]

at java.security.AccessController.doPrivileged(Native Method) ~[?:?]

at org.eclipse.osgi.internal.framework.BundleContextImpl.startActivator(BundleContextImpl.java:772) ~[?:?]

2018-11-01 10:32:57.418 [INFO ] [er.internal.HomeBuilderDashboardTile] - Started Home Builder at /homebuilder

2018-11-01 10:32:57.508 [INFO ] [panel.internal.HABPanelDashboardTile] - Started HABPanel at /habpanel

2018-11-01 10:32:58.106 [INFO ] [basic.internal.servlet.WebAppServlet] - Started Basic UI at /basicui/app

2018-11-01 10:32:59.245 [INFO ] [io.openhabcloud.internal.CloudClient] - Connected to the openHAB Cloud service (UUID = e66d9ebc-4bbd-439e-ac46-3cd84a290d24, base URL = http://localhost:8080)

2018-11-01 10:33:07.821 [INFO ] [io.openhabcloud.internal.CloudClient] - Shutting down openHAB Cloud service connection

2018-11-01 10:33:07.885 [INFO ] [er.internal.HomeBuilderDashboardTile] - Stopped Home Builder

2018-11-01 10:33:07.961 [INFO ] [io.openhabcloud.internal.CloudClient] - Disconnected from the openHAB Cloud service (UUID = e66d9ebc-4bbd-439e-ac46-3cd84a290d24, base URL = http://localhost:8080)

2018-11-01 10:33:08.287 [INFO ] [io.openhabcloud.internal.CloudClient] - Connected to the openHAB Cloud service (UUID = e66d9ebc-4bbd-439e-ac46-3cd84a290d24, base URL = http://localhost:8080)

==> /var/log/openhab2/openhab.log <==

2018-11-01 10:33:16.217 [INFO ] [basic.internal.servlet.WebAppServlet] - Stopped Basic UI

2018-11-01 10:33:16.401 [INFO ] [panel.internal.HABPanelDashboardTile] - Stopped HABPanel

2018-11-01 10:33:16.613 [INFO ] [io.openhabcloud.internal.CloudClient] - Shutting down openHAB Cloud service connection

2018-11-01 10:33:16.620 [INFO ] [io.openhabcloud.internal.CloudClient] - Disconnected from the openHAB Cloud service (UUID = e66d9ebc-4bbd-439e-ac46-3cd84a290d24, base URL = http://localhost:8080)

2018-11-01 10:33:17.348 [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:800) [?:?]

at org.eclipse.osgi.internal.framework.BundleContextImpl.start(BundleContextImpl.java:729) [?:?]

at org.eclipse.osgi.internal.framework.EquinoxBundle.startWorker0(EquinoxBundle.java:933) [?:?]

at org.eclipse.osgi.internal.framework.EquinoxBundle$EquinoxModule.startWorker(EquinoxBundle.java:309) [?:?]

at org.eclipse.osgi.container.Module.doStart(Module.java:581) [?:?]

at org.eclipse.osgi.container.Module.start(Module.java:449) [?:?]

at org.eclipse.osgi.framework.util.SecureAction.start(SecureAction.java:468) [?:?]

at org.eclipse.osgi.container.ModuleContainer.start(ModuleContainer.java:750) [?:?]

at org.eclipse.osgi.container.ModuleContainer.applyDelta(ModuleContainer.java:741) [?:?]

at org.eclipse.osgi.container.ModuleContainer.resolveAndApply(ModuleContainer.java:511) [?:?]

at org.eclipse.osgi.container.ModuleContainer.resolve(ModuleContainer.java:457) [?:?]

at org.eclipse.osgi.container.ModuleContainer.refresh(ModuleContainer.java:1001) [?:?]

at org.eclipse.osgi.container.ModuleContainer$ContainerWiring.dispatchEvent(ModuleContainer.java:1382) [?:?]

at org.eclipse.osgi.container.ModuleContainer$ContainerWiring.dispatchEvent(ModuleContainer.java:1) [?:?]

at org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEvent(EventManager.java:230) [?:?]

at org.eclipse.osgi.framework.eventmgr.EventManager$EventThread.run(EventManager.java:340) [?:?]

Caused by: java.lang.LinkageError: ClassCastException: attempting to castbundleresource://33.fwk26700389/javax/ws/rs/ext/RuntimeDelegate.class to bundleresource://33.fwk26700389/javax/ws/rs/ext/RuntimeDelegate.class

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.<clinit>(SseFeature.java:62) ~[?:?]

at org.eclipse.smarthome.io.rest.sse.internal.SseActivator.start(SseActivator.java:49) ~[?:?]

at org.eclipse.osgi.internal.framework.BundleContextImpl$3.run(BundleContextImpl.java:779) ~[?:?]

at org.eclipse.osgi.internal.framework.BundleContextImpl$3.run(BundleContextImpl.java:1) ~[?:?]

at java.security.AccessController.doPrivileged(Native Method) ~[?:?]

at org.eclipse.osgi.internal.framework.BundleContextImpl.startActivator(BundleContextImpl.java:772) ~[?:?]

… 15 more

2018-11-01 10:33:17.461 [INFO ] [er.internal.HomeBuilderDashboardTile] - Started Home Builder at /homebuilder

2018-11-01 10:33:17.552 [INFO ] [panel.internal.HABPanelDashboardTile] - Started HABPanel at /habpanel

2018-11-01 10:33:18.104 [INFO ] [basic.internal.servlet.WebAppServlet] - Started Basic UI at /basicui/app

2018-11-01 10:33:19.072 [INFO ] [io.openhabcloud.internal.CloudClient] - Connected to the openHAB Cloud service (UUID = e66d9ebc-4bbd-439e-ac46-3cd84a290d24, base URL = http://localhost:8080)

2018-11-01 10:33:24.828 [INFO ] [io.openhabcloud.internal.CloudClient] - Shutting down openHAB Cloud service connection

2018-11-01 10:33:24.938 [INFO ] [io.openhabcloud.internal.CloudClient] - Disconnected from the openHAB Cloud service (UUID = e66d9ebc-4bbd-439e-ac46-3cd84a290d24, base URL = http://localhost:8080)

2018-11-01 10:33:24.943 [INFO ] [er.internal.HomeBuilderDashboardTile] - Stopped Home Builder

2018-11-01 10:33:25.777 [INFO ] [io.openhabcloud.internal.CloudClient] - Connected to the openHAB Cloud service (UUID = e66d9ebc-4bbd-439e-ac46-3cd84a290d24, base URL = http://localhost:8080)

==> /var/log/openhab2/events.log <==

Any idea what I could do? Or is there a way of making a new installation of openhab without loosing my bindings and the configuration?

First did to try clear the cache

Well I did that, but now nothing is working any more. I cant even reach the usual board.

The log says:

2018-11-01 14:51:36.101 [SEVERE] [org.apache.karaf.main.Main] - Could not launch framework

java.lang.RuntimeException: Error initializing storage.

at org.eclipse.osgi.internal.framework.EquinoxContainer.<init>(EquinoxContainer.java:70)

at org.eclipse.osgi.launch.Equinox.<init>(Equinox.java:31)

at org.eclipse.osgi.launch.EquinoxFactory.newFramework(EquinoxFactory.java:24)

at org.apache.karaf.main.Main.launch(Main.java:256)

at org.apache.karaf.main.Main.main(Main.java:179)

Caused by: java.io.FileNotFoundException: /var/lib/openhab2/cache/org.eclipse.osgi/.manager/.fileTableLock (Permission denied)

at java.io.RandomAccessFile.open0(Native Method)

at java.io.RandomAccessFile.open(RandomAccessFile.java:316)

at java.io.RandomAccessFile.<init>(RandomAccessFile.java:243)

at org.eclipse.osgi.internal.location.Locker_JavaNio.lock(Locker_JavaNio.java:36)

at org.eclipse.osgi.storagemanager.StorageManager.lock(StorageManager.java:388)

at org.eclipse.osgi.storagemanager.StorageManager.open(StorageManager.java:701)

at org.eclipse.osgi.storage.Storage.getChildStorageManager(Storage.java:1776)

at org.eclipse.osgi.storage.Storage.getInfoInputStream(Storage.java:1793)

at org.eclipse.osgi.storage.Storage.<init>(Storage.java:132)

at org.eclipse.osgi.storage.Storage.createStorage(Storage.java:85)

at org.eclipse.osgi.internal.framework.EquinoxContainer.<init>(EquinoxContainer.java:68)

… 4 more