Failed installing addons

Dear all,
I am suffering the issue that no binding can be installed.
I read through all threads, nothing helped unfortunately.

Done so far:
Deleted addons.config in /var/lib/openhab2/config/org/openhab
addons.cfg in /etc/openhab2/services stripped down to:


package = expert

remote = true

legacy = true


ui = basic,paper



transformation = map,jsonpath


Cleared cache while restarting.

Message remaining:

==> /var/log/openhab2/openhab.log <==
2021-05-17 11:10:57.011 [ERROR] [core.karaf.internal.FeatureInstaller] - Failed installing ‘openhab-transformation-map, openhab-ui-basic, openhab-ui-paper, openhab-transformation-jsonpath’: Error:
Error downloading mvn:org.openhab.addons.bundles/org.openhab.transform.map/[2.5.0,2.6)
2021-05-17 11:11:57.023 [ERROR] [core.karaf.internal.FeatureInstaller] - Failed installing ‘openhab-transformation-map, openhab-ui-basic, openhab-ui-paper, openhab-transformation-jsonpath’: Error:
Error downloading mvn:org.openhab.addons.bundles/org.openhab.transform.map/[2.5.0,2.6)
2021-05-17 11:12:57.026 [ERROR] [core.karaf.internal.FeatureInstaller] - Failed installing ‘openhab-transformation-map, openhab-ui-basic, openhab-ui-paper, openhab-transformation-jsonpath’: Error:
Error downloading mvn:org.openhab.addons.bundles/org.openhab.transform.map/[2.5.0,2.6)
2021-05-17 11:13:57.025 [ERROR] [core.karaf.internal.FeatureInstaller] - Failed installing ‘openhab-transformation-map, openhab-ui-basic, openhab-ui-paper, openhab-transformation-jsonpath’: Error:
Error downloading mvn:org.openhab.addons.bundles/org.openhab.transform.map/[2.5.0,2.6)
2021-05-17 11:14:57.029 [ERROR] [core.karaf.internal.FeatureInstaller] - Failed installing ‘openhab-transformation-map, openhab-ui-basic, openhab-ui-paper, openhab-transformation-jsonpath’: Error:
Error downloading mvn:org.openhab.addons.bundles/org.openhab.transform.map/[2.5.0,2.6)

Stripped down addons.cfg even fruther to

package = expert

remote = true

legacy = true


ui = paper

Result:

==> /var/log/openhab2/events.log <==
2021-05-17 11:33:59.683 [thome.event.ExtensionEvent] - Extension ‘package-expert’ has been installed.

==> /var/log/openhab2/openhab.log <==
2021-05-17 11:34:01.348 [ERROR] [core.karaf.internal.FeatureInstaller] - Failed installing ‘openhab-transformation-xpath, openhab-transformation-map, openhab-transformation-javascript, openhab-transformation-xslt, openhab-transformation-regex, openhab-transformation-exec, openhab-ui-paper, openhab-transformation-scale, openhab-transformation-jsonpath’: Error:
Error downloading mvn:org.openhab.addons.bundles/org.openhab.transform.map/[2.5.0,2.6)
2021-05-17 11:34:03.200 [INFO ] [.dashboard.internal.DashboardService] - Stopped Dashboard

==> /var/log/openhab2/events.log <==
2021-05-17 11:34:03.253 [thome.event.ExtensionEvent] - Extension ‘ui-dashboard’ has been uninstalled.

Stripped down even more.

==> /var/log/openhab2/openhab.log <==
2021-05-17 11:40:16.087 [ERROR] [core.karaf.internal.FeatureInstaller] - Failed installing ‘openhab-ui-paper’: Error:
Error downloading mvn:org.openhab.ui.bundles/org.openhab.ui.paper/[2.5.0,2.6)

I am really lost :frowning:

Please download the openHAB2-addons.kar file and put it into your addons folder.
Set remote = false in your addons.cfg and you should be fine again.
Due to the shutdown of bintray service, remote downloading of single addons is no longer possible for openHAB 2.5.x

Thanks for your reply HJM,

apologies but I seem to be stupid. Could you point out the download location of that file?

Found it. Will give that a try.

Phew, back on track. Thanks a log again. Marked as solution.

Dear Ben, I suffer the same issue but I can’t find that openHAB2-addons.kar file. Can you help me?

Where can the openHAB2-addons.kar be downloaded from. This is not obvious. Not on github. In a simple search on jFrog, nothing comes up.

I found them.
https://openhab.jfrog.io/artifactory/libs-release-local/org/openhab/distro/openhab-addons/2.5.12/openhab-addons-2.5.12.kar
and
https://openhab.jfrog.io/artifactory/libs-release-local/org/openhab/distro/openhab-addons/3.0.2/openhab-addons-3.0.2.kar

Where did you find the .kar file?
Thanks

Nevermind, I should have read further down.

I just upgraded from 2.5.11 to 2.5.12 today and had the same problem as a above after having edited my APT configuration files to point to artifactory.

I’m running on RasPi with fully up to date OS.

I followed the instructions above and resolved most of the errors in the logs. However I did see this:

 2021-07-11 18:25:56.410 [INFO ] [af.deployer.kar.KarArtifactInstaller] - Found a .kar file to deploy.
2021-07-11 18:25:56.412 [INFO ] [af.deployer.kar.KarArtifactInstaller] - KAR openhab-addons-2.5.12.kar is already installed. Please uninstall it first.
2021-07-11 18:26:09.049 [INFO ] [internal.service.FeaturesServiceImpl] - No deployment change.
2021-07-11 18:26:09.075 [INFO ] [internal.service.FeaturesServiceImpl] - Done.
2021-07-11 18:26:09.080 [ERROR] [core.karaf.internal.FeatureInstaller] - Failed installing 'openhab-binding-mqtt1'

and unsurprisingly MQTT integration to mosquitto is not working.
I tried installing via PaperUI and I get this:

