[SOLVED] No opencloud when upgrading from 2.4 to 2.5M4

Running OH 2.4 on RPi 3 with SSD and no SD card. I have no issues when running 2.4 but upgrading to 2.5 ( Using openhabian-config tool and trying several milestones ) results in no opencloud. All other bindings, Amazon, Astro, EXEC, HTTP, MQTT, and Network seem to work fine. Also noticed in PaperUI > Configuration > Services there was no IO tab where opencloud normally gets configured. When checking via console it’s there and active but this is what I get in logs:

2019-11-07 10:21:06.342 [ERROR] [org.openhab.io.openhabcloud         ] - bundle org.openhab.io.openhabcloud:2.5.0.M4 (259)[org.openhab.io.openhabcloud.internal.CloudService] :  Cannot register component

java.lang.IllegalStateException: BundleContext is no longer valid

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

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

	at org.apache.felix.scr.impl.ComponentRegistry.checkComponentName(ComponentRegistry.java:226) ~[43:org.apache.felix.scr:2.1.16]

	at org.apache.felix.scr.impl.BundleComponentActivator.loadDescriptor(BundleComponentActivator.java:442) [43:org.apache.felix.scr:2.1.16]

	at org.apache.felix.scr.impl.BundleComponentActivator.initialize(BundleComponentActivator.java:314) [43:org.apache.felix.scr:2.1.16]

	at org.apache.felix.scr.impl.BundleComponentActivator.<init>(BundleComponentActivator.java:269) [43:org.apache.felix.scr:2.1.16]

	at org.apache.felix.scr.impl.Activator.loadComponents(Activator.java:380) [43:org.apache.felix.scr:2.1.16]

	at org.apache.felix.scr.impl.Activator.access$200(Activator.java:49) [43:org.apache.felix.scr:2.1.16]

	at org.apache.felix.scr.impl.Activator$ScrExtension.start(Activator.java:264) [43:org.apache.felix.scr:2.1.16]

	at org.apache.felix.scr.impl.AbstractExtender.createExtension(AbstractExtender.java:196) [43:org.apache.felix.scr:2.1.16]

	at org.apache.felix.scr.impl.AbstractExtender.modifiedBundle(AbstractExtender.java:169) [43:org.apache.felix.scr:2.1.16]

	at org.apache.felix.scr.impl.AbstractExtender.modifiedBundle(AbstractExtender.java:49) [43:org.apache.felix.scr:2.1.16]

	at org.osgi.util.tracker.BundleTracker$Tracked.customizerModified(BundleTracker.java:482) [?:?]

	at org.osgi.util.tracker.BundleTracker$Tracked.customizerModified(BundleTracker.java:415) [?:?]

	at org.osgi.util.tracker.AbstractTracked.track(AbstractTracked.java:232) [?:?]

	at org.osgi.util.tracker.BundleTracker$Tracked.bundleChanged(BundleTracker.java:444) [?:?]

	at org.eclipse.osgi.internal.framework.BundleContextImpl.dispatchEvent(BundleContextImpl.java:908) [?:?]

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

	at org.eclipse.osgi.framework.eventmgr.ListenerQueue.dispatchEventSynchronous(ListenerQueue.java:148) [?:?]

	at org.eclipse.osgi.internal.framework.EquinoxEventPublisher.publishBundleEventPrivileged(EquinoxEventPublisher.java:213) [?:?]

	at org.eclipse.osgi.internal.framework.EquinoxEventPublisher.publishBundleEvent(EquinoxEventPublisher.java:120) [?:?]

	at org.eclipse.osgi.internal.framework.EquinoxEventPublisher.publishBundleEvent(EquinoxEventPublisher.java:112) [?:?]

	at org.eclipse.osgi.internal.framework.EquinoxContainerAdaptor.publishModuleEvent(EquinoxContainerAdaptor.java:168) [?:?]

	at org.eclipse.osgi.container.Module.publishEvent(Module.java:476) [?:?]

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

	at org.eclipse.osgi.internal.framework.EquinoxBundle.start(EquinoxBundle.java:383) [?:?]

	at org.apache.karaf.bundle.command.Restart.doExecute(Restart.java:51) [46:org.apache.karaf.bundle.core:4.2.6]

	at org.apache.karaf.bundle.command.BundlesCommand.execute(BundlesCommand.java:55) [46:org.apache.karaf.bundle.core:4.2.6]

	at org.apache.karaf.shell.impl.action.command.ActionCommand.execute(ActionCommand.java:84) [14:org.apache.karaf.shell.core:4.2.6]

	at org.apache.karaf.shell.impl.console.osgi.secured.SecuredCommand.execute(SecuredCommand.java:68) [14:org.apache.karaf.shell.core:4.2.6]

	at org.apache.karaf.shell.impl.console.osgi.secured.SecuredCommand.execute(SecuredCommand.java:86) [14:org.apache.karaf.shell.core:4.2.6]

	at org.apache.felix.gogo.runtime.Closure.executeCmd(Closure.java:599) [14:org.apache.karaf.shell.core:4.2.6]

	at org.apache.felix.gogo.runtime.Closure.executeStatement(Closure.java:526) [14:org.apache.karaf.shell.core:4.2.6]

	at org.apache.felix.gogo.runtime.Closure.execute(Closure.java:415) [14:org.apache.karaf.shell.core:4.2.6]

	at org.apache.felix.gogo.runtime.Pipe.doCall(Pipe.java:416) [14:org.apache.karaf.shell.core:4.2.6]

	at org.apache.felix.gogo.runtime.Pipe.call(Pipe.java:229) [14:org.apache.karaf.shell.core:4.2.6]

	at org.apache.felix.gogo.runtime.Pipe.call(Pipe.java:59) [14:org.apache.karaf.shell.core:4.2.6]

	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) [?:?]

Things I’ve tried are using both PaperUI and console to uninstall and reinstall, using console to resolve/fix. Other attempts were clean cache, reboot and repeated these steps again after deleting UUID/Secret. OH did regenerate new UUID and secret but after replacing them in myopenhab the issue remained. Also uninstalled all bindings (jar files included) and tried again but no luck.

I haven’t seen a similar issue on the forum or GitHub so hopefully, someone can point me into the direction needed.

Thanks

@H102

Could you please do:

bundle:list |grep Cloud

Is it “Active”?

Or better:

bundle:list

result should be:

this are ALL dependencies and they all should be Active:

299 | Active   |  80 | 1.0.0                 | IO.Socket Engine Client
300 | Active   |  80 | 1.0.0                 | IO.Socket Socket Client
301 | Active   |  80 | 20180813.0.0          | JSON in Java
302 | Active   |  80 | 3.8.1.1               | Apache ServiceMix :: Bundles :: okhttp
303 | Active   |  80 | 1.13.0.1              | Apache ServiceMix :: Bundles :: okio
304 | Active   |  80 | 2.5.0.M4              | openHAB Add-ons :: Bundles :: IO :: openHAB Cloud Connector

If some or all dependencies are missing, you can install them as follows:

bundle:install https://openhab.jfrog.io/openhab/libs-release-local/org/openhab/osgiify/io.socket.engine.io-client/1.0.0/io.socket.engine.io-client-1.0.0.jar
bundle:install https://openhab.jfrog.io/openhab/libs-release-local/org/openhab/osgiify/io.socket.socket.io-client/1.0.0/io.socket.socket.io-client-1.0.0.jar
bundle:install https://repo1.maven.org/maven2/org/json/json/20180813/json-20180813.jar
bundle:install https://repo1.maven.org/maven2/org/apache/servicemix/bundles/org.apache.servicemix.bundles.okhttp/3.8.1_1/org.apache.servicemix.bundles.okhttp-3.8.1_1.jar
bundle:install https://repo1.maven.org/maven2/org/apache/servicemix/bundles/org.apache.servicemix.bundles.okio/1.13.0_1/org.apache.servicemix.bundles.okio-1.13.0_1.jar

.
.

Could you please also set:

log:set DEBUG org.openhab.io.openhabcloud

Maybe you’ll see the error then?

There was nothing in console output that was not active but I did not verify I had all dependencies. BTW where can I find a list of dependencies for each binding?

Tryed DEBUG and TRACE but no info. Guessing it was b/c opencloud was not really installed or dependencies issues prevented extra logging.

Thanks for the info and I will give it a go sometime soon. Have to wait till my testing won’t interrupt family.:shushing_face:

@H102

It can be found here: e.g. for openhabcloud

But where to download?

Most of them can be found here:

https://repo1.maven.org/maven2/org/

Or here:

https://openhab.jfrog.io/openhab/libs-release-local/org/openhab/osgiify/

1 Like

@Celaeno1, finally had time to give it another shot and this is the result:

2019-11-20 13:19:32.207 [ERROR] [org.apache.felix.scr                ] - bundle org.apache.felix.scr:2.1.16 (44)Error while loading components of bundle org.openhab.io.openhabcloud:2.5.0.M5 (276)

java.lang.ClassCastException: java.lang.String cannot be cast to java.lang.Long

	at org.apache.felix.cm.impl.ConfigurationImpl.configure(ConfigurationImpl.java:659) ~[?:?]

	at org.apache.felix.cm.impl.ConfigurationImpl.configureFromPersistence(ConfigurationImpl.java:619) ~[?:?]

	at org.apache.felix.cm.impl.ConfigurationImpl.<init>(ConfigurationImpl.java:194) ~[?:?]

	at org.apache.felix.cm.impl.ConfigurationManager.listConfigurations(ConfigurationManager.java:552) ~[?:?]

	at org.apache.felix.cm.impl.ConfigurationAdminImpl.listConfigurations(ConfigurationAdminImpl.java:190) ~[?:?]

	at org.apache.felix.scr.impl.manager.RegionConfigurationSupport.findConfigurations(RegionConfigurationSupport.java:655) ~[bundleFile:?]

	at org.apache.felix.scr.impl.manager.RegionConfigurationSupport.findSingletonConfiguration(RegionConfigurationSupport.java:554) ~[bundleFile:?]

	at org.apache.felix.scr.impl.manager.RegionConfigurationSupport.configureComponentHolder(RegionConfigurationSupport.java:199) ~[bundleFile:?]

	at org.apache.felix.scr.impl.BundleComponentActivator.setRegionConfigurationSupport(BundleComponentActivator.java:763) ~[bundleFile:?]

	at org.apache.felix.scr.impl.helper.ConfigAdminTracker$1.addingService(ConfigAdminTracker.java:69) ~[?:?]

	at org.apache.felix.scr.impl.helper.ConfigAdminTracker$1.addingService(ConfigAdminTracker.java:41) ~[?:?]

	at org.osgi.util.tracker.ServiceTracker$Tracked.customizerAdding(ServiceTracker.java:941) ~[osgi.core-6.0.0.jar:?]

	at org.osgi.util.tracker.ServiceTracker$Tracked.customizerAdding(ServiceTracker.java:870) ~[osgi.core-6.0.0.jar:?]

	at org.osgi.util.tracker.AbstractTracked.trackAdding(AbstractTracked.java:256) ~[osgi.core-6.0.0.jar:?]

	at org.osgi.util.tracker.AbstractTracked.trackInitial(AbstractTracked.java:183) ~[osgi.core-6.0.0.jar:?]

	at org.osgi.util.tracker.ServiceTracker.open(ServiceTracker.java:318) ~[osgi.core-6.0.0.jar:?]

	at org.osgi.util.tracker.ServiceTracker.open(ServiceTracker.java:261) ~[osgi.core-6.0.0.jar:?]

	at org.apache.felix.scr.impl.helper.ConfigAdminTracker.<init>(ConfigAdminTracker.java:86) ~[bundleFile:?]

	at org.apache.felix.scr.impl.BundleComponentActivator.<init>(BundleComponentActivator.java:275) ~[bundleFile:?]

	at org.apache.felix.scr.impl.Activator.loadComponents(Activator.java:380) [bundleFile:?]

	at org.apache.felix.scr.impl.Activator.access$200(Activator.java:49) [bundleFile:?]

	at org.apache.felix.scr.impl.Activator$ScrExtension.start(Activator.java:264) [bundleFile:?]

	at org.apache.felix.scr.impl.AbstractExtender.createExtension(AbstractExtender.java:196) [bundleFile:?]

	at org.apache.felix.scr.impl.AbstractExtender.modifiedBundle(AbstractExtender.java:169) [bundleFile:?]

	at org.apache.felix.scr.impl.AbstractExtender.modifiedBundle(AbstractExtender.java:49) [bundleFile:?]

	at org.osgi.util.tracker.BundleTracker$Tracked.customizerModified(BundleTracker.java:482) [osgi.core-6.0.0.jar:?]

	at org.osgi.util.tracker.BundleTracker$Tracked.customizerModified(BundleTracker.java:415) [osgi.core-6.0.0.jar:?]

	at org.osgi.util.tracker.AbstractTracked.track(AbstractTracked.java:232) [osgi.core-6.0.0.jar:?]

	at org.osgi.util.tracker.BundleTracker$Tracked.bundleChanged(BundleTracker.java:444) [osgi.core-6.0.0.jar:?]

	at org.eclipse.osgi.internal.framework.BundleContextImpl.dispatchEvent(BundleContextImpl.java:908) [org.eclipse.osgi-3.12.100.jar:?]

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

	at org.eclipse.osgi.framework.eventmgr.ListenerQueue.dispatchEventSynchronous(ListenerQueue.java:148) [org.eclipse.osgi-3.12.100.jar:?]

	at org.eclipse.osgi.internal.framework.EquinoxEventPublisher.publishBundleEventPrivileged(EquinoxEventPublisher.java:213) [org.eclipse.osgi-3.12.100.jar:?]

	at org.eclipse.osgi.internal.framework.EquinoxEventPublisher.publishBundleEvent(EquinoxEventPublisher.java:120) [org.eclipse.osgi-3.12.100.jar:?]

	at org.eclipse.osgi.internal.framework.EquinoxEventPublisher.publishBundleEvent(EquinoxEventPublisher.java:112) [org.eclipse.osgi-3.12.100.jar:?]

	at org.eclipse.osgi.internal.framework.EquinoxContainerAdaptor.publishModuleEvent(EquinoxContainerAdaptor.java:168) [org.eclipse.osgi-3.12.100.jar:?]

	at org.eclipse.osgi.container.Module.publishEvent(Module.java:476) [org.eclipse.osgi-3.12.100.jar:?]

	at org.eclipse.osgi.container.Module.start(Module.java:467) [org.eclipse.osgi-3.12.100.jar:?]

	at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.incStartLevel(ModuleContainer.java:1634) [org.eclipse.osgi-3.12.100.jar:?]

	at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.incStartLevel(ModuleContainer.java:1614) [org.eclipse.osgi-3.12.100.jar:?]

	at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.doContainerStartLevel(ModuleContainer.java:1585) [org.eclipse.osgi-3.12.100.jar:?]

	at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.dispatchEvent(ModuleContainer.java:1528) [org.eclipse.osgi-3.12.100.jar:?]

	at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.dispatchEvent(ModuleContainer.java:1) [org.eclipse.osgi-3.12.100.jar:?]

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

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

