Hi all,
after upgrade to version 4.0.3 openhab won´t start. I got the following error.
● openhab.service - openHAB - empowering the smart home
Loaded: loaded (/lib/systemd/system/openhab.service; enabled; vendor preset: enabled)
Active: activating (auto-restart) (Result: exit-code) since Sun 2023-09-17 11:51:08 CEST; 3s ago
Docs: Introduction | openHAB
https://community.openhab.org
Process: 69570 ExecStart=/usr/share/openhab/runtime/bin/karaf ${OPENHAB_STARTMODE} (code=exited, status=255/EXCEPTION)
Main PID: 69570 (code=exited, status=255/EXCEPTION)
CPU: 987ms
After the update I cleaned the cache by openhab-cli command.
Information:
OS Linux mint Victoria, all available updates installed
Browser Firofox 117.0.1. for mint
Java Zulu11 11.0.20.1-3
I can´t figure out what the exitcode means and what to do to get openhab4.0.3. started.
Any help would be welcome.
Wolfgang_S
(Wolfgang_S)
September 17, 2023, 10:53am
2
Any entry in openhab.log file ?
Anything shown by sudo journalctl -u openhab
?
Hallo Wolfgang, Thanks for the reply.
The entries of openhab.log:
sep 06 09:02:33 MacMinI7 karaf[1192]: 09:02:33.595 [Framework Event Dispatcher: Equinox Container: 58a53ed3-2e69-4895-a453-5bc91d750128] ERROR Even>
sep 06 09:02:33 MacMinI7 karaf[1192]: java.util.zip.ZipException: Exception in opening zip file: /var/lib/openhab/cache/org.eclipse.osgi/18/0/bundl>
sep 06 09:02:33 MacMinI7 karaf[1192]: at org.eclipse.osgi.framework.util.SecureAction.getZipFile(SecureAction.java:356) ~[org.eclipse.osgi->
sep 06 09:02:33 MacMinI7 karaf[1192]: at org.eclipse.osgi.storage.bundlefile.ZipBundleFile.doOpen(ZipBundleFile.java:51) ~[org.eclipse.osgi>
sep 06 09:02:33 MacMinI7 karaf[1192]: at org.eclipse.osgi.storage.bundlefile.CloseableBundleFile.open(CloseableBundleFile.java:135) ~[org.e>
sep 06 09:02:33 MacMinI7 karaf[1192]: at org.eclipse.osgi.storage.bundlefile.CloseableBundleFile.lockOpen(CloseableBundleFile.java:77) ~[or>
sep 06 09:02:33 MacMinI7 karaf[1192]: at org.eclipse.osgi.storage.bundlefile.CloseableBundleFile.getEntry(CloseableBundleFile.java:274) ~[o>
sep 06 09:02:33 MacMinI7 karaf[1192]: at org.eclipse.osgi.storage.bundlefile.BundleFile.getResourceURL(BundleFile.java:142) ~[org.eclipse.o>
sep 06 09:02:33 MacMinI7 karaf[1192]: at org.eclipse.osgi.internal.loader.classpath.ClasspathEntry.findResource(ClasspathEntry.java:213) ~[>
sep 06 09:02:33 MacMinI7 karaf[1192]: at org.eclipse.osgi.internal.loader.classpath.ClasspathManager.findLocalResourceImpl(ClasspathManager>
sep 06 09:02:33 MacMinI7 karaf[1192]: at org.eclipse.osgi.internal.loader.classpath.ClasspathManager.findLocalResourceImpl(ClasspathManager>
sep 06 09:02:33 MacMinI7 karaf[1192]: at org.eclipse.osgi.internal.loader.classpath.ClasspathManager.findLocalResource(ClasspathManager.jav>
sep 06 09:02:33 MacMinI7 karaf[1192]: at org.eclipse.osgi.internal.loader.ModuleClassLoader.findLocalResource(ModuleClassLoader.java:327) ~>
sep 06 09:02:33 MacMinI7 karaf[1192]: at org.eclipse.osgi.internal.loader.BundleLoader.findLocalResource(BundleLoader.java:895) ~[org.eclip>
sep 06 09:02:33 MacMinI7 karaf[1192]: at org.eclipse.osgi.internal.loader.BundleLoader.findResource(BundleLoader.java:681) ~[org.eclipse.os>
sep 06 09:02:34 MacMinI7 karaf[1192]: at org.eclipse.osgi.internal.loader.ModuleClassLoader.getResource(ModuleClassLoader.java:205) ~[org.e>
sep 06 09:02:34 MacMinI7 karaf[1192]: at org.eclipse.osgi.internal.framework.EquinoxBundle.getResource(EquinoxBundle.java:590) ~[org.eclips>
sep 06 09:02:34 MacMinI7 karaf[1192]: at org.apache.servicemix.specs.activation.Activator.register(Activator.java:58) ~[org.apache.servicem>
sep 06 09:02:34 MacMinI7 karaf[1192]: at org.apache.servicemix.specs.locator.Activator.start(Activator.java:70) ~[org.apache.servicemix.spe>
sep 06 09:02:34 MacMinI7 karaf[1192]: at org.apache.servicemix.specs.activation.Activator.start(Activator.java:46) ~[org.apache.servicemix.>
sep 06 09:02:34 MacMinI7 karaf[1192]: at org.eclipse.osgi.internal.framework.BundleContextImpl$2.run(BundleContextImpl.java:813) ~[org.ecli>
sep 06 09:02:34 MacMinI7 karaf[1192]: at org.eclipse.osgi.internal.framework.BundleContextImpl$2.run(BundleContextImpl.java:1) ~[org.eclips>
sep 06 09:02:34 MacMinI7 karaf[1192]: at java.security.AccessController.doPrivileged(Native Method) ~[?:?]
It looks like it has something to do with the exception in row 2. If that is correct, then is the question how solve this exception.
Kind regards,
Leo
sihui
(SiHui)
September 17, 2023, 12:24pm
4
1 Like
Solution
I’ve made a full backup of the current configuration, things, items and so on by sudo openhab-cli --full command. After that i’ve uninstalled openhab 3.4 and deleted /etc/default/openhab and /var/lib/openhab. I upgraded zulu to 17.08.1 and installed openhab 4.0.3. After restoring the backup via sudo openhab-cli restore everything works fine.