Skip to content
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

tar Cannot mkdir: Permission denied error at strange path #362

Closed
2 of 5 tasks
mbergal opened this issue Nov 19, 2021 · 5 comments
Closed
2 of 5 tasks

tar Cannot mkdir: Permission denied error at strange path #362

mbergal opened this issue Nov 19, 2021 · 5 comments
Labels
bug Something isn't working

Comments

@mbergal
Copy link

mbergal commented Nov 19, 2021

Description:

Action fails to restore cache

Action version:
actions/setup-node@v2

Platform:

  • Ubuntu
  • macOS
  • Windows

Runner type:

  • Hosted
  • Self-hosted

Tools version:
npm 14

Repro steps:
image

@mbergal mbergal added bug Something isn't working needs triage labels Nov 19, 2021
@dmitry-shibanov
Copy link
Contributor

Hello @mbergal. Thank you for your report. It looks like a user or tool on your self-hosted runner does not have permissions to write in /home/ubuntu/.npm/_cacache. Could you please run your job under the user with appropriate permissions.

The setup-node action uses toolkit/cache to save/restore cache. You can try to find similar issue in the toolkit or actions/cache repositories.

@mbergal
Copy link
Author

mbergal commented Nov 26, 2021

The command in question /usr/bin/tar -z -xf cache.tgz -P -C /data/actions-runner/_work/ai-general/ai-general is trying to create something not in /home/ubuntu/.npm/_cacache, but in /data. Is it expected?

@dmitry-shibanov
Copy link
Contributor

Hello @mbergal. Thank you for your response. For getting directory for cache we use the npm config get cache command. Do you change user or override cache directory (npm config set cache) ?

@dmitry-shibanov
Copy link
Contributor

Hello @mbergal. Do you have any updates or additional information ?

@dmitry-shibanov
Copy link
Contributor

Hello @mbergal. I'm going to close the issue. We've tried to reproduce from our side, but it works as expected. If you get any additional information or repro steps feel free to ping us.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants
@mbergal @dmitry-shibanov and others