Jekyll blog : Build script returned non-zero exit code: 1

Hi,

I just got set up with a new Jekyll theme (Forma) and the theme designer has advised I move from gitPage to Netlify, which I did.
I successfully deployed my new site a few times, but then got an error I can’t fix :

9:45:48 PM: [feature enabled]: Nitro deploys enabled. Buckle up! :zap:
9:45:48 PM: Waiting for other deploys from your team to complete
9:45:57 PM: Build ready to start
9:46:04 PM: build-image version: 6b66e79d54a8f76b01392124644c3052ac0d32ef
9:46:04 PM: build-image tag: v3.3.6
9:46:04 PM: buildbot version: 2ba6f2db8150441c8469e6ae3ab3561a2c9d03fa
9:46:04 PM: Fetching cached dependencies
9:46:04 PM: Starting to download cache of 177.8MB
9:46:06 PM: Finished downloading cache in 1.31184027s
9:46:06 PM: Starting to extract cache
9:46:09 PM: Finished extracting cache in 3.848922736s
9:46:09 PM: Finished fetching cache in 5.264596446s
9:46:09 PM: Starting to prepare the repo for build
9:46:10 PM: Preparing Git Reference refs/heads/master
9:46:11 PM: Starting build script
9:46:11 PM: Installing dependencies
9:46:13 PM: Started restoring cached node version
9:46:17 PM: Finished restoring cached node version
9:46:17 PM: v10.19.0 is already installed.
9:46:18 PM: Now using node v10.19.0 (npm v6.13.4)
9:46:19 PM: Attempting ruby version 2.6.2, read from environment
9:46:20 PM: Using ruby version 2.6.2
9:46:21 PM: Using PHP version 5.6
9:46:21 PM: Started restoring cached ruby gems
9:46:21 PM: Finished restoring cached ruby gems
9:46:21 PM: Installing gem bundle
9:46:21 PM: [DEPRECATED] The --path flag is deprecated because it relies on being remembered across bundler invocations, which bundler will no longer do in future versions. Instead please use bundle config set path '/opt/build/cache/bundle', and stop using this flag
9:46:21 PM: [DEPRECATED] The --binstubs option will be removed in favor of bundle binstubs
9:46:21 PM: Fetching https://github.com/jekyll/jekyll.git
9:46:22 PM: The dependency tzinfo-data (>= 0) will be unused by any of the platforms Bundler is installing for. Bundler is installing for ruby but the dependency is only for x86-mingw32, x86-mswin32, x64-mingw32, java. To add those platforms to the bundle, run bundle lock --add-platform x86-mingw32 x86-mswin32 x64-mingw32 java.
9:46:24 PM: Fetching gem metadata from https://rubygems.org/
9:46:24 PM: .
9:46:24 PM: .
9:46:24 PM: .
9:46:24 PM: .
9:46:25 PM: .
9:46:25 PM: .
9:46:25 PM: .
9:46:25 PM: .
9:46:25 PM: .
9:46:25 PM: .
9:46:25 PM: .
9:46:26 PM: Fetching gem metadata from https://rubygems.org/
9:46:26 PM: .
9:46:26 PM: Resolving dependencies…
9:46:26 PM: Using public_suffix 4.0.3
9:46:26 PM: Using addressable 2.7.0
9:46:26 PM: Using bundler 2.1.4
9:46:26 PM: Using colorator 1.1.0
9:46:26 PM: Using concurrent-ruby 1.1.6
9:46:26 PM: Using eventmachine 1.2.7
9:46:26 PM: Using http_parser.rb 0.6.0
9:46:26 PM: Using em-websocket 0.5.1
9:46:26 PM: Using ffi 1.12.2
9:46:26 PM: Using forwardable-extended 2.6.0
9:46:26 PM: Using i18n 1.8.2
9:46:26 PM: Using sassc 2.2.1
9:46:26 PM: Using jekyll-sass-converter 2.1.0
9:46:26 PM: Using rb-fsevent 0.10.3
9:46:26 PM: Using rb-inotify 0.10.1
9:46:26 PM: Using listen 3.2.1
9:46:26 PM: Using jekyll-watch 2.2.1
9:46:26 PM: Using kramdown 2.1.0
9:46:26 PM: Using kramdown-parser-gfm 1.1.0
9:46:26 PM: Using liquid 4.0.3
9:46:26 PM: Using mercenary 0.4.0
9:46:26 PM: Using pathutil 0.16.2
9:46:26 PM: Using rouge 3.16.0
9:46:26 PM: Using safe_yaml 1.0.5
9:46:26 PM: Using unicode-display_width 1.6.1
9:46:26 PM: Using terminal-table 1.8.0
9:46:26 PM: Using jekyll 4.0.0 from https://github.com/jekyll/jekyll.git (at master@ab6ef0b)
9:46:26 PM: Using jekyll-author-page 0.0.1
9:46:26 PM: Using jekyll-paginate 1.1.0
9:46:26 PM: Using jekyll-seo-tag 2.6.1
9:46:26 PM: Using jekyll-sitemap 1.4.0
9:46:26 PM: Using jekyll-tagsgenerator 0.0.2
9:46:26 PM: Bundle complete! 7 Gemfile dependencies, 32 gems now installed.
9:46:26 PM: Bundled gems are installed into /opt/build/cache/bundle
9:46:26 PM: Gem bundle installed
9:46:26 PM: Started restoring cached go cache
9:46:26 PM: Finished restoring cached go cache
9:46:26 PM: unset GOOS;
9:46:26 PM: unset GOARCH;
9:46:26 PM: export GOROOT=’/opt/buildhome/.gimme/versions/go1.12.linux.amd64’;
9:46:26 PM: export PATH="/opt/buildhome/.gimme/versions/go1.12.linux.amd64/bin:${PATH}";
9:46:26 PM: go version >&2;
9:46:26 PM: export GIMME_ENV=’/opt/buildhome/.gimme/env/go1.12.linux.amd64.env’;
9:46:26 PM: go version go1.12 linux/amd64
9:46:26 PM: Installing missing commands
9:46:26 PM: Verify run directory
9:46:26 PM: Executing user command: jekyll build
9:46:27 PM: Configuration file: /opt/build/repo/_config.yml
9:46:27 PM: Source: /opt/build/repo
9:46:27 PM: Destination: /opt/build/repo/_site
9:46:27 PM: Incremental build: disabled. Enable with --incremental
9:46:27 PM: Generating…
9:46:27 PM: ------------------------------------------------
9:46:27 PM: Jekyll 4.0.0 Please append --trace to the build command
9:46:27 PM: for any additional information or backtrace.
9:46:27 PM: ------------------------------------------------
9:46:27 PM: Skipping functions preparation step: no functions directory set
9:46:27 PM: Caching artifacts
9:46:27 PM: Started saving ruby gems
9:46:27 PM: Finished saving ruby gems
9:46:27 PM: Started saving pip cache
9:46:27 PM: Finished saving pip cache
9:46:27 PM: Started saving emacs cask dependencies
9:46:27 PM: Finished saving emacs cask dependencies
9:46:27 PM: Started saving maven dependencies
9:46:27 PM: Finished saving maven dependencies
9:46:27 PM: Started saving boot dependencies
9:46:27 PM: failed during stage ‘building site’: Build script returned non-zero exit code: 1
9:46:27 PM: Finished saving boot dependencies
9:46:27 PM: Started saving go dependencies
9:46:27 PM: Finished saving go dependencies
9:46:27 PM: Shutting down logging, 3 messages pending
9:46:27 PM: Error running command: Build script returned non-zero exit code: 1
9:46:27 PM: Failing build: Failed to build site

I checked to make sure my Gemfile starts with a cap… but can’t figure out where the problem is :frowning:


Here are the build settings

hmm, i am not seeing anything that hints at what might be causing that error in your build log.

Do you mind posting your package.json file please?

Thanks Perry for your reply. I can’t find any package.json file in my repo (it’s a theme repo).
Here are all the files in the repo :slight_smile:

:slight_smile:

Does your site build locally? You might want to use jekyll build --trace to see if there are any additional errors.

1 Like