Repository navigation
Upgrade from ubuntu18 to ubuntu22 failed #469
Copy link
Copy link
Closed as not planned
Description
Ensure the following before filing this issue
-
I verified it reproduces with the latest version with
- uses: ruby/setup-ruby@v1(see Versioning policy) -
[] I tried to reproduce the issue locally by following the workflow steps (including all commands done by
ruby/setup-ruby, except forDownloading Ruby&Extracting Ruby),
and it did not reproduce locally (if it does reproduce locally, it's not a ruby/setup-ruby issue)
Are you running on a GitHub-hosted runner or a self-hosted runner?
GitHub-hosted runner
The workflow code or a link to the workflow file
- uses: ruby/setup-ruby@v1
env:
ImageOS: ubuntu22
with:
ruby-version: 3.0.2
bundler-cache: true
### Link to the log of a failed workflow job, or to a gist with the output
https://gist.github.com/PavelSusloparov/9fc9e328dd17e06751eff1521e8e9340
### The command and output of the failing step
```shell
Run ruby/setup-ruby@v1
/bin/docker exec 1e6d83e0d3886871d7791a6945dd4dd64b228596261ae4c98cfdb84c4b9b19d1 sh -c "cat /etc/*release | grep ^ID"
Modifying PATH
Entries added to PATH to use selected Ruby:
/opt/hostedtoolcache/Ruby/3.0.2/x64/bin
Downloading Ruby
https://github.com/ruby/ruby-builder/releases/download/toolcache/ruby-3.0.2-ubuntu-22.04.tar.gz
Took 0.87 seconds
Extracting Ruby
/bin/tar -xz -C /opt/hostedtoolcache/Ruby/3.0.2 -f /__w/_temp/dec130f4-1643-4745-bea1-e95b68fd6c1b
Took 0.40 seconds
Print Ruby version
/opt/hostedtoolcache/Ruby/3.0.2/x64/bin/ruby --version
/opt/hostedtoolcache/Ruby/3.0.2/x64/bin/ruby: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.34' not found (required by /opt/hostedtoolcache/Ruby/3.0.2/x64/bin/ruby)
/opt/hostedtoolcache/Ruby/3.0.2/x64/bin/ruby: /lib/x86_64-linux-gnu/libm.so.6: version `GLIBC_2.35' not found (required by /opt/hostedtoolcache/Ruby/3.0.2/x64/lib/libruby.so.3.0)
/opt/hostedtoolcache/Ruby/3.0.2/x64/bin/ruby: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.33' not found (required by /opt/hostedtoolcache/Ruby/3.0.2/x64/lib/libruby.so.3.0)
/opt/hostedtoolcache/Ruby/3.0.2/x64/bin/ruby: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.32' not found (required by /opt/hostedtoolcache/Ruby/3.0.2/x64/lib/libruby.so.3.0)
/opt/hostedtoolcache/Ruby/3.0.2/x64/bin/ruby: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.34' not found (required by /opt/hostedtoolcache/Ruby/3.0.2/x64/lib/libruby.so.3.0)
Took 0.00 seconds
Error: The process '/opt/hostedtoolcache/Ruby/3.0.2/x64/bin/ruby' failed with exit code 1
### Any other notes?
Ubuntu18 support was removed in https://github.com/ruby/setup-ruby yesterday.
I tried to upgrade to ubuntu22, but this failed with the error I provided in above.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels
Activity
mlyskawinski commentedon Feb 28, 2023
Having the same issue, please bring back ubuntu -18, as this breaks a lot of pipelines
PavelSusloparov commentedon Feb 28, 2023
Yes please ^^
PavelSusloparov commentedon Feb 28, 2023
ended up stopping using the action in favor of a ruby docker container with the
bundle install --frozenstep.MSP-Greg commentedon Feb 28, 2023
That choice is made by GitHub, not by anyone involved in this repo.
See https://github.com/actions/runner-images
eregon commentedon Feb 28, 2023
See https://github.com/ruby/setup-ruby/releases/tag/v1.139.0
macos-10.15 and ubuntu-18.04 are deprecated and have a brownout period every week, so it's no longer possible to reliably build on those platforms with GH runners.
That means it's not possible to build Ruby binaries on these images reliably, and also jobs on such images fail during the brownout periods and will be completely removed in a month anyway.
So just change
ubuntu-18.04byubuntu-20.04orubuntu-22.04orubuntu-latest.You can also stick to
v1.138.0, but obviously your workflow will be broken on April 1 then: actions/runner-images#6002.If you are not using GitHub-hosted runners then indeed this is unfortunate, but unavoidable as Rubies are built on GitHub-hosted runners.
eregon commentedon Feb 28, 2023
Ah, I misread, the original report is about something failing on ubuntu-22.04, I'll look at that.
eregon commentedon Feb 28, 2023
It works fine on GitHub-hosted runners, as proven here:
https://github.com/eregon/setup-ruby-test/actions/runs/4297309313/jobs/7490118600
You said you used
GitHub-hosted runnerbut then you setImageOS: ubuntu22manually, that doesn't make any sense.So either:
runs-on: ubuntu-22.04and don't specifyImageOS(that's telling this action the incorrect OS, that's pretty evil)Summary: do not set
ImageOS, that should be set in the runner, never in the workflow.eregon commentedon Feb 28, 2023
I guess I should bring back the code that gets the image version from the OS files, since people seem to misuse
ImageOSand don't understand implications of it :(eregon commentedon Mar 3, 2023
#473 so ImageOS will be ignored now.