Issue of the topic: openhab cannot start after upgrading to zulu11.0.20
After upgrading to zulu11.0.20, openhab.log shows strange errors:
08:05:39.551 [ERROR] [Events.Framework ] - FrameworkEvent ERROR
java.util.zip.ZipException: Exception in opening zip file: /var/lib/openhab/cache/org.eclipse.osgi/18/0/bundleFile
Caused by: java.util.zip.ZipException: Invalid CEN header (invalid zip64 extra data field size)
...
08:12:18.615 [SCHWERWIEGEND] [org.apache.karaf.main.Main] - Could not launch framework
java.lang.RuntimeException: Error installing bundle listed in startup.properties with url: mvn:org.apache.karaf.features/org.apache.karaf.features.core/4.3.7 and startlevel: 15
Caused by: org.osgi.framework.BundleException: Error occurred installing a bundle.
Caused by: java.util.zip.ZipException: Exception in opening zip file: /var/lib/openhab/cache/org.eclipse.osgi/18/0/bundleFile
Caused by: java.util.zip.ZipException: Invalid CEN header (invalid zip64 extra data field size)
After restarting service (with cleaning cache), openhab service is running but not working (not even a log file is written).
Are you downloading .deb 64 bit version?
install: sudo dpkg -i zulu11-pakagename.deb
and sometimes that fails then run:
apt install -f
Then it works as far as I can remember from past experience.
I just observed the same issue here on amd64 Debian 11 (bullseye) with Java from zulu repository.
Upgrading zulu11 from 11.0.19-1 to 11.0.20-1 broke my setup and throws errors like
2023-07-21 14:55:10.438 [ERROR] [Events.Framework ] - FrameworkEvent ERROR
java.util.zip.ZipException: Exception in opening zip file: /var/lib/openhab/cache/org.eclipse.osgi/18/0/bundleFile
[...]
Caused by: java.util.zip.ZipException: Invalid CEN header (invalid zip64 extra data field size)
core-libs/java.util.jar âžś Improved ZIP64 Extra Field Validation (JDK-8302483 (not public)) java.util.zip.ZipFile has been updated to provide additional validation of ZIP64 extra fields when opening a ZIP file. This validation may be disabled by setting the system property jdk.util.zip.disableZip64ExtraFieldValidation to true.
So it may be necessary to set the mentioned system property with java 11.0.20.
I did this by setting
I did the Zulu update a few days ago and run in the same issue.
Then I downgraded java and OpenHAB was running fine again.
Tried the workaround above and updated Zulu to 11.0.20, now the ERRORs are gone.
I found a second stack trace which appears over and over again (bundle 59 → org.apache.aries.javax.jax.rs-api)
Thank you - this solved the problem instantly for me. Version 4.3.7 on Ubuntu 22, just did a systemwide software update then Openhab started throwing the ZIP64 error and not working. My installation is in /opt/openhab and I just added: