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.

Cache fails with zstd error - zstd -d: Cannot exec: No such file or directory

See original GitHub issue

Despite zstd being installed, the cache action fails as it appears to be looking for zstd in the wrong location.

  • Operation System: Amazon Linux 2
  • Action version: v3
  • Runner version: Latest stable

Job:

- uses: actions/checkout@v3
- name: Cache Maven repository
  uses: actions/cache@v3
  with:
    path: ~/.m2/repository
    key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
    restore-keys: |
      ${{ runner.os }}-maven-
Run actions/cache@v3
Received 0 of 4[7](https://github.com/OrgName/repo-name/runs/6702665797?check_suite_focus=true#step:3:8)5287217 (0.0%), 0.0 MBs/sec
Received 0 of 475287217 (0.0%), 0.0 MBs/sec
Received 4194304 of 4752[8](https://github.com/OrgName/repo-name/runs/6702665797?check_suite_focus=true#step:3:9)7217 (0.[9](https://github.com/OrgName/repo-name/runs/6702665797?check_suite_focus=true#step:3:10)%), 1.3 MBs/sec
Received 46137344 of 475287217 (9.7%), 11.0 MBs/sec
Received 83886080 of 475287217 (17.6%), 16.0 MBs/sec
Received [10](https://github.com/OrgName/repo-name/runs/6702665797?check_suite_focus=true#step:3:11)4857600 of 475287217 (22.1%), 16.7 MBs/sec
Received [13](https://github.com/OrgName/repo-name/runs/6702665797?check_suite_focus=true#step:3:14)4217728 of 475287217 (28.2%), 18.3 MBs/sec
Received 167772160 of 475287217 (35.3%), 20.0 MBs/sec
Received 197132288 of 475287217 (41.5%), 20.9 MBs/sec
Received 234881024 of 475287217 (49.4%), 22.4 MBs/sec
Received 268435456 of 475287217 (56.5%), 23.3 MBs/sec
Received 297795584 of 475287217 (62.7%), 23.6 MBs/sec
Received 339738624 of 475287217 (71.5%), 24.9 MBs/sec
Received 369098752 of 475287217 (77.7%), 25.1 MBs/sec
Received 406847488 of 475287217 (85.6%), 25.8 MBs/sec
Received 4362076[16](https://github.com/OrgName/repo-name/runs/6702665797?check_suite_focus=true#step:3:17) of 4752872[17](https://github.com/OrgName/repo-name/runs/6702665797?check_suite_focus=true#step:3:18) (91.8%), 26.0 MBs/sec
Received 471092913 of 475287217 (99.1%), 26.4 MBs/sec
Received 475287217 of 475287217 (100.0%), 26.2 MBs/sec
Cache Size: ~453 MB (475287217 B)
/bin/tar --use-compress-program zstd -d -xf /home/ec2-user/actions-runner/_work/_temp/469[19](https://github.com/OrgName/repo-name/runs/6702665797?check_suite_focus=true#step:3:20)ba1-0057-4976-990d-1f9cd28b3900/cache.tzst -P -C /home/ec2-user/actions-runner/_work/repo-name/repo-name
tar (child): zstd -d: Cannot exec: No such file or directory
tar (child): Error is not recoverable: exiting now
/bin/tar: Child returned status 2
/bin/tar: Error is not recoverable: exiting now
Warning: Tar failed with error: The process '/bin/tar' failed with exit code 2

Issue Analytics

  • State:closed
  • Created a year ago
  • Reactions:11
  • Comments:45 (10 by maintainers)

github_iconTop GitHub Comments

9reactions
harupycommented, Jun 2, 2022

Switching to v3 from v2 worked for me.

8reactions
caseyagraffcommented, Jun 2, 2022

Experiencing what I believe is a related error with cache@v2.

Can't use 'tar -xzf' extract archive file: /home/runner/work/_actions/_temp_87e210c3-fb31-497b-9ab0-da952e03417f/5c14691f-39b6-4ada-a092-3021917c4b2d.tar.gz. return code: 2.

Read more comments on GitHub >

github_iconTop Results From Across the Web

[r2.6][PR] Cannot find real source of dependency No such file ...
I am currently working on a relatively large PR to introduce ZSTD ... fatal error: zstd.h: No such file or directory #include <zstd.h> ......
Read more >
[SOLVED] running osu! gives me wine: could not load?
i am in my downloads folder cd /home/mokey/Downloads and its not working how it is in the tutorial. Code: Select all tar (child):...
Read more >
Error in compiling DifferentialEquantions on chromebook
I upgraded to julia 1.4.1 in chromebook, but I got a problem with ... zstd: Cannot exec: No such file or directory tar...
Read more >
Containerized Kopia server setup - General
Kopia running on my local Ubuntu-based NAS (called metal-mind), taking snapshots on a regular basis of all files on the NAS. Kopia running...
Read more >
Cannot exec: No such file or directory" from tar - Super User
1 Answer 1 ; 5. same solution worked for gzip, error was - tar (child): gzip: Cannot exec: No such file or directory....
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