Template failing to build

hey all, just discovered netlify and just built a site using the template as advertised.

It doesnt seem as easy as they make it seem. Can’t add or edit a blog, when i do it builds and then fails.

Worth mentioning I havent changed any code whatsoever.

Here is the log:

2:12:05 PM: Build ready to start

2:12:07 PM: build-image version: 9e0f207a27642d0115b1ca97cd5e8cebbe492f63

2:12:07 PM: build-image tag: v3.3.2

2:12:07 PM: buildbot version: 16db6527b4cafa2553c3f3f11aa8d1b46a72ff40

2:12:07 PM: Fetching cached dependencies

2:12:07 PM: Starting to download cache of 187.2MB

2:12:09 PM: Finished downloading cache in 1.722484486s

2:12:09 PM: Starting to extract cache

2:12:17 PM: Finished extracting cache in 8.294933369s

2:12:17 PM: Finished fetching cache in 10.132418358s

2:12:17 PM: Starting to prepare the repo for build

2:12:18 PM: Preparing Git Reference refs/heads/master

2:12:19 PM: Found netlify.toml. Overriding site configuration

2:12:19 PM: Different functions path detected, going to use the one specified in the toml file: ‘lambda’ versus ‘’ in the site

2:12:19 PM: Creating functions prep folder

2:12:19 PM: Starting build script

2:12:19 PM: Installing dependencies

2:12:19 PM: Started restoring cached node version

2:12:22 PM: Finished restoring cached node version

2:12:24 PM: v10.16.3 is already installed.

2:12:25 PM: Now using node v10.16.3 (npm v6.9.0)

2:12:25 PM: Attempting ruby version 2.6.2, read from environment

2:12:26 PM: Using ruby version 2.6.2

2:12:27 PM: Using PHP version 5.6

2:12:27 PM: Started restoring cached node modules

2:12:27 PM: Finished restoring cached node modules

2:12:27 PM: Started restoring cached yarn cache

2:12:27 PM: Finished restoring cached yarn cache

2:12:28 PM: Installing NPM modules using Yarn version 1.9.4

2:12:29 PM: yarn install v1.9.4

2:12:29 PM: warning package-lock.json found. Your project contains lock files generated by tools other than Yarn. It is advised not to mix package managers in order to avoid resolution inconsistencies caused by unsynchronized lock files. To clear this warning, remove package-lock.json.

2:12:29 PM: [1/4] Resolving packages…

2:12:30 PM: success Already up-to-date.

2:12:30 PM: Done in 1.89s.

2:12:30 PM: NPM modules installed using Yarn

2:12:31 PM: Started restoring cached go cache

2:12:31 PM: Finished restoring cached go cache

2:12:31 PM: unset GOOS;

2:12:31 PM: unset GOARCH;

2:12:31 PM: export GOROOT=’/opt/buildhome/.gimme/versions/go1.12.linux.amd64’;

2:12:31 PM: export PATH="/opt/buildhome/.gimme/versions/go1.12.linux.amd64/bin:${PATH}";

2:12:31 PM: go version >&2;

2:12:31 PM: export GIMME_ENV=’/opt/buildhome/.gimme/env/go1.12.linux.amd64.env’;

2:12:31 PM: go version go1.12 linux/amd64

2:12:31 PM: Installing missing commands

2:12:31 PM: Verify run directory

2:12:31 PM: Executing user command: npm run build

2:12:32 PM: > gatsby-starter-netlify-cms@1.1.3 build /opt/build/repo

2:12:32 PM: > npm run clean && gatsby build

2:12:32 PM: > gatsby-starter-netlify-cms@1.1.3 clean /opt/build/repo

2:12:32 PM: > gatsby clean

2:12:33 PM: info Deleting .cache, public

2:12:33 PM: info Successfully deleted directories

2:12:36 PM: success open and validate gatsby-configs — 0.148

2:12:38 PM: success load plugins — 1.510

2:12:38 PM: success onPreInit — 0.027

2:12:38 PM: success delete html and css files from previous builds — 0.032

2:12:38 PM: success initialize cache — 0.035

2:12:38 PM: success copy gatsby files — 0.078

2:12:38 PM: success onPreBootstrap — 0.018

2:12:38 PM: success source and transform nodes — 0.433

2:12:39 PM: success Add explicit types — 0.024

2:12:39 PM: success Add inferred types — 0.300

2:12:39 PM: success Processing types — 0.211

2:12:39 PM: success building schema — 0.605

2:12:39 PM: success createPages — 0.102

2:12:39 PM: success createPagesStatefully — 0.162

2:12:39 PM: success onPreExtractQueries — 0.014

2:12:39 PM: success update schema — 0.043

2:12:40 PM: success extract queries from components — 0.662

2:12:40 PM: success write out requires — 0.064

2:12:40 PM: success write out redirect data — 0.023

2:12:40 PM: success onPostBootstrap — 0.026

2:12:40 PM: info bootstrap finished - 7.155 s

2:12:40 PM: success run static queries — 0.336 — 2/2 6.40 queries/second

2:12:42 PM: Segmentation fault (core dumped)

2:12:42 PM: npm

2:12:42 PM: ERR! code ELIFECYCLE

2:12:42 PM: npm

2:12:42 PM: ERR! errno 139

2:12:42 PM: npm ERR!

2:12:42 PM: gatsby-starter-netlify-cms@1.1.3 build: npm run clean && gatsby build

2:12:42 PM: npm ERR! Exit status 139

2:12:42 PM: npm ERR!

2:12:42 PM: npm ERR! Failed at the gatsby-starter-netlify-cms@1.1.3 build script.

2:12:42 PM: npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

2:12:42 PM: npm

2:12:42 PM: ERR! A complete log of this run can be found in:

2:12:42 PM: npm ERR! /opt/buildhome/.npm/_logs/2019-10-04T13_12_42_396Z-debug.log

2:12:42 PM: Function Dir: /opt/build/repo/lambda

2:12:42 PM: TempDir: /tmp/zisi-5d9745256bc6500008070af7

2:12:43 PM: Prepping functions with zip-it-and-ship-it 0.3.1

2:12:43 PM: [ { path: ‘/tmp/zisi-5d9745256bc6500008070af7/hello.zip’,

2:12:43 PM: failed during stage ‘building site’: Build script returned non-zero exit code: 139

2:12:43 PM: runtime: ‘js’ } ]

2:12:44 PM: Shutting down logging, 19 messages pending

2:12:43 PM: Prepping functions complete

Do you have a public link to your repo?
Also is this a clean install of Gatsby-Netlify-CMS-starter?
Did you changed anything in the starter?

1 Like