I’m trying to get my feet wet for the first time with Netlify CMS and tried starting with the gatsby-starter-template. Unfortunately deploying it fails.
I have followed the link in the documentation and connected my Github account without a problem but the deploying gives failed during stage 'building site': Build script returned non-zero exit code: 1
Anyone an idea what is going wrong?
log:
9:33:09 PM: Build ready to start
9:33:10 PM: build-image version: 2dbd444fcdce00cf06325060a8238d5ae3e86774
9:33:10 PM: build-image tag: v3.3.7
9:33:10 PM: buildbot version: 93ff258b60dcc6c2c8bb9cfe1ece15d7b4f24193
9:33:11 PM: Fetching cached dependencies
9:33:11 PM: Failed to fetch cache, continuing with build
9:33:11 PM: Starting to prepare the repo for build
9:33:11 PM: No cached dependencies found. Cloning fresh repo
9:33:11 PM: git clone https://github.com/AustinGreen/gatsby-starter-netlify-cms
9:33:14 PM: Preparing Git Reference refs/heads/master
9:33:14 PM: Found Netlify configuration file netlify.toml in site root
9:33:14 PM: Found Netlify configuration file(s). Overriding site configuration
9:33:14 PM: Different functions path detected, going to use the one specified in the Netlify configuration file: 'lambda' versus '' in the Netlify UI
9:33:14 PM: Creating functions prep folder
9:33:14 PM: Starting build script
9:33:14 PM: Installing dependencies
9:33:15 PM: Downloading and installing node v10.20.1...
9:33:16 PM: Downloading https://nodejs.org/dist/v10.20.1/node-v10.20.1-linux-x64.tar.xz...
9:33:16 PM: #
9:33:16 PM: #
9:33:16 PM: #
9:33:16 PM: #
9:33:16 PM: #
9:33:16 PM: #
9:33:16 PM: #
9:33:16 PM: #
9:33:16 PM: #
9:33:16 PM: #
9:33:16 PM: #
9:33:16 PM: #
9:33:16 PM: #
9:33:16 PM: #
9:33:16 PM: #
9:33:16 PM: #
9:33:16 PM: #
9:33:16 PM: #
9:33:16 PM: #
9:33:16 PM: #
9:33:16 PM: #
9:33:16 PM: #
9:33:16 PM: #
9:33:16 PM: #
9:33:16 PM: #
9:33:16 PM: #
9:33:16 PM: #
9:33:16 PM: #
9:33:16 PM: #
9:33:16 PM: #
9:33:16 PM: #
9:33:16 PM: #
9:33:16 PM: #
9:33:16 PM: #
9:33:16 PM: #
9:33:16 PM: #
9:33:16 PM: 5
9:33:16 PM: 0.5%
9:33:16 PM:
#################################
9:33:16 PM: ####################################### 100.0%
9:33:16 PM: Computing checksum with sha256sum
9:33:16 PM: Checksums matched!
9:33:18 PM: Now using node v10.20.1 (npm v6.14.4)
9:33:19 PM: Attempting ruby version 2.6.2, read from environment
9:33:20 PM: Using ruby version 2.6.2
9:33:20 PM: Using PHP version 5.6
9:33:20 PM: Started restoring cached node modules
9:33:20 PM: Finished restoring cached node modules
9:33:20 PM: Started restoring cached yarn cache
9:33:20 PM: Finished restoring cached yarn cache
9:33:20 PM: Installing yarn at version 1.9.4
9:33:20 PM: Installing Yarn!
9:33:20 PM: > Downloading tarball...
9:33:20 PM: [
9:33:20 PM: 1
9:33:20 PM: /
9:33:20 PM: 2
9:33:20 PM: ]
9:33:20 PM: :
9:33:20 PM: h
9:33:20 PM: t
9:33:20 PM: t
9:33:20 PM: p
9:33:20 PM: s
9:33:20 PM: :
9:33:20 PM: /
9:33:20 PM: /
9:33:20 PM: y
9:33:20 PM: a
9:33:20 PM: r
9:33:20 PM: n
9:33:20 PM: p
9:33:20 PM: k
9:33:20 PM: g
9:33:20 PM: .
9:33:20 PM: c
9:33:20 PM: o
9:33:20 PM: m/downloads/1.9.4
9:33:20 PM: /yarn-v1.9.4.tar.gz --> /tmp/yarn.tar.gz.jeuIu5XgaP
9:33:20 PM: %
9:33:20 PM: Total % Received % Xferd Average Speed Time Time Time Current
9:33:20 PM: Dload Upload Total Spent Left Speed
9:33:20 PM:
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0
9:33:21 PM:
100 78 100 78 0
9:33:21 PM: 0 190 0 --:--:-- --:--:-- --:--:-- 191
9:33:21 PM:
0 0 0 0 0 0
9:33:21 PM: 0 0 --:--:-- --:--:-- --:--:-- 0
9:33:21 PM:
100 91 100 91 0 0 119 0 --:--:--
9:33:21 PM: --:--:-- --:--:-- 1034
9:33:21 PM:
100 629 100 629 0 0 547 0 0:00:01
9:33:21 PM: 0:00:01 --:--:-- 547
9:33:22 PM:
100 915k 100 915k 0 0 594k 0 0:00:01 0:00:01 --:
9:33:22 PM: --:-- 594k
9:33:22 PM: [2/2]: https://yarn
9:33:22 PM: pkg.com/downloads/1.9.4/yarn-v1.9.4.tar
9:33:22 PM: .gz.asc --> /tmp/yarn.tar.gz.jeuIu5XgaP.
9:33:22 PM: asc
9:33:22 PM:
100 82 100 82 0 0 1896
9:33:22 PM: 0 --:--:-- --:--:-- --:--:-- 1896
9:33:22 PM:
100 95 100 95 0 0 1095
9:33:22 PM: 0 --:--:-- --:--:-- --:--:-- 1095
9:33:22 PM:
0 0 0 0 0 0 0 0 --:--:-- --:-
9:33:22 PM: -:-- --:--:-- 0
100 633 100 633 0 0 2537 0 --:--:-- --:--:-- --:--:-- 618k
9:33:22 PM:
100 832 100 832 0 0 2894 0 --:--:-- --:--:-- --:--:-- 28
9:33:22 PM: 94
9:33:22 PM: > Verifying integrity...
9:33:22 PM: gpg: Signature made Fri 03 Aug 2018 07:53:36 PM UTC using RSA key ID B6FF4DE3
9:33:22 PM: gpg: Good signature from "Yarn Packaging <yarn@dan.cx>"
9:33:22 PM: gpg: Note: This key has expired!
9:33:22 PM: Primary key fingerprint: 72EC F46A 56B4 AD39 C907 BBB7 1646 B01B 86E5
9:33:22 PM: 0310
9:33:22 PM: Subkey fingerprint: E219 30C4 D0A4 AA46 1858 1F7A E074 D16E B6FF 4DE3
9:33:22 PM: > GPG signature looks good
9:33:22 PM: > Extracting to ~/.yarn...
9:33:22 PM: > Adding to $PATH...
9:33:23 PM: > Successfully installed Yarn 1.9.4! Please open another terminal where the `yarn` command will now be available.
9:33:23 PM: Installing NPM modules using Yarn version 1.9.4
9:33:24 PM: yarn install v1.9.4
9:33:24 PM: [1/4] Resolving packages...
9:33:25 PM: [2/4] Fetching packages...
9:33:25 PM: (node:1378) [DEP0005] DeprecationWarning: Buffer() is deprecated due to security and usability issues. Please use the Buffer.alloc(), Buffer.allocUnsafe(), or Buffer.from() methods instead.
9:33:50 PM: info fsevents@2.1.2: The platform "linux" is incompatible with this module.
9:33:50 PM: info "fsevents@2.1.2" is an optional dependency and failed compatibility check. Excluding it from installation.
9:33:50 PM: info fsevents@1.2.11: The platform "linux" is incompatible with this module.
9:33:50 PM: info "fsevents@1.2.11" is an optional dependency and failed compatibility check. Excluding it from installation.
9:33:50 PM: [3/4] Linking dependencies...
9:33:50 PM: warning "gatsby > @pmmmwh/react-refresh-webpack-plugin@0.2.0" has unmet peer dependency "sockjs-client@^1.4.0".
9:33:50 PM: warning "gatsby > react-hot-loader@4.12.20" has unmet peer dependency "@types/react@^15.0.0 || ^16.0.0".
9:33:50 PM: warning "gatsby > @typescript-eslint/eslint-plugin > tsutils@3.17.1" has unmet peer dependency "typescript@>=2.8.0 || >= 3.2.0-dev || >= 3.3.0-dev || >= 3.4.0-dev || >= 3.5.0-dev || >= 3.6.0-dev || >= 3.6.0-beta || >= 3.7.0-dev || >= 3.7.0-beta".
9:33:50 PM: warning "gatsby > gatsby-cli > ink@2.7.1" has unmet peer dependency "@types/react@>=16.8.0".
9:33:50 PM: warning "gatsby > socket.io > engine.io > ws@7.2.3" has unmet peer dependency "bufferutil@^4.0.1".
9:33:50 PM: warning "gatsby > socket.io > engine.io > ws@7.2.3" has unmet peer dependency "utf-8-validate@^5.0.2".
9:33:50 PM: warning "gatsby-plugin-netlify > webpack-assets-manifest@3.1.1" has unmet peer dependency "webpack@>=4.4.0".
9:33:50 PM: warning "gatsby-plugin-sass > sass-loader@7.3.1" has unmet peer dependency "webpack@^3.0.0 || ^4.0.0".
9:33:50 PM: warning " > lodash-webpack-plugin@0.11.5" has unmet peer dependency "webpack@^2.0.0 || ^3.0.0 || ^4.0.0".
9:33:50 PM: warning "netlify-cms-app > netlify-cms-widget-code@1.1.4" has unmet peer dependency "codemirror@^5.46.0".
9:33:50 PM: warning "netlify-cms-app > netlify-cms-widget-code > react-codemirror2@6.0.1" has unmet peer dependency "codemirror@5.x".
9:33:50 PM: warning "netlify-cms-app > netlify-cms-core > redux-notifications > react-redux@4.4.10" has incorrect peer dependency "redux@^2.0.0 || ^3.0.0".
9:33:50 PM: warning " > netlify-cms-media-library-cloudinary@1.3.4" has unmet peer dependency "netlify-cms-lib-util@^2.1.3-beta.0".
9:34:06 PM: [4/4] Building fresh packages...
9:34:12 PM: Done in 48.53s.
9:34:12 PM: NPM modules installed using Yarn
9:34:13 PM: Started restoring cached go cache
9:34:13 PM: Finished restoring cached go cache
9:34:13 PM: unset GOOS;
9:34:13 PM: unset GOARCH;
9:34:13 PM: export GOROOT='/opt/buildhome/.gimme/versions/go1.12.linux.amd64';
9:34:13 PM: export PATH="/opt/buildhome/.gimme/versions/go1.12.linux.amd64/bin:${PATH}";
9:34:13 PM: go version >&2;
9:34:13 PM: export GIMME_ENV='/opt/buildhome/.gimme/env/go1.12.linux.amd64.env';
9:34:13 PM: go version go1.12 linux/amd64
9:34:13 PM: Installing missing commands
9:34:13 PM: Verify run directory
9:34:13 PM: Executing user command: npm run build
9:34:13 PM: > gatsby-starter-netlify-cms@1.1.3 build /opt/build/repo
9:34:13 PM: > npm run clean && gatsby build
9:34:13 PM: > gatsby-starter-netlify-cms@1.1.3 clean /opt/build/repo
9:34:13 PM: > gatsby clean
9:34:14 PM: info Deleting .cache, public
9:34:14 PM: info Successfully deleted directories
9:34:17 PM: success open and validate gatsby-configs - 0.079s
9:34:18 PM: success load plugins - 1.283s
9:34:18 PM: success onPreInit - 0.013s
9:34:18 PM: success delete html and css files from previous builds - 0.018s
9:34:18 PM: success initialize cache - 0.009s
9:34:18 PM: success copy gatsby files - 0.036s
9:34:18 PM: success onPreBootstrap - 0.004s
9:34:18 PM: success createSchemaCustomization - 0.021s
9:34:18 PM: success source and transform nodes - 0.228s
9:34:19 PM: success building schema - 0.427s
9:34:19 PM: success createPages - 0.178s
9:34:19 PM: success createPagesStatefully - 0.120s
9:34:19 PM: success onPreExtractQueries - 0.000s
9:34:19 PM: success update schema - 0.067s
9:34:20 PM: success extract queries from components - 0.485s
9:34:20 PM: success write out requires - 0.004s
9:34:20 PM: success write out redirect data - 0.001s
9:34:20 PM: success onPostBootstrap - 0.000s
9:34:20 PM: ⠀
9:34:20 PM: info bootstrap finished - 5.551 s
9:34:20 PM: ⠀
9:34:27 PM: error UNHANDLED EXCEPTION Callback was already called.
9:34:27 PM:
9:34:27 PM: Error: Callback was already called.
9:34:27 PM:
9:34:27 PM: - async.js:16 throwError
9:34:27 PM: [repo]/[neo-async]/async.js:16:11
9:34:27 PM:
9:34:27 PM: - async.js:2818
9:34:27 PM: [repo]/[neo-async]/async.js:2818:7
9:34:27 PM:
9:34:27 PM: - next_tick.js:61 process._tickCallback
9:34:27 PM: internal/process/next_tick.js:61:11
9:34:27 PM:
9:34:27 PM:
9:34:27 PM: not finished run queries - 7.649s
9:34:27 PM: not finished Generating image thumbnails - 7.614s
9:34:27 PM: not finished Building production JavaScript and CSS bundles - 7.505s
9:34:27 PM: npm
9:34:27 PM: ERR! code ELIFECYCLE
9:34:27 PM: npm ERR! errno 1
9:34:27 PM: npm
9:34:27 PM: ERR! gatsby-starter-netlify-cms@1.1.3 build: `npm run clean && gatsby build`
9:34:27 PM: npm ERR!
9:34:27 PM: Exit status 1
9:34:27 PM: npm ERR!
9:34:27 PM: npm ERR!
9:34:27 PM: Failed at the gatsby-starter-netlify-cms@1.1.3 build script.
9:34:27 PM: npm ERR!
9:34:27 PM: This is probably not a problem with npm. There is likely additional logging output above.
9:34:27 PM: npm
9:34:27 PM: ERR! A complete log of this run can be found in:
9:34:27 PM: npm ERR! /opt/buildhome/.npm/_logs/2020-04-21T19_34_27_963Z-debug.log
9:34:27 PM: Function Dir: /opt/build/repo/lambda
9:34:27 PM: TempDir: /tmp/zisi-5e9f4a752d5918616f98000b
9:34:28 PM: Prepping functions with zip-it-and-ship-it 0.3.1
9:34:28 PM: [ { path: '/tmp/zisi-5e9f4a752d5918616f98000b/hello.zip',
9:34:28 PM: runtime: 'js' } ]
9:34:28 PM: Prepping functions complete
9:34:28 PM: Caching artifacts
9:34:28 PM: Started saving node modules
9:34:28 PM: Finished saving node modules
9:34:28 PM: Started saving yarn cache
9:34:28 PM: Finished saving yarn cache
9:34:28 PM: Started saving pip cache
9:34:29 PM: Finished saving pip cache
9:34:29 PM: Started saving emacs cask dependencies
9:34:29 PM: Finished saving emacs cask dependencies
9:34:29 PM: Started saving maven dependencies
9:34:29 PM: Finished saving maven dependencies
9:34:29 PM: Started saving boot dependencies
9:34:29 PM: Finished saving boot dependencies
9:34:29 PM: Started saving go dependencies
9:34:29 PM: Finished saving go dependencies
9:34:34 PM: Error running command: Build script returned non-zero exit code: 1
9:34:34 PM: Failing build: Failed to build site
9:34:34 PM: failed during stage 'building site': Build script returned non-zero exit code: 1
9:34:34 PM: Finished processing build request in 1m23.318321705s
Thanks for reporting this @probablyvincent and welcome to the community!
I’m experiencing the same issue and had seen it before with outdated dependencies. I’ll try to update the repo reps and update if it solves the issue.
I encountered the same issue trying gatsby-starter-netlify-cms for the first time today.
Using Node.js 12 fixes the initial build, but subsequent builds fail with the same error unless I use “Trigger deploy → Clear cache and deploy site” from the site’s dashboard, which is a bit of a pain as I’m trying out netlify-cms for non-technical users who won’t have access to do that.
Thanks for sharing @jbscript. Your solution makes it more evident that this is a dependency related issue. I won’t stay with it for the long run as it doesn’t guarantee reproducible builds (each build might be built with different dependencies that are determined during the evaluation of the package.json file).
Update: @jbscript subsequent builds are working for me with Node 12 and yarn 1.22.4.
Can you share a repo/scenario that reproduces the issue you’re experiencing?
I don’t understand what the neo-sync error actually is, but I’m getting this exact same error message after having done some changes to my repo.
I’ve also been having to constantly clear my cache to avoid another issue about images. I think I introduced this issue when I added the “gatsby clear &&” to my build script.
Hiya @theredwillow and sorry to be slow to get back to you!
Could you confirm if the template builds without change for you (perhaps on a second site)? Trying to determine if this is a bug affecting the base repo, or just your changes.
Yeah. The problem reported is not happening anymore. I don’t know what I changed that broke it, but somewhere along the way, it reoriented itself again.