Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse Platform » How to clear eclipse installer cache to get past zip exception?
How to clear eclipse installer cache to get past zip exception? [message #1740159] Tue, 09 August 2016 21:38 Go to next message
David M. Karr is currently offline David M. KarrFriend
Messages: 559
Registered: July 2009
Senior Member
I was installing Eclipse on a slow box. I believe as a result of that, it failed to install.

If it matters, the stacktrace is the following:
[2016-08-09 17:29:57] ERROR: org.eclipse.equinox.p2.engine code=4 An error occurred during the org.eclipse.equinox.internal.p2.engine.phases.CheckTrust phase.
  at org.eclipse.oomph.util.OomphPlugin.coreException(OomphPlugin.java:280)
  at org.eclipse.oomph.p2.internal.core.ProfileTransactionImpl$3.commit(ProfileTransactionImpl.java:548)
  at org.eclipse.oomph.p2.internal.core.ProfileTransactionImpl.commit(ProfileTransactionImpl.java:341)
  at org.eclipse.oomph.setup.p2.impl.P2TaskImpl.perform(P2TaskImpl.java:720)
  at org.eclipse.oomph.setup.internal.core.SetupTaskPerformer.doPerformNeededSetupTasks(SetupTaskPerformer.java:3021)
  at org.eclipse.oomph.setup.internal.core.SetupTaskPerformer.performNeededSetupTasks(SetupTaskPerformer.java:2949)
  at org.eclipse.oomph.setup.internal.core.SetupTaskPerformer.performTriggeredSetupTasks(SetupTaskPerformer.java:2930)
  at org.eclipse.oomph.setup.internal.core.SetupTaskPerformer.perform(SetupTaskPerformer.java:2861)
  at org.eclipse.oomph.setup.internal.installer.SimpleVariablePage.installPerform(SimpleVariablePage.java:1187)
  at org.eclipse.oomph.setup.internal.installer.SimpleVariablePage.access$28(SimpleVariablePage.java:1066)
  at org.eclipse.oomph.setup.internal.installer.SimpleVariablePage$19.run(SimpleVariablePage.java:1011)
  ERROR: org.eclipse.equinox.p2.engine code=0 session context was:(profile=_home_dk068x_eclipse_jee-neon3_eclipse, phase=org.eclipse.equinox.internal.p2.engine.phases.CheckTrust, operand=, action=).
  ERROR: org.eclipse.equinox.p2.engine code=0 Error reading signed content.
  java.util.zip.ZipException: zip file is empty
    at java.util.zip.ZipFile.open(Native Method)
    at java.util.zip.ZipFile.<init>(ZipFile.java:219)
    at java.util.zip.ZipFile.<init>(ZipFile.java:149)
    at java.util.zip.ZipFile.<init>(ZipFile.java:163)
    at org.eclipse.osgi.internal.signedcontent.SignedBundleHook.getSignedContent(SignedBundleHook.java:209)
    at org.eclipse.equinox.internal.p2.engine.phases.CertificateChecker.checkCertificates(CertificateChecker.java:73)
    at org.eclipse.equinox.internal.p2.engine.phases.CertificateChecker.start(CertificateChecker.java:54)
    at org.eclipse.equinox.internal.p2.engine.phases.CheckTrust.completePhase(CheckTrust.java:50)
    at org.eclipse.equinox.internal.p2.engine.Phase.postPerform(Phase.java:251)
    at org.eclipse.equinox.internal.p2.engine.Phase.perform(Phase.java:101)
    at org.eclipse.equinox.internal.p2.engine.PhaseSet.perform(PhaseSet.java:47)
    at org.eclipse.equinox.internal.p2.engine.Engine.perform(Engine.java:75)
    at org.eclipse.equinox.internal.p2.engine.Engine.perform(Engine.java:44)
    at org.eclipse.equinox.internal.provisional.p2.director.PlanExecutionHelper.executePlan(PlanExecutionHelper.java:42)
    at org.eclipse.oomph.p2.internal.core.ProfileTransactionImpl$3.commit(ProfileTransactionImpl.java:544)
    at org.eclipse.oomph.p2.internal.core.ProfileTransactionImpl.commit(ProfileTransactionImpl.java:341)
    at org.eclipse.oomph.setup.p2.impl.P2TaskImpl.perform(P2TaskImpl.java:720)
    at org.eclipse.oomph.setup.internal.core.SetupTaskPerformer.doPerformNeededSetupTasks(SetupTaskPerformer.java:3021)
    at org.eclipse.oomph.setup.internal.core.SetupTaskPerformer.performNeededSetupTasks(SetupTaskPerformer.java:2949)
    at org.eclipse.oomph.setup.internal.core.SetupTaskPerformer.performTriggeredSetupTasks(SetupTaskPerformer.java:2930)
    at org.eclipse.oomph.setup.internal.core.SetupTaskPerformer.perform(SetupTaskPerformer.java:2861)
    at org.eclipse.oomph.setup.internal.installer.SimpleVariablePage.installPerform(SimpleVariablePage.java:1187)
    at org.eclipse.oomph.setup.internal.installer.SimpleVariablePage.access$28(SimpleVariablePage.java:1066)
    at org.eclipse.oomph.setup.internal.installer.SimpleVariablePage$19.run(SimpleVariablePage.java:1011)


After I hit this the first time, I stopped the VM this was running in and gave it more resources. I wanted to run the installer again to see if it was able to get past that problem. It very quickly reported the same error. I then deleted the extracted "eclipse-installer" folder and redownloaded the installer. This time it took a little while longer to get to the error, but it still failed pretty quickly. I think there might still be some other cache that this process is using. What else can I do to make this restart from scratch?

If it matters, the box is a CentOS7.2 VM.
Re: How to clear eclipse installer cache to get past zip exception? [message #1740165 is a reply to message #1740159] Tue, 09 August 2016 23:17 Go to previous messageGo to next message
David M. Karr is currently offline David M. KarrFriend
Messages: 559
Registered: July 2009
Senior Member
I've moved on from this. I just installed the zip package and I was able to move forward. I'm giving up on the installer.
Re: How to clear eclipse installer cache to get past zip exception? [message #1740238 is a reply to message #1740165] Wed, 10 August 2016 15:36 Go to previous message
Ed Merks is currently offline Ed MerksFriend
Messages: 29389
Registered: July 2009
Senior Member
David,

Sorry you had a bad experience. It would be nice if the p2 exception
included a file location...

It sounds like a bad/truncated file ended up in your bundle pool. In
the menu, there is a Bundle Pools... option. You can use it to analyze
the agent and it's bundle pool(s). It will detect damaged artifacts (as
well as unused ones that you can garbage collect). You can try to
repair damaged artifacts or delete them. It could also be the case that
it's fetching from a mirror with bad content. It's hard to say..

There's also a cache in ~/.eclipse/org.eclipse.oomph.p2/cache but those
are the content.jars and artifacts.jars of the repositories, not the
downloaded artifacts themselves, so I don't think that's relevant to
this problem.


On 10.08.2016 01:17, David M. Karr wrote:
> I've moved on from this. I just installed the zip package and I was
> able to move forward. I'm giving up on the installer.
Previous Topic:Virtual machine lunch error
Next Topic:New warning: &quot;An entry for Application.e4xmi is required in bin.includes&quot;
Goto Forum:
  


Current Time: Thu Jun 21 06:50:08 GMT 2018

Powered by FUDForum. Page generated in 0.02046 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top