OH3 - Unable to install MQTT binding

Hello,

I have an openhab 3 instance running for a while without issue on a VM (Debian on ESXi). I’m now trying to add the MQTT binding but it doesn’t install apparently due to some missing packages or dependencies which I’m unable to resolve.

I have already try re-installing java, stop/restart openhab but issue stays.

Any help would be much appreciated…

Thanks

  • Platform information:
    • Hardware: VM Intel x86/8Gb RAM/64Gb SSD
    • OS: Debian GNU/Linux 10 (buster)
    • Java Runtime Environment:
      openjdk version “11.0.8” 2020-07-14 LTS
      OpenJDK Runtime Environment Zulu11.41+23-CA (build 11.0.8+10-LTS)
      OpenJDK 64-Bit Server VM Zulu11.41+23-CA (build 11.0.8+10-LTS, mixed mode)
    • openHAB version: 3.0.1
  • Issue of the topic: Unable to install MQTT binding
  • If logs where generated please post these here using code fences:

Jun 06 09:57:34 vm-openhabian karaf[571]: org.apache.felix.resolver.reason.ReasonException: Unable to resolve root: missing requirement [root] osgi.identity; osgi.identity=openhab-package-standard; type=karaf.feature; version="[3.0.1,3.0.1]"; filter:="(&(osgi.identity=openhab-package-standard)(type
Jun 06 09:57:34 vm-openhabian karaf[571]: at org.apache.felix.resolver.Candidates$MissingRequirementError.toException(Candidates.java:1343)
Jun 06 09:57:34 vm-openhabian karaf[571]: at org.apache.felix.resolver.ResolverImpl.doResolve(ResolverImpl.java:392)
Jun 06 09:57:34 vm-openhabian karaf[571]: at org.apache.felix.resolver.ResolverImpl.resolve(ResolverImpl.java:378)
Jun 06 09:57:34 vm-openhabian karaf[571]: at org.apache.felix.resolver.ResolverImpl.resolve(ResolverImpl.java:332)
Jun 06 09:57:34 vm-openhabian karaf[571]: at org.apache.karaf.features.internal.region.SubsystemResolver.resolve(SubsystemResolver.java:257)
Jun 06 09:57:34 vm-openhabian karaf[571]: at org.apache.karaf.features.internal.service.Deployer.deploy(Deployer.java:393)
Jun 06 09:57:34 vm-openhabian karaf[571]: at org.apache.karaf.features.internal.service.FeaturesServiceImpl.doProvision(FeaturesServiceImpl.java:1062)
Jun 06 09:57:34 vm-openhabian karaf[571]: at org.apache.karaf.features.internal.service.FeaturesServiceImpl.lambda$doProvisionInThread$13(FeaturesServiceImpl.java:998)
Jun 06 09:57:34 vm-openhabian karaf[571]: at java.base/java.util.concurrent.FutureTask.run(Unknown Source)
Jun 06 09:57:34 vm-openhabian karaf[571]: at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
Jun 06 09:57:34 vm-openhabian karaf[571]: at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
Jun 06 09:57:34 vm-openhabian karaf[571]: at java.base/java.lang.Thread.run(Unknown Source)

You should update to openHAB 3.02 stable and download the openhHAB-addons.kar file as your openHAB might still point to bintray repositories, which have been shut down last month. There have been many posts around that issue.

Done to openhab 3.0.2 but issue persists

openhab is already the newest version (3.0.2-1).
KAR openhab-addons-3.0.2.kar is already installed. Please uninstall it first.

Still the same issue when installing MQTT binding

2021-06-08 12:07:42.389 [INFO ] [internal.service.FeaturesServiceImpl] - Adding features: openhab-binding-mqtt/[3.0.2,3.0.2]

2021-06-08 12:07:42.536 [ERROR] [core.karaf.internal.FeatureInstaller] - Failed installing ‘openhab-binding-mqtt’: Unable to resolve root: missing requirement [root] osgi.identity; osgi.identity=openhab-package-standard; type=karaf.feature; version="[3.0.1,3.0.1]"; filter:="(&(osgi.identity=openhab-package-standard)(type=karaf.feature)(version>=3.0.1)(version<=3.0.1))"

also console still shows version 3.0.1…

128 │ Active │ 80 │ 3.0.1 │ openHAB Core :: Bundles :: Core
129 │ Active │ 80 │ 3.0.1 │ openHAB Core :: Bundles :: Audio
130 │ Active │ 80 │ 3.0.1 │ openHAB Core :: Bundles :: JAAS Authentication
131 │ Active │ 80 │ 3.0.1 │ openHAB Core :: Bundles :: OAuth2Client
132 │ Active │ 80 │ 3.0.1 │ openHAB Core :: Bundles :: Automation
133 │ Active │ 80 │ 3.0.1 │ openHAB Core :: Bundles :: Automation Media Modules
134 │ Active │ 80 │ 3.0.1 │ openHAB Core :: Bundles :: Automation Script Modules
135 │ Active │ 80 │ 3.0.1 │ openHAB Core :: Bundles :: Automation Script RuleSupport
136 │ Active │ 80 │ 3.0.1 │ openHAB Core :: Bundles :: Automation REST API
137 │ Active │ 80 │ 3.0.1 │ openHAB Core :: Bundles :: Binding XML
138 │ Active │ 80 │ 3.0.1 │ openHAB Core :: Bundles :: Configuration Core
139 │ Active │ 80 │ 3.0.1 │ openHAB Core :: Bundles :: Configuration Discovery
140 │ Active │ 80 │ 3.0.1 │ openHAB Core :: Bundles :: Configuration mDNS Discovery
141 │ Active │ 80 │ 3.0.1 │ openHAB Core :: Bundles :: Configuration Dispatcher
142 │ Active │ 75 │ 3.0.1 │ openHAB Core :: Bundles :: Configuration XML
143 │ Active │ 80 │ 3.0.1 │ openHAB Core :: Bundles :: Ephemeris
144 │ Active │ 80 │ 3.0.1 │ openHAB Core :: Bundles :: ID
145 │ Active │ 80 │ 3.0.1 │ openHAB Core :: Bundles :: Console
146 │ Active │ 80 │ 3.0.1 │ openHAB Core :: Bundles :: Console for OSGi runtime Karaf
147 │ Active │ 80 │ 3.0.1 │ openHAB Core :: Bundles :: HTTP Interface
148 │ Active │ 80 │ 3.0.1 │ openHAB Core :: Bundles :: HTTP Interface Authentication
150 │ Active │ 80 │ 3.0.1 │ openHAB Core :: Bundles :: Monitor
151 │ Active │ 80 │ 3.0.1 │ openHAB Core :: Bundles :: Network I/O
152 │ Active │ 80 │ 3.0.1 │ openHAB Core :: Bundles :: REST Interface
153 │ Active │ 80 │ 3.0.1 │ openHAB Core :: Bundles :: Audio REST Interface
154 │ Active │ 80 │ 3.0.1 │ openHAB Core :: Bundles :: Authentication Support for the REST Interface
155 │ Active │ 80 │ 3.0.1 │ openHAB Core :: Bundles :: REST Interface :: Core
156 │ Active │ 80 │ 3.0.1 │ openHAB Core :: Bundles :: REST mDNS Announcer
157 │ Active │ 80 │ 3.0.1 │ openHAB Core :: Bundles :: Sitemap REST Interface
158 │ Active │ 80 │ 3.0.1 │ openHAB Core :: Bundles :: SSE Interface
159 │ Active │ 80 │ 3.0.1 │ openHAB Core :: Bundles :: REST Interface :: Swagger 1
160 │ Active │ 80 │ 3.0.1 │ openHAB Core :: Bundles :: UI REST Interface
161 │ Active │ 80 │ 3.0.1 │ openHAB Core :: Bundles :: Voice REST Interface
162 │ Active │ 80 │ 3.0.1 │ openHAB Core :: Bundles :: mDNS Service
163 │ Active │ 80 │ 3.0.1 │ openHAB Core :: Bundles :: Karaf Integration
164 │ Active │ 80 │ 3.0.1 │ openHAB Core :: Bundles :: Model Core
165 │ Active │ 80 │ 3.0.1 │ openHAB Core :: Bundles :: Model Items
166 │ Active │ 80 │ 3.0.1 │ openHAB Core :: Bundles :: Model Item IDE
167 │ Active │ 80 │ 3.0.1 │ openHAB Core :: Bundles :: Model Items Runtime
168 │ Active │ 80 │ 3.0.1 │ openHAB Core :: Bundles :: Language Server
169 │ Active │ 80 │ 3.0.1 │ openHAB Core :: Bundles :: Model Persistence
170 │ Active │ 80 │ 3.0.1 │ openHAB Core :: Bundles :: Model Persistence IDE
171 │ Active │ 80 │ 3.0.1 │ openHAB Core :: Bundles :: Model Persistence Runtime
172 │ Active │ 80 │ 3.0.1 │ openHAB Core :: Bundles :: Model Rules
173 │ Active │ 80 │ 3.0.1 │ openHAB Core :: Bundles :: Model Rule IDE
174 │ Active │ 80 │ 3.0.1 │ openHAB Core :: Bundles :: Model Rules Runtime
175 │ Active │ 80 │ 3.0.1 │ openHAB Core :: Bundles :: Model Script
176 │ Active │ 80 │ 3.0.1 │ openHAB Core :: Bundles :: Model Script IDE
177 │ Active │ 80 │ 3.0.1 │ openHAB Core :: Bundles :: Model Script Runtime
178 │ Active │ 80 │ 3.0.1 │ openHAB Core :: Bundles :: Model Sitemap
179 │ Active │ 80 │ 3.0.1 │ openHAB Core :: Bundles :: Model Sitemap IDE
180 │ Active │ 80 │ 3.0.1 │ openHAB Core :: Bundles :: Model Sitemap Runtime
181 │ Active │ 80 │ 3.0.1 │ openHAB Core :: Bundles :: Model Thing
182 │ Active │ 80 │ 3.0.1 │ openHAB Core :: Bundles :: Model Thing IDE
183 │ Active │ 80 │ 3.0.1 │ openHAB Core :: Bundles :: Model Thing Runtime
184 │ Active │ 80 │ 3.0.1 │ openHAB Core :: Bundles :: Persistence
185 │ Active │ 80 │ 3.0.1 │ openHAB Core :: Bundles :: Semantics
186 │ Active │ 80 │ 3.0.1 │ openHAB Core :: Bundles :: JSON Storage
187 │ Active │ 80 │ 3.0.1 │ openHAB Core :: Bundles :: Thing
188 │ Active │ 75 │ 3.0.1 │ openHAB Core :: Bundles :: Thing XML
189 │ Active │ 80 │ 3.0.1 │ openHAB Core :: Bundles :: Transformation Service
190 │ Active │ 80 │ 3.0.1 │ openHAB Core :: Bundles :: UI
191 │ Active │ 80 │ 3.0.1 │ openHAB Core :: Bundles :: UI Icon Support
192 │ Active │ 80 │ 3.0.1 │ openHAB Core :: Bundles :: Voice

Aren’t they supposed to be 3.0.2?

Ok nevermind… I did clean all cache and tmp folders and upload again the new 3.0.2 kar files and everything got updated properly after restart. MQTT is now installing properly

Thanks

1 Like

Glad you solved it and now please mark your post as solution :wink: