openhab / openhab-addons

Add-ons for openHAB
https://www.openhab.org/
Eclipse Public License 2.0
1.88k stars 3.59k forks source link

Can't install any bindings in fresh install #4812

Closed MadOtis closed 5 years ago

MadOtis commented 5 years ago

Just spun up a brand-new OpenHABianPi install (version 2.4.0). I ran into the apt-upgrade issue with not being able to connect to the mirror detection link and was able to do a successful install/build of openHABian after adjusting the /etc/apt/sources.list file (found elsewhere) and openhabian installed apparently successfully.

After browsing to the GUI at http://openhabianpi:8080 and stepping through the initial setup and install of PaperUI, I proceeded to the add-ons section to install network binding. It just sits there and the install button turned into a circle and spins indefinitely.

Expected Behavior

Network binding should install

Current Behavior

Network install doesn't succeed and merely sits at the spinning circle, indefinitely.

Steps to Reproduce (for Bugs)

  1. Allow OpenHABianPi to install successfully
  2. Perform first steps setup in the OpenHAB2 UI
  3. Click on the "Add-ons" link on the left
  4. Select any binding and click on the Install button

Context

I'm trying to install ANY binding.

Resulting log messages in the log files: ` 2019-02-05 19:43:03.521 [ERROR] [core.karaf.internal.FeatureInstaller] - Failed installing 'openhab-binding-network': Unable to resolve root: missing requirement [root] osgi.identity; osgi.identity=openhab-binding-network; type=karaf.feature; version="[2.4.0,2.4.0]"; filter:="(&(osgi.identity=openhab-binding-network)(type=karaf.feature)(version>=2.4.0)(version<=2.4.0))" [caused by: Unable to resolve openhab-binding-network/2.4.0: missing requirement [openhab-binding-network/2.4.0] osgi.identity; osgi.identity=org.openhab.binding.network; type=osgi.bundle; version="[2.4.0,2.4.0]"; resolution:=mandatory [caused by: Unable to resolve org.openhab.binding.network/2.4.0: missing requirement [org.openhab.binding.network/2.4.0] osgi.wiring.package; filter:="(osgi.wiring.package=org.apache.commons.net.util)"]]

2019-02-05 19:43:47.917 [ERROR] [core.karaf.internal.FeatureInstaller] - Failed installing 'openhab-binding-harmonyhub, openhab-binding-network': Unable to resolve root: missing requirement [root] osgi.identity; osgi.identity=openhab-binding-network; type=karaf.feature; version="[2.4.0,2.4.0]"; filter:="(&(osgi.identity=openhab-binding-network)(type=karaf.feature)(version>=2.4.0)(version<=2.4.0))" [caused by: Unable to resolve openhab-binding-network/2.4.0: missing requirement [openhab-binding-network/2.4.0] osgi.identity; osgi.identity=org.openhab.binding.network; type=osgi.bundle; version="[2.4.0,2.4.0]"; resolution:=mandatory [caused by: Unable to resolve org.openhab.binding.network/2.4.0: missing requirement [org.openhab.binding.network/2.4.0] osgi.wiring.package; filter:="(osgi.wiring.package=org.apache.commons.net.util)"]] `

Your Environment

wborn commented 5 years ago

This issue should be fixed in 2.5.0-SNAPSHOT with https://github.com/openhab/openhab-core/pull/545.

The workaround in 2.4.0 is to install the Standard package instead of the Simple package during initial setup.

Another workaround is to add the commons-net feature dependency using The Console:

feature:install esh.tp-commons-net