question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Fails on tar exit code 1 on ubuntu-latest

See original GitHub issue

I 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:closed
  • Created 2 years ago
  • Reactions:2
  • Comments:13 (6 by maintainers)

github_iconTop GitHub Comments

2reactions
dopplershiftcommented, Jun 12, 2022

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.

1reaction
kotewarcommented, Jun 10, 2022

I am hoping the problem is resolved for all now. Hence closing the issue.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found