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

Fix file permission on GitHub gpu runners #373

Conversation

qthequartermasterman
Copy link
Contributor

When attempting to use cuda-toolkit with the official GitHub Actions GPU-runners, the log file '/var/log/cuda-installer.log' ends up not having read permissions for the default user. Because the base nvidia image has strange permissions (presumably for security reasons), when the installation of the cuda toolkit is done with sudo, the file is created by root, and is inaccessible to others. Consequently, the uploadArtifact function for that log file will fail.

This PR resets the file permissions for log files before calling uploadArtifact. I have tested this on a private repo, and I can successfully run the action with the change in this PR.

Thank you @robandpdx for the initial investigation in this comment.

@Jimver Jimver merged commit 7628297 into Jimver:master Nov 15, 2024
9 of 11 checks passed
@Jimver
Copy link
Owner

Jimver commented Nov 15, 2024

Thanks for the fix @qthequartermasterman!

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

Successfully merging this pull request may close these issues.

2 participants