Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Print a better Eclipse download error on server-side error. #90
I am getting the following error trying to install Eclipse:
ERROR: https://www.eclipse.org/downloads/download.php?file=/technology/epp/downloads/release/luna/R/eclipse-standard-luna-R-linux-gtk-x86_64.tar.gz.md5&r=1 couldn't finish download: 404 Client Error: Not Found
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
Ubuntu make seems to be working OK otherwise - Android Tools installed fine.
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 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.
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 http://mirror.aarnet.edu.au/pub/eclipse/technology/epp/downloads/release/luna/R/eclipse-standard-luna-R-linux-gtk-x86_64.tar.gz.md5 - 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 !
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:
Fixing it in trunk (referencing and renaming this bug report).