Skip to content

repo:purge_cache fails with "Directory renamed before its status could be extracted" #103

@edmorley

Description

@edmorley

Sometimes heroku repo:purge_cache fails with errors like:

$ heroku repo:purge_cache
Running set -e
Running set -e
mkdir -p tmp/repo_tmp/unpack
cd tmp/repo_tmp
curl -fo repo-cache.tgz 'https://s3-external-1.amazonaws.com/<REDACTED>'
cd unpack
tar -zxf ../repo-cache.tgz
METADATA="vendor/heroku"
if [ -d "$METADATA" ]; then
  TMPDIR=`mktemp -d`
  cp -rf $METADATA $TMPDIR
fi
cd ..
rm -rf unpack
mkdir unpack
cd unpack
TMPDATA="$TMPDIR/heroku"
VENDOR="vendor"
if [ -d "$TMPDATA" ]; then
  mkdir $VENDOR
  cp -rf $TMPDATA $VENDOR
  rm -rf $TMPDIR
fi
tar -zcf ../cache-repack.tgz .
curl -fo /dev/null --upload-file ../cache-repack.tgz 'https://s3-external-1.amazonaws.com/<REDACTED>'
exit on ⬢ REDACTED... up, run.1234 (Private-M)
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100  371M  100  371M    0     0  33.2M      0  0:00:11  0:00:11 --:--:-- 11.2M
tar: ./node/cache/node_modules/webpack/node_modules/.bin: Directory renamed before its status could be extracted
tar: ./node/cache/node_modules/webpack/node_modules: Directory renamed before its status could be extracted
tar: ./node/cache/node_modules/webpack: Directory renamed before its status could be extracted
tar: ./node/cache/node_modules/global-modules/node_modules/.bin: Directory renamed before its status could be extracted
tar: ./node/cache/node_modules/global-modules/node_modules: Directory renamed before its status could be extracted
tar: ./node/cache/node_modules/global-modules: Directory renamed before its status could be extracted
tar: Exiting with failure status due to previous errors

As seen in:
https://heroku.support/930885

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions