-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
EACCES: permission denied #1088
Comments
Same issue here, |
+1 I seem to be getting this error |
+1 |
Hello @shuhaib-kk, |
Hello Everyone, we have investigated the issue and we are able to set up the above mentioned node versions 16.20.2, 18.20.0, 20.15.0 successfully on the github hosted runner ubuntu-latest in this workflow run. |
Hi @aparnajyothi-y, I am unable to view the workflow you have shared. We are using a self hosted runner on EC2 with Amazon Linux 3. Here is the error. Error: EACCES: permission denied, mkdir '/home/ec2-user/actions-runner/_work/_tool/node/16.20.2' I have to delete the folder manually in my workflow before the node setup as a workaround with sudo permissions as I can't find any other way. |
Hello @orbi-ci-bot, Apologies,I have updated the visibility of this test workflow
Please try this resolution and kindly let us know incase of any issues. |
Hello @orbi-ci-bot, Please update us about the resolution from your end and kindly let us know incase of any issues. |
I had hoped for a solution without sudo permissions. I am already granting the permissions before running the setup step. Any idea why it doesn't have permissions automatically? Since GHA is creating the folder, it should have permissions to delete/modify it right? |
Hello @orbi-ci-bot, Thank you for the response and self-hosted runners for GitHub Actions do not automatically have the same permissions as the hosted runners because they run on the own customised infrastructure and therefore can be configured with different security and permission settings.
By properly configuring these permissions, you can ensure that your GitHub Actions workflows have the access they need to function correctly on self-hosted runners. |
Hello @shuhaib-kk , @orbi-ci-bot, Please let us in know in case of any further concerns on the above information. |
Hello @shuhaib-kk, @orbi-ci-bot, Closing this issue for now as we haven't heard anything for a long time. Please feel free to reach out to us if you still have any concerns or need clarifications to reopen this issue. |
Am getting the following error.
EACCES: permission denied, mkdir '/home/gh-runner/actions-runner/_work/_tool/node/16.20.2'
Falling back to download directly from Node
Acquiring 16.20.2 - x64 from https://nodejs.org/dist/v16.20.2/node-v16.20.2-linux-x64.tar.gz
Extracting ...
/bin/tar xz --strip 1 --warning=no-unknown-keyword -C /home/gh-runner/actions-runner/_work/_temp/67e93bd8-a888-4871-b944-ff1884bf5c4a -f /home/gh-runner/actions-runner/_work/_temp/bb0f2a75-7344-4727-bcfe-ba452219c4af
Adding to the cache ...
Error: EACCES: permission denied, mkdir '/home/gh-runner/actions-runner/_work/_tool/node/16.20.2'
using actions/setup-node@v3
The text was updated successfully, but these errors were encountered: