Fails on tar exit code 1 on ubuntu-latest
See original GitHub issueI need to share around a small but heavily processed repository to multiple jobs,
runs-on: ubuntu-latest
steps:
- name: Cache Repository
uses: actions/cache@v2
with:
path: |
~/
!~/.git/
Fails with
Post job cleanup.
/usr/bin/tar --posix --use-compress-program zstd -T0 -cf cache.tzst -P -C /home/runner/work/xxx/xxx--files-from manifest.txt
/usr/bin/tar: ../../../work/_temp/6483fbb9-3579-4fb0-a582-3316b336d5a9/cache.tzst: file changed as we read it
Warning: Tar failed with error: The process '/usr/bin/tar' failed with exit code 1
Issue Analytics
- State:
- Created 2 years ago
- Reactions:2
- Comments:13 (6 by maintainers)
Top Results From Across the Web
github action failing? tar empty archive, docker run failed with ...
tar : empty archive tar all files into /tmp/891353322/bC24rHhFAi.tar exit status 1 ##[error]Docker run failed with exit code 1.
Read more >Podman 2.0.6 pull and run fails on ubuntu image #7914 - GitHub
When doing a podman pull or a podman run on docker.io/library/ubuntu:latest it fails. Steps to reproduce the issue: podman pull docker.io/ ...
Read more >tar: Exiting with failure status due to previous errors - Super User
I do not see any error messages whilst the script is working, and like I said, the produced file can be uncompressed with...
Read more >Tar error at XXX XXX X, code 1 - what is the meaning ?
If tar was given `--create', `--append' or `--update' option, this exit code means that some files were changed while being archived and so...
Read more >Tar exit code non-zero - backup - Ask Ubuntu
This results in an exit code of 1. However, I want to run this command in a script and if the returncode is...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I can confirm that moving to
@v3
fixes this particular issue for me.I’m having a different problem now where it can’t find the cache (after successfully saving), but the fact that you can’t list what caches are present it making debugging more than a little difficult. I’ll open an issue if I can ever get my hands around it.
I am hoping the problem is resolved for all now. Hence closing the issue.