docker / setup-buildx-action

GitHub Action to set up Docker Buildx
https://github.com/marketplace/actions/docker-setup-buildx
Apache License 2.0
906 stars 142 forks source link

"/bin/tar" failed with error: The process '/bin/tar' failed with exit code 1 #250

Closed kayla-barenz-kr closed 11 months ago

kayla-barenz-kr commented 11 months ago

Behaviour

Getting a warning saying: Failed to save: "/bin/tar" failed with error: The process '/bin/tar' failed with exit code 1

Steps to reproduce this issue

  1. When using the latest version of the action docker/setup-buildx-action@v2.9.1 we see this warning
  2. When we use an older version docker/setup-buildx-action@v2.8.0 we do not see this warning

Logs

Download buildx from GitHub Releases
  Use 0.11.2 version spec cache key for v0.11.2
  Downloading https://github.com/docker/buildx/releases/download/v0.11.2/buildx-v0.11.2.linux-amd64
  /bin/tar --posix -cf cache.tgz --exclude cache.tgz -P -C /__w/repo-name/repo-name --files-from manifest.txt -z
  /bin/tar: unrecognized option: posix
  BusyBox v1.31.1 () multi-call binary.

  Usage: tar c|x|t [-ZzJjahmvokO] [-f TARFILE] [-C DIR] [-T FILE] [-X FILE] [--exclude PATTERN]... [FILE]...

  Create, extract, or list files from a tar file

    c   Create
    x   Extract
    t   List
    -f FILE Name of TARFILE ('-' for stdin/out)
    -C DIR  Change to DIR before operation
    -v  Verbose
    -O  Extract to stdout
    -m  Don't restore mtime
    -o  Don't restore user:group
    -k  Don't replace existing files
    -Z  (De)compress using compress
    -z  (De)compress using gzip
    -J  (De)compress using xz
    -j  (De)compress using bzip2
    -a  (De)compress using lzma
    -h  Follow symlinks
    -T FILE File with names to include
    -X FILE File with glob patterns to exclude
    --exclude PATTERN   Glob pattern to exclude
  Warning: Failed to save: "/bin/tar" failed with error: The process '/bin/tar' failed with exit code 1
crazy-max commented 11 months ago

Seems to be an issue with the GitHub Runner when using the GitHub cache API, are you using a self-hosted one? Can't repro with public runners.

Looks to be the same as https://stackoverflow.com/a/64187955/514571