OpenHAB stop working after I delete an addon via Karaf Console

  • Platform information:
    • Hardware: RPI3 typeB
    • OS: openhabian
    • Java Runtime Environment: openjdk version Zulu 8.50.0.259-CA-linux_aarch32hf) (build 1.8.0_272-b17
    • openHAB version: openHAB 2.5.10-1
  • Issue of the topic:
    Hello,
    I kindly ask for help after I done the followings:

Since the openHAB Cloud Connector was not working anymore I tried to implement the solution explanied here because I was not able to unintsall the addon via UI:
[SOLVED] myopenhab.org says "Your openHAB is not online." - #3 by candrea. After I have executed the commands from the solution :

sudo systemctl stop openhab2
sudo openhab-cli clean-cache
sudo systemctl start openhab2

I got the following error messages:


  • If logs where generated please post these here using code fences:
2022-11-02 13:03:15.470 [ERROR] [core.karaf.internal.FeatureInstaller] - Failed installing 'openhab-misc-mqttbroker, openhab-binding-onewiregpio, openhab-persistence-mapdb, openhab-ui-homebuilder, openhab-binding-mqtt, openhab-transformation-map, openhab-ui-basic, openhab-ui-classic, openhab-ui-habmin, openhab-ui-habpanel, openhab-ui-paper, openhab-binding-gpio1': Error:

	Error downloading mvn:javax.xml.bind/jaxb-api/2.2.12
	Error downloading mvn:org.openhab.ui.bundles/org.openhab.ui.habmin/[2.5.0,2.6)
	Error downloading mvn:com.sun.xml.bind/jaxb-core/2.2.11
	Error downloading mvn:com.sun.xml.bind/jaxb-impl/2.2.11
	Error downloading mvn:javax.activation/activation/1.1.1
	Error downloading mvn:javax.activation/activation/1.1.1

Now I can’t see any installed binding in kraft console:

openhab> bundle:list
START LEVEL 100 , List Threshold: 50
 ID │ State  │ Lvl │ Version                 │ Name
────┼────────┼─────┼─────────────────────────┼──────────────────────────────────────────────────────────────────────────
 19 │ Active │  80 │ 5.3.1.201602281253      │ OSGi JAX-RS Connector
 20 │ Active │  80 │ 2.8.2.v20180104-1110    │ Gson: Google Json Library for Java
 21 │ Active │  80 │ 18.0.0                  │ Guava: Google Core Libraries for Java
 22 │ Active │  80 │ 27.1.0.jre              │ Guava: Google Core Libraries for Java
 23 │ Active │  80 │ 1.0.1                   │ Guava InternalFutureFailureAccess and InternalFutures
 24 │ Active │  80 │ 3.0.0.v201312141243     │ Google Guice (No AOP)
 25 │ Active │  80 │ 4.8.35.v20190528-1517   │ ClassGraph
 26 │ Active │  80 │ 3.18.1.GA               │ Javassist
 29 │ Active │  80 │ 3.5.5                   │ JmDNS
 31 │ Active │  80 │ 1.0.0                   │ Units of Measurement API
 33 │ Active │  80 │ 1.1.0.Final             │ Bean Validation API
 35 │ Active │  80 │ 2.0.1                   │ javax.ws.rs-api
 36 │ Active │  80 │ 2.9.2                   │ Joda-Time
 37 │ Active │  80 │ 0.5.8                   │ Jollyday
 38 │ Active │  80 │ 3.2.0.v201101311130     │ ANTLR Runtime
 40 │ Active │  80 │ 1.1                     │ Commons Exec
 41 │ Active │  80 │ 2.2.0                   │ Commons IO
 42 │ Active │  80 │ 2.6                     │ Commons Lang
 51 │ Active │  80 │ 4.2.7                   │ Apache Karaf :: OSGi Services :: Event
 66 │ Active │  80 │ 1.4.7.1                 │ Apache ServiceMix :: Bundles :: xstream
 69 │ Active │  80 │ 4.14.0                  │ Apache XBean OSGI Bundle Utilities
 70 │ Active │  80 │ 4.14.0                  │ Apache XBean :: Classpath Resource Finder
 71 │ Active │  80 │ 2.12.0.v20160420-0247   │ EMF Common
 72 │ Active │  80 │ 2.12.0.v20160420-0247   │ EMF Ecore
 73 │ Active │  80 │ 2.5.11.202011291921     │ openHAB Add-ons :: Bundles :: Shelly Binding
 74 │ Active │  80 │ 2.11.0.v20160420-0247   │ EMF Change Model
 75 │ Active │  80 │ 2.12.0.v20160420-0247   │ EMF XML/XMI Persistence
 76 │ Active │  80 │ 2.0.0                   │ Californium (Cf) Element Connector
 77 │ Active │  80 │ 3.10.400.v20190516-1504 │ Common Eclipse Runtime
 78 │ Active │  80 │ 2.0.0                   │ Californium (Cf) Core
107 │ Active │  80 │ 0.8.0.v20190822-0801    │ org.eclipse.lsp4j
108 │ Active │  80 │ 0.8.0.v20190822-0801    │ org.eclipse.lsp4j.jsonrpc
109 │ Active │  80 │ 2.19.0.v20190902-0728   │ Xtend Runtime Library
110 │ Active │  80 │ 2.19.0.v20190902-0728   │ Xtend Macro Interfaces
111 │ Active │  80 │ 2.19.0.v20190902-0737   │ Xtext
112 │ Active │  80 │ 2.19.0.v20190902-0952   │ Xtext Common Types
113 │ Active │  80 │ 2.19.0.v20190902-0737   │ Xtext IDE Core
114 │ Active │  80 │ 2.19.0.v20190902-0737   │ Xtext Utility
115 │ Active │  80 │ 2.19.0.v20190902-0952   │ Xbase Model
116 │ Active │  80 │ 2.19.0.v20190902-0952   │ Xbase Generic IDE Services
117 │ Active │  80 │ 2.19.0.v20190902-0728   │ Xbase Runtime Library
132 │ Active │  80 │ 1.9.6                   │ MIME streaming extension
134 │ Active │  80 │ 7.1.0                   │ org.objectweb.asm.commons
135 │ Active │  80 │ 7.1.0                   │ org.objectweb.asm.tree
136 │ Active │  80 │ 2.5.0                   │ openHAB Core :: Bundles :: Core
137 │ Active │  80 │ 2.5.0                   │ openHAB Core :: Bundles :: Audio
138 │ Active │  80 │ 2.5.0                   │ openHAB Core :: Bundles :: OAuth2Client
139 │ Active │  80 │ 2.5.0                   │ openHAB Core :: Bundles :: Binding XML
140 │ Active │  90 │ 2.5.0                   │ openHAB Core :: Bundles :: Boot
141 │ Active │  80 │ 2.5.0                   │ openHAB Core :: Bundles :: Configuration Core
142 │ Active │  80 │ 2.5.0                   │ openHAB Core :: Bundles :: Configuration Discovery
143 │ Active │  80 │ 2.5.0                   │ openHAB Core :: Bundles :: Configuration mDNS Discovery
144 │ Active │  80 │ 2.5.0                   │ openHAB Core :: Bundles :: Configuration Dispatcher
145 │ Active │  75 │ 2.5.0                   │ openHAB Core :: Bundles :: Configuration XML
146 │ Active │  80 │ 2.5.0                   │ openHAB Core :: Bundles :: Ephemeris
147 │ Active │  80 │ 2.5.0                   │ openHAB Core :: Bundles :: ID
148 │ Active │  80 │ 2.5.0                   │ openHAB Core :: Bundles :: Console
149 │ Active │  80 │ 2.5.0                   │ openHAB Core :: Bundles :: Console for OSGi runtime Karaf
150 │ Active │  80 │ 2.5.0                   │ openHAB Core :: Bundles :: HTTP Interface
152 │ Active │  80 │ 2.5.0                   │ openHAB Core :: Bundles :: Monitor
153 │ Active │  80 │ 2.5.0                   │ openHAB Core :: Bundles :: Network I/O
154 │ Active │  80 │ 2.5.0                   │ openHAB Core :: Bundles :: REST Interface
155 │ Active │  80 │ 2.5.0                   │ openHAB Core :: Bundles :: Audio REST Interface
156 │ Active │  80 │ 2.5.0                   │ openHAB Core :: Bundles :: REST Interface :: Core
157 │ Active │  80 │ 2.5.0                   │ openHAB Core :: Bundles :: REST mDNS Announcer
158 │ Active │  80 │ 2.5.0                   │ openHAB Core :: Bundles :: REST JAX-RS Optimizations
159 │ Active │  80 │ 2.5.0                   │ openHAB Core :: Bundles :: Sitemap REST Interface
160 │ Active │  80 │ 2.5.0                   │ openHAB Core :: Bundles :: SSE Interface
161 │ Active │  80 │ 2.5.0                   │ openHAB Core :: Bundles :: Voice REST Interface
162 │ Active │  80 │ 2.5.0                   │ openHAB Core :: Bundles :: mDNS Service
163 │ Active │  80 │ 2.5.0                   │ openHAB Core :: Bundles :: Karaf Integration
164 │ Active │  80 │ 2.5.0                   │ openHAB Core :: Bundles :: Model Core
165 │ Active │  80 │ 2.5.0                   │ openHAB Core :: Bundles :: Model Items
166 │ Active │  80 │ 2.5.0                   │ openHAB Core :: Bundles :: Model Item IDE
167 │ Active │  80 │ 2.5.0                   │ openHAB Core :: Bundles :: Model Items Runtime
168 │ Active │  80 │ 2.5.0                   │ openHAB Core :: Bundles :: Language Server
169 │ Active │  80 │ 2.5.0                   │ openHAB Core :: Bundles :: Model Persistence
170 │ Active │  80 │ 2.5.0                   │ openHAB Core :: Bundles :: Model Persistence IDE
171 │ Active │  80 │ 2.5.0                   │ openHAB Core :: Bundles :: Model Persistence Runtime
172 │ Active │  80 │ 2.5.0                   │ openHAB Core :: Bundles :: Model Rules
173 │ Active │  80 │ 2.5.0                   │ openHAB Core :: Bundles :: Model Rule IDE
174 │ Active │  80 │ 2.5.0                   │ openHAB Core :: Bundles :: Model Rules Runtime
175 │ Active │  80 │ 2.5.0                   │ openHAB Core :: Bundles :: Model Script
176 │ Active │  80 │ 2.5.0                   │ openHAB Core :: Bundles :: Model Script IDE
177 │ Active │  80 │ 2.5.0                   │ openHAB Core :: Bundles :: Model Script Runtime
178 │ Active │  80 │ 2.5.0                   │ openHAB Core :: Bundles :: Model Sitemap
179 │ Active │  80 │ 2.5.0                   │ openHAB Core :: Bundles :: Model Sitemap IDE
180 │ Active │  80 │ 2.5.0                   │ openHAB Core :: Bundles :: Model Sitemap Runtime
181 │ Active │  80 │ 2.5.0                   │ openHAB Core :: Bundles :: Model Thing
182 │ Active │  80 │ 2.5.0                   │ openHAB Core :: Bundles :: Model Thing IDE
183 │ Active │  80 │ 2.5.0                   │ openHAB Core :: Bundles :: Model Thing Runtime
184 │ Active │  80 │ 2.5.0                   │ openHAB Core :: Bundles :: Persistence
185 │ Active │  80 │ 2.5.0                   │ openHAB Core :: Bundles :: Scheduler Service
186 │ Active │  80 │ 2.5.0                   │ openHAB Core :: Bundles :: Semantics
187 │ Active │  80 │ 2.5.0                   │ openHAB Core :: Bundles :: JSON Storage
188 │ Active │  80 │ 2.5.0                   │ openHAB Core :: Bundles :: Thing
189 │ Active │  75 │ 2.5.0                   │ openHAB Core :: Bundles :: Thing XML
190 │ Active │  80 │ 2.5.0                   │ openHAB Core :: Bundles :: Transformation Service
191 │ Active │  80 │ 2.5.0                   │ openHAB Core :: Bundles :: UI
192 │ Active │  80 │ 2.5.0                   │ openHAB Core :: Bundles :: UI Icon Support
193 │ Active │  80 │ 2.5.0                   │ openHAB Core :: Bundles :: Voice
194 │ Active │  80 │ 2.5.10                  │ openHAB UI :: Bundles :: Dashboard UI
203 │ Active │  80 │ 1.4.0                   │ ThreeTen-Extra
204 │ Active │  80 │ 1.0.3                   │ Units of Measurement Common Library
205 │ Active │  80 │ 1.0.10                  │ Units of Measurement Implementation for Java SE
openhab>

Please let me know if I can fix this issue!
Thank you!
Marian

At this point all I can recommend is upgrade to download the .kar file of addons from the Download page and put that into your add-ons folder.

Hello! Thank you for the prompt answer! Please could you be more specific with me because I don’t know how to: “upgrade to download the .kar file of addons from the Download page.” Where I can find the Download page ?
Please consider that In the Openhab UI I can have access only to logview and help pages…Also I’m not sure regarding the location of the addon folder. It is under the services? Thank you !

That was a typo. I was going to say something else and didn’t delete everything.

Go to the Download link at the top of this page. Scroll to the bottom to get to the legacy OH 2 downloads. Choose your OS (choose Linux if openHABian), download the addons and drop that file into your OH’s addons folder.

There is a table of file locations on the installation page for each operating system.

Hello!

Your recommandation fixed my issue ! Many thanks! Now I can see 2 addons/bindings version for each feature:


Considering that my current OH version is 2.5.10, please let me know if it is recommanded to install the coresponding addon version or it will bve also fine / better to install the newer one (2.5.12). Thx again!

OH core was frozen at version 2.5.0 so the only differences between 2.5.0 and 2.5.12 are the add-ons. You don’t have to upgrade. But as long as your core is different from your add-ons you’ll see two entries.

In general, my recommendation for anyone wanting to continue to run old and no longer supported software is to not change anything. Even then something outside of your control will change forcing you to change something and, as shown here, it’s likely to break. The longer you avoid upgrading, the more brittle your system will become and the more work it will be to upgrade when it finally does break and cannot be fixed without upgrading.

Many thanks for this!

I can’t say. I use the Shelly binding but I’ve only ever used it as an official binding. It’s in the docs as an official binding for 2.5. Beyond that :person_shrugging: Two years ago is a long time. I never followed any manual process or anything special with that binding.