Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Oomph » Disable Oomph Update Site in Installer
Disable Oomph Update Site in Installer [message #1742081] Wed, 31 August 2016 08:29 Go to next message
Stephan Hildebrandt is currently offline Stephan HildebrandtFriend
Messages: 25
Registered: July 2015
Junior Member
Hi,

I have created a customized Eclipse installer based on the "official" Eclipse installer, where the setup model URI is redirected to our own setup model. Furthermore, we host mirrored copies of the Eclipse update sites in our local network (for performance reasons and to be less affected by network and server problems). However, even though I only use these mirrored update sites in my setup model, the installer still contacts the Oomph update site at "http://download.eclipse.org/oomph/updates/milestone/latest/". How can I disable this update site and force the installer to only use the mirrored update site in our local network? The installer aborts with an exception if that update site is not reachable (as it was the case just some minutes ago), preventing the users from installing and updating their workspaces.


Thanks in advance,

Stephan
Re: Disable Oomph Update Site in Installer [message #1742090 is a reply to message #1742081] Wed, 31 August 2016 10:35 Go to previous messageGo to next message
Ed Merks is currently offline Ed MerksFriend
Messages: 33264
Registered: July 2009
Senior Member
The installer that we distribute comes with these in the eclipse-inst.ini:

-Doomph.installer.update.url=http://download.eclipse.org/oomph/products/latest/repository
-Doomph.update.url=http://download.eclipse.org/oomph/updates/latest

In this case it was a nightly build installer so it points at these update sites.

Did you change these values to point at your mirrors, or did redirect these URIs to your local mirrors? (I'm not sure the installer's self update URI usage respects redirections.)


Ed Merks
Professional Support: https://www.macromodeling.com/
Re: Disable Oomph Update Site in Installer [message #1742093 is a reply to message #1742090] Wed, 31 August 2016 11:00 Go to previous messageGo to next message
Stephan Hildebrandt is currently offline Stephan HildebrandtFriend
Messages: 25
Registered: July 2015
Junior Member
Hi Ed,

I used the installer that you can download from http://www.eclipse.org/downloads/. That installer's eclipse-inst.ini file does not contain any update site URLs. However, after adding -Doomph.update.url and pointing it to our mirror, it works as expected.

Thanks,

Stephan
Re: Disable Oomph Update Site in Installer [message #1742094 is a reply to message #1742093] Wed, 31 August 2016 11:11 Go to previous messageGo to next message
Ed Merks is currently offline Ed MerksFriend
Messages: 33264
Registered: July 2009
Senior Member
Ah yes, I see. There are defaults for these values, so the nightly build's installer doesn't want those defaults so it uses these system properties to point at nightly build repositories.

Ed Merks
Professional Support: https://www.macromodeling.com/
Re: Disable Oomph Update Site in Installer [message #1764361 is a reply to message #1742094] Mon, 29 May 2017 08:04 Go to previous messageGo to next message
uma nayak is currently offline uma nayakFriend
Messages: 19
Registered: May 2017
Junior Member
Hi Ed,

I am also facing same issue.
i had added -Doomph.update.url and pointing it to our mirror, it is not working for me.

just i had copied folder from below url and created our own repository.....
http://mirror.math.princeton.edu/pub/eclipse/oomph/drops/milestone/S20170307-122318-1.7.0-M4/

Getting following error logs.

ERROR: org.eclipse.equinox.p2.artifact.repository code=13 Retry another mirror
ERROR: org.eclipse.oomph.p2.core code=0 Repeated attemps to download http://mirror.cc.vt.edu/pub/eclipse/oomph/drops/milestone/S20170307-122318-1.7.0-M4/plugins/org.eclipse.oomph.base_1.7.0.v20170201-1645.jar.pack.gz from the same site
java.io.IOException: Repeated attemps to download http://mirror.cc.vt.edu/pub/eclipse/oomph/drops/milestone/S20170307-122318-1.7.0-M4/plugins/org.eclipse.oomph.base_1.7.0.v20170201-1645.jar.pack.gz from the same site
at org.eclipse.oomph.p2.internal.core.CachingTransport.download(CachingTransport.java:122)
at org.eclipse.oomph.p2.internal.core.CachingTransport.download(CachingTransport.java:251)
at org.eclipse.equinox.internal.p2.artifact.repository.simple.SimpleArtifactRepository.downloadArtifact(SimpleArtifactRepository.java:669)
at org.eclipse.equinox.internal.p2.artifact.repository.simple.SimpleArtifactRepository.downloadArtifact(SimpleArtifactRepository.java:591)
at org.eclipse.equinox.internal.p2.artifact.repository.simple.SimpleArtifactRepository.getArtifact(SimpleArtifactRepository.java:723)
at org.eclipse.equinox.internal.p2.artifact.repository.MirrorRequest.getArtifact(MirrorRequest.java:319)
at org.eclipse.equinox.internal.p2.artifact.repository.MirrorRequest.transferSingle(MirrorRequest.java:288)
at org.eclipse.equinox.internal.p2.artifact.repository.MirrorRequest.transfer(MirrorRequest.java:223)
at org.eclipse.equinox.internal.p2.artifact.repository.MirrorRequest.perform(MirrorRequest.java:153)
at org.eclipse.equinox.internal.p2.artifact.repository.simple.SimpleArtifactRepository.getArtifact(SimpleArtifactRepository.java:707)
at org.eclipse.equinox.internal.p2.artifact.repository.simple.DownloadJob.run(DownloadJob.java:63)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)
ERROR: org.eclipse.equinox.p2.artifact.repository code=13 Retry another mirror
ERROR: org.eclipse.oomph.p2.core code=0 Repeated attemps to download http://mirrors.neusoft.edu.cn/eclipse/oomph/drops/milestone/S20170307-122318-1.7.0-M4/plugins/org.eclipse.oomph.base_1.7.0.v20170201-1645.jar.pack.gz from the same site
java.io.IOException: Repeated attemps to download http://mirrors.neusoft.edu.cn/eclipse/oomph/drops/milestone/S20170307-122318-1.7.0-M4/plugins/org.eclipse.oomph.base_1.7.0.v20170201-1645.jar.pack.gz from the same site
at org.eclipse.oomph.p2.internal.core.CachingTransport.download(CachingTransport.java:122)
at org.eclipse.oomph.p2.internal.core.CachingTransport.download(CachingTransport.java:251)
at org.eclipse.equinox.internal.p2.artifact.repository.simple.SimpleArtifactRepository.downloadArtifact(SimpleArtifactRepository.java:669)
at org.eclipse.equinox.internal.p2.artifact.repository.simple.SimpleArtifactRepository.downloadArtifact(SimpleArtifactRepository.java:591)
at org.eclipse.equinox.internal.p2.artifact.repository.simple.SimpleArtifactRepository.getArtifact(SimpleArtifactRepository.java:723)
at org.eclipse.equinox.internal.p2.artifact.repository.MirrorRequest.getArtifact(MirrorRequest.java:319)
at org.eclipse.equinox.internal.p2.artifact.repository.MirrorRequest.transferSingle(MirrorRequest.java:288)
at org.eclipse.equinox.internal.p2.artifact.repository.MirrorRequest.transfer(MirrorRequest.java:223)
at org.eclipse.equinox.internal.p2.artifact.repository.MirrorRequest.perform(MirrorRequest.java:153)
at org.eclipse.equinox.internal.p2.artifact.repository.simple.SimpleArtifactRepository.getArtifact(SimpleArtifactRepository.java:707)
at org.eclipse.equinox.internal.p2.artifact.repository.simple.DownloadJob.run(DownloadJob.java:63)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)
Re: Disable Oomph Update Site in Installer [message #1764380 is a reply to message #1764361] Mon, 29 May 2017 09:57 Go to previous messageGo to next message
Ed Merks is currently offline Ed MerksFriend
Messages: 33264
Registered: July 2009
Senior Member
Note that the artifacts.xml in the artifacts.jar contains this property like this one from our recent Oxygen M1 build:
<property name='p2.mirrorsURL' value='http://www.eclipse.org/downloads/download.php?file=/oomph/drops/milestone/S20170516-053439-1.8.0-M1'/>
so if you have mirrored the repository, your mirror likely has that property too and if the installer has mirrors enabled on the confirmation page, it's likely to use that URL to get a list of mirrors from the Eclipse download server and use those. This is mentioned in https://wiki.eclipse.org/Equinox/p2/p2.mirrorsURL#When_not_to_use_the_p2.mirrorsURL_property.3F which suggests that you'd need to manually remove this property from your copy of the update site. Alternatively you could instruct the installer not to use mirrors or I think adding -Declipse.p2.mirrors=false to the eclipse-inst.ini will also disable the use of mirrors.


Ed Merks
Professional Support: https://www.macromodeling.com/
Re: Disable Oomph Update Site in Installer [message #1764389 is a reply to message #1764380] Mon, 29 May 2017 10:27 Go to previous messageGo to next message
uma nayak is currently offline uma nayakFriend
Messages: 19
Registered: May 2017
Junior Member
Hi Ed,

i had modified eclipse-inst.ini with -Declipse.p2.mirrors=false.

but now i am getting following error. i am create oomph setup profile for eclipse neon.

An error was detected while performing the engine operation and the changes are being rolled back. See the log for details.
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:547)
at org.eclipse.oomph.p2.internal.core.ProfileTransactionImpl.commit(ProfileTransactionImpl.java:340)
at org.eclipse.oomph.setup.p2.impl.P2TaskImpl.perform(P2TaskImpl.java:729)
at org.eclipse.oomph.setup.internal.core.SetupTaskPerformer.doPerformNeededSetupTasks(SetupTaskPerformer.java:3151)
at org.eclipse.oomph.setup.internal.core.SetupTaskPerformer.performNeededSetupTasks(SetupTaskPerformer.java:3079)
at org.eclipse.oomph.setup.internal.core.SetupTaskPerformer.performTriggeredSetupTasks(SetupTaskPerformer.java:3060)
at org.eclipse.oomph.setup.internal.core.SetupTaskPerformer.perform(SetupTaskPerformer.java:2960)
at org.eclipse.oomph.setup.ui.wizards.ProgressPage$9.run(ProgressPage.java:556)
at org.eclipse.oomph.setup.ui.wizards.ProgressPage$11$1.run(ProgressPage.java:682)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)
ERROR: org.eclipse.equinox.p2.engine code=0 session context was:(profile=C__fis_ide_fisgui_v1, 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: error in opening zip file
at java.util.zip.ZipFile.open(Native Method)
at java.util.zip.ZipFile.<init>(Unknown Source)
at java.util.zip.ZipFile.<init>(Unknown Source)
at java.util.zip.ZipFile.<init>(Unknown Source)
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:543)
at org.eclipse.oomph.p2.internal.core.ProfileTransactionImpl.commit(ProfileTransactionImpl.java:340)
at org.eclipse.oomph.setup.p2.impl.P2TaskImpl.perform(P2TaskImpl.java:729)
at org.eclipse.oomph.setup.internal.core.SetupTaskPerformer.doPerformNeededSetupTasks(SetupTaskPerformer.java:3151)
at org.eclipse.oomph.setup.internal.core.SetupTaskPerformer.performNeededSetupTasks(SetupTaskPerformer.java:3079)
at org.eclipse.oomph.setup.internal.core.SetupTaskPerformer.performTriggeredSetupTasks(SetupTaskPerformer.java:3060)
at org.eclipse.oomph.setup.internal.core.SetupTaskPerformer.perform(SetupTaskPerformer.java:2960)
at org.eclipse.oomph.setup.ui.wizards.ProgressPage$9.run(ProgressPage.java:556)
at org.eclipse.oomph.setup.ui.wizards.ProgressPage$11$1.run(ProgressPage.java:682)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)
Re: Disable Oomph Update Site in Installer [message #1764399 is a reply to message #1764389] Mon, 29 May 2017 11:53 Go to previous messageGo to next message
Ed Merks is currently offline Ed MerksFriend
Messages: 33264
Registered: July 2009
Senior Member
This doesn't give much information about which zip file is causing the problem. I think using an Oxygen-based installer from https://wiki.eclipse.org/Eclipse_Installer might given a more helpful message about the exact file involved.

Ed Merks
Professional Support: https://www.macromodeling.com/
Re: Disable Oomph Update Site in Installer [message #1764402 is a reply to message #1764389] Mon, 29 May 2017 12:08 Go to previous message
uma nayak is currently offline uma nayakFriend
Messages: 19
Registered: May 2017
Junior Member
Thanks Ed for your support....

Error has been resoled after adding -Declipse.p2.mirrors=false in eclipse-inst.ini file.
Previous Topic:Embed a custom setup with Oomph installer
Next Topic:launch eclipse from our own local repository using eclipse installer by oomph
Goto Forum:
  


Current Time: Thu Dec 26 15:54:33 GMT 2024

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

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

Back to the top