question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

build deployment fails on netlify

See original GitHub issue

Here is deploy LOG>>>

5:31:14 PM: Build ready to start 5:33:51 PM: build-image version: 6b66e79d54a8f76b01392124644c3052ac0d32ef 5:33:51 PM: build-image tag: v3.3.6 5:33:51 PM: buildbot version: 2ba6f2db8150441c8469e6ae3ab3561a2c9d03fa 5:33:51 PM: Fetching cached dependencies 5:33:51 PM: Starting to download cache of 254.9KB 5:33:51 PM: Finished downloading cache in 85.612613ms 5:33:51 PM: Starting to extract cache 5:33:51 PM: Failed to fetch cache, continuing with build 5:33:51 PM: Starting to prepare the repo for build 5:33:52 PM: No cached dependencies found. Cloning fresh repo 5:33:52 PM: git clone https://github.com/jindal368/gatsby_trading-webapp 5:33:52 PM: Preparing Git Reference refs/heads/master 5:33:53 PM: Starting build script 5:33:53 PM: Installing dependencies 5:33:55 PM: v10.19.0 is already installed. 5:33:56 PM: Now using node v10.19.0 (npm v6.13.4) 5:33:56 PM: Attempting ruby version 2.6.2, read from environment 5:33:58 PM: Using ruby version 2.6.2 5:33:58 PM: Using PHP version 5.6 5:33:58 PM: Started restoring cached node modules 5:33:58 PM: Finished restoring cached node modules 5:33:58 PM: Installing NPM modules using NPM version 6.13.4 5:34:45 PM: > sharp@0.23.4 install /opt/build/repo/node_modules/sharp 5:34:45 PM: > (node install/libvips && node install/dll-copy && prebuild-install) || (node-gyp rebuild && node install/dll-copy) 5:34:45 PM: info 5:34:45 PM: sharp 5:34:45 PM: Downloading https://github.com/lovell/sharp-libvips/releases/download/v8.8.1/libvips-8.8.1-linux-x64.tar.gz 5:34:48 PM: > core-js@2.6.11 postinstall /opt/build/repo/node_modules/core-js 5:34:48 PM: > node -e “try{require(‘./postinstall’)}catch(e){}” 5:34:48 PM: Thank you for using core-js ( https://github.com/zloirock/core-js ) for polyfilling JavaScript standard library! 5:34:48 PM: The project needs your help! Please consider supporting of core-js on Open Collective or Patreon: 5:34:48 PM: > https://opencollective.com/core-js 5:34:48 PM: > https://www.patreon.com/zloirock 5:34:48 PM: Also, the author of core-js ( https://github.com/zloirock ) is looking for a good job -) 5:34:48 PM: > core-js-pure@3.6.4 postinstall /opt/build/repo/node_modules/core-js-pure 5:34:48 PM: > node -e “try{require(‘./postinstall’)}catch(e){}” 5:34:48 PM: > gatsby-telemetry@1.1.47 postinstall /opt/build/repo/node_modules/gatsby-telemetry 5:34:48 PM: > node src/postinstall.js || true 5:34:49 PM: > cwebp-bin@5.1.0 postinstall /opt/build/repo/node_modules/cwebp-bin 5:34:49 PM: > node lib/install.js 5:34:49 PM: ✔ cwebp pre-build test passed successfully 5:34:49 PM: > mozjpeg@6.0.1 postinstall /opt/build/repo/node_modules/mozjpeg 5:34:49 PM: > node lib/install.js 5:34:50 PM: ✔ mozjpeg pre-build test passed successfully 5:34:50 PM: > pngquant-bin@5.0.2 postinstall /opt/build/repo/node_modules/pngquant-bin 5:34:50 PM: > node lib/install.js 5:34:50 PM: ✔ pngquant pre-build test passed successfully 5:34:50 PM: > gatsby-cli@2.8.27 postinstall /opt/build/repo/node_modules/gatsby/node_modules/gatsby-cli 5:34:50 PM: > node scripts/postinstall.js 5:34:51 PM: > gatsby@2.19.7 postinstall /opt/build/repo/node_modules/gatsby 5:34:51 PM: > node scripts/postinstall.js 5:34:54 PM: npm 5:34:54 PM: WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@1.2.11 (node_modules/fsevents): 5:34:54 PM: npm WARN 5:34:54 PM: notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.2.11: wanted {“os”:“darwin”,“arch”:“any”} (current: {“os”:“linux”,“arch”:“x64”}) 5:34:54 PM: npm WARN 5:34:54 PM: optional SKIPPING OPTIONAL DEPENDENCY: fsevents@2.1.2 (node_modules/chokidar/node_modules/fsevents): 5:34:54 PM: npm WARN 5:34:54 PM: notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@2.1.2: wanted {“os”:“darwin”,“arch”:“any”} (current: {“os”:“linux”,“arch”:“x64”}) 5:34:54 PM: added 2048 packages from 994 contributors and audited 27265 packages in 53.521s 5:34:56 PM: 43 packages are looking for funding 5:34:56 PM: run npm fund for details 5:34:56 PM: found 20 vulnerabilities (2 moderate, 18 high) 5:34:56 PM: run npm audit fix to fix them, or npm audit for details 5:34:56 PM: NPM modules installed 5:34:56 PM: Started restoring cached go cache 5:34:56 PM: Finished restoring cached go cache 5:34:56 PM: unset GOOS; 5:34:56 PM: unset GOARCH; 5:34:56 PM: export GOROOT=‘/opt/buildhome/.gimme/versions/go1.12.linux.amd64’; 5:34:56 PM: export PATH=“/opt/buildhome/.gimme/versions/go1.12.linux.amd64/bin:${PATH}”; 5:34:56 PM: go version >&2; 5:34:56 PM: export GIMME_ENV=‘/opt/buildhome/.gimme/env/go1.12.linux.amd64.env’; 5:34:56 PM: go version go1.12 linux/amd64 5:34:56 PM: Installing missing commands 5:34:56 PM: Verify run directory 5:34:56 PM: Executing user command: gatsby build 5:34:59 PM: success open and validate gatsby-configs - 0.025s 5:35:00 PM: success load plugins - 0.780s 5:35:00 PM: success onPreInit - 0.003s 5:35:00 PM: success delete html and css files from previous builds - 0.013s 5:35:00 PM: success initialize cache - 0.008s 5:35:00 PM: success copy gatsby files - 0.042s 5:35:00 PM: success onPreBootstrap - 0.013s 5:35:00 PM: success createSchemaCustomization - 0.004s 5:35:00 PM: Starting to fetch data from Contentful 5:35:00 PM: Fetching default locale 5:35:00 PM: default locale is : en-US 5:35:01 PM: contentTypes fetched 2 5:35:01 PM: Updated entries 15 5:35:01 PM: Deleted entries 0 5:35:01 PM: Updated assets 11 5:35:01 PM: Deleted assets 0 5:35:01 PM: Fetch Contentful data: 941.218ms 5:35:01 PM: success source and transform nodes - 1.080s 5:35:01 PM: success building schema - 0.486s 5:35:01 PM: success createPages - 0.000s 5:35:02 PM: success createPagesStatefully - 0.088s 5:35:02 PM: success onPreExtractQueries - 0.001s 5:35:02 PM: success update schema - 0.032s 5:35:02 PM: warning Using the global graphql tag is deprecated, and will not be supported in v3. 5:35:02 PM: Import it instead like: import { graphql } from ‘gatsby’ in file: 5:35:02 PM: /opt/build/repo/src/pages/index.js 5:35:02 PM: success extract queries from components - 0.592s 5:35:02 PM: success write out requires - 0.004s 5:35:02 PM: success write out redirect data - 0.001s 5:35:02 PM: success Build manifest and related icons - 0.001s 5:35:02 PM: success onPostBootstrap - 0.003s 5:35:02 PM: ⠀ 5:35:02 PM: info bootstrap finished - 5.843 s 5:35:02 PM: ⠀ 5:35:03 PM: error There was an error in your GraphQL query: 5:35:03 PM: VipsJpeg: Corrupt JPEG data: bad Huffman code 5:35:03 PM: VipsJpeg: out of order read at line 320 5:35:03 PM: 1 | fragment GatsbyContentfulFluid_tracedSVG on ContentfulFluid { 5:35:03 PM: > 2 | tracedSVG 5:35:03 PM: | ^ 5:35:03 PM: 3 | aspectRatio 5:35:03 PM: 4 | src 5:35:03 PM: 5 | srcSet 5:35:03 PM: 6 | sizes 5:35:03 PM: 7 | } 5:35:03 PM: 8 | 5:35:03 PM: 9 | query optbuildreposrccomponentshomeproductsJs1310321567 { 5:35:03 PM: 10 | products: allContentfulMenFashion { 5:35:03 PM: 11 | edges { 5:35:03 PM: 12 | node { 5:35:03 PM: File path: /opt/build/repo/src/components/home/products.js 5:35:03 PM: Plugin: none 5:35:03 PM: error There was an error in your GraphQL query: 5:35:03 PM: VipsJpeg: Corrupt JPEG data: bad Huffman code 5:35:03 PM: VipsJpeg: out of order read at line 320 5:35:03 PM: 1 | fragment GatsbyContentfulFluid_tracedSVG on ContentfulFluid { 5:35:03 PM: > 2 | tracedSVG 5:35:03 PM: | ^ 5:35:03 PM: 3 | aspectRatio 5:35:03 PM: 4 | src 5:35:03 PM: 5 | srcSet 5:35:03 PM: 6 | sizes 5:35:03 PM: 7 | } 5:35:03 PM: 8 | 5:35:03 PM: 9 | query optbuildreposrccomponentshomeproductsJs1310321567 { 5:35:03 PM: 10 | products: allContentfulMenFashion { 5:35:03 PM: 11 | edges { 5:35:03 PM: 12 | node { 5:35:03 PM: File path: /opt/build/repo/src/components/home/products.js 5:35:03 PM: Plugin: none 5:35:03 PM: not finished run queries - 1.014s 5:35:03 PM: not finished Generating image thumbnails - 0.971s 5:35:03 PM: Skipping functions preparation step: no functions directory set 5:35:03 PM: Caching artifacts 5:35:03 PM: Started saving node modules 5:35:03 PM: Finished saving node modules 5:35:03 PM: Started saving pip cache 5:35:03 PM: Finished saving pip cache 5:35:03 PM: Started saving emacs cask dependencies 5:35:03 PM: Finished saving emacs cask dependencies 5:35:03 PM: Started saving maven dependencies 5:35:03 PM: Finished saving maven dependencies 5:35:03 PM: Started saving boot dependencies 5:35:03 PM: Finished saving boot dependencies 5:35:03 PM: Started saving go dependencies 5:35:03 PM: Finished saving go dependencies 5:35:07 PM: Error running command: Build script returned non-zero exit code: 1 5:35:07 PM: Failing build: Failed to build site 5:35:07 PM: failed during stage ‘building site’: Build script returned non-zero exit code: 1 5:35:07 PM: Finished processing build request in 1m15.973242834s

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:12 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
pvdzcommented, Mar 10, 2020

Might be related to https://github.com/gatsbyjs/gatsby/issues/22125

Can you check whether this is related to netlify at all? Can you repro it locally? Can you post a minimal repro somewhere so we can verify?

0reactions
axe312gercommented, Apr 27, 2021

The updates released on of 2020 and the fixes from March (v3) and April (v2) should fix these issues!

Read more comments on GitHub >

github_iconTop Results From Across the Web

[Support Guide] Frequently encountered problems during builds
If a build fails, it's worth retrying with a cleared build cache to see if this works better. You can do this by...
Read more >
Deployment error build.command failed - Netlify Support Forums
Already for weeks I am trying to deploy my repo GitHub - ilukin89/MovieParadise-client: movie database website based on React (redux branch) on Netlify, ......
Read more >
[Support Guide] Netlify app builds locally but fails on deploy ...
The file system used in Netlify builds is case sensitive, while your local environment is not. Unfortunately, the error messages that result may...
Read more >
Deploy failed Netlify - Stack Overflow
Go to: Site settings > Build & deploy > Build image selection > Edit settings. · Choose Ubuntu Xenial 16.05. · Save and...
Read more >
2 ways to overcome deployment problems with React on Netlify
It is because netlify treats any warnings emitted by react as errors therefore failing the build process. I remember ignoring the warnings by ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found