New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Print a better Eclipse download error on server-side error. #90

leogaggl opened this Issue Apr 28, 2015 · 5 comments


None yet
3 participants

leogaggl commented Apr 28, 2015

I am getting the following error trying to install Eclipse:

ERROR: couldn't finish download: 404 Client Error: Not Found
ERROR: 404 Client Error: Not Found
CRITICAL: Exception in worker
Traceback (most recent call last):
File "/usr/lib/python3.4/concurrent/futures/", line 54, in run
result = self.fn(_self.args, *_self.kwargs)
File "/usr/lib/python3/dist-packages/umake/network/", line 125, in _fetch
File "/usr/lib/python3/dist-packages/requests/", line 825, in raise_for_status
raise HTTPError(http_error_msg, response=self)
requests.exceptions.HTTPError: 404 Client Error: Not Found

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "/usr/lib/python3.4/concurrent/futures/", line 65, in _worker
File "/usr/lib/python3.4/concurrent/futures/", line 56, in run
File "/usr/lib/python3.4/concurrent/futures/", line 504, in set_exception
File "/usr/lib/python3.4/concurrent/futures/", line 297, in _invoke_callbacks
File "/usr/lib/python3/dist-packages/umake/network/", line 185, in _one_done
File "/usr/lib/python3/dist-packages/umake/network/", line 193, in _done
File "/usr/lib/python3/dist-packages/umake/frameworks/", line 83, in done
File "/usr/lib/python3/dist-packages/umake/ui/", line 35, in return_main_screen
File "/usr/lib/python3/dist-packages/umake/ui/cli/", line 53, in _return_main_screen
File "/usr/lib/python3/dist-packages/umake/", line 141, in quit
raise self.ReturnMainLoop()

Ubuntu make seems to be working OK otherwise - Android Tools installed fine.



This comment has been minimized.


didrocks commented Apr 28, 2015

Thanks for reporting this bug.

It seems it was a temporary 404 from eclipse's website. I don't get it here, do you mind retrying? I guess the error message could be a little bit better handled to remove the stacktrace and only print "HTTPError: 404 Client Error: Not Found", what do you think?


This comment has been minimized.


Tinche commented Apr 28, 2015

my first thought was that the Eclipse folks changed the URLs, but it actually works for me. Running

$ curl '' -v
* Hostname was NOT found in DNS cache
*   Trying
* Connected to ( port 443 (#0)
* TLS 1.0 connection using TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA
* Server certificate: *
* Server certificate: DigiCert SHA2 High Assurance Server CA
* Server certificate: DigiCert High Assurance EV Root CA
> GET /downloads/download.php?file=/technology/epp/downloads/release/luna/R/eclipse-standard-luna-R-linux-gtk-x86_64.tar.gz.md5&r=1 HTTP/1.1
> User-Agent: curl/7.37.1
> Host:
> Accept: */*
< HTTP/1.1 302 Found
< Date: Tue, 28 Apr 2015 09:09:31 GMT
* Server Apache is not blacklisted
< Server: Apache
< Cache-control: no-cache, max-age=86400
< Location:
< Expires: Wed, 29 Apr 2015 09:09:31 GMT
< Access-Control-Allow-Origin: ; ; ;
< Access-Control-Allow-Methods: GET
< X-NodeID: (null)
< X-Frame-Options: SAMEORIGIN
< Vary: Accept-Encoding
< Content-Length: 0
< Content-Type: text/html; charset=utf-8

This URL will actually redirect to a chosen proxy, presumably near to you. Try running the same command as me (curl) and see what happens. It's possible the proxy chosen for you doesn't have the file; in that case this should be reported to Eclipse.


This comment has been minimized.

leogaggl commented Apr 28, 2015

Thanks for the quick reply ! I agree that some more shorter error message would be nice !

Personally I would find it usefully if it actually includes the URL that is throwing the 404 - as it makes troubleshooting a lot easier.

Turns out that this is a problem with Eclipse's geographic mirrors. The mirror I am getting is - which actually throws the 404.

Not sure how you guys could prevent that. Probably similar to the APT retry mechanism that it tries the next mirror if it returns a 404. Or default to the Eclipse Main DL site perhaps ?

Thanks for your help - keep up the great work !


This comment has been minimized.

leogaggl commented Apr 29, 2015

Been re-trying this a few times, but unfortunately the AARNET mirror seems not to sync that file properly and returns a 404.

I might have to override the URL in /usr/lib/python3/dist-packages/umake/frameworks/


This comment has been minimized.


didrocks commented Apr 30, 2015

Please contact the eclipse foundation for the mirror, we don't have a list of available mirrors, it's all done server-side and I don't really fancy a duplicated version (because of the maintainance cost: it's going to break).

On the other issue (error showing up on the stacktrace), it happened that an annotation was missing on the download function (@MainLoop.in_mainloop_thread), so 2 exceptions were raised in a row if the download doesn't complete and you didn't get the nice wrapping. This only happened in one framework: the eclipse ide one, congrats for finding it :p

You will get something like:
ERROR: An error occurred while downloading : 404 Client Error: Not Found

Fixing it in trunk (referencing and renaming this bug report).

@didrocks didrocks changed the title from Eclipse install errror - clean install on 15.04 Vivid to Print a better Eclipse download error on server-side error. Apr 30, 2015

didrocks added a commit that referenced this issue Apr 30, 2015

Print a better Eclipse download error on server-side issue
This fixes bug #90, where the @MainLoop.in_mainloop_thread annotation was
missing. We didn't return to the mainloop, consequently, 2 exceptions were
raised in a row to quit the application in the cli flavor instead of printing
the nicely wrapped error message.

@didrocks didrocks closed this Apr 30, 2015

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment