I can not disable addon openhabcloud without removing the cash-folder

For some years I am running openHAB version 2 on a Raspberry.
Now I want to migrate to version 5.1.3. For that I have installed that version on a windows desktop and migrate my version 2 installation to version 5. I still use text files.

When I add the ‘openhabcloud’ inside the ‘addons.cfg’ file in the desktop version, I get an error stating that “the openHAB Cloud instance: already connected”. Which is of course true, because it is already connected to the Raspberry.
But when I remove the ‘openhabcloud’ from the ‘addons.cfg’ file, I keep getting these openhabcloud errors even after restarting the program. I think, that should not be the case because I only disabled the addon. Or is it?

I solved the ‘problem’ by removing the whole ‘userdata/cache’ folder. (It seems enough just to remove 6 added folders inside 'userdata/cache/org.eclipse.osgi). So for now I have no issue anymore.

I haven’t used addons.cfg in a very very long time. Note that addons.cfg cannot install add-ons, UI widgets, nor rule templates from the marketplace so it has significant limitations.

What is supposed to happen is when you remove an add-on from the list in addons.cfg OH will eventually uninstall that bundle. But it doesn’t necessarily do it right away. How long did you wait after editing the file?

Clearing the cache will force OH to reinstall the add-ons so that’s why deleting stuff from that folder worked.

You can also remove a bundle using the karaf console instead of deleting the cache and restarting OH.

Thank you for your answer.

Inside the ‘addons.cfg’ file it is stated: “When lists are commented again any add-ons in the list remain installed and are not removed.” I think, that is why the ‘openhabcloud’ addon stays inside the cash-folder until I cleaned it.

Somehow I expected the ‘openhabcloud’ to become inactive after removing it from the ‘addons.cfg’ file, despite still being loaded inside the cash, at least after a restart (when the ‘addons.cfg’ file is reread). Now I understand I have to do both: remove from the ‘addons.cfg’ and remove from the cash.

I will give your karaf suggestion a try.

That’s a change in behavior for addons.cfg. I’ve no idea when that was implemented.