2021-07-11 18:44:19.285 [INFO ] [internal.service.FeaturesServiceImpl] - Adding features: openhab-binding-mqtt/[2.5.12,2.5.12]
2021-07-11 18:44:21.072 [INFO ] [internal.service.FeaturesServiceImpl] - Changes to perform:
2021-07-11 18:44:21.073 [INFO ] [internal.service.FeaturesServiceImpl] -   Region: root
2021-07-11 18:44:21.074 [INFO ] [internal.service.FeaturesServiceImpl] -     Bundles to install:
2021-07-11 18:44:21.075 [INFO ] [internal.service.FeaturesServiceImpl] -       mvn:org.openhab.osgiify/com.google.dagger/2.20
2021-07-11 18:44:21.076 [INFO ] [internal.service.FeaturesServiceImpl] -       mvn:com.hivemq/hivemq-mqtt-client/1.1.2
2021-07-11 18:44:21.077 [INFO ] [internal.service.FeaturesServiceImpl] -       mvn:io.netty/netty-buffer/4.1.42.Final
2021-07-11 18:44:21.078 [INFO ] [internal.service.FeaturesServiceImpl] -       mvn:io.netty/netty-codec/4.1.42.Final
2021-07-11 18:44:21.079 [INFO ] [internal.service.FeaturesServiceImpl] -       mvn:io.netty/netty-codec-http/4.1.42.Final
2021-07-11 18:44:21.080 [INFO ] [internal.service.FeaturesServiceImpl] -       mvn:io.netty/netty-common/4.1.42.Final
2021-07-11 18:44:21.081 [INFO ] [internal.service.FeaturesServiceImpl] -       mvn:io.netty/netty-handler/4.1.42.Final
2021-07-11 18:44:21.082 [INFO ] [internal.service.FeaturesServiceImpl] -       mvn:io.netty/netty-resolver/4.1.42.Final
2021-07-11 18:44:21.083 [INFO ] [internal.service.FeaturesServiceImpl] -       mvn:io.netty/netty-transport/4.1.42.Final
2021-07-11 18:44:21.084 [INFO ] [internal.service.FeaturesServiceImpl] -       mvn:io.netty/netty-transport-native-epoll/4.1.42.Final
2021-07-11 18:44:21.085 [INFO ] [internal.service.FeaturesServiceImpl] -       mvn:io.netty/netty-transport-native-unix-common/4.1.42.Final
2021-07-11 18:44:21.086 [INFO ] [internal.service.FeaturesServiceImpl] -       mvn:io.reactivex.rxjava2/rxjava/2.2.5
2021-07-11 18:44:21.088 [INFO ] [internal.service.FeaturesServiceImpl] -       mvn:org.jctools/jctools-core/2.1.2
2021-07-11 18:44:21.089 [INFO ] [internal.service.FeaturesServiceImpl] -       mvn:org.openhab.addons.bundles/org.openhab.binding.mqtt/[2.5.0,2.6)
2021-07-11 18:44:21.090 [INFO ] [internal.service.FeaturesServiceImpl] -       mvn:org.openhab.addons.bundles/org.openhab.binding.mqtt.generic/[2.5.0,2.6)
2021-07-11 18:44:21.090 [INFO ] [internal.service.FeaturesServiceImpl] -       mvn:org.openhab.addons.bundles/org.openhab.binding.mqtt.homeassistant/[2.5.0,2.6)
2021-07-11 18:44:21.092 [INFO ] [internal.service.FeaturesServiceImpl] -       mvn:org.openhab.addons.bundles/org.openhab.binding.mqtt.homie/[2.5.0,2.6)
2021-07-11 18:44:21.092 [INFO ] [internal.service.FeaturesServiceImpl] -       mvn:org.openhab.core.bundles/org.openhab.core.io.transport.mqtt/2.5.0
2021-07-11 18:44:21.093 [INFO ] [internal.service.FeaturesServiceImpl] -       mvn:org.reactivestreams/reactive-streams/1.0.2
2021-07-11 18:44:21.096 [INFO ] [internal.service.FeaturesServiceImpl] - Installing bundles:
2021-07-11 18:44:21.097 [INFO ] [internal.service.FeaturesServiceImpl] -   mvn:org.openhab.osgiify/com.google.dagger/2.20
2021-07-11 18:44:21.104 [INFO ] [internal.service.FeaturesServiceImpl] -   mvn:com.hivemq/hivemq-mqtt-client/1.1.2
2021-07-11 18:44:21.144 [INFO ] [internal.service.FeaturesServiceImpl] -   mvn:io.netty/netty-buffer/4.1.42.Final
2021-07-11 18:44:21.157 [INFO ] [internal.service.FeaturesServiceImpl] -   mvn:io.netty/netty-codec/4.1.42.Final
2021-07-11 18:44:21.174 [INFO ] [internal.service.FeaturesServiceImpl] -   mvn:io.netty/netty-codec-http/4.1.42.Final
2021-07-11 18:44:21.196 [INFO ] [internal.service.FeaturesServiceImpl] -   mvn:io.netty/netty-common/4.1.42.Final
2021-07-11 18:44:21.218 [INFO ] [internal.service.FeaturesServiceImpl] -   mvn:io.netty/netty-handler/4.1.42.Final
2021-07-11 18:44:21.237 [INFO ] [internal.service.FeaturesServiceImpl] -   mvn:io.netty/netty-resolver/4.1.42.Final
2021-07-11 18:44:21.244 [INFO ] [internal.service.FeaturesServiceImpl] -   mvn:io.netty/netty-transport/4.1.42.Final
2021-07-11 18:44:21.263 [INFO ] [internal.service.FeaturesServiceImpl] -   mvn:io.netty/netty-transport-native-epoll/4.1.42.Final
2021-07-11 18:44:21.272 [INFO ] [internal.service.FeaturesServiceImpl] -   mvn:io.netty/netty-transport-native-unix-common/4.1.42.Final
2021-07-11 18:44:21.279 [INFO ] [internal.service.FeaturesServiceImpl] -   mvn:io.reactivex.rxjava2/rxjava/2.2.5
2021-07-11 18:44:21.347 [INFO ] [internal.service.FeaturesServiceImpl] -   mvn:org.jctools/jctools-core/2.1.2
2021-07-11 18:44:21.359 [INFO ] [internal.service.FeaturesServiceImpl] -   mvn:org.openhab.addons.bundles/org.openhab.binding.mqtt/[2.5.0,2.6)
2021-07-11 18:44:21.369 [INFO ] [internal.service.FeaturesServiceImpl] -   mvn:org.openhab.addons.bundles/org.openhab.binding.mqtt.generic/[2.5.0,2.6)
2021-07-11 18:44:21.378 [INFO ] [internal.service.FeaturesServiceImpl] -   mvn:org.openhab.addons.bundles/org.openhab.binding.mqtt.homeassistant/[2.5.0,2.6)
2021-07-11 18:44:21.388 [INFO ] [internal.service.FeaturesServiceImpl] -   mvn:org.openhab.addons.bundles/org.openhab.binding.mqtt.homie/[2.5.0,2.6)
2021-07-11 18:44:21.396 [INFO ] [internal.service.FeaturesServiceImpl] -   mvn:org.openhab.core.bundles/org.openhab.core.io.transport.mqtt/2.5.0
2021-07-11 18:44:21.405 [INFO ] [internal.service.FeaturesServiceImpl] -   mvn:org.reactivestreams/reactive-streams/1.0.2
2021-07-11 18:44:21.720 [INFO ] [internal.service.FeaturesServiceImpl] - Starting bundles:
2021-07-11 18:44:21.725 [INFO ] [internal.service.FeaturesServiceImpl] -   io.netty.resolver/4.1.42.Final
2021-07-11 18:44:21.730 [INFO ] [internal.service.FeaturesServiceImpl] -   io.netty.transport/4.1.42.Final
2021-07-11 18:44:21.736 [INFO ] [internal.service.FeaturesServiceImpl] -   com.google.dagger/2.20.0
2021-07-11 18:44:21.740 [INFO ] [internal.service.FeaturesServiceImpl] -   io.netty.transport-native-unix-common/4.1.42.Final
2021-07-11 18:44:21.743 [INFO ] [internal.service.FeaturesServiceImpl] -   io.netty.transport-native-epoll/4.1.42.Final
2021-07-11 18:44:21.747 [INFO ] [internal.service.FeaturesServiceImpl] -   io.netty.codec/4.1.42.Final
2021-07-11 18:44:21.751 [INFO ] [internal.service.FeaturesServiceImpl] -   io.netty.codec-http/4.1.42.Final
2021-07-11 18:44:21.756 [INFO ] [internal.service.FeaturesServiceImpl] -   org.reactivestreams.reactive-streams/1.0.2
2021-07-11 18:44:21.760 [INFO ] [internal.service.FeaturesServiceImpl] -   io.reactivex.rxjava2.rxjava/2.2.5
2021-07-11 18:44:21.772 [INFO ] [internal.service.FeaturesServiceImpl] -   org.jctools.core/2.1.2
2021-07-11 18:44:21.776 [INFO ] [internal.service.FeaturesServiceImpl] -   com.hivemq.client.mqtt/1.1.2
2021-07-11 18:44:21.786 [INFO ] [internal.service.FeaturesServiceImpl] -   org.openhab.core.io.transport.mqtt/2.5.0
2021-07-11 18:44:21.809 [INFO ] [internal.service.FeaturesServiceImpl] -   org.openhab.binding.mqtt/2.5.12
2021-07-11 18:44:21.846 [INFO ] [internal.service.FeaturesServiceImpl] -   io.netty.common/4.1.42.Final
2021-07-11 18:44:21.852 [INFO ] [internal.service.FeaturesServiceImpl] -   io.netty.buffer/4.1.42.Final
2021-07-11 18:44:21.856 [INFO ] [internal.service.FeaturesServiceImpl] -   io.netty.handler/4.1.42.Final
2021-07-11 18:44:21.862 [INFO ] [internal.service.FeaturesServiceImpl] -   org.openhab.binding.mqtt.generic/2.5.12
2021-07-11 18:44:21.931 [INFO ] [internal.service.FeaturesServiceImpl] -   org.openhab.binding.mqtt.homeassistant/2.5.12
2021-07-11 18:44:21.981 [INFO ] [internal.service.FeaturesServiceImpl] -   org.openhab.binding.mqtt.homie/2.5.12
2021-07-11 18:44:22.010 [INFO ] [internal.service.FeaturesServiceImpl] - Done.
2021-07-11 18:44:22.014 [ERROR] [core.karaf.internal.FeatureInstaller] - Failed installing 'openhab-binding-mqtt1'

Joy oh joy. Changed the package, remote, and legacy lines. *.kar in /etc/openhab2/addons, restart OH. Disabled remote and legacy in PaperUI. Get Failed installing ‘openhab-package-expert’ in the log and can’t install any new bindings. I’m not ready to jump into 3.x yet. I don’t have a weekend to spare.

You can fix this by switching the package to either standard or minimal.


/etc/openhab/services/addons.cfg

# The installation package of this openHAB instance
# Note: This is only regarded at the VERY FIRST START of openHAB
# Note: If you want to specify your add-ons yourself through entries below, set the package to "minimal"
# as otherwise your definition might be in conflict with what the installation package defines.
#
# Valid options:
#   - standard : Standard setup for normal use of openHAB with persistence (rrd4j) and additional UI add-ons (basic,habpanel).
#   - minimal  : Installation of core components without additional add-ons.
#
package = standard

/var/lib/openhab/config/org/openhab/addons.config

:org.apache.felix.configadmin.revision:=L"2"
package="standard"
persistence="rrd4j"
service.pid="org.openhab.addons"
ui="basic,habpanel"

Got it! Copied the file to the wrong location. Had to go in /usr/share/openhab2/addons, NOT in /etc/openhab2/addons.

Sorry, but the name that I need to copy in the /usr/share/openhab2/addons/ is openhab2-addons.kar or openhab-addons-2.5.12.kar or what?

After to be set remote =false in
/etc/openhab2/services/addons.cfg

and to clean the cache

I keep getting the following error:

2021-11-01 19:27:25.607 [ERROR] [core.karaf.internal.FeatureInstaller] - Failed installing ‘openhab-persistence-mapdb, openhab-binding-exec, openhab-binding-gree, openhab-misc-openhabcloud, openhab-binding-avmfritz, openhab-binding-network, openhab-persistence-influxdb, openhab-ui-habpanel, openhab-ui-restdocs, openhab-binding-mqtt, openhab-transformation-map, openhab-binding-solaredge, openhab-ui-classic, openhab-binding-bosesoundtouch, openhab-ui-habmin, openhab-ui-paper, openhab-binding-samsungtv, openhab-binding-modbus, openhab-binding-http1, openhab-binding-opensprinkler, openhab-binding-tplinksmarthome, openhab-transformation-javascript, openhab-binding-weather1, openhab-misc-ruleengine, openhab-transformation-regex, openhab-transformation-jsonpath, openhab-action-telegram, openhab-binding-satel, openhab-misc-gcal1, openhab-binding-hpprinter, openhab-ui-basic, openhab-binding-ntp, openhab-binding-openweathermap, openhab-binding-astro’: Error:
Error downloading mvn:org.openhab.addons.bundles/org.openhab.transform.map/[2.5.0,2.6)

The file to be copied into the /usr/share/openhab2/addons folder is openhab-addons-2.5.12.kar

Thanks @Wolfgang_S but the problem remain.

Every time I restart an addon is not installed:

021-11-01 20:08:10.610 [ERROR] [core.karaf.internal.FeatureInstaller] - Failed installing ‘openhab-persistence-mapdb, openhab-binding-exec, openhab-binding-gree, openhab-misc-openhabcloud, openhab-binding-avmfritz, openhab-binding-network, openhab-persistence-influxdb, openhab-ui-habpanel, openhab-ui-restdocs, openhab-binding-mqtt, openhab-binding-solaredge, openhab-ui-classic, openhab-binding-bosesoundtouch, openhab-ui-habmin, openhab-ui-paper, openhab-binding-samsungtv, openhab-binding-modbus, openhab-binding-http1, openhab-binding-opensprinkler, openhab-transformation-javascript, openhab-binding-weather1, openhab-misc-ruleengine, openhab-transformation-regex, openhab-transformation-jsonpath, openhab-binding-satel, openhab-misc-gcal1, openhab-binding-hpprinter, openhab-ui-basic, openhab-binding-ntp, openhab-binding-openweathermap, openhab-binding-astro’: Error:
Error downloading mvn:org.openhab.addons.bundles/org.openhab.binding.astro/[2.5.0,2.6)
2021-11-01 20:09:05.598 [ERROR] [core.karaf.internal.FeatureInstaller] - Failed installing ‘openhab-persistence-mapdb, openhab-binding-exec, openhab-binding-gree, openhab-misc-openhabcloud, openhab-binding-avmfritz, openhab-binding-network, openhab-persistence-influxdb, openhab-ui-habpanel, openhab-ui-restdocs, openhab-binding-mqtt, openhab-transformation-map, openhab-binding-solaredge, openhab-ui-classic, openhab-binding-bosesoundtouch, openhab-ui-habmin, openhab-ui-paper, openhab-binding-samsungtv, openhab-binding-modbus, openhab-binding-http1, openhab-binding-opensprinkler, openhab-transformation-javascript, openhab-binding-weather1, openhab-misc-ruleengine, openhab-transformation-regex, openhab-transformation-jsonpath, openhab-binding-satel, openhab-misc-gcal1, openhab-binding-hpprinter, openhab-ui-basic, openhab-binding-ntp, openhab-binding-openweathermap, openhab-binding-astro’: Error:
Error downloading mvn:org.openhab.addons.bundles/org.openhab.transform.map/[2.5.0,2.6)

it still looks like OH tries to download the bindings from the mvn repository.
Sure that you set remote = false in /etc/openhab2/services/addons.cfg. Please also check for the spaces.