Eclipse updates not working - eclipse

I have installed Eclipse 3,6 on 64 bit Windows platform.
When I try to connect to update sites by going to Help->install new software it gives following error:
Unable to connect to repository
http://download.eclipse.org/releases/galileo/content.xml
Connection refused: connect
I have tried all available sites - they all give me the same error.
Dialog box shows: Provision exception.
Any idea what's happening?

In Eclipse (go to Window > Preferences > General > Network connections).
Select "Active Provider" as "Manual".
Select HTTP and click edit.
Enter the host and port
Select "Requires Authentication" and enter the username and password.
Repeat Step 1 to 5 for Https.
In "proxy bypass" section click "Add host"
Enter http://download.eclipse.org/releases/galileo/content.xml and OK
After spending an entire week with the issue, this solution finally worked for me

Maybe you're behind a firewall, and need to access the web through a proxy. Have you set a proxy in your web browser? If so, you need to set the same proxy in Eclipse (go to Preferences > General > Network connections).

Well, try to enter this website: http://subclipse.tigris.org/update_1.6.x
If that link works, then it's not your fault. I've tried your link, and it doesn't work for me either.
If the link I gave you doesn't work either, then the problem is on your side and you need to check your network settings.

If you are behind a firewall, have set the proxy settings in the preferences correctly and it's still not working, Try setting -Dsun.net.client.defaultReadTimeout=<"amount in ms, e.g. 30000"> in the eclipse.ini worked well for me. It looks like Eclipse has a quick timeout on that updatesite search. Some proxys can slow the process down by a few seconds and you get a timeout before the updatesite is loaded completely

Related

eclipse update sites: HTTP Proxy Authentication Required error

when I go to Install new software and select an update site, I get a "HTTP Proxy Authentication Required" error.
I have searched the internets for quite some time, and I still did not get an answer.
Facts:
I get this error for every update site.
I am able to access the update site link both in an internal or external browser.
I am using the "native" proxy in eclipse network settings.
direct proxy in eclipse network settings does not work either.
our helpdesk told me that it's not possible to set up the manual proxy in eclipse network settings (or they don't know)
I've tried manually inserting a proxy server:port that I found in a proxy.pac file that I've discovered, no luck...
I've tried reinstalling Eclipse, re-adding and/or reloading repositories and deleting repo cache dir
I'm using: -Djava.net.preferIPv4Stack=true in ini file
I've tried mirroring the repositories using both methods, but log file gives the same proxy error
My system:
Eclipse for PHP Developers
Version: Luna Service Release 1a (4.4.1)
Build id: 20150109-0600
Windows 7, 64bit
Just add this at the end of your eclipse.ini :
-Dorg.eclipse.ecf.provider.filetransfer.excludeContributors=org.eclipse.ecf.provider.filetransfer.httpclient4
In my case I had to set the proxy also to manual (SOCKS should be unchecked). But then, no more hassle.
It basically disables the default Apache HTTP client and will use an HTTP client based on the JRE URL connection.
See: https://wiki.eclipse.org/Disabling_Apache_Httpclient
Edit:
There is a new Apache HTTP client version for which the parameter value has changed:
-Dorg.eclipse.ecf.provider.filetransfer.excludeContributors=org.eclipse.ecf.provider.filetransfer.httpclient45
To disable both use:
-Dorg.eclipse.ecf.provider.filetransfer.excludeContributors=org.eclipse.ecf.provider.filetransfer.httpclient45,org.eclipse.ecf.provider.filetransfer.httpclient4
I could solve the same problem by going to "Windows" → "Preferences" → "Network Connections" and set "Active Provider" to "Direct". See more details and a screenshot in my answer here.
Switch to the manual proxy options
Enter your proxy, user and password
Do it for al except SOCKS. SOCKS you may leave empty.
I've tried a lot of solutions in Google, but nothing :(
I was going to forget about eclipse, but suddenly it worked :)
In the end I talked to a guy who manages the proxy settings in our company and luckily he did some changes to the proxy server and now I'm able to install addons & update software from within eclipse :-)
For my proxy settings, I HAD to leave SOCKS proxy configuration empty after entering manual proxy settings for both HTTP and HTTPS.
Leaving them all empty didn't work, and filling them all out didn't work either.
It worked for me using this in eclipse.ini:
-Dorg.eclipse.ecf.provider.filetransfer.excludeContributors=org.eclipse.ecf.provider.filetransfer.httpclient45,org.eclipse.ecf.provider.filetransfer.httpclient4
Source: https://wiki.eclipse.org/Disabling_Apache_Httpclient45
If you are using eclipse through a virtual machine, then set the network settings to manual in Eclipse. That should solve the issue.

