| Summary: | p2 director command line application does not properly handle composite sites | ||
|---|---|---|---|
| Product: | [Eclipse Project] Equinox | Reporter: | Misha Koshelev <misha680> |
| Component: | p2 | Assignee: | P2 Inbox <equinox.p2-inbox> |
| Status: | CLOSED FIXED | QA Contact: | |
| Severity: | enhancement | ||
| Priority: | P3 | CC: | pascal |
| Version: | unspecified | ||
| Target Milestone: | --- | ||
| Hardware: | PC | ||
| OS: | Linux | ||
| Whiteboard: | |||
| Attachments: | |||
|
Description
Misha Koshelev
Created attachment 179160 [details]
Full source to composite site in reference. Thank you for your attention.
The repository available at http://openmrs-composite-update-site.googlecode.com/svn/trunk/update/ is not a composite repository (http://wiki.eclipse.org/Equinox/p2/Composite_Repositories_(new)). The behaviour you observe is the desired one. You can either create a proper composite repo, or list multiple repositories on the command line. I am very sorry, the command should have been: ./eclipse -nosplash -application org.eclipse.equinox.p2.director -repository http://openmrs-composite-update-site.googlecode.com/svn/trunk/ -installIU openmrs_deps_1.6.feature.group _without_ the update. The update part is a regular update site, but trunk is a composite site. I am currently retrying, with a full command as so: ./eclipse -nosplash -application org.eclipse.equinox.p2.director -repository http://openmrs-composite-update-site.googlecode.com/svn/trunk/,http://download.eclipse.org/eclipse/updates/3.6,http://download.eclipse.org/releases/helios,http://download.eclipse.org/webtools/repository/helios/,http://download.eclipse.org/tools/mylyn/update/helios -installIU openmrs_deps_1.6.feature.group including all default repositories. Will report results. Thank you Misha Created attachment 179185 [details]
Screenshot pre-GUI install showing my repositories and feature that I am installing
Created attachment 179186 [details]
Screenshot post-GUI install showing that install is successful
Created attachment 179187 [details]
Log of commandline install showing error - I tried _twice_ and got same error on clean eclipse directory (as you can see in log it is clean)
Perhaps this tickles some other Eclipse bug (?) but clearly the command line install is not working and I have done my best to match GUI install. The relevant error is:
java.io.FileNotFoundException: /opt/public/technology/epp/epp_build/36/eclipse.S-3.6RC4-201006031500/artifacts.xml (No such file or directory)
at java.io.FileOutputStream.open(Native Method)
at java.io.FileOutputStream.<init>(FileOutputStream.java:179)
at java.io.FileOutputStream.<init>(FileOutputStream.java:131)
at org.eclipse.equinox.internal.p2.artifact.repository.simple.SimpleArtifactRepository.save(SimpleArtifactRepository.java:951)
at org.eclipse.equinox.internal.p2.artifact.repository.simple.SimpleArtifactRepository.save(SimpleArtifactRepository.java:932)
at org.eclipse.equinox.internal.p2.artifact.repository.simple.SimpleArtifactRepository.<init>(SimpleArtifactRepository.java:322)
at org.eclipse.equinox.internal.p2.artifact.repository.simple.SimpleArtifactRepositoryFactory.create(SimpleArtifactRepositoryFactory.java:129)
at org.eclipse.equinox.internal.p2.artifact.repository.ArtifactRepositoryManager.factoryCreate(ArtifactRepositoryManager.java:60)
at org.eclipse.equinox.internal.p2.repository.helpers.AbstractRepositoryManager.doCreateRepository(AbstractRepositoryManager.java:284)
at org.eclipse.equinox.internal.p2.artifact.repository.ArtifactRepositoryManager.createRepository(ArtifactRepositoryManager.java:48)
at org.eclipse.equinox.internal.p2.touchpoint.eclipse.Util.getBundlePoolRepository(Util.java:87)
at org.eclipse.equinox.internal.p2.touchpoint.eclipse.EclipseMarkSetProvider.getMarkSets(EclipseMarkSetProvider.java:41)
at org.eclipse.equinox.internal.p2.garbagecollector.GarbageCollector$ParameterizedSafeRunnable.run(GarbageCollector.java:69)
at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
...
(see log for full stacktrace)
I would appreciate another look at this bug from your end.
Thank you
Misha
p.s. I am filing these bugs as I think the command line p2 director feature is quite neat and could be quite a time saver if I can get it to work for our needs. Thank you.
Reopening based on latest user comments. My apologies. I was modifying the composite site and noticed that a GUI install results in the same error. I duplicated the command line install and double checked and in fact the command line install _succeeds_. Thus, there is clearly _some_ bug with respect to the stack trace, but it is present both in the command line and GUI versions, and both _work_. Sorry to bother you unnecessarily with the re-opening. Thank you for your patience. Yours Misha Koshelev |