Skip to content

zstd -d: no such file or directory #809

@stelescuraul

Description

@stelescuraul

Hello, I have an issue regarding restoring caches on self hosted runners.
I am building the cache in a github runner, then in my self hosted runner, I am trying to restore it. I can see that the cache is actually being downloaded, but then when the tar command is running, it is failing to unpack it. Here's the log for it:

##[debug]Save intra-action state CACHE_KEY = ...e6f4
##[debug]Resolved Keys:
##[debug]["...e6f4"]
##[debug]Checking zstd --version
##[debug]*** zstd command line interface 64-bits v1.5.2, by Yann Collet ***
##[debug]Resource Url: url here
::add-mask::***
##[debug]Cache Result:
##[debug]{"scope":"refs/heads/dev","cacheKey":"...e6f4","cacheVersion":"...4fc88","creationTime":"2022-05-26T13:02:33.1933333Z","archiveLocation":"***"}
##[debug]Archive Path: /home/user/actions-runner/actions-runner/_work/_temp/...efdd/cache.tzst
##[debug]Use Azure SDK: true
##[debug]Download concurrency: 8
##[debug]Request timeout (ms): 30000
##[debug]Downloading segment at offset 0 with length 643139890...

Received 634751282 of 643139890 (98.7%), 40.3 MBs/sec
Received 643139890 of 643139890 (100.0%), 37.0 MBs/sec
Cache Size: ~613 MB (643139890 B) -> Cache downloaded

/usr/bin/tar --use-compress-program zstd -d -xf /home/user/actions-runner/actions-runner/_work/_temp/id/cache.tzst -P -C /home/user/actions-runner/actions-runner/_work/repo/repo
tar (child): zstd -d: Cannot exec: No such file or directory
tar (child): Error is not recoverable: exiting now
/usr/bin/tar: Child returned status 2
/usr/bin/tar: Error is not recoverable: exiting now
Warning: Tar failed with error: The process '/usr/bin/tar' failed with exit code 2

Basically, I can see the archive being downloaded in the folder but then i see the error in the output and the archive is gone.

When restoring cache from a Github runner, the tar command looks exactly the same but the cache is restored.

Cache Size: ~613 MB (643139890 B)
/usr/bin/tar --use-compress-program zstd -d -xf /home/runner/work/_temp/id/cache.tzst -P -C /home/runner/work/repo/repo
Cache restored successfully

In the self hosted runner, i do have tar and zstd installed as you can see from debug outputs as well. This of course results in a cache miss.

Any idea on what this particular issue is all about? Am I missing something and this Is just a configuration error?

Metadata

Metadata

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions