I’ve installed oh2 snapshot using the apt repositories and the I’ve configured successfully all my binding (zwave, samsungtv, exec, weather).
I’ve noted that if I upgrade my installation using “apt-get upgrade”, all my binding are lost and I need to reinstall everithing including habmin and my.openhab. Is this normal ?
A better upgrade mechanism is being discussed, however at the moment you can add a comma separated list of all the services you require to
/etc/openhab2/services/addons.cfg so that they can be reinstalled to the latest version automatically. For example, your file would contain something like:
#... # A comma-separated list of bindings to install (e.g. "sonos,knx,zwave") binding =zwave,samsungtv,exec,weather # A comma-separated list of UIs to install (e.g. "basic,paper") ui = habmin,habpanel # A comma-separated list of persistence services to install (e.g. "rrd4j,jpa") persistence = mapdb # A comma-separated list of actions to install (e.g. "mail,pushover") action = # A comma-separated list of transformation services to install (e.g. "map,jsonpath") transformation = # A comma-separated list of text-to-speech engines to install (e.g. "marytts,freetts") tts = # A comma-separated list of miscellaneous services to install (e.g. "myopenhab") misc = myopenhab
After each upgrade, you can check the logs to see which binding will be installed (it usually does it in order), so when you see myopenhab is installed then you’re good to go!
Not sure if its normal or not - easiest way around this is to edit addons.cfg located in the services folder. Mine looks like:
package = standard
binding = mqtt, systeminfo, ntp , weather
ui = basic,classic,paper,habmin
persistence = rrd4j, mysql
action = mail
misc = myopenhab
This ensures bindings etc stay installed through upgrades etc…
Ok thank you, I will try to configure this file before the next update.
At the moment this is normal. The developers are working to fix this. Fit now the addons.cfg approach is the best.
The according issue of it is https://github.com/openhab/openhab-distro/issues/319
Ok thanx to all.
I can confirm that after editing addons.cfg the update path to latest snapshot version does not require to re-install all bindings…
Hi, today i updated from snapshot build from oh2.5 month ago.
But now i can see oh 2.5.0 Release Build in the bottom line of paper ui first-screen.
My openhab2.list is ok, there i can see “unstable”.
deb http://openhab.jfrog.io/openhab/openhab-linuxpkg unstable main
Here is what i get on my linux shell, when i do apt-get update:
debian@debian:~$ sudo apt-get update [sudo] Passwort für debian: OK:1 http://ppa.launchpad.net/webupd8team/java/ubuntu trusty InRelease OK:2 http://httpredir.debian.org/debian buster InRelease OK:3 http://httpredir.debian.org/debian buster-updates InRelease OK:4 http://security.debian.org buster/updates InRelease Holen:5 https://repo.mosquitto.org/debian buster InRelease [11,0 kB] Holen:6 https://deb.nodesource.com/node_7.x jessie InRelease [4.634 B] Ign:7 https://openhab.jfrog.io/openhab/openhab-linuxpkg unstable InRelease OK:8 https://openhab.jfrog.io/openhab/openhab-linuxpkg unstable Release Es wurden 15,6 kB in 1 s geholt (12,5 kB/s). Paketlisten werden gelesen... Fertig debian@debian:~$
Can somebody tell me, why there is a IGNORING on #7 and ok in #8 ? Is this ok?
How can i go back to snapshot release? I only did apt-get update, apt-get upgrade and apt-get dist-upgrade to update my previus snapshot install.
Can anybody also tell me, why i still have #6 from jessy repository? Is this a problem? Do i have to update this? How can i do that?
Ok, seems to be ok with 2.5.0…
But the other two questions are still unanswered:
Why is #7 Ign and #8 ok ?
What about the node.js from jessy? Do i need node.js at all or can i remove this? If i need this, ho can i update it - do i have to change the repository-url?
Ign essentially means that it found no changes since the last time that part was checked.
You’re most likely on the 2.5.1 distribution (you can check with
openhab-cli info). And there have been no snapshots since.
Node.js would have been added by something else. openHABian give you the option to install it I think, but many other tools use it to.