All dependencies were installed, active and versions matched what’s posted. I tried everything listed above plus an attempt to install opencloud via jar file in addons. The result is the same using M4 or M5.

Any other ideas?

Did you configure PaperUI --> Configuration -> System --> Regional Settings ?

Language, Time Zone, Country/Region, Location ??

Reconfigure it and SAVE it again.

Please also check if the following update tasks were done:

REPLACE;org.eclipse.smarthome.automation.dto.RuleDTO;org.openhab.core.automation.dto.RuleDTO;$OPENHAB_USERDATA/jsondb/automation_rules.json
MOVE;$OPENHAB_USERDATA/config/org/eclipse/smarthome/core/i18nprovider.config;$OPENHAB_USERDATA/config/org/eclipse/smarthome/i18n.config
REPLACE;org.eclipse.smarthome.core.i18nprovider;org.eclipse.smarthome.i18n;$OPENHAB_USERDATA/config/org/eclipse/smarthome/i18n.config

That was done.

Some of that looks familiar, as it flashes across the screen.:grin: Is there a place I can verify this info?

I’m back on 2.4 and everything is good…gotta take a break been playing with this for hours. I also never got the I/O tab in PaperUI

Look into the given file locations and check if they are in place with correct names and contents. You can compare 2.5.0.M4 contens with your 2.4.0 installation.

@Celaeno1, made another attempt and got a different error.

[ERROR] [org.openhab.io.openhabcloud         ] - bundle org.openhab.io.openhabcloud:2.5.0.M5 (256)[org.openhab.io.openhabcloud.internal.CloudService] :  Cannot register component

