Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 357879 - Repository list in preferences lost after update, restored after restart
Summary: Repository list in preferences lost after update, restored after restart
Status: CLOSED DUPLICATE of bug 380176
Alias: None
Product: Equinox
Classification: Eclipse Project
Component: p2 (show other bugs)
Version: unspecified   Edit
Hardware: PC Windows 7
: P3 normal (vote)
Target Milestone: Juno   Edit
Assignee: P2 Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
: 360016 369793 (view as bug list)
Depends on:
Blocks:
 
Reported: 2011-09-15 16:26 EDT by John Arthorne CLA
Modified: 2012-06-11 14:17 EDT (History)
8 users (show)

See Also:


Attachments
Configuration (328.79 KB, application/zip)
2011-10-17 11:00 EDT, DJ Houghton CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description John Arthorne CLA 2011-09-15 16:26:46 EDT
I upgraded from I20110906 to I20110615-0200. After restarting, I attempted to install software, but all repositories were missing from the list except http://update.eclemma.org. When I look on disk, I can see that the preference files are intact. Restarting doesn't bring the repository list back.

DJ had the same error, but after restarting his repository list came back.
Comment 1 DJ Houghton CLA 2011-10-05 14:28:18 EDT
*** Bug 360016 has been marked as a duplicate of this bug. ***
Comment 2 Thomas Watson CLA 2011-10-12 08:57:38 EDT
I have seen this also, but restarting does seem to bring back the sites.
Comment 3 DJ Houghton CLA 2011-10-13 14:30:52 EDT
If this happens again go into Help -> About -> Installation Details -> Configuration and add the settings as an attachment here. We can check the preference values, etc.
Comment 4 DJ Houghton CLA 2011-10-17 11:00:43 EDT
Created attachment 205341 [details]
Configuration

Configuration dump of system properties and preference key/value pairs.
Comment 5 DJ Houghton CLA 2011-10-19 12:12:47 EDT
Does everyone here who reported this have auto-updates turned on?
Comment 6 Dean Roberts CLA 2011-10-19 13:02:41 EDT
I do not have auto updates on.
Comment 7 Remy Suen CLA 2011-10-19 13:08:21 EDT
(In reply to comment #5)
> Does everyone here who reported this have auto-updates turned on?

No. I only ever update manually.
Comment 8 Thomas Watson CLA 2011-10-19 17:50:25 EDT
(In reply to comment #5)
> Does everyone here who reported this have auto-updates turned on?

Manual for me.
Comment 9 John Arthorne CLA 2011-10-19 22:10:08 EDT
Manual for me.
Comment 10 DJ Houghton CLA 2011-12-14 14:59:06 EST
This is a must-fix for Juno. Feel free to chime in if you have ideas on the best way to track this down.
Comment 11 DJ Houghton CLA 2011-12-14 15:25:39 EST
Changing report title so Dean doesn't have a heart attack. :)
Comment 12 DJ Houghton CLA 2011-12-15 09:55:39 EST
Based on code inspection the most likely case of this happening is if the IPreferencesService service is not available when we first start up. (but is available later) Interestingly most cases are reported during the same build where the org.eclipse.equinox.preferences bundle was updated. I'm wondering if this is related.
Comment 13 DJ Houghton CLA 2011-12-15 11:54:14 EST
Unfortunately I still can't reproduce this problem. Another potential cause would be if the IAgentLocation service wasn't registered.
Comment 14 Paul Webster CLA 2012-01-26 07:47:49 EST
*** Bug 369793 has been marked as a duplicate of this bug. ***
Comment 15 Dean Roberts CLA 2012-05-22 10:33:01 EDT
As a potentially interesting data point.

For the last several months I have been doing RTC development with RTC installed into an Eclipse 3.8 M7 build.  I would use update at least weekly to install updates to RTC from a local P2 repo.  Throughout this time my update sites never went missing.

Today I inadvertently updated my Eclipse SDK to Version: 4.2.0 Build id: I20120503-1800 from the remote repo (and my Jazz to RC5 from a local repo).  After the restart, my update sites are missing.

While I realize that the only changes between 3.8.x and 4.2.x should be UI plug-ins... I find this behaviour suspicious.

Has anybody actually seen this problem occur in a 3.x Eclipse?
Comment 16 Pascal Rapicault CLA 2012-05-23 16:22:04 EDT
I have been able to reproduce this on 3.8 M7. At this point I believe that it is the same issue than what we are seeing in bug #380176 and that if you were to restart your eclipse install one more time after the update you would get the repository to show up again.
Comment 17 Ian Bull CLA 2012-06-11 14:17:43 EDT
Closing as a duplicate of bug 380176. Please re-open if this problem persists.

*** This bug has been marked as a duplicate of bug 380176 ***