Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 323663

Summary: Failed to install from the built repository
Product: [Eclipse Project] Equinox Reporter: Samuel Wu <samuelwu>
Component: p2Assignee: P2 Inbox <equinox.p2-inbox>
Status: RESOLVED INVALID QA Contact:
Severity: major    
Priority: P3    
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Windows XP   
Whiteboard:

Description Samuel Wu CLA 2010-08-25 18:04:26 EDT
Build Identifier: Eclipse 3.6.0

When a feature was built, a repository was created in buildRepo. But I failed to install from it as an update.

Reproducible: Always

Steps to Reproduce:
1. Run a feature build and install it via p2 director with the task runDirector
2. Unzip the built result to a installation directory
3. Run another product build to create a newer version of the installed feature
4. Move all files/folders in buildRepo to a http server
5. Start the installed instance and try to update the installed feature from the http server
6. The updated feature was found and was allowed to update
7. During the update, the following errors were reported and udpate failed.
!ENTRY org.eclipse.equinox.p2.engine 4 4 2010-08-25 17:38:09.015
!MESSAGE An error occurred while collecting items to be installed
!SUBENTRY 1 org.eclipse.equinox.p2.engine 4 0 2010-08-25 17:38:09.015
!MESSAGE session context was:(profile=profile, phase=org.eclipse.equinox.internal.p2.engine.phases.Collect, operand=, action=).
!SUBENTRY 1 org.eclipse.equinox.p2.artifact.repository 4 0 2010-08-25 17:38:09.015
!MESSAGE No repository found containing: osgi.bundle,com.ibm.cdz.remote.cshelp,1.6.0.201008200900
!SUBENTRY 1 org.eclipse.equinox.p2.artifact.repository 4 0 2010-08-25 17:38:09.015
!MESSAGE No repository found containing: osgi.bundle,com.ibm.cdz.remote.doc,1.6.0.201008200900
!SUBENTRY 1 org.eclipse.equinox.p2.artifact.repository 4 0 2010-08-25 17:38:09.015
...
!SUBENTRY 1 org.eclipse.equinox.p2.artifact.repository 4 0 2010-08-25 17:38:09.015
!MESSAGE No repository found containing: org.eclipse.update.feature,com.ibm.debug.memorymap.feature,7.2.211.v20100824_0121
!SUBENTRY 1 org.eclipse.equinox.p2.artifact.repository 4 0 2010-08-25 17:38:09.015
!MESSAGE No repository found containing: org.eclipse.update.feature,com.ibm.debug.memoryoffset.feature,7.1.11.v20100824_0121
...
com.ibm.cdz.remote.doc,1.6.0.201008200900 is an updated plugin and it can be found in the reporsitory as com.ibm.cdz.remote.doc_1.6.0.201008200900.jar

org.eclipse.update.feature,com.ibm.debug.memoryoffset.feature,7.1.11.v20100824_0121 is an updated feature and can be found as com.ibm.debug.memoryoffset.feature_7.1.11.v20100824_0121.jar
Comment 1 Samuel Wu CLA 2010-08-26 11:30:48 EDT
If I copied the whole repository to a local directory, I can install the newly built features.
Comment 2 DJ Houghton CLA 2010-08-27 12:50:41 EDT
I have looked at this and it appears the repository that Samuel is trying to install from appears in the list of metadata repositories but is missing from the list of artifact repositories. That is why we get the message about the artifacts not being available when we try and do an install.

If you remove the repository from the list of available repos and then re-add it then everything is ok.

We are still trying to determine why the artifact repository is missing. Where is it a problem with the build or a real bug.
Comment 3 Samuel Wu CLA 2010-08-27 22:21:01 EDT
The repository URL was contributed via p2.inf. It only contained one add repository statement.