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
kiex cannot find any known version #3269
Comments
@BanzaiMan My Elixir builds are still using the default version of Elixir. See this sample build: https://travis-ci.org/danielberkompas/ex_twilio/jobs/56160581#L81 For some reason, it looks like kiex is unable to install the specified version. |
@danielberkompas Looks like a temporary issue with connectivity with GitHub. https://travis-ci.org/danielberkompas/ex_twilio/jobs/57044720#L87 shows that it works. |
We can either retry, or fall back to 1.0.3. |
With travis-ci/travis-build@bbead30, we will retry up to 3 times. If it still fails after 3 times, then we have a real problem. |
Looks like this issue has resurfaced. I've got a string of builds that fail miserably (builds 54-74): https://travis-ci.org/DevL/plug_require_header/builds/58594973 |
Sorry about that. We are looking into this issue again. |
Could this be because of API rate limiting? Everything from the container setup is going to the GitHub API with the same IP Would be great to coerce some output from kiex from the curl command. I've been trying to reproduce this as well: https://travis-ci.org/roidrage/Radpath |
@roidrage I've contacted GitHub support for some insight. 😄 |
I'll drop some further debugging stuff to our fork of |
I was able to do it without hacking At least, for this instance, we are getting 403 from GitHub. I'll relay this information and see if we can resolve it. |
It's the rate limit. |
Thanks for looking into this, it's much appreciated! |
Another approach would be to package Elixir or to find a trust-worthy Elixir package. https://travis-ci.org/phoenixframework/phoenix/builds/65131002#L91 shows such a possibility. While it is conceivable that a build on Travis CI needs to switch Elixir version during the build, but I suspect that will be an exception. Having a consistently usable Elixir environment is probably more desirable. |
Resolves travis-ci/travis-ci#3269 If the desired Elixir version is not installed already, pull down package from s3.hex.pm, and set up Elixir runtime as kiex expects. 'kiex list' does not make network calls to GitHub, so that we should not reach GitHub's API rate limit.
So, the general strategy is to install Elixir from the binary package from s3.hex.pm if and only if the version is not pre-installed (which, at the moment, means anything other than 1.0.2). I am thinking that the presence of binary packages add very little additional burden on image provisioning, so we'll have most (if not all) of 1.0.x onward preinstalled starting with the next update. |
https://staging.travis-ci.org/BanzaiMan/travis_staging_test/builds/428572#L90
Not quite sure why, but
kiex
cannot find known Elixir releases. As a result (and because there is a problem with the build script), non-default version of Elixir cannot be used at the moment.The text was updated successfully, but these errors were encountered: