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 job currently broken because Open SSL 1.0.1 tar file has moved #145

Closed matt-dalton closed 2 months ago

matt-dalton commented 2 months ago

Orb version:

2.1.3

What happened:

We use the install job to install ruby version 2.7.7:

- ruby/install:
                  version: 2.7.7

Since earlier today, running the job gives us:

Required ruby-2.7.7 is not installed.
To install do: 'rvm install "ruby-2.7.7"'
Did not find supported openssl version. Installing Openssl rvm package.
Required ruby-2.7.7 is not installed.
To install do: 'rvm install "ruby-2.7.7"'

Beware, 'rvm pkg ...' is deprecated, read about the new autolibs feature: 'rvm help autolibs'.

Checking requirements for ubuntu.
Installing requirements for ubuntu.
Updating system....
Installing required packages: gawk, automake, bison, libffi-dev, libgdbm-dev, libncurses5-dev, libtool, libyaml-dev, sqlite3, libreadline-dev^@^@............
Requirements installation successful.
Fetching openssl-1.0.1i.tar.gz to /home/circleci/.rvm/archives
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
  0   127    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
curl: (22) The requested URL returned error: 404
The requested url does not exist(22): 'https://www.openssl.org/source/openssl-1.0.1i.tar.gz'
Checking fallback: ftp://www.openssl.org/source/openssl-1.0.1i.tar.gz
Checking fallback: https://www.mirrorservice.org/sites/www.openssl.org/source/openssl-1.0.1i.tar.gz
No fallback URL could be found, try increasing timeout with:

    echo "export rvm_max_time_flag=20" >> ~/.rvmrc

Please note that it's required to reinstall all rubies:

    rvm reinstall all --force

Updating openssl certificates....
Checking requirements for ubuntu.
Requirements installation successful.
Installing Ruby from source to: /home/circleci/.rvm/rubies/ruby-2.7.7, this may take a while depending on your cpu(s)...
ruby-2.7.7 - #downloading ruby-2.7.7, this may take a while depending on your connection...
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100 14.1M  100 14.1M    0     0  74.5M      0 --:--:-- --:--:-- --:--:-- 74.9M
No checksum for downloaded archive, recording checksum in user configuration.
ruby-2.7.7 - #extracting ruby-2.7.7 to /home/circleci/.rvm/src/ruby-2.7.7.....
ruby-2.7.7 - #configuring.............................................................
ruby-2.7.7 - #post-configuration..
ruby-2.7.7 - #compiling.........................................................................................
ruby-2.7.7 - #installing.............
Error running '__rvm_make install',
please read /home/circleci/.rvm/log/1721830917_ruby-2.7.7/install.log
There has been an error while running make install. Halting the installation

This is failing because it looks like the OpenSSL package has moved.

Expected behavior:

Open SSL should point to the new location

Additional Information:

My container config is

android_container_config: &android_container_config
    docker:
        - image: cimg/android:2023.10.2-node
    resource_class: xlarge

Happy to send across any more info that might help

matt-dalton commented 2 months ago

Ahhh looks like this was transient...will re-raise if it turns out not to be