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

Permission denied when restoring cache #44

Closed
enell opened this issue Mar 13, 2020 · 0 comments
Closed

Permission denied when restoring cache #44

enell opened this issue Mar 13, 2020 · 0 comments
Labels
bug Something isn't working

Comments

@enell
Copy link

enell commented Mar 13, 2020

Orb version

3.0.1

What happened

Permission denied when restoring cache in the yarn_install command

Size: 278 MiB
Cached paths:
  * /root/.cache/yarn

Downloading cache archive...
Validating cache...

Unarchiving cache...

Failed to unarchive cache

Error untarring cache: Error extracting tarball /tmp/cache468968038 : tar: root/.cache/yarn: Cannot mkdir: Permission denied tar: root/.cache/yarn/v6: Cannot mkdir: Permission denied tar: root/.cache/yarn/v6/.tmp: Cannot mkdir: Permission denied tar: root/.cache/yarn/v6/npm-@babel-code-frame-7.8.3-33e25903d7481181534e12ec0a25f16b6fcf419e-integrity: Cannot mkdir: Permission denied tar: root/.cache/yarn/v6/npm-@babel-code-frame-7.8.3-33e25903d7481181534e12ec0a25f16b6fcf419e-integrity/node_modules: Cannot mkdir: Permission denied tar: root/.cache/yarn/v6/npm-@babel-code-frame-7.8.3-33e25903d7481181534e12ec0a25f16b6fcf419e-integrity/node_modules/@babel: Cannot mkdir: Permission denied tar: root/.cache/yarn/v6/npm-@babel-code-frame-7.8.3-33e25903d7481181534e12ec0a25f16b6fcf419e-integrity/node_modules/@babel/code-frame: Cannot mkdir: Permission denied tar: root/.cache/yarn/v6/npm-@babel-code-frame-7.8.3-33e25903d7481181534e12ec0a25f16b6fcf419e-integrity/node_modules/@babel/code-frame/.yarn-metadata.json: Cannot open: Permission denied tar: root/.cache/yarn/v6/npm-@babel-code-frame-7.: exit status 2

Expected behavior

Should be able to restore cache without issue.

yarn install is using ~/.cache/yarn as cache folder and this will depend on what the user is on the executer that is running the job. Consider using cache folder relative to the workspace or the system tmp folder (/tmp/) instead

@enell enell added the bug Something isn't working label Mar 13, 2020
enell added a commit to enell/react-native-circleci-orb that referenced this issue Mar 13, 2020
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

2 participants