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.

Netlify Deploy ==> Error running command: Build script returned non-zero exit code: 1

See original GitHub issue

Grid develop works fine.

The error (From netlify deploy):

9:42:50 PM: Build ready to start
9:42:54 PM: build-image version: 9e0f207a27642d0115b1ca97cd5e8cebbe492f63
9:42:54 PM: build-image tag: v3.3.2
9:42:54 PM: buildbot version: ef8d0929ed0baabafd8bbb7d0b021e1fc24180c0
9:42:55 PM: Fetching cached dependencies
9:42:55 PM: Failed to fetch cache, continuing with build
9:42:55 PM: Starting to prepare the repo for build
9:42:55 PM: No cached dependencies found. Cloning fresh repo
9:42:55 PM: git clone https://github.com/Ezra-Siton-UIX/new-siteb-2019
9:42:59 PM: Preparing Git Reference refs/heads/master
9:42:59 PM: Starting build script
9:42:59 PM: Installing dependencies
9:43:01 PM: Downloading and installing node v10.16.0...
9:43:02 PM: Downloading https://nodejs.org/dist/v10.16.0/node-v10.16.0-linux-x64.tar.xz...
9:43:02 PM: 
###
9:43:02 PM:                    4.5%
9:43:02 PM: 
#####################
9:43:02 PM:                              30.2%
9:43:02 PM: 
#########################################################
9:43:02 PM: #######          89.0%
9:43:02 PM: 
#############################
9:43:02 PM: ########################################### 100.0%
9:43:02 PM: Computing checksum with sha256sum
9:43:02 PM: Checksums matched!
9:43:05 PM: Now using node v10.16.0 (npm v6.9.0)
9:43:06 PM: Attempting ruby version 2.6.2, read from environment
9:43:07 PM: Using ruby version 2.6.2
9:43:08 PM: Using PHP version 5.6
9:43:08 PM: Started restoring cached node modules
9:43:08 PM: Finished restoring cached node modules
9:43:08 PM: Installing NPM modules using NPM version 6.9.0
9:43:41 PM: > sharp@0.22.1 install /opt/build/repo/node_modules/sharp
9:43:41 PM: > (node install/libvips && node install/dll-copy && prebuild-install) || (node-gyp rebuild && node install/dll-copy)
9:43:42 PM: info
9:43:42 PM: sharp
9:43:42 PM:  Downloading https://github.com/lovell/sharp-libvips/releases/download/v8.7.4/libvips-8.7.4-linux-x64.tar.gz
9:43:44 PM: > core-js@2.6.9 postinstall /opt/build/repo/node_modules/core-js
9:43:44 PM: > node scripts/postinstall || echo "ignore"
9:43:44 PM: Thank you for using core-js ( https://github.com/zloirock/core-js ) for polyfilling JavaScript standard library!
9:43:44 PM: The project needs your help! Please consider supporting of core-js on Open Collective or Patreon: 
9:43:44 PM: > https://opencollective.com/core-js 
9:43:44 PM: > https://www.patreon.com/zloirock 
9:43:44 PM: Also, the author of core-js ( https://github.com/zloirock ) is looking for a good job -)
9:43:45 PM: > cwebp-bin@5.1.0 postinstall /opt/build/repo/node_modules/cwebp-bin
9:43:45 PM: > node lib/install.js
9:43:46 PM:   ✔ cwebp pre-build test passed successfully
9:43:46 PM: > mozjpeg@6.0.1 postinstall /opt/build/repo/node_modules/mozjpeg
9:43:46 PM: > node lib/install.js
9:43:46 PM:   ✔ mozjpeg pre-build test passed successfully
9:43:46 PM: > pngquant-bin@5.0.2 postinstall /opt/build/repo/node_modules/pngquant-bin
9:43:46 PM: > node lib/install.js
9:43:47 PM:   ✔ pngquant pre-build test passed successfully
9:43:49 PM: npm
9:43:49 PM:  WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@1.2.7 (node_modules/fsevents):
9:43:49 PM: npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.2.7: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})
9:43:49 PM: added 1289 packages from 667 contributors and audited 17346 packages in 39.458s
9:43:49 PM: found 0 vulnerabilities
9:43:49 PM: NPM modules installed
9:43:49 PM: Started restoring cached go cache
9:43:49 PM: Finished restoring cached go cache
9:43:49 PM: unset GOOS;
9:43:49 PM: unset GOARCH;
9:43:49 PM: export GOROOT='/opt/buildhome/.gimme/versions/go1.12.linux.amd64';
9:43:49 PM: export PATH="/opt/buildhome/.gimme/versions/go1.12.linux.amd64/bin:${PATH}";
9:43:49 PM: go version >&2;
9:43:49 PM: export GIMME_ENV='/opt/buildhome/.gimme/env/go1.12.linux.amd64.env';
9:43:49 PM: go version go1.12 linux/amd64
9:43:49 PM: Installing missing commands
9:43:49 PM: Verify run directory
9:43:49 PM: Executing user command: gridsome build
9:43:50 PM: Gridsome v0.6.7
9:43:50 PM: Initializing plugins...
9:43:51 PM: Initialize - 0.63s
9:43:51 PM: Load sources - 0.07s
9:43:51 PM: Create GraphQL schema - 0.19s
9:43:51 PM: Create pages and templates - 0.1s
9:43:51 PM: Generate code - 0.06s
9:43:51 PM: Bootstrap finish - 1.05s
9:43:52 PM: An error occurred while executing page-query for src/templates/Post.vue
9:43:52 PM: Error: /opt/build/repo/content/posts/images/mula/2_about.png was not found.
9:43:52 PM: GraphQL request:116:5
9:43:52 PM: 115 |     description
9:43:52 PM: 116 |     content
9:43:52 PM:     |     ^
9:43:52 PM: 117 |     image
9:43:52 PM:     at pMap (/opt/build/repo/node_modules/gridsome/lib/graphql/executeQueries.js:31:13)
9:43:53 PM: Skipping functions preparation step: no functions directory set
9:43:53 PM: Caching artifacts
9:43:53 PM: Started saving node modules
9:43:53 PM: Finished saving node modules
9:43:53 PM: Started saving pip cache
9:43:53 PM: Finished saving pip cache
9:43:53 PM: Started saving emacs cask dependencies
9:43:53 PM: Finished saving emacs cask dependencies
9:43:53 PM: Started saving maven dependencies
9:43:53 PM: Finished saving maven dependencies
9:43:53 PM: Started saving boot dependencies
9:43:53 PM: Finished saving boot dependencies
9:43:53 PM: Started saving go dependencies
9:43:53 PM: Finished saving go dependencies
9:44:00 PM: Error running command: Build script returned non-zero exit code: 1
9:44:00 PM: Failing build: Failed to build site
9:44:00 PM: failed during stage 'building site': Build script returned non-zero exit code: 1
9:44:00 PM: Finished processing build request in 1m5.788194345s

Issue Analytics

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

github_iconTop GitHub Comments

5reactions
morganseguracommented, Nov 26, 2019

What was the issue? When you say redeploy, do you mean from Git or Netlify?

1reaction
leopiccioniacommented, Jul 29, 2019

You have a typo. Image is named 2_About.png, not 2_about.png.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Build was terminated: Build script returned non-zero exit code ...
Deploying problem. Deploy failed NPM. I am facing the error on deployment. Error on deployment. Build script returned non-zero exit code: 2 -...
Read more >
Build was terminated: Build script returned non-zero exit code
The error is a peer dependency conflict relating to versions of react, which provides guidance on how you can attempt to resolve it:...
Read more >
Build script returned non-zero exit code: 1 netlify · Issue #14434
The problem is that when I want deploy my project in Netlify, the console deploy show this error and I dont know to...
Read more >
netlify/community - Gitter
The step by step guide says to just include 'gem "jekyll" in the Gemfile. @tech4him1 The error is "Error running command: Build script...
Read more >
Build script returned non-zero exit code: 2 : r/Netlify - Reddit
Usually the actual error message is somewhere else on your build log. The part you've shown us is only a prettified version shown...
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