Unable to access Galileo Update and Discovery sites

Bug #530414 reported by David Coggins
92
This bug affects 19 people
Affects Status Importance Assigned to Milestone
eclipse (Debian)
Fix Released
Unknown
eclipse (Ubuntu)
New
Undecided
Unassigned

Bug Description

Binary package hint: eclipse

Last year I installed the google web toolkit and the google android development plugins for eclipse. When I upgraded to lucid alpha 3 last week I found that eclipse seems to be unable to contact its update website. The google eclipse plugins have dependencies that must be installed by the eclipse update manager as described in the google faq http://code.google.com/eclipse/docs/faq.html in the section on org.eclipse.wst.sse.ui errors. These dependencies seem to have been deleted by the ubuntu update manager which would be ok if I could reinstall them using the eclipse update manager.

Network connection problems encountered during search.
  Unable to access "http://download.eclipse.org/releases/galileo".
    Error accessing site stream. [Server returned HTTP response code: 503 for URL: http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd]
    Server returned HTTP response code: 503 for URL: http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd
    Error accessing site stream. [Server returned HTTP response code: 503 for URL: http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd]
    Server returned HTTP response code: 503 for URL: http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd
  Unable to access "http://download.eclipse.org/eclipse/updates/3.5".
    Unable to access site: "http://download.eclipse.org/eclipse/updates/3.5" [Server returned HTTP response code: "403 Forbidden" for URL: http://download.eclipse.org/eclipse/updates/3.5.]
    Server returned HTTP response code: "403 Forbidden" for URL: http://download.eclipse.org/eclipse/updates/3.5.
    Unable to access site: "http://download.eclipse.org/eclipse/updates/3.5" [Server returned HTTP response code: "403 Forbidden" for URL: http://download.eclipse.org/eclipse/updates/3.5.]
    Server returned HTTP response code: "403 Forbidden" for URL: http://download.eclipse.org/eclipse/updates/3.5.

ProblemType: Bug
Architecture: i386
CheckboxSubmission: d62d8fd242f3db43099237193d779429
CheckboxSystem: b62ae224500b03a9fc2c9b6caf3feb14
Date: Tue Mar 2 11:46:16 2010
DistroRelease: Ubuntu 10.04
ExecutablePath: /usr/lib/eclipse/eclipse
Package: eclipse-platform 3.5.1+repack~3-0ubuntu2
ProcEnviron:
 LANG=en_AU.UTF-8
 SHELL=/bin/bash
ProcVersionSignature: Ubuntu 2.6.32-14.20-generic
SourcePackage: eclipse
Uname: Linux 2.6.32-14-generic i686

Revision history for this message
David Coggins (david-coggins-sydney) wrote :
Revision history for this message
David Coggins (david-coggins-sydney) wrote :

This problem is happening to non ubuntu users as discussed in the eclipse forum at http://www.eclipse.org/forums/index.php?t=msg&th=162147&start=0&

Revision history for this message
Waldemar Biller (wbiller) wrote :

OpenJDK Issue. Just do an "sudo update-alternatives --config java" and select the VM from Sun.

Revision history for this message
Benjamin Drung (bdrung) wrote :

Can you do a system update to eclipse 3.5.2-2 and the latest openjdk and report if you still have the problems?

Changed in eclipse (Ubuntu):
status: New → Incomplete
Revision history for this message
Matthias Klose (doko) wrote :

> Just do an "sudo update-alternatives --config java" and select the VM from Sun

this is bad advice. it points the VM to sun java and leaves anything else pointing to OpenJDK. see update-java-alternatives

eclipse works fine with OpenJDK in lucid.

Revision history for this message
Omri Har-Shemesh (omrihar) wrote :

I also had a problem installing software on eclipse. My problem was with installing PyDev. I also had the same problem when trying to install Pydev on aptana studio.
When I used update-java-alternatives everything worked.
I guess there IS a problem with OpenJDK in Lucid...

Revision history for this message
David Coggins (david-coggins-sydney) wrote :

I ran ubuntu update manager and got all the updates including the latest eclipse for lucid. Note that I followed googles instructions last year for Android development and downloaded SUN JDK 6. I noticed when I ran Ubuntu Update manager at the beginning of March the Sun JDK updated from an ubuntu repository. Now there is definitely a change from the previous eclipse under lucid as the google android plugin now runs without complaining about missing dependencies. I can create the hello android project as described at developer.android.com. Unfortunately when I run the project all I see is the Google Android emulator screen with the word Android in the middle - not Hello Android as I put in the .java file. So I don't think I can yet use Ubuntu to create Android apps. It appears from the developer.android.com site there is a new version of the ADT eclipse plugin 0.9.6 March 2010. When I select Install New Software under the eclipse help menu I get the same error I was seeing before:

Some sites could not be found. See the error log for more detail.
  No repository found at https://dl-ssl.google.com/android/eclipse/.
  No repository found at http://dl.google.com/eclipse/plugin/3.5.
  No repository found at http://download.eclipse.org/releases/galileo.

I click on the link to the error log and the error pane opens with "unable to load repository" errors but when I mouse into the pane I see a rotating circle - nothing happens when I click on the error.

Now when I select Check for Updates under the eclipse help menu three red Xs appear "unable to load the repository"
I can click on these and see a stack trace added as attachment with session data:

eclipse.buildId=M20100211-1343
java.version=1.6.0_18
java.vendor=Sun Microsystems Inc.
BootLoader constants: OS=linux, ARCH=x86, WS=gtk, NL=en_AU
Command-line arguments: -os linux -ws gtk -arch x86

Benjamin Drung (bdrung)
Changed in eclipse (Ubuntu):
status: Incomplete → New
Revision history for this message
povniet (kevin-georgy) wrote :

I had the same issue on Lucid Beta 1 with OpenJDK, and with an Eclipse not from the Ubuntu package too...

Revision history for this message
Michael Hüttemann (michael-huettemann) wrote :

Starting Eclipse on Lucid using OpenJDK with

    eclipse -Djava.net.preferIPv4Stack=true

solves the issue for my system. Apparently the network stack tries to access the Update and Discovery sites with IPv6 instead.

Revision history for this message
David Coggins (david-coggins-sydney) wrote :

I tried eclipse -Djava.net.preferIPv4Stack=true but Check for Updates and Install Software still don't work.

Revision history for this message
snearch (snearch) wrote :

<< I tried eclipse -Djava.net.preferIPv4Stack=true but Check for Updates
<< and Install Software still don't work.
Same here.

Revision history for this message
Mike Pontillo (mpontillo) wrote :

I, too, am having this problem with Lucid.

If I use OpenJDK, I get spam on the console saying:

$ eclipse
Apr 2, 2010 10:49:08 PM org.apache.commons.httpclient.HttpMethodDirector executeWithRetry
INFO: I/O exception (java.net.ConnectException) caught when processing request: Invalid argument
Apr 2, 2010 10:49:08 PM org.apache.commons.httpclient.HttpMethodDirector executeWithRetry
INFO: Retrying request

This happens regardless of "-Djava.net.preferIPv4Stack=true" on OpenJDK.

If I try the Sun JDK using update-java-alternatives, I get:

No repository found at http://download.eclipse.org/galileo/releases/.

If I do this with the Sun JDK:

$ eclipse -Djava.net.preferIPv4Stack=true

... then everything seems to work..

Note, I have an IPv6 address on eth0 via a 6to4 tunnel on my router. I didn't try removing it. (I would have to both remove it and block IPv6 router advertisements from being processed by the kernel.)

It seems possible that OpenJDK doesn't like the java.net.preferIPv4Stack property, or it's not working correctly. I'm not sure if it's supported there.

Revision history for this message
Michael Hüttemann (michael-huettemann) wrote :

In comment #9 i forgot to mention that I use an Eclipse not from the Ubuntu repositories but a manually installed one from eclipse.org. The architecture is amd64.

Revision history for this message
Mike Pontillo (mpontillo) wrote :

I did a little more testing on this today. I tried deleting my IPv6 addresses and setting the sysctl values net.ipv6.conf.all.accept_ra=0 and sysctl net.ipv6.conf.eth0.accept_ra=0 to see if the default Eclipse in Lucid would work properly without IPv6 configured. That is, I did "sudo /sbin/ip -6 addr" and for each address on each interface did "sudo /sbin/ip -6 addr del <address>/<mask> dev <interface>". I was relentless. I even removed ::1 from the loopback interface.

I am happy (and also sad, since IPv6 should probably not cause problems like this) to report that after doing this, the "Install New Software..." window works fine.

Note, I tested this successfully with my 'update-java-alternatives' set to both java-6-openjdk and java-6-sun.

Revision history for this message
David Coggins (david-coggins-sydney) wrote :

The Check for Updates command in eclipse on ubuntu now is working. I installed updates to the android eclipse plugin that eclipse fetched from google. Prior to this I did the Ubuntu partial distribution upgrade.

Revision history for this message
Rex Tsai (chihchun) wrote : Re: eclipse: plugins installed by user not working

Subject: Re: plugins installed by user not working
Package: eclipse
Version: 3.5.2-2
Severity: normal

Hi, I was trying to install extra plugins but failed.

I found that it was accessing dtd files, which is alrady banned[1] by w3c.
And we should cache the dtd files[2][3].

However, I found there is no XML category setting in perference.
There must be some kind of plugin missed. Not sure how to fix it yet.

Network connection problems encountered during search.
  Unable to access "http://download.eclipse.org/releases/galileo/".
    Error accessing site stream. [Server returned HTTP response code:
503 for URL: http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd]
    Server returned HTTP response code: 503 for URL:
http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd
    Error accessing site stream. [Server returned HTTP response code:
503 for URL: http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd]
    Server returned HTTP response code: 503 for URL:
http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd

[1] http://www.w3.org/2005/06/blog/systeam/2008/02/08/w3c_s_excessive_dtd_traffic
[2] http://stackoverflow.com/questions/2070836/how-to-stop-eclipse-ide-from-trying-to-download-dtds-for-validation
[3] http://wiki.eclipse.org/Using_the_XML_Catalog

-- System Information:
Debian Release: squeeze/sid
  APT prefers unstable
  APT policy: (500, 'unstable'), (500, 'testing'), (1, 'experimental')
Architecture: i386 (i686)

Kernel: Linux 2.6.30-2-686 (SMP w/2 CPU cores)
Locale: LANG=zh_TW.UTF-8, LC_CTYPE=zh_TW.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash

Versions of packages eclipse depends on:
ii eclipse-jdt 3.5.2-2 Eclipse Java Development Tools (JD
ii eclipse-pde 3.5.2-2 Eclipse Plug-in Development Enviro

eclipse recommends no packages.

eclipse suggests no packages.

-- no debconf information

Changed in eclipse (Debian):
status: Unknown → New
Revision history for this message
Philip (panmanphil) wrote :

I am having the identical bug with nearly identical system information as Rex Tsai. I have an up to date to date lucid beta and am experiencing the same 503 errors. This keeps me from adding any new features, including the xml catalog feature Rex Tsai linked to.

Revision history for this message
Wiz of Id (trumbitta) wrote :

- Removed ipv6 like Mike Pontillo suggests
- Used the java pref on the command line used to launch eclipse
- Sun-jdk is the only jdk (the same applies to Sun-jre) installed and used on my system

But still I get the errors showed in the first message of this report.

Revision history for this message
Philip (panmanphil) wrote :

 A couple of updates. First, downloading the normal package from eclipse.org I've found that the 503 error is not there. I've also noticed that the find and update software menus and screens are different than the ones the ubuntu install provides. Since it works, I really wonder if the packaging is all the problem is here.

Second, there is a related bug going back to 11/2009. Still listed as new. https://bugs.launchpad.net/ubuntu/+source/eclipse/+bug/489718

Revision history for this message
Wiz of Id (trumbitta) wrote :

I can confirm what Philip said about the normal package (Classic one) from eclipse.org

Revision history for this message
JeffV (jeff-launchpad-tanasity) wrote :

This is still a problem in the default install on 10.04 Beta2.

I did a vanilla install, plus Apache, PHP, and Eclipse.

Revision history for this message
Jeff Trull (jetrull) wrote :

I'm pleased to say that I've worked around this issue solely by fixing the "sat4j" problem as reported here:

https://bugs.launchpad.net/ubuntu/+source/eclipse/+bug/566131/comments/3

(execute the two "sudo ln" commands)

afterwards, I did this:

eclipse -clean -initialize
rm -rf ~/.eclipse

I was then able to proceed with a software update. No more "bundle" problem, no more 503's, no more failure to access download.eclipse.org, etc.

I did not have to change my JDK, or use "-vmargs -Djava.net.preferIPv4Stack=true" on the command line, or use a special environment variable. It just worked, on my vanilla Lucid Beta install updated yesterday.

Revision history for this message
JeffV (jeff-launchpad-tanasity) wrote :

Works with the very latest updates applied to Beta2. I had to add http://download.eclipse.org/releases/galileo as a source because there were no default sources in the updated version of Eclipse.

Revision history for this message
Benjamin Drung (bdrung) wrote :

Thanks for the update. It's a duplicate of bug #566131 which is fixed in 3.5.2-2ubuntu4.

Changed in eclipse (Debian):
status: New → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.