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

Fails on tar exit code 1 on ubuntu-latest #689

Closed
cyberpwnn opened this issue Dec 2, 2021 · 13 comments
Closed

Fails on tar exit code 1 on ubuntu-latest #689

cyberpwnn opened this issue Dec 2, 2021 · 13 comments
Assignees
Labels
bug Something isn't working

Comments

@cyberpwnn
Copy link

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
@vsvipul
Copy link
Contributor

vsvipul commented Dec 21, 2021

Hi @cyberpwnn ! Is the repo on which you are using cache public? If yes, can you share link to the workflow run. If not, can you share the logs here?

@vsvipul vsvipul added the bug Something isn't working label Dec 21, 2021
@MatthieuLeboeuf
Copy link

Hello,
I have the same error
logs
iAMjpav

@dopplershift
Copy link

Seeing the same issue on this repo. Here's a representative action run:

Post job cleanup.
Post job cleanup.
/usr/bin/tar --posix --use-compress-program zstd -T0 -cf cache.tzst -P -C /home/runner/work/MetPy/MetPy --files-from manifest.txt
/usr/bin/tar: ../../../work/_temp/bdee9e41-e8-4f2a-9912-6eb32de36aa/cache.tzst: file changed as we read it
Warning: Tar failed with error: The process '/usr/bin/tar' failed with exit code 1
Post job cleanup.
Cache hit occurred on the primary key setup-python-Linux-pip-9225292fdf311547e1fda261cbc2734e26bc2c516bdcf7d87f5c7af6de21fb8c, not saving cache.

@sammcj
Copy link

sammcj commented May 30, 2022

Can confirm this is still an issue.

zstd is installed but:

/bin/tar --posix --use-compress-program zstd -T0 -cf cache.tzst -P -C /home/ec2-user/actions-runner/_work/my-repo/my-repo --files-from manifest.txt
tar (child): zstd -T0: Cannot exec: No such file or directory
tar (child): Error is not recoverable: exiting now

@kotewar
Copy link
Contributor

kotewar commented May 30, 2022

@sammcj - your error seems to be a different one as the file/directory doesn't exist at the first place. Can you please check if the path(s) that you have provided in your configuration exist?

@kotewar
Copy link
Contributor

kotewar commented May 30, 2022

@MatthieuLeboeuf, @dopplershift @cyberpwnn can you please share the path (or list of folders) used for caching and approximate cache size after compression in your respective repos when you came across this issue?

@dopplershift
Copy link

So for my failure, I'm caching ~/local. It's the build products from the PROJ library to save me from building later, so maybe a few MB?

@kotewar
Copy link
Contributor

kotewar commented Jun 6, 2022

@dopplershift thanks for sharing the path. The logs you have shared are not available anymore. Requesting you to please share the run if you come across the situation again.

@dopplershift
Copy link

It's been failing pretty consistently for the last 6 months, so I appreciate you taking a look. Here's the most recent failure from last night.

@kotewar
Copy link
Contributor

kotewar commented Jun 7, 2022

@dopplershift I am planning to release a fix (v3.0.4) today, I'll let you know once its available for testing.

@kotewar
Copy link
Contributor

kotewar commented Jun 7, 2022

v3.0.4 is out and the same can be used to test this issue (no need to change anything in the workflow, actions/cache@v3 will point to the latest changes).

Do let us know if you come across the same problem again.

@kotewar
Copy link
Contributor

kotewar commented Jun 10, 2022

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

@kotewar kotewar closed this as completed Jun 10, 2022
@dopplershift
Copy link

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.

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

7 participants