Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 303902 - Update manager - very slow install
Summary: Update manager - very slow install
Status: CLOSED FIXED
Alias: None
Product: Equinox
Classification: Eclipse Project
Component: p2 (show other bugs)
Version: 3.6   Edit
Hardware: PC Windows 7
: P3 normal with 1 vote (vote)
Target Milestone: 3.6   Edit
Assignee: Pascal Rapicault CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-02-25 09:13 EST by Dan Rubel CLA
Modified: 2018-09-18 03:14 EDT (History)
7 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Dan Rubel CLA 2010-02-25 09:13:48 EST
I'm testing Integration Build: I20100224-2100 on Win7 64-bit and installation via the update manager is so slow during the "Calculating requirements and dependencies..." phase that the first several times I thought it was broken. I tried the following update sites:

    http://subclipse.tigris.org/update_1.6.x
    http://download.instantiations.com/out/QualityEclipse/continuous/latest/update/3.5/

Then after a long time ( 15 minutes or so ) the following appears...

    Some sites could not be found.  See the error log for more detail.
    No repository found at http://download.eclipse.org/eclipse/updates/3.6-I-builds/I20100216-0800.
    No repository found at http://download.eclipse.org/webtools/downloads/drops/R3.2/S-3.2.0M2-20090924194346/updateSite.

Browsing http://download.eclipse.org/eclipse/updates/3.6-I-builds/I20100216-0800, I see "Access Forbidden" and and http://download.eclipse.org/webtools/downloads/drops/R3.2/S-3.2.0M2-20090924194346/updateSite returns a 404.

During this long period, I finally noticed that every so often a jar file name would briefly appear in the workbench status line area. I'm guessing that p2 is trying to access multiple files on each of these 2 unavailable repositories. Perhaps if a repository is unavailable, it could more gracefully degrade... somehow let the user know that things are not being found as it is happening. In the short term, I don't know if the problem is on my end or that the URLs need to be fixed in the e4 build or that the update site is not yet ready for prime time, but it was a fairly painful wait to install software using the update manager.

- Dan
Comment 1 Pascal Rapicault CLA 2010-02-25 21:50:26 EST
You mentioned that some files were being downloaded from time to time. Do you happen to remember the name of those files? Where they features?
I suspect that we get stuck in the download of the feature from the tigris site because I don't believe they have a content.xml.
Comment 2 Pascal Rapicault CLA 2010-02-25 21:50:52 EST
Also can you reproduce this?
Comment 3 Boris Bokowski CLA 2010-02-26 00:06:13 EST
I got into the same situation (very slow, no visible progress) today, trying to install the SWT tools into a recent e4 SDK.
Comment 4 Dan Rubel CLA 2010-02-26 08:01:29 EST
(In reply to comment #1)
> You mentioned that some files were being downloaded from time to time. Do you
> happen to remember the name of those files? Where they features?
> I suspect that we get stuck in the download of the feature from the tigris site
> because I don't believe they have a content.xml.

During my tests yesterday, I tried the tigris update site, thought it was broken, so canceled the update. So I started again with a clean e4 install, downloaded the tigris update site zip file, installed from that local archive, and saw the same result. Thus I don't think the tigris site has anything to do with the problem.

Today I downloaded the e4 I20100225-2100 build and again installed from the tigris update site zip file. The "Calculating requirements and dependencies" phase finished in about 2 minutes... much faster than when I installed from  the tigris update site zip file yesterday, so I'm assuming that the Eclipse site is more responsive. I opened the progress view before the installation, and saw the following files flash by (they were only briefly displayed so I captured what I could)

... 3.6 Ibuild content.jar
... webtools r3.2 updateSite content.xml
... compositeContent.xml?

After about two minutes the "Problem Occurred" dialog opened with the following message

No repository found at http://download.eclipse.org/webtools/downloads/drops/R3.2/S-3.2.0M2-20090924194346/updateSite.

I think that the biggest issue here is more appropriate user feedback when the "Calculating requirements and dependencies" phase takes longer than 20 seconds so that the user does not think that the operation is broken/hung.
Comment 5 Scott Rosenbaum CLA 2010-03-10 11:07:45 EST
I ran into this same problem when working with an update site.  I found that the issue was a check box:

 Contact all update sites during install to find required software

I am wondering if something has changed so that this is now the default behavior when updating?  If so, I think it should be changed back.  It takes WAY to long to contact all update sites in anything more than a really trivial Eclipse install.
Comment 6 Roger C CLA 2010-03-22 11:38:28 EDT
Okay! I can't take it anymore. Can someone PLEASE HELP?

I'm running Windows XP Professional Service Pack 3 at my office. I have downloaded and installed the Java SE JDK 6 Update 18. I have downloaded and extracted Eclipse Classic 3.5.2 (Galileo) to the following location on my hard disk "C:\Program Files\eclipse".

I have 2 sites listed (by default) in the Window->Preferences->Install/Update->Available Software Sites:

Galileo                     http://download.eclipse.org/releases/galileo
The Eclipse Project Updates http://download.eclipse.org/eclipse/updates/3.5

both locations are Enabled.

When I go to Help->Install New Software... I get the following error message:

Some sites could not be found.  See the error log for more detail.
  Unable to connect to repository http://download.eclipse.org/eclipse/updates/3.5/content.xml
  Connection refused: connect
  Unable to connect to repository http://download.eclipse.org/releases/galileo/content.xml
  Connection refused: connect

I have spent days search for a solution on the WWW and have not found one. I guess there are a few solutions out there for other platforms that I am unfamilar with (i.e., ubuntu, linux, etc.), but I have not found any solutions relating to Windows XP.

Can someone PLEASE HELP? I'am willing to provide any information I can to get this problem resolved.
Comment 7 Pascal Rapicault CLA 2010-03-29 08:56:39 EDT
Moving Roger's previous comment to bug #307382
Comment 8 Pascal Rapicault CLA 2010-05-10 23:26:51 EDT
Dan, Boris, Scott, could you guys please try again with a recent build? I have not been able to reproduce this.
Comment 9 Pascal Rapicault CLA 2010-05-11 16:50:36 EDT
Closing for now to cleanup 3.6 bucket. Feel free to reopen.
Comment 10 Rael CLA 2011-03-17 23:18:30 EDT
New builds (mainly on Eclipse Helios) are using this option on Install New Software dialog:

- Contact all update sites during install to find required software

Uncheck this, and the "Calculating requirements and dependencies" will run fine and quickly.

I don't know why this checkbox comes checked. This is the real bug.
Comment 11 kunal tayal CLA 2018-09-18 03:14:11 EDT
i am working on Version: Mars.2 (4.5.2) . I was trying to update the swtbot through swtbot snapshot site http://download.eclipse.org/technology/swtbot/snapshots. but it is so slow in "Calculating requirements and dependencies..." almost stuck . I have disabled the checkbox "Contact all update sites during install to find required software" , but still no success. Then i disabled the all the sites in available software in sites in window->preferences->Install/Update->Available Software Sites and kept only swtbot site enabled. Then it worked super fast. 

i was expecting the same behavior while i disabled "Contact all update sites during install to find required software" checkbox. does this checkbox work ?