Can't load 2.4 repo

  • Platform information:
    • Hardware: Raspberry PI 3B
    • OS: Openhabian
    • openHAB version: 2.4

Hi,

I just upgraded to 2.4 via apt-get - and some bindings weren’t working (Mios), so I restored my latest backup (made in openhab 2.3).

This has resulted in my paper ui add ons being empty and the following errors:

2018-12-20 17:24:13.126 [WARN ] [internal.service.FeaturesServiceImpl] - Can't load features repository mvn:org.openhab.distro/openhab-addons/2.3.0/xml/features
java.io.IOException: Error resolving artifact org.openhab.distro:openhab-addons:xml:features:2.3.0: [Could not find artifact org.openhab.distro:openhab-addons:xml:features:2.3.0 in openhab (https://dl.bintray.com/openhab/mvn/online-repo/2.4/), Could not find artifact org.openhab.distro:openhab-addons:xml:features:2.3.0 in openhab (https://dl.bintray.com/openhab/mvn/online-repo/2.4/)] : mvn:org.openhab.distro/openhab-addons/2.3.0/xml/features

2018-12-20 17:22:21.922 [ERROR] [core.karaf.internal.FeatureInstaller] - Failed installing 'openhab-package-standard': No matching features for openhab-package-standard/0.0.0
2018-12-20 17:22:22.059 [ERROR] [core.karaf.internal.FeatureInstaller] - Failed installing 'openhab-voice-voicerss, openhab-ui-homebuilder, openhab-binding-ihc1, openhab-binding-network, openhab-persistence-influxdb, openhab-binding-sonos, openhab-binding-weather1, openhab-ui-habpanel, openhab-ui-basic, openhab-transformation-map, openhab-binding-rfxcom, openhab-action-mail, openhab-misc-homekit, openhab-binding-icloud, openhab-binding-astro, openhab-binding-expire1, openhab-binding-lgtv1, openhab-binding-systeminfo, openhab-ui-paper, openhab-action-mios': Unable to resolve root: missing requirement [root] osgi.identity; osgi.identity=openhab-persistence-mapdb; type=karaf.feature; version="[1.12.0,1.12.0]"; filter:="(&(osgi.identity=openhab-persistence-mapdb)(type=karaf.feature)(version>=1.12.0)(version<=1.12.0))"

I already tried clearing the cache/temp and also uncommenting the “package” in add ons.cfg to no avail.

Does anyone have any ideas? I it much appreciated as I am now pretty lost:-)

So you used apt-get instead of the menu option in openhabian-config ?
Oh dear, why do we go lengths to build that in …

What sort of backup did you take and restore ? What OH version do you run now ?

Check the files below on your system and eventually replace 2.4 with 2.3. I’m not sure if it was the same URL in 2.3 though.

[11:22:39] root@openhabianpi:/var/lib/openhab2/etc# grep bintray *
org.ops4j.pax.url.mvn.cfg:org.ops4j.pax.url.mvn.repositories = https://dl.bintray.com/openhab/mvn/online-repo/2.4@id=openhab,https://dl.bintray.com/openhab/mvn/online-repo/2.4@id=openhab@snapshots
version.properties:online-repo     : https://dl.bintray.com/openhab/mvn/online-repo/2.4

And in the long run, the better way forward would be to stay with 2.4 and debug your binding that does not work.

Oh yes - that was stupid…

I took a

sudo $OPENHAB_RUNTIME/bin/backup /path/to/backups/folder/myBackup.zip

backup on 2.3. Then I updated to 2.4. When my “Mios Action” didn’t work and the add-ons in paper ui was empty, I restored that backup via:

sudo $OPENHAB_RUNTIME/bin/restore $OPENHAB_BACKUPS/myBackup.zip

I am running 2.4 now and when I do a clean install everything works, but when I restore the backup to get my setup back, the above mentioned behavior returns…

The grep bintray * command gives me this:

[12:11:42] openhabian@overvej:/var/lib/openhab2/etc$ grep bintray *
org.ops4j.pax.url.mvn.cfg:	https://dl.bintray.com/openhab/mvn/online-repo/2.4@id=openhab
grep: scripts: Is a directory
version.properties:online-repo     : https://dl.bintray.com/openhab/mvn/online-repo/2.4