ArnoTroch / ONOS-Tutorial

Tutorial on how to use ONOS as a robust SDN controller with mininet
https://ArnoTroch.github.io/ONOS-Tutorial/
16 stars 6 forks source link

Error installing boot features #3

Open ywlaw opened 6 months ago

ywlaw commented 6 months ago

Hi Arno, thanks so much for providing this tutorial!

I followed this tutorial until this command "sudo /opt/onos/bin/onos-service start" and then encountered the following error (time stamp omitted):

ERROR [BootFeaturesInstaller] Error installing boot features
org.osgi.framework.BundleException: Unable to cache bundle: mvn:org.onosproject/onos-core-dist/2.7.0
        at org.apache.felix.framework.Felix.installBundle(Felix.java:3013)
        at org.apache.felix.framework.BundleContextImpl.installBundle(BundleContextImpl.java:167)
        at org.eclipse.equinox.internal.region.BundleIdBasedRegion.installBundle0(BundleIdBasedRegion.java:117)
        at org.eclipse.equinox.internal.region.BundleIdBasedRegion.installBundleAtLocation(BundleIdBasedRegion.java:97)
        at org.apache.karaf.features.internal.service.BundleInstallSupportImpl.installBundle(BundleInstallSupportImpl.java:135)
        at org.apache.karaf.features.internal.service.FeaturesServiceImpl.installBundle(FeaturesServiceImpl.java:1138)
        at org.apache.karaf.features.internal.service.Deployer.deploy(Deployer.java:900)
        at org.apache.karaf.features.internal.service.FeaturesServiceImpl.doProvision(FeaturesServiceImpl.java:1062)
        at org.apache.karaf.features.internal.service.FeaturesServiceImpl.lambda$doProvisionInThread$13(FeaturesServiceImpl.java:998)
        at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
        at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
        at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
        at java.base/java.lang.Thread.run(Thread.java:829)
Caused by: java.util.zip.ZipException: Invalid CEN header (invalid extra data field size for tag: 0xbfef at 5847)
        at java.base/java.util.zip.ZipFile$Source.zerror(ZipFile.java:1769)
        at java.base/java.util.zip.ZipFile$Source.checkExtraFields(ZipFile.java:1274)
        at java.base/java.util.zip.ZipFile$Source.initCEN(ZipFile.java:1734)
        at java.base/java.util.zip.ZipFile$Source.<init>(ZipFile.java:1463)
        at java.base/java.util.zip.ZipFile$Source.get(ZipFile.java:1426)
        at java.base/java.util.zip.ZipFile$CleanableResource.<init>(ZipFile.java:742)
        at java.base/java.util.zip.ZipFile$CleanableResource.get(ZipFile.java:859)
        at java.base/java.util.zip.ZipFile.<init>(ZipFile.java:257)
        at java.base/java.util.zip.ZipFile.<init>(ZipFile.java:186)
        at java.base/java.util.zip.ZipFile.<init>(ZipFile.java:200)
        at org.apache.felix.framework.util.SecureAction.openZipFile(SecureAction.java:650)
        at org.apache.felix.framework.util.WeakZipFileFactory$WeakZipFile.<init>(WeakZipFileFactory.java:187)
        at org.apache.felix.framework.util.WeakZipFileFactory$WeakZipFile.<init>(WeakZipFileFactory.java:169)
        at org.apache.felix.framework.util.WeakZipFileFactory.create(WeakZipFileFactory.java:72)
        at org.apache.felix.framework.cache.JarRevision.<init>(JarRevision.java:84)
        at org.apache.felix.framework.cache.BundleArchive.createRevisionFromLocation(BundleArchive.java:872)
        at org.apache.felix.framework.cache.BundleArchive.reviseInternal(BundleArchive.java:550)
        at org.apache.felix.framework.cache.BundleArchive.<init>(BundleArchive.java:153)
        at org.apache.felix.framework.cache.BundleCache.create(BundleCache.java:277)
        at org.apache.felix.framework.Felix.installBundle(Felix.java:3009)
        ... 12 more

The root cause seems to be the lack of verifiability of some signature ("Invalid CEN header"). This error is reproducible on Ubuntu 20.04.6 LTS on WSL2. I haven't found a solution to this yet, but letting you know for the time being.

ywlaw commented 6 months ago

Oops, I just found out this issue has been posted before last year, apologies. However, the issue remains unsolved.