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
Gradle won't install #445
Comments
I experience this as well. OS: Linux AMD64, Fedora 24
Apparently
Looks like this is not a standard redirect:
However the latter does not fit to the first response from the server (nginx vs. Apache)
|
Might be an issue with some transparent proxies on my work network. However, updating sdkman itself worked. So does installing vertx. There's a similar redirection for it:
|
Comparing my own outputs and matching curl's output to wget's, I think that it is a problem on Gradle's side. Something with the 301 redirect probably, https://services.gradle.org/distributions/gradle-2.14.1-bin.zip → https://downloads.gradle.org/distributions/gradle-2.14.1-bin.zip |
Thanks xasx for the help. I've installed sdkman today but anyway forced an upgrade. I tried installing vertx and it works. |
@rodrigomalara sdkman retrieves downloads from a resource on https://api.sdkman.io/download/gradle/2.14.1?platform=Linux It is implicitly being built from the pattern
I haven't found a way to override this for specific candidates so far. Probably it would be enough to redirect to the downloads.gradle.org URI instead of the services.gradle.org one. |
Workaround: Download manually and copy the |
Created a topic in their forum to help sorting this out: https://discuss.gradle.org/t/zip-download-redirect-and-sdkman/18629?u=xasx |
I've just tried this locally and have no problem whatsoever atm. Curl follows the redirects without any issues. It could have been a problem with one of the proxies, or even with a CDN. Could you please try again and let me know if this is resolved? @xasx the download endpoint that you were calling will give a 404 because the HEAD method is not supported, only GET. |
@marc0der In fact it works now, at least for me. @rodrigomalara Perhaps you can also re-check. |
No further response so closing this issue. |
I experienced this same issue last night, I finally resorted to downloading gradle, unzipping and installing manually. Was closing premature? BTW I thought my issue might be caused by installing unxutils.zip instead of cygwin, but when I removed zip and unzip in unxutils , then used cygwin instead I still got the same "Stop! The archive was corrupt and has been removed!" error |
same problem using curl -s get.sdkman.io inspecting the install script I found the url called for downloading is https://api.sdkman.io/1/res?platform=Linux&purpose=install this returns a 404 from a tomcat server on bintray.com https://bintray.com/artifact/download/sdkman/generic/sdkman-cli-5.2.0%2B125.zip |
great! now who fixes it ?
you me, someone else or the people who own bintray.com #-------------------------------------------------------
# Thomas Bodine, http://www.tommythegeek.com
# Dancing to the music life has given me.
# Skipper S/V Frimi WWP 19 #1029
From: Philippe Chartrand <notifications@github.com>
To: sdkman/sdkman-cli <sdkman-cli@noreply.github.com>
Cc: Thomas Bodine <github@tommythegeek.com>; Comment <comment@noreply.github.com>
Sent: Monday, December 5, 2016 4:54 PM
Subject: Re: [sdkman/sdkman-cli] Gradle won't install (#445)
same problem using curl -s get.sdkman.ioinspecting the install script I found the url called for downloading ishttps://api.sdkman.io/1/res?platform=Linux&purpose=installthis returns a 404 from a tomcat server on bintray.comhttps://bintray.com/artifact/download/sdkman/generic/sdkman-cli-5.2.0%2B125.zip—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub, or mute the thread.
|
This had nothing to do with Gradle not downloading. What you were experiencing was due to the sdkman binary not being published to bintray after the release of 5.2.0. I rectified this. |
Thanks for correcting the situation. |
I'm a newbie and just installed sdk on a Windows 8.1 machine running cygwing.
Installation went smooth but when I try to install gradle I get the following message:
Rodrigo@rodrigo-pc ~
$ sdk install gradle
Downloading: gradle 2.14.1
In progress...
################################################################## 100.0%
End-of-central-directory signature not found. Either this file is not
a zipfile, or it constitutes one disk of a multi-part archive. In the
latter case the central directory and zipfile comment will be found on
the last disk(s) of this archive.
unzip: cannot find zipfile directory in one of /home/Rodrigo/.sdkman/archives/gradle-2.14.1.zip or
/home/Rodrigo/.sdkman/archives/gradle-2.14.1.zip.zip, and cannot find /home/Rodrigo/.sdkman/archives/gradle-2.14.1.zip.ZIP, period.
Stop! The archive was corrupt and has been removed! Please try installing again.
Thanks in advance for any help
The text was updated successfully, but these errors were encountered: