setup-ruby: bin/bundle failed with exit code 18

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 for Downloading 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

I'm getting the following issue: 


Error: Error: The process '/opt/hostedtoolcache/Ruby/3.2.0-rc1/x64/bin/bundle' failed with exit code 18
    at ExecState._setResult (/home/runner/work/_actions/ruby/setup-ruby/ee2113536afb7f793eed4ce60e8d3b26db912da4/dist/index.js:5340:25)
    at ExecState.CheckComplete (/home/runner/work/_actions/ruby/setup-ruby/ee2113536afb7f793eed4ce60e8d3b26db912da4/dist/index.js:5323:18)
    at ChildProcess.<anonymous> (/home/runner/work/_actions/ruby/setup-ruby/ee2113536afb7f793eed4ce60e8d3b26db912da4/dist/index.js:5217:27)
    at ChildProcess.emit (node:events:527:28)
    at maybeClose (node:internal/child_process:1092:16)
    at Process.ChildProcess._handle.onexit (node:internal/child_process:302:5)

The rails version i’m using is 3.2.0.

Link to the log of a failed workflow job, or to a gist with the output

https://gist.github.com/frmsaul/6812eeea0f96e98bd80aa08e5bc73e5b

The command and output of the failing step

Error: Error: The process '/opt/hostedtoolcache/Ruby/3.2.0-rc1/x64/bin/bundle' failed with exit code 18
    at ExecState._setResult (/home/runner/work/_actions/ruby/setup-ruby/ee2113536afb7f793eed4ce60e8d3b26db912da4/dist/index.js:5340:25)
    at ExecState.CheckComplete (/home/runner/work/_actions/ruby/setup-ruby/ee2113536afb7f793eed4ce60e8d3b26db912da4/dist/index.js:5323:18)
    at ChildProcess.<anonymous> (/home/runner/work/_actions/ruby/setup-ruby/ee2113536afb7f793eed4ce60e8d3b26db912da4/dist/index.js:5217:27)
    at ChildProcess.emit (node:events:527:28)
    at maybeClose (node:internal/child_process:1092:16)
    at Process.ChildProcess._handle.onexit (node:internal/child_process:302:5)


### Any other notes?

What would be a good way to learn what exit code 18 means? Couldn't find any mention of it in the bundler docs. 

About this issue

  • Original URL
  • State: closed
  • Created a year ago
  • Reactions: 2
  • Comments: 20 (5 by maintainers)

Most upvoted comments

You checked:

I verified it reproduces with the latest version with - uses: ruby/setup-ruby@v1 (see Versioning policy)

But you did not do it. In your log, 3.2.0-rc1 is picked because you use ruby/setup-ruby@ee2113536afb7f793eed4ce60e8d3b26db912da4. So I close this, and you can open another one which respects the template.