Bug 236437 - Lost artifact repositories
Lost artifact repositories
Status: RESOLVED FIXED
Product: Equinox
Classification: RT
Component: p2
3.4
PC Windows XP
: P3 normal with 4 votes (vote)
: 3.5 M4
Assigned To: John Arthorne CLA Friend
:
: 239417 243445 246128 248983 250040 251698 251952 255065 256878 271220 (view as bug list)
Depends on:
Blocks:
  Show dependency tree
 
Reported: 2008-06-10 09:58 EDT by John Arthorne CLA Friend
Modified: 2009-10-14 16:31 EDT (History)
40 users (show)

See Also:


Attachments
o.e.e.p2.artifact.repository.prefs (11.63 KB, application/octet-stream)
2008-06-25 10:39 EDT, Steffan Westcott CLA Friend
no flags Details
o.e.e.p2.metadata.repository.prefs (11.52 KB, application/octet-stream)
2008-06-25 10:41 EDT, Steffan Westcott CLA Friend
no flags Details
artifact (17.22 KB, application/octet-stream)
2008-06-26 12:36 EDT, Bill Brown CLA Friend
no flags Details
metadata (16.21 KB, application/octet-stream)
2008-06-26 12:36 EDT, Bill Brown CLA Friend
no flags Details
artifact (42.80 KB, text/plain)
2008-07-23 17:36 EDT, Daniel Ford CLA Friend
no flags Details
metadata (30.72 KB, application/octet-stream)
2008-07-23 17:37 EDT, Daniel Ford CLA Friend
no flags Details
Eclipse 3.5 preferences file (604.16 KB, application/octet-stream)
2008-09-22 16:35 EDT, Daniel Ford CLA Friend
no flags Details
artifact (16.56 KB, application/octet-stream)
2008-10-23 07:57 EDT, Owen Rees CLA Friend
no flags Details
metadata (15.50 KB, application/octet-stream)
2008-10-23 07:58 EDT, Owen Rees CLA Friend
no flags Details
Copy of the Linux console after restart (6.64 KB, text/plain)
2008-10-27 06:08 EDT, Jerome Lanneluc CLA Friend
no flags Details
Copy of the Windows console after restart (12.07 KB, text/plain)
2008-10-27 06:24 EDT, Jerome Lanneluc CLA Friend
no flags Details
org.eclipse.equinox.p2.artifact.repository.prefs from my Windows machine (4.98 KB, application/octet-stream)
2008-10-27 12:37 EDT, Jerome Lanneluc CLA Friend
no flags Details
Updated fix (2.99 KB, patch)
2008-11-13 16:50 EST, John Arthorne CLA Friend
no flags Details | Diff
configuration/.settings/org.eclipse.equinox.p2.* (3.50 KB, application/zip)
2009-01-13 17:58 EST, Lance Walton CLA Friend
no flags Details
Version: 3.4.2 Build id: M20090211-1700 (13.72 KB, application/octet-stream)
2009-03-10 12:49 EDT, Gunjan CLA Friend
no flags Details
Version: 3.4.2 Build id: M20090211-1700 (13.84 KB, application/octet-stream)
2009-03-10 12:50 EDT, Gunjan CLA Friend
no flags Details
Version: 3.5.0 Build id: I20090202-1535 (14.12 KB, application/octet-stream)
2009-03-10 12:52 EDT, Gunjan CLA Friend
no flags Details
Version: 3.5.0 Build id: I20090202-1535 (12.51 KB, application/octet-stream)
2009-03-10 12:52 EDT, Gunjan CLA Friend
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description John Arthorne CLA Friend 2008-06-10 09:58:28 EDT
Build: 3.4 RC4

Some users have reported failures about missing artifacts after successfully resolving a plan. It turns out the cause is one or more artifact repositories being lost from the list of known repositories. The workaround is to remove the repository from the list and add it back again. This restores the missing artifact repository.

If this happens can users please attach the files eclipse/configuration/.settings/org.eclipse.equinox.p2.* to this bug so we can look for a pattern. Also, let us know if you had previously had any install failures or other suspicious behaviour.
Comment 1 Simon Kaegi CLA Friend 2008-06-10 17:05:31 EDT
This problem was noticed last week when updating from the Wednesday build to the Friday 1am build so I tried reproducing the scenario albeit at a smaller scale.

--
So far I've managed to get missing artifact exceptions by updating the underlying repos and then "refreshing" the repos in the UI. This re-loads metadata repos but "not" artifact repos.

If I then do an update or install of any of the IUs associated with new metadata on the refreshed site I will not find the associated artifact and the install/update will fail.

Re-starting flushes everything and will allow everything to install/update correctly. I've logged bug 236517 for this problem.

--
For actual removal of the artifact repo one cause would be a race condition where the in memory representation is not in synch with what's stored via preferences. That said, I've has no luck reproducing this situation so far.
Comment 2 DJ Houghton CLA Friend 2008-06-12 15:39:09 EDT
Note that there are preference debug options if you want to run with those just confirm that someone is actually removing the values from the preferences:
  org.eclipse.equinox.preferences/general=false
  org.eclipse.equinox.preferences/get=false
  org.eclipse.equinox.preferences/set=false
Comment 3 Steffan Westcott CLA Friend 2008-06-25 10:39:56 EDT
Created attachment 105814 [details]
o.e.e.p2.artifact.repository.prefs
Comment 4 Steffan Westcott CLA Friend 2008-06-25 10:41:13 EDT
Created attachment 105815 [details]
o.e.e.p2.metadata.repository.prefs
Comment 5 Steffan Westcott CLA Friend 2008-06-25 10:46:04 EDT
(Sorry for the triple post, damn form ate my comments)

I'm getting the problem on a fresh install of Ganymede 3.4, when trying to add "Java Persistence API Tools". The only other feature I have installed is "Java EE Developer Tools". All versions are Ganymede simultaneous release versions.

See previous attachments for requested prefs files. Removing and adding Ganymede release site did not help.
Comment 6 John Arthorne CLA Friend 2008-06-25 12:34:56 EDT
Steffan, from your preference file I see the Ganymede repository is still listed and enabled, so you are likely seeing a different problem. Depending on what build you are using, and when you tried to update, you might have been caught by the eclipse.org server freeze during replication of the final Ganymede release (yesterday and this morning).
Comment 7 Steffan Westcott CLA Friend 2008-06-26 05:40:46 EDT
(In reply to comment #6)
> Steffan, from your preference file I see the Ganymede repository is still
> listed and enabled, so you are likely seeing a different problem. Depending on
> what build you are using, and when you tried to update, you might have been
> caught by the eclipse.org server freeze during replication of the final
> Ganymede release (yesterday and this morning).
> 

I just tried again from a fresh installation of the base platform and I still get the same problem :

An error occurred while collecting items to be installed
No repository found containing: org.eclipse.datatools.doc.user/org.eclipse.update.feature/1.6.0.v200806171040-37_-8w95CKAECFAEGI_
No repository found containing: org.eclipse.datatools.oda.cshelp/osgi.bundle/1.0.0.v200805152355

Is there some sort of corruption or missing artifacts on the update site?
Comment 8 John Arthorne CLA Friend 2008-06-26 10:59:05 EDT
I have tried this several times with the 3.4 build and cannot reproduce. I tried with both the full Eclipse SDK (ganymede classic package), and with the base platform runtime binary download. Here were my steps:

1) Startup, close welcome
2) Help > Software Updates > Available Software
3) Select "Java EE Developer Tools", click Install
4) Restart after install completes
5) Help > Software Updates > Available Software
6) Select "Java Persistence API Tools"
7) Restart after install completes

-> Install completed successfully every time. I see the org.eclipse.datatools.oda.cshelp and org.eclipse.datatools.doc.user plugins were successfully installed.

What zip did you use as your initial starting point?
Comment 9 Bill Brown CLA Friend 2008-06-26 12:32:20 EDT
Greetings: 

I am getting this error with the 3.4 J2EE release while trying to install the profoling tools TPTP.

An error occurred while collecting items to be installed
  No repository found containing: org.eclipse.hyades.probekit/osgi.bundle/4.2.300.v200806161620
  No repository found containing: org.eclipse.hyades.test.ui/osgi.bundle/4.2.500.v200806131133
  No repository found containing: org.eclipse.hyades.trace.ui/osgi.bundle/4.4.101.v200806130100
  No repository found containing: org.eclipse.tptp.monitoring.instrumentation/osgi.bundle/4.3.100.v200806180100
  No repository found containing: org.eclipse.tptp.monitoring.instrumentation/org.eclipse.update.feature/4.3.100.v200805120832-7B79Ag9oA55S5L8H7796
  No repository found containing: org.eclipse.tptp.monitoring.runtime/org.eclipse.update.feature/4.4.100.v200804180100-7V7SE9x7zhmh1yz-xOz-fBGuW9St
  No repository found containing: org.eclipse.tptp.platform.ac.win_ia32/osgi.bundle/4.4.1.v200806171132
  No repository found containing: org.eclipse.tptp.platform.batik/org.eclipse.update.feature/4.4.0.v200802291616-7F8G-ED-z0UWSVlyYUjcN
  No repository found containing: org.eclipse.tptp.platform.core/org.eclipse.update.feature/4.5.0.v200806121215-8Z8DEm8ELRXmpromDKxVI_
  No repository found containing: org.eclipse.tptp.platform.jvmti/org.eclipse.update.feature/4.3.100.v200805120832-7877_78s733I3E5C3C4B
  No repository found containing: org.eclipse.tptp.platform.jvmti.runtime/osgi.bundle/4.4.100.v200806180919
  No repository found containing: org.eclipse.tptp.platform.probekit/org.eclipse.update.feature/4.3.200.v200805120832-7F5EFB_kE77c7RCG8TEA
  No repository found containing: org.eclipse.tptp.platform.runtime/org.eclipse.update.feature/4.5.0.v200804180100-8F82Eb49ToWvwDG3z0OLTKR_cEs8
  No repository found containing: org.eclipse.tptp.platform.trace/org.eclipse.update.feature/4.3.200.v200805120832-7J7EEAVAgI99m9YEV9SCJ
  No repository found containing: org.eclipse.tptp.test/org.eclipse.update.feature/4.3.300.v200805120832-7J7DE9wAgI99m9XGN_RGJ
  No repository found containing: org.eclipse.tptp.test.runtime/org.eclipse.update.feature/4.3.200.v200805091443-7F7_EAU7SnbjlBGPQ2r6Nij2r6Np
  No repository found containing: org.eclipse.tptp.trace.jvmti.client/osgi.bundle/4.4.100.v200806162043
  No repository found containing: org.eclipse.tptp.trace.jvmti/org.eclipse.update.feature/4.2.100.v200805120832-438Y7w311917273154
  No repository found containing: org.eclipse.tptp.trace.runtime/org.eclipse.update.feature/4.3.100.v200802291616-7F78CE7VXNA6M-BKOmcZdZPWaTC


Should I attach something else to the report?   

Thanks.
Bill.

Comment 10 Bill Brown CLA Friend 2008-06-26 12:36:28 EDT
Created attachment 105932 [details]
artifact
Comment 11 Bill Brown CLA Friend 2008-06-26 12:36:57 EDT
Created attachment 105933 [details]
metadata
Comment 12 Steffan Westcott CLA Friend 2008-06-27 04:53:49 EDT
(In reply to comment #8)
> I have tried this several times with the 3.4 build and cannot reproduce. I
> tried with both the full Eclipse SDK (ganymede classic package), and with the
> base platform runtime binary download. Here were my steps:
> 
> 1) Startup, close welcome
> 2) Help > Software Updates > Available Software
> 3) Select "Java EE Developer Tools", click Install
> 4) Restart after install completes
> 5) Help > Software Updates > Available Software
> 6) Select "Java Persistence API Tools"
> 7) Restart after install completes
> 
> -> Install completed successfully every time. I see the
> org.eclipse.datatools.oda.cshelp and org.eclipse.datatools.doc.user plugins
> were successfully installed.
> 
> What zip did you use as your initial starting point?
> 

I used the base platform runtime binary download, "eclipse-platform-3.4-win32.zip". My steps are the same as the ones you have outlined.

Frustratingly, I am now unable to reproduce the problem, everything appears to be working as it should. I tried variations on downloading the two features, both at once and one after the other, and all works perfectly.
Comment 13 John Arthorne CLA Friend 2008-06-27 10:54:28 EDT
Ok, I can only guess it was a problem with the Ganymede site. Mirroring was broken yesterday on the Ganymede site, which might have caused problems (bug 238606).
Comment 14 John Arthorne CLA Friend 2008-07-03 14:34:52 EDT
*** Bug 239417 has been marked as a duplicate of this bug. ***
Comment 15 Daniel Ford CLA Friend 2008-07-23 17:35:02 EDT
I'm seeing this problem as well in 3.4 and have seen it in previous 3.4 release candidates.  The message I receive is:

An error occurred while collecting items to be installed
  No repository found containing: org.eclipse.datatools.enablement.feature/org.eclipse.update.feature/1.6.0.v200804021-7D8H09GSoL7eceK-Ce_tRz-Tp4ow

I'm not surprised that it is proving hard to reproduce.  I develop on two machines (desktop & laptop) and have identical 3.4 installations on both (same OS-XP, same directory hierarchy, same versions of everything, same preferences) and I get the error on the laptop, but not on the desktop.  Both are installed from the same 3.4 distribution that I downloaded once.  To fix the problem I have tried completely removing the 3.4 installation on the laptop and reinstalling...the exact same error reappears.

I think this is a pretty serious bug.  It seems to kill the ability to run Eclipse 3.4 on a particular machine with little way for a user to understand the problem or resolve it.  For me, I can't run Eclipse in any meaningful way on my laptop.  

Comment 16 Daniel Ford CLA Friend 2008-07-23 17:36:40 EDT
Created attachment 108271 [details]
artifact
Comment 17 Daniel Ford CLA Friend 2008-07-23 17:37:04 EDT
Created attachment 108272 [details]
metadata
Comment 18 John Arthorne CLA Friend 2008-08-13 10:11:22 EDT
*** Bug 243445 has been marked as a duplicate of this bug. ***
Comment 19 Ben Mising name CLA Friend 2008-09-05 22:27:53 EDT
I was getting the error when Ganymede prompted me that I could install Subclipse 1.4.0. After following the discussion in this bug, I removed the repository for Subclipse at http://subclipse.tigris.org/update_1.2.x and replaced it with the repository at http://subclipse.tigris.org/update_1.4.x and the problem went away.

I had upgraded from Europa, so presumably my older repository setting was partly to blame?
Comment 20 John Arthorne CLA Friend 2008-09-08 20:07:27 EDT
Upgrading an install from Europa to Ganymede is not supported. I suggest installing a fresh Ganymede build.

There is a good chance this bug was caused by the synchronization problem described in bug 241289 and fixed in 3.4.1. I would be curious to hear if anyone sees this happening in 3.4.1, 3.5 M2, or greater.
Comment 21 Olivier Thomann CLA Friend 2008-09-15 17:26:42 EDT
I got something like this using I20080914-2000
Comment 22 John Arthorne CLA Friend 2008-09-17 23:02:26 EDT
*** Bug 246128 has been marked as a duplicate of this bug. ***
Comment 23 Daniel Ford CLA Friend 2008-09-22 16:34:26 EDT
I'm still seeing this bug in 3.5M2.  I've just installed clean copies of 3.5M2 on two machines and both started out without the problem and now both have it.  

Q: If this is a bug that's hard to reproduce then why do I have it on two clean installations on two separate machines?!
A: I maintain a single preferences file and share it between my Eclipse installations.

To test this theory, I deleted one of the 3.5M2 installations and started again without importing my preferences on a clean workspace.  I had no problems.  Then, I imported my preferences and then when updating, I received the error about missing repositories.

I've attached my preferences file.
Comment 24 Daniel Ford CLA Friend 2008-09-22 16:35:28 EDT
Created attachment 113186 [details]
Eclipse 3.5 preferences file
Comment 25 John Arthorne CLA Friend 2008-09-22 19:24:11 EDT
Re comment #23: correct, the artifact repository list is stored in the preferences, so by importing these preferences into another eclipse install you bring the problem with you.
Comment 26 John Arthorne CLA Friend 2008-09-29 12:59:01 EDT
*** Bug 248983 has been marked as a duplicate of this bug. ***
Comment 27 Pascal Rapicault CLA Friend 2008-10-08 09:20:59 EDT
I have seen that again updating to this week I build (I20081007) from last week
Comment 28 Pascal Rapicault CLA Friend 2008-10-08 09:57:45 EDT
*** Bug 250040 has been marked as a duplicate of this bug. ***
Comment 29 Jerome Lanneluc CLA Friend 2008-10-17 06:53:40 EDT
I saw that problem again on my Linux machine. After updating to I20081014-1600, the update site http://download.eclipse.org/eclipse/updates/3.5-I-builds was no longer in the list of update sites (pressing the Manage Sites button). I had to add it again to be able to update to I20081016-1126.
Comment 30 John Arthorne CLA Friend 2008-10-20 16:55:01 EDT
I have added tracing support to help narrow down the cause of this problem. This debug option will print out debugging information to the console whenever a repository is removed:

org.eclipse.equinox.p2.core/debug=true
org.eclipse.equinox.p2.core/core/removeRepo=true
Comment 31 John Arthorne CLA Friend 2008-10-22 10:28:18 EDT
*** Bug 251698 has been marked as a duplicate of this bug. ***
Comment 32 John Arthorne CLA Friend 2008-10-22 17:03:23 EDT
I spent the afternoon trying to reproduce this. I got it to happen once, but the removal seems to happen during shutdown after a first successful upgrade, so I lost the stack trace. If anyone is running with these tracing options enabled, you also need to add -noexit on the command line so you can catch the trace before the console closes.
Comment 33 Owen Rees CLA Friend 2008-10-23 07:54:13 EDT
I am seeing this bug when trying to update the installed software. I get the "Available Updates" "Review and confirm..." dialog listing various Mylyn features (all the ones I have installed I believe) but when I press finish I get the "Problem Occurred" dialog with details as included below.

The problem happens on both the Linux system on which the details were captured and a Windows Vista system.

Both have experienced bug 249990 (p2 fail to see new changes when behind proxy) but I believe I have fixed the network configuration on at least one to work around that. I will attach the artifact and metadata files as requested in the initial description.

If there are debugging options I can turn on to provide additional information I will gladly do that given explicit instructions on what to set where.

This is what the problem dialog details said:

An error occurred while collecting items to be installed
  No repository found containing: org.eclipse.mylyn.bugzilla.core/osgi.bundle/3.0.3.v20081015-1500-e3x
  No repository found containing: org.eclipse.mylyn.bugzilla.ide/osgi.bundle/3.0.3.v20081015-1500-e3x
  No repository found containing: org.eclipse.mylyn.bugzilla.ui/osgi.bundle/3.0.3.v20081015-1500-e3x
  No repository found containing: org.eclipse.mylyn.bugzilla_feature/org.eclipse.update.feature/3.0.3.v20081015-1500-e3x
  No repository found containing: org.eclipse.mylyn.compatibility/osgi.bundle/3.0.3.v20081015-1500-e3x
  No repository found containing: org.eclipse.mylyn.context.ui/osgi.bundle/3.0.3.v20081015-1500-e3x
  No repository found containing: org.eclipse.mylyn.context_feature/org.eclipse.update.feature/3.0.3.v20081015-1500-e3x
  No repository found containing: org.eclipse.mylyn.help.ui/osgi.bundle/3.0.3.v20081015-1500-e3x
  No repository found containing: org.eclipse.mylyn.ide.ant/osgi.bundle/3.0.3.v20081015-1500-e3x
  No repository found containing: org.eclipse.mylyn.ide.ui/osgi.bundle/3.0.3.v20081015-1500-e3x
  No repository found containing: org.eclipse.mylyn.ide_feature/org.eclipse.update.feature/3.0.3.v20081015-1500-e3x
  No repository found containing: org.eclipse.mylyn.java.tasks/osgi.bundle/3.0.3.v20081015-1500-e3x
  No repository found containing: org.eclipse.mylyn.java.ui/osgi.bundle/3.0.3.v20081015-1500-e3x
  No repository found containing: org.eclipse.mylyn.java_feature/org.eclipse.update.feature/3.0.3.v20081015-1500-e3x
  No repository found containing: org.eclipse.mylyn.jira.core/osgi.bundle/3.0.3.v20081015-1500-e3x
  No repository found containing: org.eclipse.mylyn.jira.ui/osgi.bundle/3.0.3.v20081015-1500-e3x
  No repository found containing: org.eclipse.mylyn.jira_feature/org.eclipse.update.feature/3.0.3.v20081015-1500-e3x
  No repository found containing: org.eclipse.mylyn.pde.ui/osgi.bundle/3.0.3.v20081015-1500-e3x
  No repository found containing: org.eclipse.mylyn.pde_feature/org.eclipse.update.feature/3.0.3.v20081015-1500-e3x
  No repository found containing: org.eclipse.mylyn.resources.ui/osgi.bundle/3.0.3.v20081015-1500-e3x
  No repository found containing: org.eclipse.mylyn.tasks.bugs/osgi.bundle/3.0.3.v20081015-1500-e3x
  No repository found containing: org.eclipse.mylyn.tasks.core/osgi.bundle/3.0.3.v20081015-1500-e3x
  No repository found containing: org.eclipse.mylyn.tasks.ui/osgi.bundle/3.0.3.v20081015-1500-e3x
  No repository found containing: org.eclipse.mylyn.team.cvs/osgi.bundle/3.0.3.v20081015-1500-e3x
  No repository found containing: org.eclipse.mylyn.team.ui/osgi.bundle/3.0.3.v20081015-1500-e3x
  No repository found containing: org.eclipse.mylyn.team_feature/org.eclipse.update.feature/3.0.3.v20081015-1500-e3x
  No repository found containing: org.eclipse.mylyn_feature/org.eclipse.update.feature/3.0.3.v20081015-1500-e3x
  No repository found containing: org.eclipse.mylyn/osgi.bundle/3.0.3.v20081015-1500-e3x
  No repository found containing: org.eclipse.mylyn.commons.ui/osgi.bundle/3.0.3.v20081015-1500-e3x
Comment 34 Owen Rees CLA Friend 2008-10-23 07:57:22 EDT
Created attachment 115917 [details]
artifact

artifact file for comment #33
Comment 35 Owen Rees CLA Friend 2008-10-23 07:58:41 EDT
Created attachment 115918 [details]
metadata

metadata file for comment #33
Comment 36 Jerome Lanneluc CLA Friend 2008-10-27 06:08:47 EDT
Created attachment 116168 [details]
Copy of the Linux console after restart

(In reply to comment #30)
> I have added tracing support to help narrow down the cause of this problem.
> This debug option will print out debugging information to the console whenever
> a repository is removed:
> 
> org.eclipse.equinox.p2.core/debug=true
> org.eclipse.equinox.p2.core/core/removeRepo=true
> 
I upgraded to I20081026-2000 and right after restart, the tracing showed that some repositories were removed.
Comment 37 Jerome Lanneluc CLA Friend 2008-10-27 06:24:30 EDT
Created attachment 116170 [details]
Copy of the Windows console after restart

(In reply to comment #36)
Got the same traces after upgrading my Windows SDK.
Comment 38 John Arthorne CLA Friend 2008-10-27 10:14:09 EDT
Thanks for the console traces Jerome. Did you notice anything being logged before shutdown when you upgraded (see comment #32)? What I'm looking for is the removal of the download.eclipse.org repository.
Comment 39 Jerome Lanneluc CLA Friend 2008-10-27 10:33:21 EDT
(In reply to comment #38)
> Thanks for the console traces Jerome. Did you notice anything being logged
> before shutdown when you upgraded (see comment #32)? What I'm looking for is
> the removal of the download.eclipse.org repository.
> 
I'm also running with -noexit, but nothing was logged on shutdown.
Comment 40 John Arthorne CLA Friend 2008-10-27 10:54:45 EDT
Jerome, can you attach the file eclipse/configuration/.settings/org.eclipse.equinox.p2.artifact.repository.prefs from one of your two machines?
Comment 41 Pascal Rapicault CLA Friend 2008-10-27 11:58:10 EDT
I got the following stack trace:
java.lang.Exception: Removing repository: http://fullmoon.ottawa.ibm.com/eclipse/updates/3.5-I-builds
        at org.eclipse.equinox.internal.p2.core.helpers.AbstractRepositoryManager.removeRepository(AbstractRepositoryManager.java:605)
        at org.eclipse.equinox.internal.p2.core.helpers.AbstractRepositoryManager.removeRepository(AbstractRepositoryManager.java:588)
        at org.eclipse.equinox.internal.provisional.p2.ui.operations.ProvisioningUtil.removeMetadataRepository(ProvisioningUtil.java:99)
        at org.eclipse.equinox.internal.provisional.p2.ui.operations.RemoveColocatedRepositoryOperation.doBatchedExecute(RemoveColocatedRepositoryOperation.java:34)
        at org.eclipse.equinox.internal.provisional.p2.ui.operations.RepositoryOperation.doExecute(RepositoryOperation.java:63)
        at org.eclipse.equinox.internal.provisional.p2.ui.operations.UndoableProvisioningOperation.execute(UndoableProvisioningOperation.java:77)
        at org.eclipse.core.commands.operations.DefaultOperationHistory.execute(DefaultOperationHistory.java:511)
        at org.eclipse.equinox.internal.provisional.p2.ui.ProvisioningOperationRunner$1.run(ProvisioningOperationRunner.java:94)
        at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)
Comment 42 Jerome Lanneluc CLA Friend 2008-10-27 12:37:52 EDT
Created attachment 116197 [details]
org.eclipse.equinox.p2.artifact.repository.prefs from my Windows machine
Comment 43 John Arthorne CLA Friend 2008-10-27 12:55:49 EDT
Susan, does the trace in comment #41 make any sense to you? The only place I can see this operation running is if someone clicks "Remove" in the "Manage Sites" dialog. Is there any other way this could run?
Comment 44 Susan McCourt CLA Friend 2008-10-27 13:22:57 EDT
(In reply to comment #43)
> Susan, does the trace in comment #41 make any sense to you? The only place I
> can see this operation running is if someone clicks "Remove" in the "Manage
> Sites" dialog. Is there any other way this could run?
> 
Correct, this operation is triggered by the RemoveColocatedRepositoryAction, which is used in the manage sites dialog on the "Remove" button.  
Comment 45 Pascal Rapicault CLA Friend 2008-10-27 23:02:51 EDT
Well, it looks like I got the wrong stack trace... I'll try again with the next builds.
Comment 46 John Arthorne CLA Friend 2008-10-29 11:37:24 EDT
This isn't going to make it for M3.
Comment 47 John Arthorne CLA Friend 2008-10-29 13:41:57 EDT
Pascal and I just witnessed this happen while watching the repository preference files. It happened during startup after a successful update. The repository files were 14KB, then they went down to 1KB, then 5KB, then 12KB. When we opened the files at this point there was a single repository missing (3.5-I-Builds).  I had the tracing enabled but there was no stack trace. This means we are not removing the preference node explicitly. The next thing to explore is the possibility of threading problems in the preference persistence implementation to see if a node could be removed "for free" during reading or writing.

It's actually possible that *all* artifact repositories are being lost, and this is the only repository that is not referenced by other repositories.
Comment 48 John Arthorne CLA Friend 2008-10-29 14:41:43 EDT
Here is what happens:

 - We have a CU that lays down metadata and artifact repository preferences during install. This is used to seed the initial ganymede and Eclipse project repositories into the build

 - During an update, the IU this CU attaches to typically changes, and so these root files get layed down again by the native touchpoint as part of the update process, overwriting any existing preferences that are there.

 - At the end of the install, the rollback repository is referenced, which causes the MetadataRepositoryManager to rewrite its preference file. Since it still had the full list of repositories in memory, they are all safely restored

 - The ArtifactRepositoryManager is never referenced again after the update, so all artifact repositories are lost

 - On the next startup, most artifact repositories are restored because there are metadata repositories that have references to them. For example the Ganymede and Eclipse Project release site both have references from their metadata repository to their artifact repository.

 - This leaves any other p2 artifact repositories missing.
Comment 49 Pascal Rapicault CLA Friend 2008-11-03 09:10:43 EST
*** Bug 223646 has been marked as a duplicate of this bug. ***
Comment 50 soloturn CLA Friend 2008-11-03 13:16:50 EST
*** Bug 251952 has been marked as a duplicate of this bug. ***
Comment 51 John Arthorne CLA Friend 2008-11-03 21:02:39 EST
I have just released a fix for this for tomorrow's I-build. I added an AbstractRepositoryManager.shutdown() method that does various bits of cleanup. This should have been added anyway to remove listeners, discard in-memory state, etc. I added a line to the shutdown() method to ensure the latest repository state is persisted to disk. This should workaround the problem of these files being overwritten by the upgrade process.

Longer term we plan to replace this unzipping of repository preference files with an engine action that adds referenced repositories programmatically (see bug 216675). This will be much less brittle and would also fix this bug without having the shutdown method mentioned above.

Leaving this bug open to test the fix in the integration build before declaring success.
Comment 52 Robert Klaus CLA Friend 2008-11-11 03:07:44 EST
Hi,

any chance, that this is going to be fixed in an Eclipse 3.4.x as well?
Comment 53 Max Rydahl Andersen CLA Friend 2008-11-11 08:44:32 EST
Eclipse 3.4 is preventing me from doing any updates because of this.
Even removing/adding just result in the same error message about No repository found.

This should get fixed in Eclipse 3.4 too.
Comment 54 Max Rydahl Andersen CLA Friend 2008-11-11 09:03:26 EST
btw. my last comment is actually for the bug at https://bugs.eclipse.org/bugs/show_bug.cgi?id=245316 which is equally frustrating to figure out that eclipse no longer is possible to move around on a filesystem without the update mechanism stopping to work.
Comment 55 Olivier Thomann CLA Friend 2008-11-11 12:19:17 EST
I still got a similar issue using I20081104-0916. I had to remove the 3.5 integration builds update site and add it again to be able to update to the 1111-0800 build
Comment 56 Olivier Thomann CLA Friend 2008-11-11 12:43:04 EST
Here is the stack trace:
!ENTRY org.eclipse.equinox.p2.engine 4 4 2008-11-11 12:15:33.625
!MESSAGE An error occurred while collecting items to be installed
!SUBENTRY 1 org.eclipse.equinox.p2.artifact.repository 4 0 2008-11-11 12:15:33.687
!MESSAGE No repository found containing: org.eclipse.core.commands/osgi.bundle/3.5.0.I20081111-0800
!SUBENTRY 1 org.eclipse.equinox.p2.artifact.repository 4 0 2008-11-11 12:15:33.734
!MESSAGE No repository found containing: org.eclipse.core.commands.source/osgi.bundle/3.5.0.I20081111-0800
!SUBENTRY 1 org.eclipse.equinox.p2.artifact.repository 4 0 2008-11-11 12:15:33.734
!MESSAGE No repository found containing: org.eclipse.core.expressions/osgi.bundle/3.4.100.v20081111-0800
!SUBENTRY 1 org.eclipse.equinox.p2.artifact.repository 4 0 2008-11-11 12:15:33.734
!MESSAGE No repository found containing: org.eclipse.core.expressions.source/osgi.bundle/3.4.100.v20081111-0800
!SUBENTRY 1 org.eclipse.equinox.p2.artifact.repository 4 0 2008-11-11 12:15:33.734
!MESSAGE No repository found containing: org.eclipse.core.filebuffers/osgi.bundle/3.4.100.v20081111-0800
!SUBENTRY 1 org.eclipse.equinox.p2.artifact.repository 4 0 2008-11-11 12:15:33.781
!MESSAGE No repository found containing: org.eclipse.core.filebuffers.source/osgi.bundle/3.4.100.v20081111-0800
!SUBENTRY 1 org.eclipse.equinox.p2.artifact.repository 4 0 2008-11-11 12:15:33.781
!MESSAGE No repository found containing: org.eclipse.core.runtime/osgi.bundle/3.5.0.v20081110
!SUBENTRY 1 org.eclipse.equinox.p2.artifact.repository 4 0 2008-11-11 12:15:33.781
!MESSAGE No repository found containing: org.eclipse.core.runtime.source/osgi.bundle/3.5.0.v20081110
!SUBENTRY 1 org.eclipse.equinox.p2.artifact.repository 4 0 2008-11-11 12:15:33.781
!MESSAGE No repository found containing: org.eclipse.debug.core/osgi.bundle/3.5.0.v20081110-1500
!SUBENTRY 1 org.eclipse.equinox.p2.artifact.repository 4 0 2008-11-11 12:15:33.781
!MESSAGE No repository found containing: org.eclipse.debug.core.source/osgi.bundle/3.5.0.v20081110-1500
!SUBENTRY 1 org.eclipse.equinox.p2.artifact.repository 4 0 2008-11-11 12:15:33.781
!MESSAGE No repository found containing: org.eclipse.debug.ui/osgi.bundle/3.5.0.v20081110-1500
!SUBENTRY 1 org.eclipse.equinox.p2.artifact.repository 4 0 2008-11-11 12:15:33.781
!MESSAGE No repository found containing: org.eclipse.debug.ui.source/osgi.bundle/3.5.0.v20081110-1500
!SUBENTRY 1 org.eclipse.equinox.p2.artifact.repository 4 0 2008-11-11 12:15:33.796
!MESSAGE No repository found containing: org.eclipse.equinox.p2.artifact.repository/osgi.bundle/1.0.100.v20081111
!SUBENTRY 1 org.eclipse.equinox.p2.artifact.repository 4 0 2008-11-11 12:15:33.812
!MESSAGE No repository found containing: org.eclipse.equinox.p2.artifact.repository.source/osgi.bundle/1.0.100.v20081111
!SUBENTRY 1 org.eclipse.equinox.p2.artifact.repository 4 0 2008-11-11 12:15:33.843
!MESSAGE No repository found containing: org.eclipse.equinox.p2.core/osgi.bundle/1.0.100.v20081111
!SUBENTRY 1 org.eclipse.equinox.p2.artifact.repository 4 0 2008-11-11 12:15:33.843
!MESSAGE No repository found containing: org.eclipse.equinox.p2.core.source/osgi.bundle/1.0.100.v20081111
!SUBENTRY 1 org.eclipse.equinox.p2.artifact.repository 4 0 2008-11-11 12:15:33.843
!MESSAGE No repository found containing: org.eclipse.equinox.p2.director/osgi.bundle/1.0.100.v20081111
!SUBENTRY 1 org.eclipse.equinox.p2.artifact.repository 4 0 2008-11-11 12:15:33.843
!MESSAGE No repository found containing: org.eclipse.equinox.p2.director.source/osgi.bundle/1.0.100.v20081111
!SUBENTRY 1 org.eclipse.equinox.p2.artifact.repository 4 0 2008-11-11 12:15:33.843
!MESSAGE No repository found containing: org.eclipse.equinox.p2.engine/osgi.bundle/1.0.100.v20081111
!SUBENTRY 1 org.eclipse.equinox.p2.artifact.repository 4 0 2008-11-11 12:15:33.843
!MESSAGE No repository found containing: org.eclipse.equinox.p2.engine.source/osgi.bundle/1.0.100.v20081111
!SUBENTRY 1 org.eclipse.equinox.p2.artifact.repository 4 0 2008-11-11 12:15:33.843
!MESSAGE No repository found containing: org.eclipse.equinox.p2.metadata/osgi.bundle/1.0.0.v20081111
!SUBENTRY 1 org.eclipse.equinox.p2.artifact.repository 4 0 2008-11-11 12:15:33.843
!MESSAGE No repository found containing: org.eclipse.equinox.p2.metadata.generator/osgi.bundle/1.0.100.v20081111
!SUBENTRY 1 org.eclipse.equinox.p2.artifact.repository 4 0 2008-11-11 12:15:33.843
!MESSAGE No repository found containing: org.eclipse.equinox.p2.metadata.generator.source/osgi.bundle/1.0.100.v20081111
!SUBENTRY 1 org.eclipse.equinox.p2.artifact.repository 4 0 2008-11-11 12:15:33.843
!MESSAGE No repository found containing: org.eclipse.equinox.p2.metadata.repository/osgi.bundle/1.0.100.v20081111
!SUBENTRY 1 org.eclipse.equinox.p2.artifact.repository 4 0 2008-11-11 12:15:33.843
!MESSAGE No repository found containing: org.eclipse.equinox.p2.metadata.repository.source/osgi.bundle/1.0.100.v20081111
!SUBENTRY 1 org.eclipse.equinox.p2.artifact.repository 4 0 2008-11-11 12:15:33.843
!MESSAGE No repository found containing: org.eclipse.equinox.p2.metadata.source/osgi.bundle/1.0.0.v20081111
!SUBENTRY 1 org.eclipse.equinox.p2.artifact.repository 4 0 2008-11-11 12:15:33.843
!MESSAGE No repository found containing: org.eclipse.equinox.p2.publisher/osgi.bundle/1.0.0.v20081111
!SUBENTRY 1 org.eclipse.equinox.p2.artifact.repository 4 0 2008-11-11 12:15:33.843
!MESSAGE No repository found containing: org.eclipse.equinox.p2.publisher.source/osgi.bundle/1.0.0.v20081111
!SUBENTRY 1 org.eclipse.equinox.p2.artifact.repository 4 0 2008-11-11 12:15:33.843
!MESSAGE No repository found containing: org.eclipse.equinox.p2.reconciler.dropins/osgi.bundle/1.0.100.v20081111
!SUBENTRY 1 org.eclipse.equinox.p2.artifact.repository 4 0 2008-11-11 12:15:33.843
!MESSAGE No repository found containing: org.eclipse.equinox.p2.reconciler.dropins.source/osgi.bundle/1.0.100.v20081111
!SUBENTRY 1 org.eclipse.equinox.p2.artifact.repository 4 0 2008-11-11 12:15:33.843
!MESSAGE No repository found containing: org.eclipse.equinox.p2.touchpoint.eclipse/osgi.bundle/1.0.100.v20081111
!SUBENTRY 1 org.eclipse.equinox.p2.artifact.repository 4 0 2008-11-11 12:15:33.890
!MESSAGE No repository found containing: org.eclipse.equinox.p2.touchpoint.eclipse.source/osgi.bundle/1.0.100.v20081111
!SUBENTRY 1 org.eclipse.equinox.p2.artifact.repository 4 0 2008-11-11 12:15:33.890
!MESSAGE No repository found containing: org.eclipse.equinox.p2.touchpoint.natives/osgi.bundle/1.0.0.v20081111
!SUBENTRY 1 org.eclipse.equinox.p2.artifact.repository 4 0 2008-11-11 12:15:33.890
!MESSAGE No repository found containing: org.eclipse.equinox.p2.touchpoint.natives.source/osgi.bundle/1.0.0.v20081111
!SUBENTRY 1 org.eclipse.equinox.p2.artifact.repository 4 0 2008-11-11 12:15:33.890
!MESSAGE No repository found containing: org.eclipse.equinox.p2.ui.sdk/osgi.bundle/1.0.100.v20081111
!SUBENTRY 1 org.eclipse.equinox.p2.artifact.repository 4 0 2008-11-11 12:15:33.890
!MESSAGE No repository found containing: org.eclipse.equinox.p2.ui.sdk.source/osgi.bundle/1.0.100.v20081111
!SUBENTRY 1 org.eclipse.equinox.p2.artifact.repository 4 0 2008-11-11 12:15:33.890
!MESSAGE No repository found containing: org.eclipse.equinox.p2.updatesite/osgi.bundle/1.0.100.v20081111
!SUBENTRY 1 org.eclipse.equinox.p2.artifact.repository 4 0 2008-11-11 12:15:33.890
!MESSAGE No repository found containing: org.eclipse.equinox.p2.updatesite.source/osgi.bundle/1.0.100.v20081111
!SUBENTRY 1 org.eclipse.equinox.p2.artifact.repository 4 0 2008-11-11 12:15:33.890
!MESSAGE No repository found containing: org.eclipse.equinox.p2.user.ui/org.eclipse.update.feature/1.1.0.v20081013-7l6ETLEYaPCH0jF1_QUocZ
!SUBENTRY 1 org.eclipse.equinox.p2.artifact.repository 4 0 2008-11-11 12:15:33.890
!MESSAGE No repository found containing: org.eclipse.equinox.p2.user.ui.source/org.eclipse.update.feature/1.1.0.v20081013-7l6ETLEYaPCH0jF1_QUocZ
!SUBENTRY 1 org.eclipse.equinox.p2.artifact.repository 4 0 2008-11-11 12:15:33.890
!MESSAGE No repository found containing: org.eclipse.equinox.simpleconfigurator/osgi.bundle/1.0.100.v20081111
!SUBENTRY 1 org.eclipse.equinox.p2.artifact.repository 4 0 2008-11-11 12:15:33.921
!MESSAGE No repository found containing: org.eclipse.equinox.simpleconfigurator.source/osgi.bundle/1.0.100.v20081111
!SUBENTRY 1 org.eclipse.equinox.p2.artifact.repository 4 0 2008-11-11 12:15:33.921
!MESSAGE No repository found containing: org.eclipse.help/org.eclipse.update.feature/1.1.0.v20080917-7r80EHKEIoascdmCOq85MQq3kGz0
!SUBENTRY 1 org.eclipse.equinox.p2.artifact.repository 4 0 2008-11-11 12:15:33.921
!MESSAGE No repository found containing: org.eclipse.help.source/org.eclipse.update.feature/1.1.0.v20080917-7r80EHKEIoascdmCOq85MQq3kGz0
!SUBENTRY 1 org.eclipse.equinox.p2.artifact.repository 4 0 2008-11-11 12:15:33.921
!MESSAGE No repository found containing: org.eclipse.jdt/osgi.bundle/3.5.0.v20081111-0800
!SUBENTRY 1 org.eclipse.equinox.p2.artifact.repository 4 0 2008-11-11 12:15:33.921
!MESSAGE No repository found containing: org.eclipse.jdt.apt.core/osgi.bundle/3.3.200.v20081108-1955
!SUBENTRY 1 org.eclipse.equinox.p2.artifact.repository 4 0 2008-11-11 12:15:33.921
!MESSAGE No repository found containing: org.eclipse.jdt.apt.core.source/osgi.bundle/3.3.200.v20081108-1955
!SUBENTRY 1 org.eclipse.equinox.p2.artifact.repository 4 0 2008-11-11 12:15:33.921
!MESSAGE No repository found containing: org.eclipse.jdt.compiler.apt/osgi.bundle/1.0.200.v20081108-1955
!SUBENTRY 1 org.eclipse.equinox.p2.artifact.repository 4 0 2008-11-11 12:15:33.921
!MESSAGE No repository found containing: org.eclipse.jdt.compiler.apt.source/osgi.bundle/1.0.200.v20081108-1955
!SUBENTRY 1 org.eclipse.equinox.p2.artifact.repository 4 0 2008-11-11 12:15:33.953
!MESSAGE No repository found containing: org.eclipse.jdt.compiler.tool/osgi.bundle/1.0.100.v_924
!SUBENTRY 1 org.eclipse.equinox.p2.artifact.repository 4 0 2008-11-11 12:15:33.953
!MESSAGE No repository found containing: org.eclipse.jdt.compiler.tool.source/osgi.bundle/1.0.100.v_924
!SUBENTRY 1 org.eclipse.equinox.p2.artifact.repository 4 0 2008-11-11 12:15:33.953
!MESSAGE No repository found containing: org.eclipse.jdt.core/osgi.bundle/3.5.0.v_924
!SUBENTRY 1 org.eclipse.equinox.p2.artifact.repository 4 0 2008-11-11 12:15:33.953
!MESSAGE No repository found containing: org.eclipse.jdt.core.manipulation/osgi.bundle/1.3.0.v20081111-0800
!SUBENTRY 1 org.eclipse.equinox.p2.artifact.repository 4 0 2008-11-11 12:15:33.984
!MESSAGE No repository found containing: org.eclipse.jdt.core.manipulation.source/osgi.bundle/1.3.0.v20081111-0800
!SUBENTRY 1 org.eclipse.equinox.p2.artifact.repository 4 0 2008-11-11 12:15:33.984
!MESSAGE No repository found containing: org.eclipse.jdt.core.source/osgi.bundle/3.5.0.v_924
!SUBENTRY 1 org.eclipse.equinox.p2.artifact.repository 4 0 2008-11-11 12:15:33.984
!MESSAGE No repository found containing: org.eclipse.jdt.debug.ui/osgi.bundle/3.3.0.v20081110-1500
!SUBENTRY 1 org.eclipse.equinox.p2.artifact.repository 4 0 2008-11-11 12:15:33.984
!MESSAGE No repository found containing: org.eclipse.jdt.debug.ui.source/osgi.bundle/3.3.0.v20081110-1500
!SUBENTRY 1 org.eclipse.equinox.p2.artifact.repository 4 0 2008-11-11 12:15:33.984
!MESSAGE No repository found containing: org.eclipse.jdt.doc.isv/osgi.bundle/3.5.0.v20081111-0800
!SUBENTRY 1 org.eclipse.equinox.p2.artifact.repository 4 0 2008-11-11 12:15:33.984
!MESSAGE No repository found containing: org.eclipse.jdt.doc.user/osgi.bundle/3.5.0.v20081111-0800
!SUBENTRY 1 org.eclipse.equinox.p2.artifact.repository 4 0 2008-11-11 12:15:33.984
!MESSAGE No repository found containing: org.eclipse.jdt/org.eclipse.update.feature/3.5.0.v20081111-0800-7o83EFCEGlTuiymDq8CXpks
!SUBENTRY 1 org.eclipse.equinox.p2.artifact.repository 4 0 2008-11-11 12:15:33.984
!MESSAGE No repository found containing: org.eclipse.jdt.junit/osgi.bundle/3.4.100.v20081111-0800
!SUBENTRY 1 org.eclipse.equinox.p2.artifact.repository 4 0 2008-11-11 12:15:33.984
!MESSAGE No repository found containing: org.eclipse.jdt.junit.runtime/osgi.bundle/3.4.100.v20081111-0800
!SUBENTRY 1 org.eclipse.equinox.p2.artifact.repository 4 0 2008-11-11 12:15:33.984
!MESSAGE No repository found containing: org.eclipse.jdt.junit.runtime.source/osgi.bundle/3.4.100.v20081111-0800
!SUBENTRY 1 org.eclipse.equinox.p2.artifact.repository 4 0 2008-11-11 12:15:33.984
!MESSAGE No repository found containing: org.eclipse.jdt.junit.source/osgi.bundle/3.4.100.v20081111-0800
!SUBENTRY 1 org.eclipse.equinox.p2.artifact.repository 4 0 2008-11-11 12:15:33.984
!MESSAGE No repository found containing: org.eclipse.jdt.junit4.runtime/osgi.bundle/1.1.0.v20081111-0800
!SUBENTRY 1 org.eclipse.equinox.p2.artifact.repository 4 0 2008-11-11 12:15:34.015
!MESSAGE No repository found containing: org.eclipse.jdt.junit4.runtime.source/osgi.bundle/1.1.0.v20081111-0800
!SUBENTRY 1 org.eclipse.equinox.p2.artifact.repository 4 0 2008-11-11 12:15:34.015
!MESSAGE No repository found containing: org.eclipse.jdt.launching/osgi.bundle/3.5.0.v20081110-1500
!SUBENTRY 1 org.eclipse.equinox.p2.artifact.repository 4 0 2008-11-11 12:15:34.015
!MESSAGE No repository found containing: org.eclipse.jdt.launching.source/osgi.bundle/3.5.0.v20081110-1500
!SUBENTRY 1 org.eclipse.equinox.p2.artifact.repository 4 0 2008-11-11 12:15:34.015
!MESSAGE No repository found containing: org.eclipse.jdt.source/osgi.bundle/3.5.0.v20081111-0800
!SUBENTRY 1 org.eclipse.equinox.p2.artifact.repository 4 0 2008-11-11 12:15:34.015
!MESSAGE No repository found containing: org.eclipse.jdt.source/org.eclipse.update.feature/3.5.0.v20081111-0800-7o83EFCEGlTuiymDq8CXpks
!SUBENTRY 1 org.eclipse.equinox.p2.artifact.repository 4 0 2008-11-11 12:15:34.015
!MESSAGE No repository found containing: org.eclipse.jdt.ui/osgi.bundle/3.5.0.v20081111-0800
!SUBENTRY 1 org.eclipse.equinox.p2.artifact.repository 4 0 2008-11-11 12:15:34.046
!MESSAGE No repository found containing: org.eclipse.jdt.ui.source/osgi.bundle/3.5.0.v20081111-0800
!SUBENTRY 1 org.eclipse.equinox.p2.artifact.repository 4 0 2008-11-11 12:15:34.046
!MESSAGE No repository found containing: org.eclipse.jface/osgi.bundle/3.5.0.I20081111-0800
!SUBENTRY 1 org.eclipse.equinox.p2.artifact.repository 4 0 2008-11-11 12:15:34.046
!MESSAGE No repository found containing: org.eclipse.jface.source/osgi.bundle/3.5.0.I20081111-0800
!SUBENTRY 1 org.eclipse.equinox.p2.artifact.repository 4 0 2008-11-11 12:15:34.046
!MESSAGE No repository found containing: org.eclipse.jface.text/osgi.bundle/3.5.0.v20081111-0800
!SUBENTRY 1 org.eclipse.equinox.p2.artifact.repository 4 0 2008-11-11 12:15:34.046
!MESSAGE No repository found containing: org.eclipse.jface.text.source/osgi.bundle/3.5.0.v20081111-0800
!SUBENTRY 1 org.eclipse.equinox.p2.artifact.repository 4 0 2008-11-11 12:15:34.046
!MESSAGE No repository found containing: org.eclipse.ltk.core.refactoring/osgi.bundle/3.4.100.v20081111-0800
!SUBENTRY 1 org.eclipse.equinox.p2.artifact.repository 4 0 2008-11-11 12:15:34.062
!MESSAGE No repository found containing: org.eclipse.ltk.core.refactoring.source/osgi.bundle/3.4.100.v20081111-0800
!SUBENTRY 1 org.eclipse.equinox.p2.artifact.repository 4 0 2008-11-11 12:15:34.062
!MESSAGE No repository found containing: org.eclipse.ltk.ui.refactoring/osgi.bundle/3.4.100.v20081111-0800
!SUBENTRY 1 org.eclipse.equinox.p2.artifact.repository 4 0 2008-11-11 12:15:34.093
!MESSAGE No repository found containing: org.eclipse.ltk.ui.refactoring.source/osgi.bundle/3.4.100.v20081111-0800
!SUBENTRY 1 org.eclipse.equinox.p2.artifact.repository 4 0 2008-11-11 12:15:34.093
!MESSAGE No repository found containing: org.eclipse.osgi/osgi.bundle/3.5.0.v20081110-1830
!SUBENTRY 1 org.eclipse.equinox.p2.artifact.repository 4 0 2008-11-11 12:15:34.093
!MESSAGE No repository found containing: org.eclipse.osgi.source/osgi.bundle/3.5.0.v20081110-1830
!SUBENTRY 1 org.eclipse.equinox.p2.artifact.repository 4 0 2008-11-11 12:15:34.093
!MESSAGE No repository found containing: org.eclipse.pde.api.tools/osgi.bundle/1.0.100.v20081110-1600
!SUBENTRY 1 org.eclipse.equinox.p2.artifact.repository 4 0 2008-11-11 12:15:34.125
!MESSAGE No repository found containing: org.eclipse.pde.api.tools.source/osgi.bundle/1.0.100.v20081110-1600
!SUBENTRY 1 org.eclipse.equinox.p2.artifact.repository 4 0 2008-11-11 12:15:34.125
!MESSAGE No repository found containing: org.eclipse.pde.api.tools.ui/osgi.bundle/1.0.100.v20081110-1600
!SUBENTRY 1 org.eclipse.equinox.p2.artifact.repository 4 0 2008-11-11 12:15:34.125
!MESSAGE No repository found containing: org.eclipse.pde.api.tools.ui.source/osgi.bundle/1.0.100.v20081110-1600
!SUBENTRY 1 org.eclipse.equinox.p2.artifact.repository 4 0 2008-11-11 12:15:34.125
!MESSAGE No repository found containing: org.eclipse.pde.build/osgi.bundle/3.5.0.v20081110
!SUBENTRY 1 org.eclipse.equinox.p2.artifact.repository 4 0 2008-11-11 12:15:34.156
!MESSAGE No repository found containing: org.eclipse.pde.build.source/osgi.bundle/3.5.0.v20081110
!SUBENTRY 1 org.eclipse.equinox.p2.artifact.repository 4 0 2008-11-11 12:15:34.156
!MESSAGE No repository found containing: org.eclipse.pde.core/osgi.bundle/3.5.0.v20081110-2300
!SUBENTRY 1 org.eclipse.equinox.p2.artifact.repository 4 0 2008-11-11 12:15:34.156
!MESSAGE No repository found containing: org.eclipse.pde.core.source/osgi.bundle/3.5.0.v20081110-2300
!SUBENTRY 1 org.eclipse.equinox.p2.artifact.repository 4 0 2008-11-11 12:15:34.156
!MESSAGE No repository found containing: org.eclipse.pde.ds.ui/osgi.bundle/1.0.0.v20081110-2200
!SUBENTRY 1 org.eclipse.equinox.p2.artifact.repository 4 0 2008-11-11 12:15:34.203
!MESSAGE No repository found containing: org.eclipse.pde.ds.ui.source/osgi.bundle/1.0.0.v20081110-2200
!SUBENTRY 1 org.eclipse.equinox.p2.artifact.repository 4 0 2008-11-11 12:15:34.203
!MESSAGE No repository found containing: org.eclipse.pde/org.eclipse.update.feature/3.5.0.v20081020-7V7XE8MEB7sQS9bpi2DoMOM
!SUBENTRY 1 org.eclipse.equinox.p2.artifact.repository 4 0 2008-11-11 12:15:34.203
!MESSAGE No repository found containing: org.eclipse.pde.source/org.eclipse.update.feature/3.5.0.v20081020-7V7XE8MEB7sQS9bpi2DoMOM
!SUBENTRY 1 org.eclipse.equinox.p2.artifact.repository 4 0 2008-11-11 12:15:34.218
!MESSAGE No repository found containing: org.eclipse.pde.ui/osgi.bundle/3.5.0.v20081110-2200
!SUBENTRY 1 org.eclipse.equinox.p2.artifact.repository 4 0 2008-11-11 12:15:34.218
!MESSAGE No repository found containing: org.eclipse.pde.ui.source/osgi.bundle/3.5.0.v20081110-2200
!SUBENTRY 1 org.eclipse.equinox.p2.artifact.repository 4 0 2008-11-11 12:15:34.250
!MESSAGE No repository found containing: org.eclipse.pde.ui.templates/osgi.bundle/3.4.100.v20081110-2200
!SUBENTRY 1 org.eclipse.equinox.p2.artifact.repository 4 0 2008-11-11 12:15:34.250
!MESSAGE No repository found containing: org.eclipse.pde.ui.templates.source/osgi.bundle/3.4.100.v20081110-2200
!SUBENTRY 1 org.eclipse.equinox.p2.artifact.repository 4 0 2008-11-11 12:15:34.250
!MESSAGE No repository found containing: org.eclipse.platform/osgi.bundle/3.3.200.v200811110800
!SUBENTRY 1 org.eclipse.equinox.p2.artifact.repository 4 0 2008-11-11 12:15:34.250
!MESSAGE No repository found containing: org.eclipse.platform.doc.isv/osgi.bundle/3.5.0.v20081111-0800
!SUBENTRY 1 org.eclipse.equinox.p2.artifact.repository 4 0 2008-11-11 12:15:34.250
!MESSAGE No repository found containing: org.eclipse.platform.doc.user/osgi.bundle/3.5.0.v20081111-0800
!SUBENTRY 1 org.eclipse.equinox.p2.artifact.repository 4 0 2008-11-11 12:15:34.250
!MESSAGE No repository found containing: org.eclipse.platform/org.eclipse.update.feature/3.5.0.v20081007-9K9PFEFEmejKTyKtvdtYI1W3GcHfx11r4lHz01
!SUBENTRY 1 org.eclipse.equinox.p2.artifact.repository 4 0 2008-11-11 12:15:34.281
!MESSAGE No repository found containing: org.eclipse.platform.source/osgi.bundle/3.3.200.v200811110800
!SUBENTRY 1 org.eclipse.equinox.p2.artifact.repository 4 0 2008-11-11 12:15:34.312
!MESSAGE No repository found containing: org.eclipse.platform.source/org.eclipse.update.feature/3.5.0.v20081007-9K9PFEFEmejKTyKtvdtYI1W3GcHfx11r4lHz01
!SUBENTRY 1 org.eclipse.equinox.p2.artifact.repository 4 0 2008-11-11 12:15:34.312
!MESSAGE No repository found containing: org.eclipse.rcp/org.eclipse.update.feature/3.5.0.v20081110-9C9tEvNEla71LZ2jFz-RFB-t
!SUBENTRY 1 org.eclipse.equinox.p2.artifact.repository 4 0 2008-11-11 12:15:34.343
!MESSAGE No repository found containing: org.eclipse.rcp.source/org.eclipse.update.feature/3.5.0.v20081110-9C9tEvNEla71LZ2jFz-RFB-t
!SUBENTRY 1 org.eclipse.equinox.p2.artifact.repository 4 0 2008-11-11 12:15:34.343
!MESSAGE No repository found containing: org.eclipse.sdk/osgi.bundle/3.5.0.v200811110800
!SUBENTRY 1 org.eclipse.equinox.p2.artifact.repository 4 0 2008-11-11 12:15:34.343
!MESSAGE No repository found containing: org.eclipse.sdk/org.eclipse.update.feature/3.5.0.v20081020-7M7Z_7BEDmOr7kCx0yC1WB-xklMdSqjf6K95D1AA5AS6b
!SUBENTRY 1 org.eclipse.equinox.p2.artifact.repository 4 0 2008-11-11 12:15:34.343
!MESSAGE No repository found containing: org.eclipse.search/osgi.bundle/3.5.0.v20081111-0800
!SUBENTRY 1 org.eclipse.equinox.p2.artifact.repository 4 0 2008-11-11 12:15:34.343
!MESSAGE No repository found containing: org.eclipse.search.source/osgi.bundle/3.5.0.v20081111-0800
!SUBENTRY 1 org.eclipse.equinox.p2.artifact.repository 4 0 2008-11-11 12:15:34.343
!MESSAGE No repository found containing: org.eclipse.swt/osgi.bundle/3.5.0.v35178
!SUBENTRY 1 org.eclipse.equinox.p2.artifact.repository 4 0 2008-11-11 12:15:34.343
!MESSAGE No repository found containing: org.eclipse.swt.win32.win32.x86/osgi.bundle/3.5.0.v35178
!SUBENTRY 1 org.eclipse.equinox.p2.artifact.repository 4 0 2008-11-11 12:15:34.375
!MESSAGE No repository found containing: org.eclipse.swt.win32.win32.x86.source/osgi.bundle/3.5.0.v35178
!SUBENTRY 1 org.eclipse.equinox.p2.artifact.repository 4 0 2008-11-11 12:15:34.375
!MESSAGE No repository found containing: org.eclipse.text/osgi.bundle/3.4.100.v20081111-0800
!SUBENTRY 1 org.eclipse.equinox.p2.artifact.repository 4 0 2008-11-11 12:15:34.406
!MESSAGE No repository found containing: org.eclipse.text.source/osgi.bundle/3.4.100.v20081111-0800
!SUBENTRY 1 org.eclipse.equinox.p2.artifact.repository 4 0 2008-11-11 12:15:34.406
!MESSAGE No repository found containing: org.eclipse.ui/osgi.bundle/3.5.0.I20081111-0800
!SUBENTRY 1 org.eclipse.equinox.p2.artifact.repository 4 0 2008-11-11 12:15:34.406
!MESSAGE No repository found containing: org.eclipse.ui.editors/osgi.bundle/3.4.100.v20081111-0800
!SUBENTRY 1 org.eclipse.equinox.p2.artifact.repository 4 0 2008-11-11 12:15:34.406
!MESSAGE No repository found containing: org.eclipse.ui.editors.source/osgi.bundle/3.4.100.v20081111-0800
!SUBENTRY 1 org.eclipse.equinox.p2.artifact.repository 4 0 2008-11-11 12:15:34.406
!MESSAGE No repository found containing: org.eclipse.ui.ide/osgi.bundle/3.5.0.I20081111-0800
!SUBENTRY 1 org.eclipse.equinox.p2.artifact.repository 4 0 2008-11-11 12:15:34.406
!MESSAGE No repository found containing: org.eclipse.ui.ide.source/osgi.bundle/3.5.0.I20081111-0800
!SUBENTRY 1 org.eclipse.equinox.p2.artifact.repository 4 0 2008-11-11 12:15:34.406
!MESSAGE No repository found containing: org.eclipse.ui.source/osgi.bundle/3.5.0.I20081111-0800
!SUBENTRY 1 org.eclipse.equinox.p2.artifact.repository 4 0 2008-11-11 12:15:34.437
!MESSAGE No repository found containing: org.eclipse.ui.workbench/osgi.bundle/3.5.0.I20081111-0800
!SUBENTRY 1 org.eclipse.equinox.p2.artifact.repository 4 0 2008-11-11 12:15:34.437
!MESSAGE No repository found containing: org.eclipse.ui.workbench.source/osgi.bundle/3.5.0.I20081111-0800
!SUBENTRY 1 org.eclipse.equinox.p2.artifact.repository 4 0 2008-11-11 12:15:34.468
!MESSAGE No repository found containing: org.eclipse.ui.workbench.texteditor/osgi.bundle/3.5.0.v20081111-0800
!SUBENTRY 1 org.eclipse.equinox.p2.artifact.repository 4 0 2008-11-11 12:15:34.468
!MESSAGE No repository found containing: org.eclipse.ui.workbench.texteditor.source/osgi.bundle/3.5.0.v20081111-0800
!SUBENTRY 1 org.eclipse.equinox.p2.artifact.repository 4 0 2008-11-11 12:15:34.468
!MESSAGE No repository found containing: org.eclipse.update.configurator/osgi.bundle/3.2.300.v20081107
!SUBENTRY 1 org.eclipse.equinox.p2.artifact.repository 4 0 2008-11-11 12:15:34.468
!MESSAGE No repository found containing: org.eclipse.update.configurator.source/osgi.bundle/3.2.300.v20081107
!SUBENTRY 1 org.eclipse.equinox.p2.artifact.repository 4 0 2008-11-11 12:15:34.468
!MESSAGE No repository found containing: org.eclipse.update.core/osgi.bundle/3.2.300.v20081107
!SUBENTRY 1 org.eclipse.equinox.p2.artifact.repository 4 0 2008-11-11 12:15:34.468
!MESSAGE No repository found containing: org.eclipse.update.core.source/osgi.bundle/3.2.300.v20081107
!SUBENTRY 1 org.eclipse.equinox.p2.artifact.repository 4 0 2008-11-11 12:15:34.468
!MESSAGE No repository found containing: org.eclipse.update.scheduler/osgi.bundle/3.2.200.v20081107
!SUBENTRY 1 org.eclipse.equinox.p2.artifact.repository 4 0 2008-11-11 12:15:34.500
!MESSAGE No repository found containing: org.eclipse.update.scheduler.source/osgi.bundle/3.2.200.v20081107
!SUBENTRY 1 org.eclipse.equinox.p2.artifact.repository 4 0 2008-11-11 12:15:34.500
!MESSAGE No repository found containing: org.eclipse.update.ui/osgi.bundle/3.2.200.v20081107
!SUBENTRY 1 org.eclipse.equinox.p2.artifact.repository 4 0 2008-11-11 12:15:34.531
!MESSAGE No repository found containing: org.eclipse.update.ui.source/osgi.bundle/3.2.200.v20081107
!SUBENTRY 1 org.eclipse.equinox.p2.artifact.repository 4 0 2008-11-11 12:15:34.531
!MESSAGE No repository found containing: org.eclipse.sdk.ide.launcher.win32.win32.x86/binary/3.5.0.I20081111-0800
Comment 57 Pascal Rapicault CLA Friend 2008-11-11 14:53:05 EST
John, did you remove the pref files from the root IUs?
Comment 58 John Arthorne CLA Friend 2008-11-11 16:30:16 EST
No, but this failure doesn't surprise me. The repository gets lost during update, so it would have been lost while updating to I20081104 from an older build that didn't have the fix. Then when upgrading from I20081104 to 20081111, you would get the failure even though I20081104 contains the fix. I'll be worried if the same problem happens next week...
Comment 59 Lari Hotari CLA Friend 2008-11-11 19:47:47 EST
I had this problem in Eclipse 3.4.1.
Here's a workaround:
1) export the update site listing to bookmarks.xml file (Software Updates->Manage sites->Export)
2) stop eclipse
3) remove configuration/.settings/org.eclipse.equinox.p2.*.prefs files
4) start eclipse
5) import the bookmarks.xml file (Software Updates->Manage sites->Import) that was exported in step 1
Comment 60 Susan McCourt CLA Friend 2008-11-12 12:47:09 EST
*** Bug 255065 has been marked as a duplicate of this bug. ***
Comment 61 John Arthorne CLA Friend 2008-11-13 16:50:31 EST
Created attachment 117837 [details]
Updated fix

Unfortunately the previous fix wasn't sufficient. It was rewriting the preference node to disk, but the node is lazily loaded and at this point is already broken, so it is just rewriting the preferences with the missing repositories to disk again. This patch iterates over all repositories for which we have state in memory, and rewrites them to the preference node, and then flushes the result to disk.
Comment 62 John Arthorne CLA Friend 2008-11-13 17:26:53 EST
It's not a perfect reproduction, but I have added a regression test to ArtifactRepositoryManagerTest.testLostArtifactRepositories(). The test manually bashes the preference file, stops/restarts the artifact repository bundle, and then asserts that lost preferences have been restored. This test fails without my latest fix, and passes with my latest fix. I don't know why I didn't think of this before.
Comment 63 Ian Bull CLA Friend 2008-11-18 13:48:48 EST
It's next week, and I had the problem today.

Same work around worked (removed test site and re-added it).  I was updating from 20081111 to 20081118

(In reply to comment #58)
> No, but this failure doesn't surprise me. The repository gets lost during
> update, so it would have been lost while updating to I20081104 from an older
> build that didn't have the fix. Then when upgrading from I20081104 to 20081111,
> you would get the failure even though I20081104 contains the fix. I'll be
> worried if the same problem happens next week...
> 

Comment 64 Ian Bull CLA Friend 2008-11-18 13:51:27 EST
Actually, I'm not convinced I hit every integration build (04, 11 and now 18).  So maybe the fix will be delayed by a week for me. I will check again next week.

(In reply to comment #63)
> It's next week, and I had the problem today.
> 
> Same work around worked (removed test site and re-added it).  I was updating
> from 20081111 to 20081118
> 
> (In reply to comment #58)
> > No, but this failure doesn't surprise me. The repository gets lost during
> > update, so it would have been lost while updating to I20081104 from an older
> > build that didn't have the fix. Then when upgrading from I20081104 to 20081111,
> > you would get the failure even though I20081104 contains the fix. I'll be
> > worried if the same problem happens next week...
> > 
> 

Comment 65 John Arthorne CLA Friend 2008-11-18 13:55:54 EST
Build I20081104 and 20081111 still contained the bug (see comment #61). The first build with the working fix will be I20081118. Upgrading from a freshly installed I20081118 to a later build should not experience the problem.
Comment 66 Olivier Thomann CLA Friend 2008-11-19 09:00:04 EST
Does this mean I should install a fresh install of build I20081118-1720 if I don't want to experience the problem again ?
Or I can simply continue to update from build to build and once I installed 	I20081118-1720 the problem will be gone once for all?
Comment 67 John Arthorne CLA Friend 2008-11-19 10:55:19 EST
You can either install a fresh I20081118, or upgrade to I20081118 and then remove/add the repository one last time (since upgrading to I20081118 would be performed using an older build that still contains the bug).
Comment 68 Mike Wilson CLA Friend 2008-11-26 08:21:34 EST
Comment #59 helped me fix my updating problem, thanks!

Though, I think maybe it was enough to just delete the configuration/.settings/org.eclipse.equinox.p2.*.prefs files as I have a feeling that the problem was already resolved before I imported the bookmarks file (things happened a bit in paralell for me here).
Comment 69 arne anka CLA Friend 2008-11-28 09:22:52 EST
*** Bug 256878 has been marked as a duplicate of this bug. ***
Comment 70 Jerome Lanneluc CLA Friend 2008-12-11 05:55:32 EST
It looks like I'm still seeing the problem. I upgraded successfully to I20081210-0100 (from the previous I-build). Then I tried to check for updates, and none were found (but I'm certain that one is available since I successfully upgraded on another machine).

Looking at the console, I found this trace (I believe that I have John's tracing (comment 30) still on):

[p2] Thu Dec 11 11:46:32 CET 2008 - [main] Removing repository: file:/home/jln/eclipse/sdk/eclipse/configuration/org.eclipse.osgi/bundles/1112/data/listener_1925729951/
java.lang.Exception: Removing repository: file:/home/jln/eclipse/sdk/eclipse/configuration/org.eclipse.osgi/bundles/1112/data/listener_1925729951/
        at org.eclipse.equinox.internal.p2.core.helpers.AbstractRepositoryManager.removeRepository(AbstractRepositoryManager.java:743)
        at org.eclipse.equinox.internal.p2.core.helpers.AbstractRepositoryManager.removeRepository(AbstractRepositoryManager.java:726)
        at org.eclipse.equinox.internal.p2.core.helpers.AbstractRepositoryManager.loadRepository(AbstractRepositoryManager.java:589)
        at org.eclipse.equinox.internal.p2.metadata.repository.MetadataRepositoryManager.loadRepository(MetadataRepositoryManager.java:85)
        at org.eclipse.equinox.internal.p2.director.SimplePlanner.updatesFor(SimplePlanner.java:399)
        at org.eclipse.equinox.internal.p2.ui.query.QueryableUpdates.query(QueryableUpdates.java:51)
        at org.eclipse.equinox.internal.provisional.p2.ui.actions.UpdateAction.getProfileChangeRequest(UpdateAction.java:65)
        at org.eclipse.equinox.internal.provisional.p2.ui.actions.ProfileModificationAction$1.run(ProfileModificationAction.java:81)
        at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:70)
        at org.eclipse.equinox.internal.provisional.p2.ui.actions.ProfileModificationAction.run(ProfileModificationAction.java:79)
        at org.eclipse.equinox.internal.provisional.p2.ui.actions.ProfileModificationAction.run(ProfileModificationAction.java:61)
        at org.eclipse.equinox.internal.p2.ui.sdk.UpdateHandler.doExecute(UpdateHandler.java:67)
        at org.eclipse.equinox.internal.p2.ui.sdk.PreloadingRepositoryHandler$4.run(PreloadingRepositoryHandler.java:81)
        at org.eclipse.swt.widgets.RunnableLock.run(RunnableLock.java:35)
        at org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchronizer.java:133)
        at org.eclipse.swt.widgets.Display.runAsyncMessages(Display.java:3425)
        at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3072)
        at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:2384)
        at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2348)
        at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:2200)
        at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:495)
        at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:333)
        at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:490)
        at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
        at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:113)
        at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:193)
        at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)
        at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)
        at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:366)
        at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:177)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:585)
        at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:550)
        at org.eclipse.equinox.launcher.Main.basicRun(Main.java:505)
        at org.eclipse.equinox.launcher.Main.run(Main.java:1237)
        at org.eclipse.equinox.launcher.Main.main(Main.java:1213)
Comment 71 Jerome Lanneluc CLA Friend 2008-12-11 05:56:46 EST
After restart, Check for Updates found a new I-build.
Comment 72 Lance Walton CLA Friend 2009-01-13 17:58:27 EST
Created attachment 122468 [details]
configuration/.settings/org.eclipse.equinox.p2.*

I believe I am still seeing this problem with 3.4M5. I am trying to install the Metrics plugin from http://www.stateofflow.com/UpdateSite and I have successfully install other plugins from that site. I can even uninstall other plugins and reinstall them. My colleagues are able to install the Metrics plugin, so it's not a problem with the update site itself.

This was a clean install of 3.4M5, but using at an existing workspace.
Comment 73 Lance Walton CLA Friend 2009-01-13 18:08:00 EST
I should have given you this from my log file as well:

!MESSAGE session context was:(profile=SDKProfile, phase=, operand=, action=).
!SUBENTRY 1 org.eclipse.equinox.p2.artifact.repository 4 0 2009-01-13 22:49:37.054
!MESSAGE No repository found containing: com.stateofflow.eclipse.metrics/osgi.bundle/3.10.0.200901132121
!SUBENTRY 1 org.eclipse.equinox.p2.artifact.repository 4 0 2009-01-13 22:49:37.054
!MESSAGE No repository found containing: com.stateofflow.eclipse.metrics.feature/org.eclipse.update.feature/3.10.0.200901132121
Comment 74 Miles Daffin CLA Friend 2009-01-23 12:32:36 EST
Folks,

I have seen this problem a lot and found that the solution is always to append a trailing '/' to *all* repository URLs in my P2 UI. My feeling is that this error is caused by a failure to construct a viable URL to a repo resource. The code in question is not inspecting the URL string from the UI and is assuming a trailing '/' resulting in a 404.

Hope this helps,

Miles
Comment 75 Claire Reynaud CLA Friend 2009-02-09 11:56:42 EST
Does this need to be fixed in eclipse 3.4.x? I had the problem with eclipse 3.4.1 (eclipse.buildId=M20080911-1700), and had to use the workaround (remove the repository from the list and add it back again). As far as I understand, this won't prevent the problem from showing up again. Please let me know if I am wrong.
Thanks,
Claire
Comment 76 alastairpursch CLA Friend 2009-02-10 06:30:35 EST
I currently have this problem with eclipse 3.4.1 M20080911-1700, fresh install, except both workarounds (remove/add repo and Comment #59) do not work for me.  What should 3.4.1 users like myself be doing?  This is a HUGELY frustrating problem preventing me from installing, in my case, subversive SVN connectors.  
Advice would be appreciated since I have been unable to work for a couple of days!

Thanks
Comment 77 Robert Klaus CLA Friend 2009-02-10 06:59:51 EST
This bug is really annoying. Even if you worked around it once, it tends to reappear.
I think there are a lot people out there who are using Eclipse 3.4.1 and are not going to switch to 3.5 when it's released.
With this bug it is nearly impossible for a not-so-technically-firm user to use the update manager to install or update something.
If possible, please fix this in a 3.4.x as well.
Comment 78 Richard CLA Friend 2009-02-28 03:08:21 EST
This occurs on a clean install of ganymede SR1 for me and none of the recommended workarounds worked. A patch for 3.4.x would be very much appreciated.
Comment 79 Gunjan CLA Friend 2009-03-10 12:47:16 EDT
I am having this issue with a fresh install of both the following versions:

Version: 3.4.2
Build id: M20090211-1700

Version: 3.5.0
Build id: I20090202-1535

The repository that I am trying to access is at http://m2eclipse.sonatype.org/update/ (Maven2 plugin for Eclipse). The org.eclipse.equinox.p2.* are attached.
Comment 80 Gunjan CLA Friend 2009-03-10 12:49:12 EDT
Created attachment 128228 [details]
Version: 3.4.2 Build id: M20090211-1700
Comment 81 Gunjan CLA Friend 2009-03-10 12:50:41 EDT
Created attachment 128229 [details]
Version: 3.4.2 Build id: M20090211-1700
Comment 82 Gunjan CLA Friend 2009-03-10 12:52:09 EDT
Created attachment 128230 [details]
Version: 3.5.0 Build id: I20090202-1535
Comment 83 Gunjan CLA Friend 2009-03-10 12:52:32 EDT
Created attachment 128231 [details]
Version: 3.5.0 Build id: I20090202-1535
Comment 84 Eric Hildum CLA Friend 2009-03-10 13:51:53 EDT
It appears from the status of http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6771432 that Sun has fixed the bug in the JRE that is the underlying cause of this issue. However, the JRE version for the fix is listed as 6u12(b05), apparently refering to build 5 of 1.6 update 12. The only downloadable version of the JRE 1.6 update 12 I can find is build 4, which does not contain the fix. The fix is also listed as included in 6u14(b02), so perhaps we will need to wait until update 14 before this is fixed.
Comment 85 Eric Hildum CLA Friend 2009-03-10 13:58:41 EDT
(In reply to comment #84)
> It appears from the status of
> http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6771432 that Sun has fixed
> the bug in the JRE that is the underlying cause of this issue. However, the JRE
> version for the fix is listed as 6u12(b05), apparently refering to build 5 of
> 1.6 update 12. The only downloadable version of the JRE 1.6 update 12 I can
> find is build 4, which does not contain the fix. The fix is also listed as
> included in 6u14(b02), so perhaps we will need to wait until update 14 before
> this is fixed.

I am sorry, I just realized that this comment was placed on the wrong bug. Please disregard. (To many open bugzilla windows at one time....)
Comment 86 John Arthorne CLA Friend 2009-04-06 14:57:21 EDT
*** Bug 271220 has been marked as a duplicate of this bug. ***
Comment 87 webster CLA Friend 2009-07-16 00:48:31 EDT
I having some issue with fresh compressed Eclipse SDK 3.4.2 version. 
This issue occur when i'm try add 'Graphical editors and frameworks' and 'Web and Java EE Developements' componenets. 

It show no repository found at http://download.eclipse.org/releases/ganymede. 

Is the Eclipse IDE for Java EE Developers package contain those add-on?
Comment 88 Maksym Bykovskyy CLA Friend 2009-09-28 11:07:10 EDT
This bug appeared in version 3.5 as well. The solution was to append a / (forward slash) at the end of the URL. It seems that repositories are simply appended to the end of URL so when / is missing the URL will be invalid.
Comment 89 Eric Hildum CLA Friend 2009-09-28 11:32:36 EDT
Why is this bug listed as Resolved/Fixed? Comment 74 and the proceeding comment appear to identify the root cause of the issue, so now a resolution is possible. Would the originator or somebody else with appropriate privileges please reopen this so the URL construction issue can be properly resolved in SR 2?
Comment 90 Pascal Rapicault CLA Friend 2009-09-28 11:49:37 EDT
I am actually not convinced that the addition of a trailing slash will resolve the problems. Eric, please open a new bug report (maybe referring to this one) and add the details about the problem you are encountering. Also make sure to mention the site on which you are encountering this problem. Thx
Comment 91 Eric Hildum CLA Friend 2009-09-28 11:56:47 EDT
Unfortunately, or fortunately depending on your point of view, I am not seeing this problem currently. My issue at this point is that if this problem is still occurring, why has the associated bug been marked Fixed when it has not been?
Comment 92 Miles Daffin CLA Friend 2009-09-28 13:03:11 EDT
I am seeing this in 3.5.1 when trying to install stuff from an old style update site when I include site.xml:

http://www.perforce.com/downloads/http/p4-wsad/install/site.xml


If I remove site.xml I can install things fine.
Comment 93 Ian Bull CLA Friend 2009-09-28 13:35:44 EDT
Just so everyone is aware, this particular error happens anytime an artifact cannot be found (or retrieved).  If there are permission problems on the server (or any sort of configuration problems), missing artifacts, improper XML, or a bug in p2.  For example, I noticed this when a server was configured to return a file permission error whenever a file did not exist.

Regarding the trailing slash -- this could simply be a miss-configuration on a particular mirror.  When Eclipse 3.5 was released, the eclipse foundation was doing all the  redirects (instead of p2), so if you got redirected to a poorly configured mirror, no amounts of re-tries would fix this (once you got redirected to this mirror, you always got redirected there).
Comment 94 Matthew Trees CLA Friend 2009-10-14 16:31:23 EDT
Just a note regarding missing aftifact repository errors on update:

If you are using a p2.inf file to build your product and utilizing addRepository touchpoint instructions, be sure to do this for both the metadata AND artifact repos.  For example...

instructions.configure=\
  addRepository(type:0,location:http${#58}//x.y.com/xyz/updates);\
  addRepository(type:1,location:http${#58}//x.y.com/xyz/updates);

I've seen people fail to include the "type:1" entry which is for the artifact repo.  It seems redundant to list the same url twice but necessary for this colocated repo.  Perhaps a "type:3" is in order to specify both.

http://wiki.eclipse.org/Equinox/p2/Engine/Touchpoint_Instructions_35

Adds the repository at location of type type to the list of known repositories. The repository will then be available when installing or updating the profile in the future. The enabled parameter takes a boolean value ("true" or "false") indicating whether the add repository should be enabled. The value of the location parameter must be a well-formed URI. The type parameter value must be the value of one of the IRepository.TYPE_* constants, Specifically, type "0" indicates a metadata repository, and type "1" indicates an artifact repository.