Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 268527 - [repository] bad mirrors cause install failure
Summary: [repository] bad mirrors cause install failure
Status: RESOLVED FIXED
Alias: None
Product: Equinox
Classification: Eclipse Project
Component: p2 (show other bugs)
Version: unspecified   Edit
Hardware: PC Mac OS X - Carbon (unsup.)
: P3 normal (vote)
Target Milestone: 3.5 M7   Edit
Assignee: Matthew Piggott CLA
QA Contact:
URL:
Whiteboard:
Keywords:
: 249171 268143 (view as bug list)
Depends on:
Blocks:
 
Reported: 2009-03-13 09:54 EDT by Jeff McAffer CLA
Modified: 2009-04-20 15:16 EDT (History)
3 users (show)

See Also:


Attachments
MirrorRequest patch (1.20 KB, patch)
2009-03-13 12:11 EDT, Matthew Piggott CLA
pascal: iplog+
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Jeff McAffer CLA 2009-03-13 09:54:07 EDT
in 0304 

I was installing part of g-eclipse and everything was going fine. It seems however that there is a bad mirror that does not have one of the required artifacts.  This resulted in an install error as follows

An error occurred while collecting items to be installed
  session context was:(profile=SDKProfile, phase=, operand=, action=).
  Artifact not found: osgi.bundle,com.sun.jaxb,2.1.6.
  http://www.software-mirror.com/eclipse/technology/geclipse/updates/1.0milestones/plugins/com.sun.jaxb_2.1.6.jar

If you replace the server part to point at download.eclipse.org the artifact is there.  Should the download manager have tried all the repos until the artifact was really not available?
Comment 1 Pascal Rapicault CLA 2009-03-13 11:19:27 EDT
You are right, we should be falling back to the original server. This sounds related to the failures we have been recently experienced in the automated tests.
Could you please give the site where you got the metadata from and also the IU you were installing.
Comment 2 Matthew Piggott CLA 2009-03-13 11:39:44 EDT
Mirroring has the same problem, I just ran into it with the repository:
http://www.software-mirror.com/eclipse/eclipse/updates/3.4/ 

This site supports directory listing and they're all empty.
Comment 3 Matthew Piggott CLA 2009-03-13 12:11:40 EDT
Created attachment 128734 [details]
MirrorRequest patch

Okay, currently MirrorRequest will not retry a download if the file does not exist.  The Status returned by the ArtifactRepository is a MultiStatus, the root cause is extracted and if the exception is a FileNotFoundException a new Status is created without the CODE_RETRY.
Comment 4 Pascal Rapicault CLA 2009-03-15 20:35:39 EDT
Comment on attachment 128734 [details]
MirrorRequest patch

I have released this in HEAD.
Comment 5 Pascal Rapicault CLA 2009-03-15 20:36:12 EDT
closing
Comment 6 John Arthorne CLA 2009-04-13 15:26:10 EDT
*** Bug 268143 has been marked as a duplicate of this bug. ***
Comment 7 John Arthorne CLA 2009-04-20 15:16:01 EDT
*** Bug 249171 has been marked as a duplicate of this bug. ***