Unknown Host dl-ssl.google.com , failed to fetch different URLs

This is the error I am getting after starting SDK manager and also while updating or downloading packages(Download interrupted: Unknown Host dl-ssl.google.com). My ADT is also updated to Build: v22.6.2-1085508. I have read all the post regarding this and tried
Using https instead of http while using Help>install new software (getting error could not find https://dl-ssl.google.com/android/eclipse/)
No proxy.
Run SDK with admin privilege.
No firewall blocking .
I am not able to post the image because I am a new user , so i m copying the error and posting it , please don't mind .
This is type of error with many links like this ..
Failed to fetch URL https://dl-ssl.google.com/android/repository/sys-img/android-wear/android-wear-sys-img.xml, reason: IO Unknown Host dl-ssl.google.com
Done loading packages.
Also I have read many answers on this site and other but nothing has helped so far.
Please help me .
Thank you
This might be because of Android SDK Manager not being able to connect to Google server. This article helped me a lot:
Tools > Options... and check Force https://... sources to be fetched using http://...
Just wanted to add how I solved this problem if anyone comes here looking for an answer.
Comodo firewall runs in background even if you disable the firewall and that causes problem with SDK . I had the same problem.
Steps I took to resolve my problem:
run comodo settings
defense+
list active processes
add adb.exe to trusted processes
restart server: run "adb kill-server" "adb start-server"
For Comodo 6.x
Open Comodo
Click Tasks Icon at right top
Click Advanced Tasks
Click Open Advanced Settings
Select Security Settings --> File Rating --> Trusted files from left panel
Click on the upward arrow icon at the bottom
I was also getting same error : Unknown Host Errors while installing ADT plugin in eclipse
Go to Setting -> Default setting -> select "Android SDK" from left side Panel. Select required components Which you want to install. - >Apply -> Ok.
Please let me know if still you are facing issue.
Regard,
Pappu.

Eclipse Subversive "Connection Failed By Server"

I am using Eclipse Indigo and Subversive SVN Team provider.
While i was generating projects using SVN repository i provided user name and password.
Now after a week i want to update some files,
right click on a file, Team->Update, getting below error:
Some resources were not updated.
svn: connection refused by the server
svn: PROPFIND request failed on 'bla bla'
I think i must log in but from where, can you provide a path? Or what may the problem be?
Thanks
Just open eclipse preferences.
click on General>Network Connections.
Then according to the environment, set active provider and other proxy settings.
Eclipse preferences. click on General>Network Connections -> change Active Provider value to Manual from the drop down. it worked for me.
The PROPFIND request failure probably means, Subversive cannot read contents from the server. A more detailed error message might be present in the Error log view (Window/Show view/Other..., and there it is in the General category, if I remember correctly).
Without a more detailed error message I would open the SVN Repository Exploring viewperspective, and try to update the Repository location settings (Right click, Properties), and there try to (1) validate the existing settings, and (2) update the username/password information.
The following steps allow me to work from my corporate network through proxy server to update Eclipse ide plugins, and connect to corporate svn server:
1. Open Window > Preferences > Network Connection Settings
2. Select Active Provider to "Manual"
3. Set proxy settings for HTTP/HTTPS (click Edit…)
4. Clear SOCKS proxy if it is set (select SOCKS row, click "Clear" button)
5. Add host svn.srv.com in Proxy bypass if svn.srv.com is within intranet
6. Apply and optionally restart Eclipse
Note: replace proxy.srv.com, and svn.srv.com with your actual urls
See answer also
Check your eclipse network setting ,
add SVN server to bypass proxy list
Eclipse preferences. click on General>Network Connections -> change Active Provider value to Manual from the drop down. it worked for me too.

Eclipse Indigo "unable to connect to repository"

I'm trying to add this repository to Eclipse (Indigo):-
http://download.eclipse.org/releases/indigo
Seems okay when checked in a browser, but I keep getting "unable to connect" in Eclipse, and when I check the URL Eclipse is apparently looking for:-
http://download.eclipse.org/releases/indigo/content.xml
in a browser, I get a "404 not found". The locations for previous releases (e.g. galileo) don't seem to be there either. Have they moved? Am I misunderstanding something?
I tried some of the suggestions in this previous thread:-
Eclipse updates not working
But they don't seem to work (and I'm not using a proxy anyway).
Hemdoar
This worked for me:
Open terminal. Navigate to Eclipse folder.
sudo nano eclipse.ini
at the bottom, add this line in:
-Djava.net.preferIPv4Stack = true
Then ctrl+O to save, ctrl+X to close (it says at bottom). IPv4/IPv6 problems? Solved.
Then delete the cache VonC said to:
<eclipse>/p2/org.eclipse.equinox.p2.repository/cache
(This can be done using "sudo rmdir /p2/org.eclipse.equinox.p2.repository/cache" or by typing "sudo nautilus" into terminal, to open a root-priveleged filesystem browser, than navigating to, selecting the folder, and pressing the delete key). Then restart eclipse, goto Help>install new software>available software sites
Make sure the repos you want (such as "http://download.eclipse.org/egit/updates/") has a "/" right at the end. If it doesn't, delete that entry, and create a new, identical one which does, because Eclipse won't just let you edit it and click ok. Then click ok, and from the combo box choose e.g. the egit link, and lo, it will find it.
Still not working? Window>show view>internal web browser; check it can access internet. Hope that helps!
Credit to:
http://drfits.com/2011/11/13/eclipse-contacting-software-sites-has-encountered-a-problem/
VonC Sep 14 '11 at 6:03
I used VonC's answer to good effect. I also uninstalled a program called webroot. I think this had something to do with it because other programs were also having network problems.
This is because windows IPV6 issue. Try adding the following VM option in the eclipse.ini
-Djava.net.preferIPv4Stack=true
Can you connect to internet at all through Eclipse?
Open the internal webbrowser. In Eclipse: Window -> show view -> Other -> General: Internal web browser.
Look up any normal adress, is it working?
Can you connect to another update site? Try for example Eclipse Emma: http://update.eclemma.org/ Do you see anything there?
What are your proxy preferences? Go to Window -> preferences -> General: Network connections.
The active provider:
Specifies the settings profile to be used when opening connections. Choosing the Direct provider causes all the connections to be opened without the use of a proxy server. Selecting Manual causes settings defined in Eclipse to be used. On some platforms there is also a Native provider available, selecting this one causes settings that were discovered in the OS to be used.
If internet is working fine outside of Eclipse, try changing to Native. After that, try Direct.
I have encountered problems where an update site would not load, then I had to remove it and add it again. This forces Eclipse to reread the contents of the site even if it has a cached copy. So, if you still get no connection to the indigo update site, but everything else is working, try that. Go to Window -> Preferences -> Install/update: Available Software sites. Then remove and add the indigo site. Just remember to copy the adress so you can add it again.
As suggested in a comment below by #lostiniceland, this is a simpler way to achieve the above:
Goto Preferences -> Install Update -> Available Software Sites => select the entry and click the "Reload" button to the right. This is sometimes also helpful when you have a local updatesite for testing custom plugins
first resolve proxy conflicts and if then too eclipse is not getting connected to internet *turnoff your firewall/antiviru*s and try again
To resolve proxy conflicts:Go to windows->prefernces-general tab->network settings
if you dont use proxy settings, cgange native to direct
if you use proxy, chenge native to manual and fill details of proxy for http and https by pressing 'edit' and clear SOCKS tab by pressing 'clear'
check if your SOCK is disabled on operating system too. or doing it open to 'Internet options' dailog box. Go to connections and press lan connection. press 'advanced' button ans clear the textboxes in front of 'socks' and uncheck the msg saying 'use same address for other network protocols'
I did this and worked for me
If you are using Fiddler2 (or any other web sniffer/debugger tool), it may be your problem, as it acts as a local proxy.
Sometimes, even if its not running, I find myself obligated to start it and disable traffic capture.
Hope that helps!

How to Specify Eclipse Proxy Authentication Credentials?

I'm using the latest version of Eclipse Galileo and I have to access the web from behind a proxy. I see where I can set the internet settings to manual and specify a proxy but there's no way to specify my authentication credentials that I can see and it doesn't prompt me for them either. So I'm not able to hit any plugin update sites etc... Does anyone else have this issue or know a good workaround? Or is there a better version of Eclipse to use?
In Eclipse, go to Window → Preferences → General → Network Connections. In the Active Provider combo box, choose "Manual". In the proxy entries table, for each entry click "Edit..." and supply your proxy host, port, username and password details.
If you have still problems, try deactivating ("Clear") SOCKS
see: https://bugs.eclipse.org/bugs/show_bug.cgi?id=281384
"I believe the reason for this is because it uses the SOCKS proxy
instead of the HTTP proxy if SOCKS is configured."
Here is the workaround:
In eclipse.ini write the following:
-vmargs
-Dorg.eclipse.ecf.provider.filetransfer.excludeContributors= org.eclipse.ecf.provider.filetransfer.httpclient
-Dhttp.proxyHost=*myproxyhost*
-Dhttp.proxyPort=*myproxyport*
-Dhttp.proxyUser=*proxy username*
-Dhttp.proxyPassword=*proxy password*
-Dhttp.nonProxyHosts=localhost|127.0.0.1
After starting eclipse verify, that you use the Manual proxy method.
HTH
Window → Preferences → General → Network Connections
then under "Proxy ByPass" click "Add Host" and enter the link from which you will be getting your third-party plugin;
that's it bingo, now it should get the plugin no problem.
I struggle with this constantly, as it seems it is a different solution every time a new version of Eclipse is released. Here is a solution that doesn't involve displaying your password in the .ini file.
In Eclipse go to Window > Preferences > General > security Secure Storage
In the Password tab click on the "Change Password" button
Fill in the security questions. Don't make them to hard. Finish
Now go to Window > Preferences > General > Network connections. Choose "Manual" from drop down. Double click "HTTP" option and enter the Host, Port, Username and Password. Finish
Now go to Window > Preferences > General > security Secure Storage
In the Password tab click on the "Recover Password" button
Fill in the security questions. Finish
Eclipse now stores your username and password
This sometime works, sometime no.
I have installed 1 Eclipse - works.
Installed second - doesn't work.
And I cann't figure why!
After some time may be found a solution.
Need delete all setting for proxy (included credentials).
And re-insert for new.
After this for me getting work.
Try to fill only the HTTP schema
Add the following line at the end of your eclipse.ini file
-Dorg.eclipse.ecf.provider.filetransfer.excludeContributors=org.eclipse.ecf.provider.filetransfer.httpclient4
For eclipse Mar1 : -
Window > Preferences > General > Network connections. Choose "Manual" from drop down. Double click "HTTP" option and enter the Host, Port, Username and Password. Apply and Finish,,it will work as expected...