I am using the OH2 SnapShot Release. I had installed a number of bindings via the PaperUI an configured them using the text files. This was all nicely working.
Bu it happened me now twice, that when i did an upgrade of the system via
sudo apt-get update && sudo apt-get upgrade
that a few bindings (Astro, MQTT and openHAB Cloud services) were missing after the upgrade.
Because i am solely using the text files, it took me quite some time before i realized that the errors i got where coming from the bindings being uninstalled.
Can someone please explain me why some of (but not all) the bindings where uninstalled during the upgrade process or explain me what i am doing wrong when installing bindings via PaperUI, and what i can do to prevent this?
Hi @deltabert, do you have anything defined in /etc/services/addons.cfg? This overrides anything installed from PaperUI, so your best bet would be to comment any of these lines out.
Hi @Benjy thank you for your reply.
Yes i do have configured the /etc/openhab/services/addons.cfg but without the bindings which are being uninstalled during the upgrade.
# A comma-separated list of bindings to install (e.g. "sonos,knx,zwave")
binding = zwave,exec,fritzbox,kodi,mqtt,network,ntp,yahooweather,squeezebox,
And you are right, the ones that are being uninstalled during the upgrade process are missing here.
I’l try once more to upgrade after i added them to the addons.cfg file; see what it does.
And if that does not help i will try commenting the lines in addons.cfg.
It still is a bit confusing the mixed configuration options with PaperUI and text files…
If it makes it any easier, a text configuration will always override a paperUI configuration. When you upgrade the version of openHAB the apt package will clear the cache and temporary files, allowing openHAB to install new ones. When it sees content inside the addons.cfg, it will follow that list precisely, otherwise it will look at what was installed previously using the UIs.
Ok, that is clear; I’l stick to the text files for the time being.
Changed my addons.cfg accordingly and all bindings specified now remain after an upgrade.
I still have one issue with myopenhab.
I specified this in the addons.cfg, not by the bindings but by the misc section:
# A comma-separated list of miscellaneous services to install (e.g. "myopenhab")
misc = myopenhab
But when i restart openhab or reboot the RPi2, then my myopenhab is not active anymore:
2017-02-21 14:37:57.575 [INFO ] [io.openhabcloud.internal.CloudClient] - Disconnected from the openHAB Cloud service (UUID = ba000309-****-####-$$$$-111111111111, base URL = http://localhost:8080)
2017-02-21 14:38:01.702 [INFO ] [core.karaf.internal.FeatureInstaller] - Uninstalled 'openhab-misc-openhabcloud'
(left out the real UUID)
I must go to PaperUI to see that the openHAB Cloud Connector is indeed uninstalled. And when i install it again, it will work again; its config settings remain.
Any idea what i can do about this?