-
Notifications
You must be signed in to change notification settings - Fork 1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Action Runner image doesn't support setup-ruby #2892
Comments
Nothing to add other than I'm having the exact same issue. |
Still facing the issue, any solutions? |
This was one of the top hits on Google so I thought this may help someone. I'm using a self-hosted runner and I needed to create the folder |
I've done this as a workaround in my custom docker image that inherits from RUN mkdir -p /opt/hostedtoolcache && chown -R runner:runner /opt/hostedtoolcache I hope this helps people with the same problem |
This issue is stale because it has been open 365 days with no activity. Remove stale label or comment or this will be closed in 15 days. |
Describe the bug
When using the action runner image, the setup-ruby action is not supported out of the box.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
As recommended in the guides, I expect the setup action for ruby to be able to complete correctly. It looks like however that the expected global
RUNNER_TOOL_CACHE
path is not available on the container, but this path is required because prebuild rubies are generated in this path. See this section for more info: https://github.com/ruby/setup-ruby#using-self-hosted-runnersRunner Version and Platform
239.0
Linux.
What's not working?
The

Error: Error: EACCES: permission denied, mkdir '/opt/hostedtoolcache'
doesn't exist, and the runner cannot write to it.The text was updated successfully, but these errors were encountered: