Deploy failed, exit code 1: CI= jekyll build, Build script returned non-zero exit code: 2

Hi,
I am pushing my PR with Jekyll from GitHub. All deploy checks in there failed and Netlify’s deploy build failed with the following error message:

Command failed with exit code 1: CI= jekyll build
Error location
In Build command from Netlify app:
CI= jekyll build

I went through Netlify’s Doc and frequently encountered problems during builds, and applied some changes, my current deploy settings are:

Build command: CI= jekyll build
Publish directory: _site/
Builds: Active

But still, my deployment fails… Couldn’t find anything related, so any advice/suggestion would be much appreciated.

Last deploy log :point_down:

2:07:56 PM: Build ready to start
2:07:58 PM: build-image version: 3571f0130496395a23bffe9820bc78b4f73a6234
2:07:58 PM: build-image tag: v3.7.0
2:07:58 PM: buildbot version: 6a1676e78af2029e1c67c3e7ec0a2784997330d8
2:07:58 PM: Fetching cached dependencies
2:07:58 PM: Starting to download cache of 345.0MB
2:08:00 PM: Finished downloading cache in 1.523126606s
2:08:00 PM: Starting to extract cache
2:08:08 PM: Finished extracting cache in 7.811318632s
2:08:08 PM: Finished fetching cache in 9.471302734s
2:08:08 PM: Starting to prepare the repo for build
2:08:08 PM: Preparing Git Reference pull/115/head
2:08:10 PM: Parsing package.json dependencies
2:08:11 PM: Different publish path detected, going to use the one specified in the Netlify configuration file: '_site' versus '_site/' in the Netlify UI
2:08:11 PM: Starting build script
2:08:11 PM: Installing dependencies
2:08:11 PM: Python version set to 2.7
2:08:12 PM: Started restoring cached node version
2:08:16 PM: Finished restoring cached node version
2:08:18 PM: v12.18.0 is already installed.
2:08:19 PM: Now using node v12.18.0 (npm v6.14.4)
2:08:19 PM: Started restoring cached build plugins
2:08:19 PM: Finished restoring cached build plugins
2:08:19 PM: Attempting ruby version 2.7.1, read from environment
2:08:21 PM: Using ruby version 2.7.1
2:08:22 PM: Using PHP version 5.6
2:08:22 PM: Started restoring cached ruby gems
2:08:22 PM: Finished restoring cached ruby gems
2:08:22 PM: Installing gem bundle
2:08:22 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 --local path '/opt/build/cache/bundle'`, and stop using this flag
2:08:22 PM: [DEPRECATED] The --binstubs option will be removed in favor of `bundle binstubs --all`
2:08:26 PM: Fetching gem metadata from https://rubygems.org/..........
2:08:27 PM: Resolving dependencies........
2:08:27 PM: Using public_suffix 4.0.6
2:08:27 PM: Using bundler 2.2.14
2:08:27 PM: Using colorator 1.1.0
2:08:27 PM: Using concurrent-ruby 1.1.8
2:08:27 PM: Using eventmachine 1.2.7
2:08:27 PM: Using http_parser.rb 0.6.0
2:08:27 PM: Using ffi 1.15.0
2:08:27 PM: Using forwardable-extended 2.6.0
2:08:27 PM: Using hike 1.2.3
2:08:27 PM: Using rb-fsevent 0.10.4
2:08:27 PM: Using rexml 3.2.4
2:08:27 PM: Using liquid 4.0.3
2:08:27 PM: Using mercenary 0.3.6
2:08:27 PM: Using rouge 3.26.0
2:08:27 PM: Using safe_yaml 1.0.5
2:08:27 PM: Using mini_magick 4.11.0
2:08:27 PM: Using unicode-display_width 1.7.0
2:08:27 PM: Using multi_json 1.15.0
2:08:27 PM: Using rack 1.6.13
2:08:27 PM: Using tilt 1.4.1
2:08:27 PM: Using racc 1.5.2
2:08:27 PM: Fetching mime-types-data 3.2021.0225
2:08:27 PM: Using addressable 2.7.0
2:08:27 PM: Using kramdown 2.3.1
2:08:27 PM: Using i18n 1.8.9
2:08:27 PM: Using terminal-table 1.8.0
2:08:27 PM: Using sprockets 2.12.5
2:08:27 PM: Using nokogiri 1.11.2 (x86_64-linux)
2:08:27 PM: Using sassc 2.4.0
2:08:27 PM: Fetching objective_elements 1.1.2
2:08:27 PM: Using sprockets-helpers 1.4.0
2:08:27 PM: Using rb-inotify 0.10.1
2:08:27 PM: Using sprockets-sass 1.3.1
2:08:27 PM: Using em-websocket 0.5.2
2:08:27 PM: Using fastimage 1.8.1
2:08:27 PM: Using jekyll-sass-converter 2.1.0
2:08:27 PM: Fetching listen 3.5.0
2:08:27 PM: Using sass-listen 4.0.0
2:08:27 PM: Using pathutil 0.16.2
2:08:27 PM: Using sass 3.7.4
2:08:27 PM: Using kramdown-parser-gfm 1.1.0
2:08:27 PM: Installing listen 3.5.0
2:08:27 PM: Installing objective_elements 1.1.2
2:08:27 PM: Installing mime-types-data 3.2021.0225
2:08:28 PM: Fetching mime-types 3.3.1
2:08:28 PM: Using jekyll-watch 2.2.1
2:08:28 PM: Using jekyll 4.0.1
2:08:28 PM: Using jekyll-assets 1.0.0
2:08:28 PM: Using jekyll-feed 0.15.1
2:08:28 PM: Using jekyll-loading-lazy 0.1.1
2:08:28 PM: Installing mime-types 3.3.1
2:08:28 PM: Fetching jekyll_picture_tag 1.14.0
2:08:28 PM: Installing jekyll_picture_tag 1.14.0
2:08:28 PM: Bundle complete! 5 Gemfile dependencies, 48 gems now installed.
2:08:28 PM: Bundled gems are installed into `/opt/build/cache/bundle`
2:08:28 PM: Gem bundle installed
2:08:28 PM: Started restoring cached go cache
2:08:28 PM: Finished restoring cached go cache
2:08:28 PM: go version go1.14.4 linux/amd64
2:08:28 PM: go version go1.14.4 linux/amd64
2:08:28 PM: Installing missing commands
2:08:28 PM: Verify run directory
2:08:31 PM: ​
2:08:31 PM: ────────────────────────────────────────────────────────────────
2:08:31 PM:   Netlify Build                                                 
2:08:31 PM: ────────────────────────────────────────────────────────────────
2:08:31 PM: ​
2:08:31 PM: ❯ Version
2:08:31 PM:   @netlify/build 9.13.2
2:08:31 PM: ​
2:08:31 PM: ❯ Flags
2:08:31 PM:   apiHost: api.netlify.com
2:08:31 PM:   cacheDir: /opt/build/cache
2:08:31 PM:   deployId: 605b7ffc2bfa16000784a081
2:08:31 PM:   mode: buildbot
2:08:31 PM:   testOpts:
2:08:31 PM:     silentLingeringProcesses: ''
2:08:31 PM: ​
2:08:31 PM: ❯ Current directory
2:08:31 PM:   /opt/build/repo
2:08:31 PM: ​
2:08:31 PM: ❯ Config file
2:08:31 PM:   No config file was defined: using default values.
2:08:31 PM: ​
2:08:31 PM: ❯ Context
2:08:31 PM:   deploy-preview
2:08:31 PM: ​
2:08:31 PM: ────────────────────────────────────────────────────────────────
2:08:31 PM:   1. Build command from Netlify app                             
2:08:31 PM: ────────────────────────────────────────────────────────────────
2:08:31 PM: ​
2:08:31 PM: $ CI= jekyll build
2:08:33 PM: Configuration file: /opt/build/repo/_config.yml
2:08:33 PM:             Source: /opt/build/repo
2:08:33 PM:        Destination: /opt/build/repo/_site
2:08:33 PM:  Incremental build: disabled. Enable with --incremental
2:08:33 PM:       Generating...
2:08:33 PM:        Jekyll Feed: Generating feed for posts
2:08:33 PM: Generating new image file: case-uigu-myrole-800-02d145d8b.png
2:08:33 PM: Generating new image file: case-uigu-myrole-400-02d145d8b.png
2:08:34 PM: Generating new image file: case-uigu-myrole-600-02d145d8b.png
2:08:34 PM: Generating new image file: case-uigu-myrole-1000-02d145d8b.png
2:08:35 PM:   Liquid Exception: `identify /tmp/mini_magick20210324-1314-1x9yvvm.webp` failed with error: identify: delegate failed `"dwebp" -pam "%i" -o "%o"' @ error/delegate.c/InvokeDelegate/1310. identify: unable to open image `/tmp/magick-1364sDdZr_mtT5OY': No such file or directory @ error/blob.c/OpenBlob/2712. identify: unable to open file `/tmp/magick-1364sDdZr_mtT5OY': No such file or directory @ error/constitute.c/ReadImage/540. in /opt/build/repo/_cases/Adoption-of-UI-guidelines.md
2:08:35 PM:                     ------------------------------------------------
2:08:35 PM:       Jekyll 4.0.1   Please append `--trace` to the `build` command 
2:08:35 PM:                      for any additional information or backtrace. 
2:08:35 PM:                     ------------------------------------------------
2:08:35 PM: /opt/build/cache/bundle/ruby/2.7.0/gems/mini_magick-4.11.0/lib/mini_magick/image.rb:221:in `rescue in validate!': `identify /tmp/mini_magick20210324-1314-1x9yvvm.webp` failed with error: (MiniMagick::Invalid)
identify: delegate failed `"dwebp" -pam "%i" -o "%o"' @ error/delegate.c/InvokeDelegate/1310.
identify: unable to open image `/tmp/magick-1364sDdZr_mtT5OY': No such file or directory @ error/blob.c/OpenBlob/2712.
identify: unable to open file `/tmp/magick-1364sDdZr_mtT5OY': No such file or directory @ error/constitute.c/ReadImage/540.
	from /opt/build/cache/bundle/ruby/2.7.0/gems/mini_magick-4.11.0/lib/mini_magick/image.rb:218:in `validate!'
	from /opt/build/cache/bundle/ruby/2.7.0/gems/mini_magick-4.11.0/lib/mini_magick/image.rb:131:in `block in create'
	from /opt/build/cache/bundle/ruby/2.7.0/gems/mini_magick-4.11.0/lib/mini_magick/image.rb:130:in `tap'
	from /opt/build/cache/bundle/ruby/2.7.0/gems/mini_magick-4.11.0/lib/mini_magick/image.rb:130:in `create'
	from /opt/build/cache/bundle/ruby/2.7.0/gems/mini_magick-4.11.0/lib/mini_magick/image.rb:34:in `read'
	from /opt/build/cache/bundle/ruby/2.7.0/gems/mini_magick-4.11.0/lib/mini_magick/image.rb:108:in `block in open'
	from /opt/build/cache/bundle/ruby/2.7.0/gems/mini_magick-4.11.0/lib/mini_magick/image.rb:108:in `open'
	from /opt/build/cache/bundle/ruby/2.7.0/gems/mini_magick-4.11.0/lib/mini_magick/image.rb:108:in `open'
	from /opt/build/cache/bundle/ruby/2.7.0/gems/mini_magick-4.11.0/lib/mini_magick/image.rb:108:in `open'
	from /opt/build/cache/bundle/ruby/2.7.0/gems/jekyll_picture_tag-1.14.0/lib/jekyll_picture_tag/images/source_image.rb:85:in `image'
	from /opt/build/cache/bundle/ruby/2.7.0/gems/jekyll_picture_tag-1.14.0/lib/jekyll_picture_tag/images/source_image.rb:78:in `update_cache'
	from /opt/build/cache/bundle/ruby/2.7.0/gems/jekyll_picture_tag-1.14.0/lib/jekyll_picture_tag/images/source_image.rb:73:in `check_cache'
	from /opt/build/cache/bundle/ruby/2.7.0/gems/jekyll_picture_tag-1.14.0/lib/jekyll_picture_tag/images/source_image.rb:17:in `initialize'
	from /opt/build/cache/bundle/ruby/2.7.0/gems/jekyll_picture_tag-1.14.0/lib/jekyll_picture_tag/instructions/set.rb:63:in `new'
	from /opt/build/cache/bundle/ruby/2.7.0/gems/jekyll_picture_tag-1.14.0/lib/jekyll_picture_tag/instructions/set.rb:63:in `build_source_images'
	from /opt/build/cache/bundle/ruby/2.7.0/gems/jekyll_picture_tag-1.14.0/lib/jekyll_picture_tag/instructions/set.rb:34:in `source_images'
	from /opt/build/cache/bundle/ruby/2.7.0/gems/jekyll_picture_tag-1.14.0/lib/jekyll_picture_tag/router.rb:48:in `source_images'
	from /opt/build/cache/bundle/ruby/2.7.0/gems/jekyll_picture_tag-1.14.0/lib/jekyll_picture_tag/utils.rb:51:in `count_srcsets'
	from /opt/build/cache/bundle/ruby/2.7.0/gems/jekyll_picture_tag-1.14.0/lib/jekyll_picture_tag/output_formats/auto.rb:7:in `new'
	from /opt/build/cache/bundle/ruby/2.7.0/gems/jekyll_picture_tag-1.14.0/lib/jekyll_picture_tag.rb:67:in `render'
	from /opt/build/cache/bundle/ruby/2.7.0/gems/liquid-4.0.3/lib/liquid/block_body.rb:103:in `render_node_to_output'
	from /opt/build/cache/bundle/ruby/2.7.0/gems/liquid-4.0.3/lib/liquid/block_body.rb:91:in `render'
	from /opt/build/cache/bundle/ruby/2.7.0/gems/liquid-4.0.3/lib/liquid/template.rb:208:in `block in render'
	from /opt/build/cache/bundle/ruby/2.7.0/gems/liquid-4.0.3/lib/liquid/template.rb:242:in `with_profiling'
	from /opt/build/cache/bundle/ruby/2.7.0/gems/liquid-4.0.3/lib/liquid/template.rb:207:in `render'
	from /opt/build/cache/bundle/ruby/2.7.0/gems/liquid-4.0.3/lib/liquid/template.rb:220:in `render!'
	from /opt/build/cache/bundle/ruby/2.7.0/gems/jekyll-4.0.1/lib/jekyll/liquid_renderer/file.rb:39:in `block (3 levels) in render!'
	from /opt/build/cache/bundle/ruby/2.7.0/gems/jekyll-4.0.1/lib/jekyll/liquid_renderer/file.rb:59:in `measure_counts'
	from /opt/build/cache/bundle/ruby/2.7.0/gems/jekyll-4.0.1/lib/jekyll/liquid_renderer/file.rb:38:in `block (2 levels) in render!'
	from /opt/build/cache/bundle/ruby/2.7.0/gems/jekyll-4.0.1/lib/jekyll/liquid_renderer/file.rb:63:in `measure_bytes'
	from /opt/build/cache/bundle/ruby/2.7.0/gems/jekyll-4.0.1/lib/jekyll/liquid_renderer/file.rb:37:in `block in render!'
	from /opt/build/cache/bundle/ruby/2.7.0/gems/jekyll-4.0.1/lib/jekyll/liquid_renderer/file.rb:70:in `measure_time'
	from /opt/build/cache/bundle/ruby/2.7.0/gems/jekyll-4.0.1/lib/jekyll/liquid_renderer/file.rb:36:in `render!'
	from /opt/build/cache/bundle/ruby/2.7.0/gems/jekyll-4.0.1/lib/jekyll/renderer.rb:127:in `render_liquid'
	from /opt/build/cache/bundle/ruby/2.7.0/gems/jekyll-4.0.1/lib/jekyll/renderer.rb:80:in `render_document'
	from /opt/build/cache/bundle/ruby/2.7.0/gems/jekyll-4.0.1/lib/jekyll/renderer.rb:63:in `run'
	from /opt/build/cache/bundle/ruby/2.7.0/gems/jekyll-4.0.1/lib/jekyll/site.rb:523:in `render_regenerated'
	from /opt/build/cache/bundle/ruby/2.7.0/gems/jekyll-4.0.1/lib/jekyll/site.rb:509:in `block (2 levels) in render_docs'
	from /opt/build/cache/bundle/ruby/2.7.0/gems/jekyll-4.0.1/lib/jekyll/site.rb:508:in `each'
	from /opt/build/cache/bundle/ruby/2.7.0/gems/jekyll-4.0.1/lib/jekyll/site.rb:508:in `block in render_docs'
	from /opt/build/cache/bundle/ruby/2.7.0/gems/jekyll-4.0.1/lib/jekyll/site.rb:507:in `each_value'
	from /opt/build/cache/bundle/ruby/2.7.0/gems/jekyll-4.0.1/lib/jekyll/site.rb:507:in `render_docs'
	from /opt/build/cache/bundle/ruby/2.7.0/gems/jekyll-4.0.1/lib/jekyll/site.rb:201:in `render'
	from /opt/build/cache/bundle/ruby/2.7.0/gems/jekyll-4.0.1/lib/jekyll/site.rb:76:in `process'
	from /opt/build/cache/bundle/ruby/2.7.0/gems/jekyll-4.0.1/lib/jekyll/command.rb:28:in `process_site'
	from /opt/build/cache/bundle/ruby/2.7.0/gems/jekyll-4.0.1/lib/jekyll/commands/build.rb:65:in `build'
	from /opt/build/cache/bundle/ruby/2.7.0/gems/jekyll-4.0.1/lib/jekyll/commands/build.rb:36:in `process'
	from /opt/build/cache/bundle/ruby/2.7.0/gems/jekyll-4.0.1/lib/jekyll/command.rb:89:in `block in process_with_graceful_fail'
	from /opt/build/cache/bundle/ruby/2.7.0/gems/jekyll-4.0.1/lib/jekyll/command.rb:89:in `each'
	from /opt/build/cache/bundle/ruby/2.7.0/gems/jekyll-4.0.1/lib/jekyll/command.rb:89:in `process_with_graceful_fail'
	from /opt/build/cache/bundle/ruby/2.7.0/gems/jekyll-4.0.1/lib/jekyll/commands/build.rb:18:in `block (2 levels) in init_with_program'
	from /opt/build/cache/bundle/ruby/2.7.0/gems/mercenary-0.3.6/lib/mercenary/command.rb:220:in `block in execute'
	from /opt/build/cache/bundle/ruby/2.7.0/gems/mercenary-0.3.6/lib/mercenary/command.rb:220:in `each'
	from /opt/build/cache/bundle/ruby/2.7.0/gems/mercenary-0.3.6/lib/mercenary/command.rb:220:in `execute'
	from /opt/build/cache/bundle/ruby/2.7.0/gems/mercenary-0.3.6/lib/mercenary/program.rb:42:in `go'
	from /opt/build/cache/bundle/ruby/2.7.0/gems/mercenary-0.3.6/lib/mercenary.rb:19:in `program'
	from /opt/build/cache/bundle/ruby/2.7.0/gems/jekyll-4.0.1/exe/jekyll:15:in `<top (required)>'
	from /opt/build/cache/binstubs/jekyll:29:in `load'
	from /opt/build/cache/binstubs/jekyll:29:in `<main>'
/opt/build/cache/bundle/ruby/2.7.0/gems/mini_magick-4.11.0/lib/mini_magick/shell.rb:17:in `run': `identify /tmp/mini_magick20210324-1314-1x9yvvm.webp` failed with error: (MiniMagick::Error)
identify: delegate failed `"dwebp" -pam "%i" -o "%o"' @ error/delegate.c/InvokeDelegate/1310.
identify: unable to open image `/tmp/magick-1364sDdZr_mtT5OY': No such file or directory @ error/blob.c/OpenBlob/2712.
identify: unable to open file `/tmp/magick-1364sDdZr_mtT5OY': No such file or directory @ error/constitute.c/ReadImage/540.
	from /opt/build/cache/bundle/ruby/2.7.0/gems/mini_magick-4.11.0/lib/mini_magick/tool.rb:92:in `call'
	from /opt/build/cache/bundle/ruby/2.7.0/gems/mini_magick-4.11.0/lib/mini_magick/tool.rb:38:in `new'
	from /opt/build/cache/bundle/ruby/2.7.0/gems/mini_magick-4.11.0/lib/mini_magick/image.rb:578:in `identify'
	from /opt/build/cache/bundle/ruby/2.7.0/gems/mini_magick-4.11.0/lib/mini_magick/image.rb:219:in `validate!'
	from /opt/build/cache/bundle/ruby/2.7.0/gems/mini_magick-4.11.0/lib/mini_magick/image.rb:131:in `block in create'
	from /opt/build/cache/bundle/ruby/2.7.0/gems/mini_magick-4.11.0/lib/mini_magick/image.rb:130:in `tap'
	from /opt/build/cache/bundle/ruby/2.7.0/gems/mini_magick-4.11.0/lib/mini_magick/image.rb:130:in `create'
	from /opt/build/cache/bundle/ruby/2.7.0/gems/mini_magick-4.11.0/lib/mini_magick/image.rb:34:in `read'
	from /opt/build/cache/bundle/ruby/2.7.0/gems/mini_magick-4.11.0/lib/mini_magick/image.rb:108:in `block in open'
	from /opt/build/cache/bundle/ruby/2.7.0/gems/mini_magick-4.11.0/lib/mini_magick/image.rb:108:in `open'
	from /opt/build/cache/bundle/ruby/2.7.0/gems/mini_magick-4.11.0/lib/mini_magick/image.rb:108:in `open'
	from /opt/build/cache/bundle/ruby/2.7.0/gems/mini_magick-4.11.0/lib/mini_magick/image.rb:108:in `open'
	from /opt/build/cache/bundle/ruby/2.7.0/gems/jekyll_picture_tag-1.14.0/lib/jekyll_picture_tag/images/source_image.rb:85:in `image'
	from /opt/build/cache/bundle/ruby/2.7.0/gems/jekyll_picture_tag-1.14.0/lib/jekyll_picture_tag/images/source_image.rb:78:in `update_cache'
	from /opt/build/cache/bundle/ruby/2.7.0/gems/jekyll_picture_tag-1.14.0/lib/jekyll_picture_tag/images/source_image.rb:73:in `check_cache'
	from /opt/build/cache/bundle/ruby/2.7.0/gems/jekyll_picture_tag-1.14.0/lib/jekyll_picture_tag/images/source_image.rb:17:in `initialize'
	from /opt/build/cache/bundle/ruby/2.7.0/gems/jekyll_picture_tag-1.14.0/lib/jekyll_picture_tag/instructions/set.rb:63:in `new'
	from /opt/build/cache/bundle/ruby/2.7.0/gems/jekyll_picture_tag-1.14.0/lib/jekyll_picture_tag/instructions/set.rb:63:in `build_source_images'
	from /opt/build/cache/bundle/ruby/2.7.0/gems/jekyll_picture_tag-1.14.0/lib/jekyll_picture_tag/instructions/set.rb:34:in `source_images'
	from /opt/build/cache/bundle/ruby/2.7.0/gems/jekyll_picture_tag-1.14.0/lib/jekyll_picture_tag/router.rb:48:in `source_images'
	from /opt/build/cache/bundle/ruby/2.7.0/gems/jekyll_picture_tag-1.14.0/lib/jekyll_picture_tag/utils.rb:51:in `count_srcsets'
	from /opt/build/cache/bundle/ruby/2.7.0/gems/jekyll_picture_tag-1.14.0/lib/jekyll_picture_tag/output_formats/auto.rb:7:in `new'
	from /opt/build/cache/bundle/ruby/2.7.0/gems/jekyll_picture_tag-1.14.0/lib/jekyll_picture_tag.rb:67:in `render'
	from /opt/build/cache/bundle/ruby/2.7.0/gems/liquid-4.0.3/lib/liquid/block_body.rb:103:in `render_node_to_output'
	from /opt/build/cache/bundle/ruby/2.7.0/gems/liquid-4.0.3/lib/liquid/block_body.rb:91:in `render'
	from /opt/build/cache/bundle/ruby/2.7.0/gems/liquid-4.0.3/lib/liquid/template.rb:208:in `block in render'
	from /opt/build/cache/bundle/ruby/2.7.0/gems/liquid-4.0.3/lib/liquid/template.rb:242:in `with_profiling'
	from /opt/build/cache/bundle/ruby/2.7.0/gems/liquid-4.0.3/lib/liquid/template.rb:207:in `render'
	from /opt/build/cache/bundle/ruby/2.7.0/gems/liquid-4.0.3/lib/liquid/template.rb:220:in `render!'
	from /opt/build/cache/bundle/ruby/2.7.0/gems/jekyll-4.0.1/lib/jekyll/liquid_renderer/file.rb:39:in `block (3 levels) in render!'
	from /opt/build/cache/bundle/ruby/2.7.0/gems/jekyll-4.0.1/lib/jekyll/liquid_renderer/file.rb:59:in `measure_counts'
	from /opt/build/cache/bundle/ruby/2.7.0/gems/jekyll-4.0.1/lib/jekyll/liquid_renderer/file.rb:38:in `block (2 levels) in render!'
	from /opt/build/cache/bundle/ruby/2.7.0/gems/jekyll-4.0.1/lib/jekyll/liquid_renderer/file.rb:63:in `measure_bytes'
	from /opt/build/cache/bundle/ruby/2.7.0/gems/jekyll-4.0.1/lib/jekyll/liquid_renderer/file.rb:37:in `block in render!'
	from /opt/build/cache/bundle/ruby/2.7.0/gems/jekyll-4.0.1/lib/jekyll/liquid_renderer/file.rb:70:in `measure_time'
	from /opt/build/cache/bundle/ruby/2.7.0/gems/jekyll-4.0.1/lib/jekyll/liquid_renderer/file.rb:36:in `render!'
	from /opt/build/cache/bundle/ruby/2.7.0/gems/jekyll-4.0.1/lib/jekyll/renderer.rb:127:in `render_liquid'
	from /opt/build/cache/bundle/ruby/2.7.0/gems/jekyll-4.0.1/lib/jekyll/renderer.rb:80:in `render_document'
	from /opt/build/cache/bundle/ruby/2.7.0/gems/jekyll-4.0.1/lib/jekyll/renderer.rb:63:in `run'
	from /opt/build/cache/bundle/ruby/2.7.0/gems/jekyll-4.0.1/lib/jekyll/site.rb:523:in `render_regenerated'
	from /opt/build/cache/bundle/ruby/2.7.0/gems/jekyll-4.0.1/lib/jekyll/site.rb:509:in `block (2 levels) in render_docs'
	from /opt/build/cache/bundle/ruby/2.7.0/gems/jekyll-4.0.1/lib/jekyll/site.rb:508:in `each'
	from /opt/build/cache/bundle/ruby/2.7.0/gems/jekyll-4.0.1/lib/jekyll/site.rb:508:in `block in render_docs'
	from /opt/build/cache/bundle/ruby/2.7.0/gems/jekyll-4.0.1/lib/jekyll/site.rb:507:in `each_value'
	from /opt/build/cache/bundle/ruby/2.7.0/gems/jekyll-4.0.1/lib/jekyll/site.rb:507:in `render_docs'
	from /opt/build/cache/bundle/ruby/2.7.0/gems/jekyll-4.0.1/lib/jekyll/site.rb:201:in `render'
	from /opt/build/cache/bundle/ruby/2.7.0/gems/jekyll-4.0.1/lib/jekyll/site.rb:76:in `process'
	from /opt/build/cache/bundle/ruby/2.7.0/gems/jekyll-4.0.1/lib/jekyll/command.rb:28:in `process_site'
	from /opt/build/cache/bundle/ruby/2.7.0/gems/jekyll-4.0.1/lib/jekyll/commands/build.rb:65:in `build'
	from /opt/build/cache/bundle/ruby/2.7.0/gems/jekyll-4.0.1/lib/jekyll/commands/build.rb:36:in `process'
	from /opt/build/cache/bundle/ruby/2.7.0/gems/jekyll-4.0.1/lib/jekyll/command.rb:89:in `block in process_with_graceful_fail'
	from /opt/build/cache/bundle/ruby/2.7.0/gems/jekyll-4.0.1/lib/jekyll/command.rb:89:in `each'
	from /opt/build/cache/bundle/ruby/2.7.0/gems/jekyll-4.0.1/lib/jekyll/command.rb:89:in `process_with_graceful_fail'
	from /opt/build/cache/bundle/ruby/2.7.0/gems/jekyll-4.0.1/lib/jekyll/commands/build.rb:18:in `block (2 levels) in init_with_program'
	from /opt/build/cache/bundle/ruby/2.7.0/gems/mercenary-0.3.6/lib/mercenary/command.rb:220:in `block in execute'
	from /opt/build/cache/bundle/ruby/2.7.0/gems/mercenary-0.3.6/lib/mercenary/command.rb:220:in `each'
	from /opt/build/cache/bundle/ruby/2.7.0/gems/mercenary-0.3.6/lib/mercenary/command.rb:220:in `execute'
	from /opt/build/cache/bundle/ruby/2.7.0/gems/mercenary-0.3.6/lib/mercenary/program.rb:42:in `go'
	from /opt/build/cache/bundle/ruby/2.7.0/gems/mercenary-0.3.6/lib/mercenary.rb:19:in `program'
	from /opt/build/cache/bundle/ruby/2.7.0/gems/jekyll-4.0.1/exe/jekyll:15:in `<top (required)>'
	from /opt/build/cache/binstubs/jekyll:29:in `load'
	from /opt/build/cache/binstubs/jekyll:29:in `<main>'
​
2:08:35 PM: ────────────────────────────────────────────────────────────────
2:08:35 PM:   "build.command" failed                                        
2:08:35 PM: ────────────────────────────────────────────────────────────────
2:08:35 PM: ​
2:08:35 PM:   Error message
2:08:35 PM:   Command failed with exit code 1: CI= jekyll build
2:08:35 PM: ​
2:08:35 PM:   Error location
2:08:35 PM:   In Build command from Netlify app:
2:08:35 PM:   CI= jekyll build
2:08:35 PM: ​
2:08:35 PM:   Resolved config
2:08:35 PM:   build:
2:08:35 PM:     command: CI= jekyll build
2:08:35 PM:     commandOrigin: ui
2:08:35 PM:     environment:
2:08:35 PM:       - REVIEW_ID
2:08:35 PM:     publish: /opt/build/repo/_site
2:08:35 PM: Caching artifacts
2:08:35 PM: Started saving ruby gems
2:08:35 PM: Finished saving ruby gems
2:08:35 PM: Started saving build plugins
2:08:35 PM: Finished saving build plugins
2:08:35 PM: Started saving pip cache
2:08:35 PM: Finished saving pip cache
2:08:35 PM: Started saving emacs cask dependencies
2:08:35 PM: Finished saving emacs cask dependencies
2:08:35 PM: Started saving maven dependencies
2:08:35 PM: Finished saving maven dependencies
2:08:35 PM: Started saving boot dependencies
2:08:35 PM: Finished saving boot dependencies
2:08:35 PM: Started saving rust rustup cache
2:08:35 PM: Finished saving rust rustup cache
2:08:35 PM: Started saving go dependencies
2:08:35 PM: Finished saving go dependencies
2:08:35 PM: Build failed due to a user error: Build script returned non-zero exit code: 2
2:08:35 PM: Failing build: Failed to build site
2:08:35 PM: Failed during stage 'building site': Build script returned non-zero exit code: 2
2:08:35 PM: Finished processing build request in 36.886706934s

hi there, could you post your package.json please? i think you might have the wrong build command.

Hi @perry,
No package.json on my site (for the moment). Is it a must?

Hi @perry,
What would be the correct build command?

From the looks of it, seems like something went wrong when converting the image in the file Adoption-of-UI-guidelines.md. You can check if that image is correctly places in the correct path or not, and if the image is not corrupt. You can also try replacing the image.

Also, maybe you’re converting the image to WebP, if nothing works, maybe you can manually convert the image and place it where it’s supposed to be.

1 Like

Hi! I have a little to add here - I maintain Jekyll Picture Tag, which is the plugin inakijv is using to generate responsive images for his Jekyll site, and is what’s breaking the build.

We use system libraries to handle image generation; specifically libvips. Netlify’s build image apparently contains libvips, but not some of the delegates it needs to handle various image formats (png and webp, for example). Is there a way to add these packages during the build process?

1 Like

hi @rbuchberger ! thanks for weighing in. I’ll try and get someone’s eyes on this who can help.

3 Likes

Sorry to be slow to get back to you, @rbuchberger !

There should be some way to accomplish this, but how easy it will be to do is the question. Easiest:

If that can’t work, I’d guess we need different options to our vips installation, as shown here:

Hi @fool! Thanks so much for your help, and no worries on taking awhile. I should have added an update to this thread- the PNG file issue was caused by an older version of libvips in your build container, which I was able to fix with an update to the plugin. Now we can successfully handle jpg, webp, and png files, which is a great start and probably enough for most people.

We’re still missing libraries for generating .jp2 and .avif images, so I’ll try the technique you’re describing. Avif would be nice because the file sizes are even smaller than webp, and jp2 is desirable because safari supports it (but not webp or avif). brew install libheic && do build runs over the time limit.

I did hear mention of libvips compiling to wasm and publishing on NPM, we may be able to leverage that.

Thanks!

1 Like