Skip to content

Fix permission denied error at checkout step in OSS CI #2204

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

Closed
wants to merge 1 commit into from

Conversation

spcyppt
Copy link
Contributor

@spcyppt spcyppt commented Dec 11, 2023

Differential Revision: D52054787

Copy link

netlify bot commented Dec 11, 2023

Deploy Preview for pytorch-fbgemm-docs canceled.

Name Link
🔨 Latest commit b0c534b
🔍 Latest deploy log https://app.netlify.com/sites/pytorch-fbgemm-docs/deploys/6577ba9827ab880008bbd39f

@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D52054787

spcyppt pushed a commit to spcyppt/FBGEMM that referenced this pull request Dec 11, 2023
Summary: Pull Request resolved: pytorch#2204

Differential Revision: D52054787
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D52054787

spcyppt pushed a commit to spcyppt/FBGEMM that referenced this pull request Dec 12, 2023
Summary: Pull Request resolved: pytorch#2204

Differential Revision: D52054787
Summary:
OSS CI jobs often failed at checkout step with error 
`Error: File was unable to be removed
Error: EACCES: permission denied, rmdir '/home/ec2-user/actions-runner/_work/FBGEMM/FBGEMM/3'`

This is because during the build process of one job, the script executes installations of dependencies in the folder under different user (e.g.,`root` in Nova job). In the subsequent job run on the same runner, `ec2-user` tries to clean up the folder but unable able to, causing the permission denied error.

Thank you huydhn for looking into the log and suggesting the fix.


Differential Revision: D52054787
spcyppt pushed a commit to spcyppt/FBGEMM that referenced this pull request Dec 12, 2023
Summary:
OSS CI jobs often failed at checkout step with error 
`Error: File was unable to be removed
Error: EACCES: permission denied, rmdir '/home/ec2-user/actions-runner/_work/FBGEMM/FBGEMM/3'`

This is because during the build process of one job, the script executes installations of dependencies in the folder under different user (e.g.,`root` in Nova job). In the subsequent job run on the same runner, `ec2-user` tries to clean up the folder but unable able to, causing the permission denied error.

Thank you huydhn for looking into the log and suggesting the fix.


Differential Revision: D52054787
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D52054787

@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D52054787

@facebook-github-bot
Copy link
Contributor

This pull request has been merged in 9747336.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants