Error Extracting Tar Content: File Appears to be Corrupt in Netlify Build Process

Hello Netlify Support,

I hope this message finds you well. I am experiencing an issue during the build process on Netlify, and I would appreciate your assistance in resolving it.

Error Description:
During the build process, I encountered an error related to extracting a tar content. The error message indicates that the file appears to be corrupt. Here are the details of the error:

Error Message:
“Error extracting tar content of ‘material-0.2.4.tgz’: The file appears to be corrupt. ENOENT: no such file or directory, open '/opt/buildhome/.yarn_cache/v6/npm-@icons-material-0.2.4-e90c9f71768b3736e76d7dd6783fc6c2afa88bc8-integrity/node_modules/@icons/material/svg/foursquare.svg.”

Error Log:

11:13:26 AM: build-image version: 4b067841aaa59ef71931d3505b98c2bc3e63f36f (focal)
11:13:26 AM: buildbot version: 4b067841aaa59ef71931d3505b98c2bc3e63f36f
11:13:26 AM: Fetching cached dependencies
11:13:26 AM: Failed to fetch cache, continuing with build
11:13:26 AM: Starting to prepare the repo for build
11:13:27 AM: No cached dependencies found. Cloning fresh repo
11:13:27 AM: git clone --filter=blob:none https://github.com/shortcastle/svc-ui
11:13:28 AM: Preparing Git Reference pull/1411/head
11:13:30 AM: Parsing package.json dependencies
11:13:31 AM: Starting to install dependencies
11:13:31 AM: Python version set to 3.8
11:13:31 AM: Attempting Ruby version 2.7.1, read from environment
11:13:32 AM: Required ruby-2.7.1 is not installed - installing.
11:13:32 AM: Searching for binary rubies, this might take some time.
11:13:32 AM: Found remote file https://rvm_io.global.ssl.fastly.net/binaries/ubuntu/20.04/x86_64/ruby-2.7.1.tar.bz2
11:13:32 AM: Checking requirements for ubuntu.
11:13:32 AM: Requirements installation successful.
11:13:32 AM: ruby-2.7.1 - #configure
11:13:32 AM: ruby-2.7.1 - #download
11:13:33 AM: ruby-2.7.1 - #validate archive
11:13:36 AM: ruby-2.7.1 - #extract
11:13:38 AM: ruby-2.7.1 - #validate binary
11:13:38 AM: ruby-2.7.1 - #setup
11:13:38 AM: ruby-2.7.1 - #gemset created /opt/buildhome/.rvm/gems/ruby-2.7.1@global
11:13:39 AM: ruby-2.7.1 - #importing gemset /opt/buildhome/.rvm/gemsets/global.gems........................................
11:13:39 AM: ruby-2.7.1 - #generating global wrappers........
11:13:39 AM: ruby-2.7.1 - #gemset created /opt/buildhome/.rvm/gems/ruby-2.7.1
11:13:39 AM: ruby-2.7.1 - #importing gemsetfile /opt/buildhome/.rvm/gemsets/default.gems evaluated to empty gem list
11:13:39 AM: ruby-2.7.1 - #generating default wrappers........
11:13:39 AM: Using /opt/buildhome/.rvm/gems/ruby-2.7.1
11:13:40 AM: Using Ruby version 2.7.1
11:13:40 AM: Started restoring cached go cache
11:13:40 AM: Finished restoring cached go cache
11:13:40 AM: Installing Go version 1.14.4 (requested 1.14.4)
11:13:46 AM: go version go1.14.4 linux/amd64
11:13:46 AM: Using PHP version 8.0
11:13:47 AM: Attempting Node.js version '12.18.3' from .node-version
11:13:47 AM: Downloading and installing node v12.18.3...
11:13:47 AM: Downloading https://nodejs.org/dist/v12.18.3/node-v12.18.3-linux-x64.tar.xz...
11:13:47 AM: Computing checksum with sha256sum
11:13:47 AM: Checksums matched!
11:13:49 AM: Now using node v12.18.3 (npm v6.14.6)
11:13:49 AM: Started restoring cached build plugins
11:13:49 AM: Finished restoring cached build plugins
11:13:49 AM: Started restoring cached corepack dependencies
11:13:49 AM: Finished restoring cached corepack dependencies
11:13:49 AM: Started restoring cached yarn cache
11:13:49 AM: Finished restoring cached yarn cache
11:13:49 AM: Found Yarn version (1.22.19) that doesn't match expected (1.22.4)
up to date in 0.015s
11:13:49 AM: Installing Yarn version 1.22.4
11:13:49 AM: Installing Yarn!
11:13:49 AM: > Downloading tarball...
11:13:49 AM: [1/2]: https://yarnpkg.com/downloads/1.22.4/yarn-v1.22.4.tar.gz --> /tmp/yarn.tar.gz.D7kRUGMkBv
11:13:49 AM:   % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
11:13:49 AM:                                  Dload  Upload   Total   Spent    Left  Speed
11:13:49 AM:   0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
11:13:49 AM: 100    80  100    80    0     0   1025      0 --:--:-- --:--:-- --:--:--  1025
11:13:50 AM: 100    93  100    93    0     0    451      0 --:--:-- --:--:-- --:--:--   451
11:13:50 AM:   0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
11:13:50 AM: 100 1215k  100 1215k    0     0  2794k      0 --:--:-- --:--:-- --:--:-- 2794k
11:13:50 AM: [2/2]: https://yarnpkg.com/downloads/1.22.4/yarn-v1.22.4.tar.gz.asc --> /tmp/yarn.tar.gz.D7kRUGMkBv.asc
11:13:50 AM:   % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
11:13:50 AM:                                  Dload  Upload   Total   Spent    Left  Speed
11:13:50 AM:   0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
11:13:50 AM: 100    84  100    84    0     0   1400      0 --:--:-- --:--:-- --:--:--  1400
11:13:50 AM: 100    96  100    96    0     0   1021      0 --:--:-- --:--:-- --:--:--  1021
11:13:50 AM:   0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
11:13:50 AM: 100  1028  100  1028    0     0   4374      0 --:--:-- --:--:-- --:--:--  4374
11:13:50 AM: > Verifying integrity...
11:13:50 AM: gpg: Signature made Mon 09 Mar 2020 03:52:13 PM UTC
11:13:50 AM: gpg:                using RSA key 6D98490C6F1ACDDD448E45954F77679369475BAA
11:13:50 AM: gpg: Good signature from "Yarn Packaging <yarn@dan.cx>" [unknown]
11:13:50 AM: gpg: WARNING: This key is not certified with a trusted signature!
11:13:50 AM: gpg:          There is no indication that the signature belongs to the owner.
11:13:50 AM: Primary key fingerprint: 72EC F46A 56B4 AD39 C907  BBB7 1646 B01B 86E5 0310
11:13:50 AM:      Subkey fingerprint: 6D98 490C 6F1A CDDD 448E  4595 4F77 6793 6947 5BAA
11:13:50 AM: > GPG signature looks good
11:13:50 AM: > Extracting to ~/.yarn...
11:13:50 AM: > Adding to $PATH...
11:13:50 AM: > Successfully installed Yarn 1.22.4! Please open another terminal where the `yarn` command will now be available.
11:13:50 AM: No yarn workspaces detected
11:13:50 AM: Started restoring cached node modules
11:13:50 AM: Finished restoring cached node modules
11:13:51 AM: Installing npm packages using Yarn version 1.22.4
11:13:51 AM: yarn install v1.22.4
11:13:51 AM: $ yarn cache clean
11:13:51 AM: yarn cache v1.22.4
11:13:51 AM: success Cleared cache.
11:13:51 AM: Done in 0.03s.
11:13:51 AM: [1/4] Resolving packages...
11:13:52 AM: [2/4] Fetching packages...
11:13:53 AM: [1/5] Validating package.json...
11:13:53 AM: [2/5] Resolving packages...
11:13:53 AM: [3/5] Fetching packages...
11:14:14 AM: error https://registry.yarnpkg.com/@icons/material/-/material-0.2.4.tgz: Extracting tar content of undefined failed, the file appears to be corrupt: "ENOENT: no such file or directory, open '/opt/buildhome/.yarn_cache/v6/npm-@icons-material-0.2.4-e90c9f71768b3736e76d7dd6783fc6c2afa88bc8-integrity/node_modules/@icons/material/svg/foursquare.svg'"
11:14:14 AM: info Visit https://yarnpkg.com/en/docs/cli/install for documentation about this command.
11:14:38 AM: Error during Yarn install
11:14:38 AM: Build was terminated: dependency_installation script returned non-zero exit code: 1
11:14:38 AM: Failing build: Failed to install dependencies
11:14:38 AM: Failed during stage 'Install dependencies': dependency_installation script returned non-zero exit code: 1
11:14:38 AM: Finished processing build request in 1m11.862s

Request:
I kindly request your assistance in resolving this issue. It seems that the mentioned tar file is causing the error. Could you please check if there is a problem with the file in the cache or if there are any known issues with the package?

Steps Taken:

  • Manual trigger deploy by cleaning cache
  • Tried changing package version

Project Details:

Thank you for your attention to this matter. I look forward to your assistance in resolving this issue.

Hi @n4nagappan, welcome back to the forums! I just saw your most recent deploy was successful for this site. Are you still experiencing this problem?