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

GHA post cache job cleanup permission issues #161

Open
jhlegarreta opened this issue Jan 9, 2025 · 1 comment
Open

GHA post cache job cleanup permission issues #161

jhlegarreta opened this issue Jan 9, 2025 · 1 comment
Labels
bug Something isn't working

Comments

@jhlegarreta
Copy link
Collaborator

What happened?

GitHub actions post cache job clean up is raising a warning since it does not have permission to tar some directiories:
https://github.com/nipreps/nireports/actions/runs/12682317163/job/35347515432?pr=160

This likely comes from the path being used in the action:

What command did you use?

N/A

What version of the software are you running?

main

How are you running this software?

Other

Is your data BIDS valid?

Yes

Are you reusing any previously computed results?

No

Please copy and paste any relevant log output.

Post job cleanup.
/usr/bin/tar --posix -cf cache.tzst --exclude cache.tzst -P -C /home/runner/work/nireports/nireports --files-from manifest.txt --use-compress-program zstdmt
/usr/bin/tar: ../../../../../var/lib/apt/lists/partial: Cannot open: Permission denied
/usr/bin/tar: ../../../../../var/lib/apt/lists/lock: Cannot open: Permission denied
/usr/bin/tar: Exiting with failure status due to previous errors
Warning: Failed to save: "/usr/bin/tar" failed with error: The process '/usr/bin/tar' failed with exit code 2

Additional information / screenshots

N/A

@jhlegarreta jhlegarreta added the bug Something isn't working label Jan 9, 2025
@jhlegarreta
Copy link
Collaborator Author

Similar errors affect at least another NiPreps GHA workflow employing the actions/cache action, nifreeze:
https://github.com/nipreps/nifreeze/actions/runs/12795723598/job/35673716543#step:14:2

niworkflows and fmriprep are hitting a cache, so not saving it:
https://github.com/nipreps/niworkflows/actions/runs/12779415051/job/35624027846#step:22:2

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

1 participant