I’ve been trying to clone a pulled-down site to a local copy and haven’t been able to for a while now. After spinning for a short while, I get the error “Invalid tar header. Maybe the tar is corrupted or it needs to be gunzipped?”. Is there a way to figure out which file(s) are causing the issue?
{ message:
‘Invalid tar header. Maybe the tar is corrupted or it needs to be gunzipped?’,
stack:
‘Error: Invalid tar header. Maybe the tar is corrupted or it needs to be gunzipped?\n at Object.exports.decode (/Applications/Local by Flywheel.app/Contents/Resources/app.asar/node_modules/tar-stream/headers.js:267:43)\n at Extract.onheader (/Applications/Local by Flywheel.app/Contents/Resources/app.asar/node_modules/tar-stream/extract.js:124:39)\n at Extract._write (/Applications/Local by Flywheel.app/Contents/Resources/app.asar/node_modules/tar-stream/extract.js:250:8)\n at doWrite (/Applications/Local by Flywheel.app/Contents/Resources/app.asar/node_modules/tar-stream/node_modules/readable-stream/lib/_stream_writable.js:428:64)\n at writeOrBuffer (/Applications/Local by Flywheel.app/Contents/Resources/app.asar/node_modules/tar-stream/node_modules/readable-stream/lib/_stream_writable.js:417:5)\n at Extract.Writable.write (/Applications/Local by Flywheel.app/Contents/Resources/app.asar/node_modules/tar-stream/node_modules/readable-stream/lib/_stream_writable.js:334:11)\n at Pack.ondata (/Applications/Local by Flywheel.app/Contents/Resources/app.asar/node_modules/tar-stream/node_modules/readable-stream/lib/_stream_readable.js:619:20)\n at Pack.emit (events.js:182:13)\n at Pack.EventEmitter.emit (domain.js:442:20)\n at Pack.Readable.read (/Applications/Local by Flywheel.app/Contents/Resources/app.asar/node_modules/tar-stream/node_modules/readable-stream/lib/_stream_readable.js:469:26)\n at flow (/Applications/Local by Flywheel.app/Contents/Resources/app.asar/node_modules/tar-stream/node_modules/readable-stream/lib/_stream_readable.js:813:34)\n at Extract. (/Applications/Local by Flywheel.app/Contents/Resources/app.asar/node_modules/tar-stream/node_modules/readable-stream/lib/_stream_readable.js:683:7)\n at Extract.emit (events.js:182:13)\n at Extract.EventEmitter.emit (domain.js:442:20)\n at onwriteDrain (/Applications/Local by Flywheel.app/Contents/Resources/app.asar/node_modules/tar-stream/node_modules/readable-stream/lib/_stream_writable.js:501:12)\n at afterWrite (/Applications/Local by Flywheel.app/Contents/Resources/app.asar/node_modules/tar-stream/node_modules/readable-stream/lib/_stream_writable.js:489:18)\n at onwrite (/Applications/Local by Flywheel.app/Contents/Resources/app.asar/node_modules/tar-stream/node_modules/readable-stream/lib/_stream_writable.js:483:7)\n at WritableState.onwrite (/Applications/Local by Flywheel.app/Contents/Resources/app.asar/node_modules/tar-stream/node_modules/readable-stream/lib/_stream_writable.js:180:5)\n at Extract._continue (/Applications/Local by Flywheel.app/Contents/Resources/app.asar/node_modules/tar-stream/extract.js:214:8)\n at oncontinue (/Applications/Local by Flywheel.app/Contents/Resources/app.asar/node_modules/tar-stream/extract.js:68:10)\n at Extract.ondrain (/Applications/Local by Flywheel.app/Contents/Resources/app.asar/node_modules/tar-stream/extract.js:88:5)\n at Extract._write (/Applications/Local by Flywheel.app/Contents/Resources/app.asar/node_modules/tar-stream/extract.js:250:8)\n at Extract._continue (/Applications/Local by Flywheel.app/Contents/Resources/app.asar/node_modules/tar-stream/extract.js:213:28)\n at oncontinue (/Applications/Local by Flywheel.app/Contents/Resources/app.asar/node_modules/tar-stream/extract.js:68:10)\n at onunlock (/Applications/Local by Flywheel.app/Contents/Resources/app.asar/node_modules/tar-stream/extract.js:74:24)\n at /Applications/Local by Flywheel.app/Contents/Resources/app.asar/node_modules/tar-fs/index.js:229:24\n at FSReqWrap.oncomplete (fs.js:169:20)’ }