travis-ci / travis.rb

Travis CI Client (CLI and Ruby library)

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Could not download rvm-installer in travis ci

BeastRush1231 opened this issue · comments

Hello,

I'm not sure the problem is in travis or rvm, so I duplicate the same problem.

I'm running travis CI and install rvm with 3.0.0, yesterday was all fine

but today my ci running until rvm get head got error

  $ rvm get head
  Downloading https://get.rvm.io
  Could not download rvm-installer, please report to https://github.com/rvm/rvm/issues
  The command "rvm get head" failed and exited with 60 during .

I google but still have no idea about what's wrong...

Chester


update:

Another repo with rvm 2.7.1 version can pass now, then I changed to 3.0.0 got the same problem ↑.
So I think the problem is in version 3.0.0, hope it will help to fix thx!

In rvm repo issue: rvm/rvm#5133

Reiterating it here, incase it's a travis issue, hope this helps

We're also experiencing the same issue with Ruby 3.0.1

We were able to resolve it in the mean time by removing the rvm specification, and used .ruby-version file to specify our Ruby version.
https://docs.travis-ci.com/user/languages/ruby/#using-ruby-version

Also switched my dist to focal. I got the same error if I use xenial.

Looks like the same issue here daddyz/phonelib#243

I was able to resolve this on Ruby 3.0.2 by removing dist and rvm key from my config. It could pick the ruby version from .ruby-version file.

I manage to fix my builds simply by adding dist: focal to my .travis.yml. My Travis builds was running on Xenial before (by default, I didn't have dist set to anything), which is Ubuntu 16.04. That's 6 years old now, time to upgrade 😃