CircleCI-Public / ruby-orb

The `circleci/ruby` orb source code.
https://circleci.com/developer/orbs/orb/circleci/ruby
MIT License
25 stars 53 forks source link

Install Ruby via RVM error #120

Open adamhancockcg opened 1 year ago

adamhancockcg commented 1 year ago

Orb version: 2.0.0

What happened:

We've started to see issues with this step see the output:

Searching for binary rubies, this might take some time.
Found remote file https://rvm_io.global.ssl.fastly.net/binaries/ubuntu/20.04/x86_64/ruby-2.6.8.tar.bz2
Checking requirements for ubuntu.
Installing requirements for ubuntu.
Updating system.....
Installing required packages: gawk, bison, libffi-dev, libgdbm-dev, libncurses5-dev, libtool, libyaml-dev, sqlite3, libreadline-dev...........
Requirements installation successful.
ruby-2.6.8 - #configure
ruby-2.6.8 - #download
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100 20.3M  100 20.3M    0     0   290M      0 --:--:-- --:--:-- --:--:--  290M
No checksum for downloaded archive, recording checksum in user configuration.
ruby-2.6.8 - #validate archive
ruby-2.6.8 - #extract
ruby-2.6.8 - #validate binary
ruby-2.6.8 - #setup
ruby-2.6.8 - #gemset created /home/circleci/.rvm/gems/ruby-2.6.8@global
ruby-2.6.8 - #importing gemset /home/circleci/.rvm/gemsets/global.gems.................there was an error installing gem gem-wrappers
..................there was an error installing gem rubygems-bundler
........................there was an error installing gem rvm
.......
ruby-2.6.8 - #generating global wrappers.................
Error running 'run_gem_wrappers regenerate',
please read /home/circleci/.rvm/log/1676546794_ruby-2.6.8/gemset.wrappers.global.log
ruby-2.6.8 - #gemset created /home/circleci/.rvm/gems/ruby-2.6.8
ruby-2.6.8 - #importing gemsetfile /home/circleci/.rvm/gemsets/default.gems evaluated to empty gem list
ruby-2.6.8 - #generating default wrappers.................
Error running 'run_gem_wrappers regenerate',
please read /home/circleci/.rvm/log/1676546794_ruby-2.6.8/gemset.wrappers.default.log
Using /home/circleci/.rvm/gems/ruby-2.6.8
/home/circleci/.rvm/scripts/override_gem: /home/circleci/.rvm/rubies/ruby-2.6.8/bin/gem: /usr/local/rvm/rubies/ruby-2.6.8/bin/ruby: bad interpreter: No such file or directory

Expected behavior:

A build from a few days agos:

Searching for binary rubies, this might take some time.
Found remote file https://rubies.travis-ci.org/ubuntu/20.04/x86_64/ruby-2.6.8.tar.bz2
Checking requirements for ubuntu.
Installing requirements for ubuntu.
Updating system.....
Installing required packages: gawk, bison, libffi-dev, libgdbm-dev, libncurses5-dev, libtool, libyaml-dev, sqlite3, libreadline-dev...........
Requirements installation successful.
ruby-2.6.8 - #configure
ruby-2.6.8 - #download
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
100 19.9M  100 19.9M    0     0  16.5M      0  0:00:01  0:00:01 --:--:-- 16.5M
No checksum for downloaded archive, recording checksum in user configuration.
ruby-2.6.8 - #validate archive
ruby-2.6.8 - #extract
ruby-2.6.8 - #validate binary
ruby-2.6.8 - #setup
ruby-2.6.8 - #gemset created /home/circleci/.rvm/gems/ruby-2.6.8@global
ruby-2.6.8 - #importing gemset /home/circleci/.rvm/gemsets/global.gems..................................
ruby-2.6.8 - #generating global wrappers........
ruby-2.6.8 - #gemset created /home/circleci/.rvm/gems/ruby-2.6.8
ruby-2.6.8 - #importing gemsetfile /home/circleci/.rvm/gemsets/default.gems evaluated to empty gem list
ruby-2.6.8 - #generating default wrappers........
Using /home/circleci/.rvm/gems/ruby-2.6.8

Additional Information:

I've tried with various versions of 2.6.xxx and they all experience the same issue.

marboledacci commented 1 week ago

Please provide more details about how you are getting that error.