java.lang.IllegalStateException: BundleContext is no longer valid

	at org.eclipse.osgi.internal.framework.BundleContextImpl.checkValid(BundleContextImpl.java:989) ~[org.eclipse.osgi-3.12.100.jar:?]

	at org.eclipse.osgi.internal.framework.BundleContextImpl.getBundle(BundleContextImpl.java:129) ~[org.eclipse.osgi-3.12.100.jar:?]

	at org.apache.felix.scr.impl.ComponentRegistry.checkComponentName(ComponentRegistry.java:226) ~[bundleFile:?]

	at org.apache.felix.scr.impl.BundleComponentActivator.loadDescriptor(BundleComponentActivator.java:442) [bundleFile:?]

	at org.apache.felix.scr.impl.BundleComponentActivator.initialize(BundleComponentActivator.java:314) [bundleFile:?]

	at org.apache.felix.scr.impl.BundleComponentActivator.<init>(BundleComponentActivator.java:269) [bundleFile:?]

	at org.apache.felix.scr.impl.Activator.loadComponents(Activator.java:380) [bundleFile:?]

	at org.apache.felix.scr.impl.Activator.access$200(Activator.java:49) [bundleFile:?]

	at org.apache.felix.scr.impl.Activator$ScrExtension.start(Activator.java:264) [bundleFile:?]

	at org.apache.felix.scr.impl.AbstractExtender.createExtension(AbstractExtender.java:196) [bundleFile:?]

	at org.apache.felix.scr.impl.AbstractExtender.modifiedBundle(AbstractExtender.java:169) [bundleFile:?]

	at org.apache.felix.scr.impl.AbstractExtender.modifiedBundle(AbstractExtender.java:49) [bundleFile:?]

	at org.osgi.util.tracker.BundleTracker$Tracked.customizerModified(BundleTracker.java:482) [osgi.core-6.0.0.jar:?]

	at org.osgi.util.tracker.BundleTracker$Tracked.customizerModified(BundleTracker.java:415) [osgi.core-6.0.0.jar:?]

	at org.osgi.util.tracker.AbstractTracked.track(AbstractTracked.java:232) [osgi.core-6.0.0.jar:?]

	at org.osgi.util.tracker.BundleTracker$Tracked.bundleChanged(BundleTracker.java:444) [osgi.core-6.0.0.jar:?]

	at org.eclipse.osgi.internal.framework.BundleContextImpl.dispatchEvent(BundleContextImpl.java:908) [org.eclipse.osgi-3.12.100.jar:?]

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

	at org.eclipse.osgi.framework.eventmgr.ListenerQueue.dispatchEventSynchronous(ListenerQueue.java:148) [org.eclipse.osgi-3.12.100.jar:?]

	at org.eclipse.osgi.internal.framework.EquinoxEventPublisher.publishBundleEventPrivileged(EquinoxEventPublisher.java:213) [org.eclipse.osgi-3.12.100.jar:?]

	at org.eclipse.osgi.internal.framework.EquinoxEventPublisher.publishBundleEvent(EquinoxEventPublisher.java:120) [org.eclipse.osgi-3.12.100.jar:?]

	at org.eclipse.osgi.internal.framework.EquinoxEventPublisher.publishBundleEvent(EquinoxEventPublisher.java:112) [org.eclipse.osgi-3.12.100.jar:?]

	at org.eclipse.osgi.internal.framework.EquinoxContainerAdaptor.publishModuleEvent(EquinoxContainerAdaptor.java:168) [org.eclipse.osgi-3.12.100.jar:?]

	at org.eclipse.osgi.container.Module.publishEvent(Module.java:476) [org.eclipse.osgi-3.12.100.jar:?]

	at org.eclipse.osgi.container.Module.start(Module.java:467) [org.eclipse.osgi-3.12.100.jar:?]

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

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

	at org.eclipse.osgi.container.ModuleContainer.applyDelta(ModuleContainer.java:727) [org.eclipse.osgi-3.12.100.jar:?]

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

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

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

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

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

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

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

@H102

Mhhh. Sorry. I don’t know.

\runtime\system\org\eclipse\platform\org.eclipse.osgi\3.12.100\org.eclipse.osgi-3.12.100.jar
\runtime\lib\boot\osgi.core-6.0.0.jar

Are both on system and accessable by OH?

Both are there and accessible by OH.

Sorry. No idea anymore.

I have the same problem. After update to 2.5 M the Cloud Connector does not work and the I/O tab with the settings does not exist.
A new installation works. If I restore my openhab-cli backup, the error is back.

Below my error message. I think it is identical.

2019-11-29 20:55:27.267 [ERROR] [org.apache.felix.scr                ] - bundle org.apache.felix.scr:2.1.16 (44)Error while loading components of bundle org.openhab.io.openhabcloud:2.5.0.M5 (254)

java.lang.ClassCastException: java.lang.String cannot be cast to java.lang.Long

	at org.apache.felix.cm.impl.ConfigurationImpl.configure(ConfigurationImpl.java:659) ~[?:?]

	at org.apache.felix.cm.impl.ConfigurationImpl.configureFromPersistence(ConfigurationImpl.java:619) ~[?:?]

	at org.apache.felix.cm.impl.ConfigurationImpl.<init>(ConfigurationImpl.java:194) ~[?:?]

	at org.apache.felix.cm.impl.ConfigurationManager.listConfigurations(ConfigurationManager.java:552) ~[?:?]

	at org.apache.felix.cm.impl.ConfigurationAdminImpl.listConfigurations(ConfigurationAdminImpl.java:190) ~[?:?]

	at org.apache.felix.scr.impl.manager.RegionConfigurationSupport.findConfigurations(RegionConfigurationSupport.java:655) ~[bundleFile:?]

	at org.apache.felix.scr.impl.manager.RegionConfigurationSupport.findSingletonConfiguration(RegionConfigurationSupport.java:554) ~[bundleFile:?]

	at org.apache.felix.scr.impl.manager.RegionConfigurationSupport.configureComponentHolder(RegionConfigurationSupport.java:199) ~[bundleFile:?]

	at org.apache.felix.scr.impl.BundleComponentActivator.setRegionConfigurationSupport(BundleComponentActivator.java:763) ~[bundleFile:?]

	at org.apache.felix.scr.impl.helper.ConfigAdminTracker$1.addingService(ConfigAdminTracker.java:69) ~[?:?]

	at org.apache.felix.scr.impl.helper.ConfigAdminTracker$1.addingService(ConfigAdminTracker.java:41) ~[?:?]

	at org.osgi.util.tracker.ServiceTracker$Tracked.customizerAdding(ServiceTracker.java:941) ~[osgi.core-6.0.0.jar:?]

	at org.osgi.util.tracker.ServiceTracker$Tracked.customizerAdding(ServiceTracker.java:870) ~[osgi.core-6.0.0.jar:?]

	at org.osgi.util.tracker.AbstractTracked.trackAdding(AbstractTracked.java:256) ~[osgi.core-6.0.0.jar:?]

	at org.osgi.util.tracker.AbstractTracked.trackInitial(AbstractTracked.java:183) ~[osgi.core-6.0.0.jar:?]

	at org.osgi.util.tracker.ServiceTracker.open(ServiceTracker.java:318) ~[osgi.core-6.0.0.jar:?]

	at org.osgi.util.tracker.ServiceTracker.open(ServiceTracker.java:261) ~[osgi.core-6.0.0.jar:?]

	at org.apache.felix.scr.impl.helper.ConfigAdminTracker.<init>(ConfigAdminTracker.java:86) ~[bundleFile:?]

	at org.apache.felix.scr.impl.BundleComponentActivator.<init>(BundleComponentActivator.java:275) ~[bundleFile:?]

	at org.apache.felix.scr.impl.Activator.loadComponents(Activator.java:380) [bundleFile:?]

	at org.apache.felix.scr.impl.Activator.access$200(Activator.java:49) [bundleFile:?]

	at org.apache.felix.scr.impl.Activator$ScrExtension.start(Activator.java:264) [bundleFile:?]

	at org.apache.felix.scr.impl.AbstractExtender.createExtension(AbstractExtender.java:196) [bundleFile:?]

	at org.apache.felix.scr.impl.AbstractExtender.modifiedBundle(AbstractExtender.java:169) [bundleFile:?]

	at org.apache.felix.scr.impl.AbstractExtender.modifiedBundle(AbstractExtender.java:49) [bundleFile:?]

	at org.osgi.util.tracker.BundleTracker$Tracked.customizerModified(BundleTracker.java:482) [osgi.core-6.0.0.jar:?]

	at org.osgi.util.tracker.BundleTracker$Tracked.customizerModified(BundleTracker.java:415) [osgi.core-6.0.0.jar:?]

	at org.osgi.util.tracker.AbstractTracked.track(AbstractTracked.java:232) [osgi.core-6.0.0.jar:?]

	at org.osgi.util.tracker.BundleTracker$Tracked.bundleChanged(BundleTracker.java:444) [osgi.core-6.0.0.jar:?]

	at org.eclipse.osgi.internal.framework.BundleContextImpl.dispatchEvent(BundleContextImpl.java:908) [org.eclipse.osgi-3.12.100.jar:?]

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

	at org.eclipse.osgi.framework.eventmgr.ListenerQueue.dispatchEventSynchronous(ListenerQueue.java:148) [org.eclipse.osgi-3.12.100.jar:?]

	at org.eclipse.osgi.internal.framework.EquinoxEventPublisher.publishBundleEventPrivileged(EquinoxEventPublisher.java:213) [org.eclipse.osgi-3.12.100.jar:?]

	at org.eclipse.osgi.internal.framework.EquinoxEventPublisher.publishBundleEvent(EquinoxEventPublisher.java:120) [org.eclipse.osgi-3.12.100.jar:?]

	at org.eclipse.osgi.internal.framework.EquinoxEventPublisher.publishBundleEvent(EquinoxEventPublisher.java:112) [org.eclipse.osgi-3.12.100.jar:?]

	at org.eclipse.osgi.internal.framework.EquinoxContainerAdaptor.publishModuleEvent(EquinoxContainerAdaptor.java:168) [org.eclipse.osgi-3.12.100.jar:?]

	at org.eclipse.osgi.container.Module.publishEvent(Module.java:476) [org.eclipse.osgi-3.12.100.jar:?]

	at org.eclipse.osgi.container.Module.start(Module.java:467) [org.eclipse.osgi-3.12.100.jar:?]

	at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.incStartLevel(ModuleContainer.java:1634) [org.eclipse.osgi-3.12.100.jar:?]

	at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.incStartLevel(ModuleContainer.java:1614) [org.eclipse.osgi-3.12.100.jar:?]

	at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.doContainerStartLevel(ModuleContainer.java:1585) [org.eclipse.osgi-3.12.100.jar:?]

	at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.dispatchEvent(ModuleContainer.java:1528) [org.eclipse.osgi-3.12.100.jar:?]

	at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.dispatchEvent(ModuleContainer.java:1) [org.eclipse.osgi-3.12.100.jar:?]

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

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

Thanks for sharing. I have not attempted a new install b/c my current 2.4 version is working without error. Have you downgraded with working results? If so I may need to file an issue on github regarding openhab-cli backup restore when upgrading.

Thanks for sharing. I have not attempted a new install b/c my current 2.4 version is working without error. Have you downgraded with working results? If so I may need to file an issue on github regarding openhab-cli backup restore when upgrading.

I made
a) a new installation followed by openhab-cli backup
b) and also upgraded my system from 2.4 to 2.5.
In both cases, the error occurs.
After a downgrade everything runs again.
So it does not seem to be due to openhab-cli backup.

@H102
@Thimboo

One question: what is inside

/var/lib/openhab2  or /opt/openhab2/userdata

/config/org/openhab/openhabcloud.config? 

Are the entries like this?

:org.apache.felix.configadmin.revision:=L"1"
baseURL="https://myopenhab.org/"
mode="remote"
service.pid="org.openhab.openhabcloud"

I have not made a recent attempt to upgrade, on 2.4 the entries are the same except the first line about revision. I have revision:=“2.0” not L"1".

Should I stop OH, change to L"1", restart and attempt to upgrade?

No, this number is only the version of the configuration file. Yours is the second version of config file.
After an update your config files should have the same entries as before, maybe the version number is one higher then…

EDIT: I’ve changed the config now and got L"2" NOT L"2.0" or NOT just “2.0”. I’ll try with 2.0 and see if I get the error…

1 Like

Don’t forget the " " around 2.0 just encase it makes a difference.
Screenshot at 2019-11-30 10-03-53

With L"2.0" I get a similar error!

Please try L"2".