Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[mqtt] MQTT binding cannot be installed with snapshot #1512 #4782

Closed
bccrew opened this issue Feb 2, 2019 · 3 comments
Closed

[mqtt] MQTT binding cannot be installed with snapshot #1512 #4782

bccrew opened this issue Feb 2, 2019 · 3 comments

Comments

@bccrew
Copy link

bccrew commented Feb 2, 2019

Current Behavior

2019-02-02 15:27:58.896 [ERROR] [core.karaf.internal.FeatureInstaller] - Failed installing 'openhab-binding-mqtt': Unable to resolve root: missing requirement [root] osgi.identity; osgi.identity=openhab-binding-mqtt; type=karaf.feature; version="[2.5.0.SNAPSHOT,2.5.0.SNAPSHOT]"; filter:="(&(osgi.identity=openhab-binding-mqtt)(type=karaf.feature)(version>=2.5.0.SNAPSHOT)(version<=2.5.0.SNAPSHOT))" [caused by: Unable to resolve openhab-binding-mqtt/2.5.0.SNAPSHOT: missing requirement [openhab-binding-mqtt/2.5.0.SNAPSHOT] osgi.identity; osgi.identity=org.openhab.binding.mqtt.generic; type=osgi.bundle; version="[2.5.0.201901280820,2.5.0.201901280820]"; resolution:=mandatory [caused by: Unable to resolve org.openhab.binding.mqtt.generic/2.5.0.201901280820: missing requirement [org.openhab.binding.mqtt.generic/2.5.0.201901280820] osgi.wiring.package; filter:="(osgi.wiring.package=org.apache.commons.net.util)"]]

Possible Solution

Fix the missing requirement?

Steps to Reproduce (for Bugs)

  1. Install latest snapshot
  2. Install MQTT binding (v2)

Context

I need the binding to test another binding that depends on MQTT

Your Environment

Ubuntu server 18.04 LTS, snapshot repo, zulu-8 java
Ubuntu server 18.04 LTS, openhabian snapshot

@bccrew bccrew changed the title MQTT binding cannot be installed with snapshot #1512 [mqtt] MQTT binding cannot be installed with snapshot #1512 Feb 2, 2019
@cweitkamp
Copy link
Contributor

I will quote @wborn thankfully from similar issues:

This issue should be fixed in 2.5.0-SNAPSHOT with openhab/openhab-core#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

@Grumium
Copy link

Grumium commented Feb 9, 2019

@cweitkamp sorry to bother you, but it's not. Just experienced this when upgrading to the latest snapshot 1518 using the standard package:
Failed installing 'openhab-misc-mqttbroker, openhab-binding-mqtt, openhab-persistence-rrd4j, openhab-ui-basic, openhab-ui-paper': Unable to resolve root: missing requirement [root] osgi.identity; osgi.identity=openhab-binding-mqtt; type=karaf.feature; version="[2.5.0.SNAPSHOT,2.5.0.SNAPSHOT]"; filter:="(&(osgi.identity=openhab-binding-mqtt)(type=karaf.feature)(version>=2.5.0.SNAPSHOT)(version<=2.5.0.SNAPSHOT))" [caused by: Unable to resolve openhab-binding-mqtt/2.5.0.SNAPSHOT: missing requirement [openhab-binding-mqtt/2.5.0.SNAPSHOT] osgi.identity; osgi.identity=openhab-core-automation-api; type=karaf.feature]

@cweitkamp
Copy link
Contributor

@Grumium the error message is different (see #4841). Sry for circumstances and thank you for your patience.

@wborn wborn added the mqtt label Feb 25, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants