cache icon indicating copy to clipboard operation
cache copied to clipboard

Tries to access zstd inside /root/.local directory for some reason

Open Dito-Orkodashvili opened this issue 8 months ago • 1 comments

I am using actions/cache@v4 and every time it tries to store cache or restore, it logs these errors:

Unexpected error attempting to determine if executable file exists '/root/.local/bin/zstd': Error: EACCES: permission denied, stat '/root/.local/bin/zstd' Unexpected error attempting to determine if executable file exists '/root/bin/zstd': Error: EACCES: permission denied, stat '/root/bin/zstd'

zstd is present in /usr/bin directory and PATH is also correct.

Dito-Orkodashvili avatar Apr 04 '25 11:04 Dito-Orkodashvili

same thing happens for us: Unexpected error attempting to determine if executable file exists '/usr/local/bin/aws/zstd': Error: ENOTDIR: not a directory, stat '/usr/local/bin/aws/zstd' file is present in /usr/bin/zstd

I noticed /usr/local/bin/aws

is the last path from the $PATH env var:

echo $PATH
/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/opt/android-sdk/cmdline-tools/latest/bin:/opt/android-sdk/platform-tools:/usr/local/go/bin:/home/runner/.cargo/bin:/usr/local/go/bin:/home/runner/.cargo/bin:/usr/local/bin/aws`

alexinthesky avatar Oct 02 '25 08:10 alexinthesky