Error deploying with mini_racer 0.6.2

Hello Netlify support.

I’m trying to deploy a Deploy Preview for inspiring-golick-7b7a75 / flightfree.co.uk.

I’ve upgraded the mini_racer gem from 0.2.6 to 0.6.2 because I couldn’t get libv8 to install locally on my MacOS Monterey (there isn’t a binary for it and mini_racer uses libv8-node). But the Netlify build process throws an error when installing mini_racer 0.6.2. Build log below.

Thanks in advance for your help.

7:18:22 PM: Build ready to start
7:18:27 PM: build-image version: ac716c5be7f79fe384a0f3759e8ef612cb821a37 (xenial)
7:18:27 PM: build-image tag: v3.13.0
7:18:27 PM: buildbot version: 515e5c33287d8b909c004fcf2e460e8645e8c1c6
7:18:27 PM: Fetching cached dependencies
7:18:36 PM: Finished downloading cache in 8.400844141s
7:18:36 PM: Starting to extract cache
7:18:53 PM: Finished extracting cache in 17.554223099s
7:18:54 PM: Finished fetching cache in 26.060159572s
7:18:54 PM: Starting to prepare the repo for build
7:18:54 PM: Preparing Git Reference pull/79/head
7:18:55 PM: Parsing package.json dependencies
7:18:56 PM: Different build command detected, going to use the one specified in the Netlify configuration file: ‘bundle exec middleman build’ versus ‘middleman build --verbose’ in the Netlify UI
7:18:56 PM: Starting build script
7:18:56 PM: Installing dependencies
7:18:56 PM: Python version set to 2.7
7:18:57 PM: Started restoring cached node version
7:18:59 PM: Finished restoring cached node version
7:18:59 PM: v10.24.1 is already installed.
7:19:00 PM: Now using node v10.24.1 (npm v6.14.12)
7:19:00 PM: Started restoring cached build plugins
7:19:00 PM: Finished restoring cached build plugins
7:19:00 PM: Attempting ruby version 2.6.2, read from environment
7:19:01 PM: Using ruby version 2.6.2
7:19:01 PM: Using bundler version 1.17.2 from Gemfile.lock
7:19:02 PM: Successfully installed bundler-1.17.2
7:19:02 PM: 1 gem installed
7:19:02 PM: Using PHP version 5.6
7:19:02 PM: Started restoring cached ruby gems
7:19:02 PM: Finished restoring cached ruby gems
7:19:02 PM: Installing gem bundle
7:19:05 PM: Fetching gem metadata from https://rubygems.org/
7:19:05 PM: Using concurrent-ruby 1.1.6
7:19:05 PM: Using i18n 0.9.5
7:19:05 PM: Using minitest 5.14.1
7:19:05 PM: Using thread_safe 0.3.6
7:19:05 PM: Using tzinfo 1.2.7
7:19:05 PM: Using activesupport 5.2.4.3
7:19:05 PM: Using public_suffix 4.0.6
7:19:05 PM: Using addressable 2.8.0
7:19:05 PM: Using execjs 2.7.0
7:19:05 PM: Using autoprefixer-rails 9.6.1.1
7:19:05 PM: Using backports 3.17.2
7:19:05 PM: Using bundler 1.17.2
7:19:05 PM: Using coffee-script-source 1.12.2
7:19:05 PM: Using coffee-script 2.4.1
7:19:05 PM: Using contracts 0.13.0
7:19:05 PM: Using dotenv 2.7.5
7:19:05 PM: Using eventmachine 1.2.7
7:19:05 PM: Using http_parser.rb 0.6.0
7:19:05 PM: Using em-websocket 0.5.1
7:19:05 PM: Using erubis 2.7.0
7:19:05 PM: Using fast_blank 1.0.0
7:19:05 PM: Using fastimage 2.1.7
7:19:05 PM: Using ffi 1.13.1
7:19:05 PM: Using temple 0.8.2
7:19:05 PM: Using tilt 2.0.10
7:19:05 PM: Using haml 5.1.2
7:19:05 PM: Using hamster 3.0.0
7:19:05 PM: Using hashie 3.6.0
7:19:05 PM: Using kramdown 1.17.0
7:19:05 PM: Fetching libv8-node 16.10.0.0 (x86_64-linux-musl)
7:19:08 PM: Installing libv8-node 16.10.0.0 (x86_64-linux-musl)
7:19:11 PM: Using rb-fsevent 0.10.4
7:19:11 PM: Using rb-inotify 0.10.1
7:19:11 PM: Using listen 3.0.8
7:19:11 PM: Using memoist 0.16.2
7:19:11 PM: Using thor 1.0.1
7:19:11 PM: Using middleman-cli 4.3.7
7:19:11 PM: Using padrino-support 0.13.3.4
7:19:11 PM: Using padrino-helpers 0.13.3.4
7:19:11 PM: Using parallel 1.19.1
7:19:11 PM: Using rack 2.2.3
7:19:11 PM: Using sassc 2.4.0
7:19:11 PM: Using servolux 0.13.0
7:19:11 PM: Using uglifier 3.2.0
7:19:11 PM: Using middleman-core 4.3.7
7:19:11 PM: Using middleman 4.3.7
7:19:11 PM: Using middleman-autoprefixer 2.10.1
7:19:11 PM: Using middleman-blog 4.0.3
7:19:11 PM: Using rack-livereload 0.3.17
7:19:11 PM: Using middleman-livereload 3.4.6
7:19:11 PM: Using mini_portile2 2.6.1
7:19:11 PM: Fetching mini_racer 0.6.2
7:19:11 PM: Installing mini_racer 0.6.2 with native extensions
7:19:14 PM: Gem::Ext::BuildError: ERROR: Failed to build gem native extension.
7:19:14 PM: current directory:
7:19:14 PM: /opt/build/cache/bundle/ruby/2.6.0/gems/mini_racer-0.6.2/ext/mini_racer_extension
7:19:14 PM: /opt/buildhome/.rvm/rubies/ruby-2.6.2/bin/ruby -I
7:19:14 PM: /opt/buildhome/.rvm/rubies/ruby-2.6.2/lib/ruby/site_ruby/2.6.0 -r
7:19:14 PM: ./siteconf20220629-1250-1s1kzab.rb extconf.rb
7:19:14 PM: checking for -lpthread… yes
7:19:14 PM: creating Makefile
7:19:14 PM: current directory:
7:19:14 PM: /opt/build/cache/bundle/ruby/2.6.0/gems/mini_racer-0.6.2/ext/mini_racer_extension
7:19:14 PM: make “DESTDIR=” clean
7:19:14 PM: current directory:
7:19:14 PM: /opt/build/cache/bundle/ruby/2.6.0/gems/mini_racer-0.6.2/ext/mini_racer_extension
7:19:14 PM: make “DESTDIR=”
7:19:14 PM: compiling mini_racer_extension.cc
7:19:14 PM: cc1plus: warning: command line option ‘-Wimplicit-int’ is valid for C/ObjC but
7:19:14 PM: not for C++
7:19:14 PM: cc1plus: warning: unrecognized command line option ‘-Wno-tautological-compare’
7:19:14 PM: cc1plus: warning: unrecognized command line option ‘-Wno-self-assign’
7:19:14 PM: cc1plus: warning: unrecognized command line option ‘-Wno-parentheses-equality’
7:19:14 PM: cc1plus: warning: unrecognized command line option
7:19:14 PM: ‘-Wno-constant-logical-operand’
7:19:14 PM: cc1plus: warning: unrecognized command line option ‘-Wno-cast-function-type’
7:19:14 PM: linking shared-object mini_racer_extension.so
7:19:14 PM: g++: error:
7:19:14 PM: /opt/build/cache/bundle/ruby/2.6.0/gems/libv8-node-16.10.0.0-x86_64-linux/vendor/v8/x86_64-linux/libv8/obj/libv8_monolith.a:
7:19:14 PM: No such file or directory
7:19:14 PM: Makefile:259: recipe for target ‘mini_racer_extension.so’ failed
7:19:14 PM: make: *** [mini_racer_extension.so] Error 1
7:19:14 PM: make failed, exit code 2
7:19:14 PM: Gem files will remain installed in
7:19:14 PM: /opt/build/cache/bundle/ruby/2.6.0/gems/mini_racer-0.6.2 for inspection.
7:19:14 PM: Results logged to
7:19:14 PM: /opt/build/cache/bundle/ruby/2.6.0/extensions/x86_64-linux/2.6.0/mini_racer-0.6.2/gem_make.out
7:19:14 PM: An error occurred while installing mini_racer (0.6.2), and Bundler cannot
7:19:14 PM: continue.
7:19:14 PM: Make sure that gem install mini_racer -v '0.6.2' --source'https://rubygems.org/' succeeds before bundling.
7:19:14 PM: In Gemfile:
7:19:14 PM: mini_racer
7:19:14 PM: Error during gem install
7:19:14 PM: Build was terminated: Build script returned non-zero exit code: 1
7:19:14 PM: Creating deploy upload records
7:19:14 PM: Failing build: Failed to build site
7:19:14 PM: Failed during stage ‘building site’: Build script returned non-zero exit code: 1 (Search results for '"non-zero exit code: 1"' - Netlify Support Forums)
7:19:14 PM: Finished processing build request in 47.055243681s

Could I suggest that you upgrade to a version of ruby that has not been EOL’ed yet?

We can see here that v 2.6 left maintenance a few months ago:

https://www.ruby-lang.org/en/downloads/branches/

I think that might be a good first step so we’re troubleshooting more-current software. Here’s how to set in case you didn’t know: Manage build dependencies | Netlify Docs

Thanks for your help.

I’ve created a new branch just to get this working. I included a .ruby-version file to set Ruby to use v3.0.4. I also updated a number of other packages.

The build now seems to be failing because of a character encoding issue when interpreting <%= article.url %>. The articles are generated using the Netlify CMS.

Can you help me solve this please? Build output below, with verbose output for one of the errors below that…

3:56:13 PM: Build ready to start
3:56:59 PM: build-image version: ac716c5be7f79fe384a0f3759e8ef612cb821a37 (xenial)
3:56:59 PM: build-image tag: v3.13.0
3:56:59 PM: buildbot version: ed990b4b6588208e959ba45b6b7b05738f8b6004
3:56:59 PM: Fetching cached dependencies
3:57:05 PM: Finished downloading cache in 6.518393909s
3:57:05 PM: Starting to extract cache
3:57:24 PM: Finished extracting cache in 18.63621274s
3:57:24 PM: Finished fetching cache in 25.322581914s
3:57:24 PM: Starting to prepare the repo for build
3:57:24 PM: Preparing Git Reference pull/80/head
3:57:26 PM: Parsing package.json dependencies
3:57:26 PM: Different build command detected, going to use the one specified in the Netlify configuration file: ‘bundle exec middleman build’ versus ‘middleman build --verbose’ in the Netlify UI
3:57:27 PM: Starting build script
3:57:27 PM: Installing dependencies
3:57:27 PM: Python version set to 2.7
3:57:27 PM: Started restoring cached node version
3:57:30 PM: Finished restoring cached node version
3:57:30 PM: v10.24.1 is already installed.
3:57:31 PM: Now using node v10.24.1 (npm v6.14.12)
3:57:31 PM: Started restoring cached build plugins
3:57:31 PM: Finished restoring cached build plugins
3:57:31 PM: Required ruby-3.0.4 is not installed.
3:57:31 PM: To install do: ‘rvm install “ruby-3.0.4”’
3:57:31 PM: Attempting ruby version 3.0.4, read from .ruby-version file
3:57:32 PM: Required ruby-3.0.4 is not installed - installing.
3:57:32 PM: Searching for binary rubies, this might take some time.
3:57:34 PM: Found remote file https://rubies.travis-ci.org/ubuntu/16.04/x86_64/ruby-3.0.4.tar.bz2
3:57:34 PM: Checking requirements for ubuntu.
3:57:35 PM: Requirements installation successful.
3:57:35 PM: ruby-3.0.4 - #configure
3:57:35 PM: ruby-3.0.4 - #download
3:57:37 PM: No checksum for downloaded archive, recording checksum in user configuration.
3:57:37 PM: ruby-3.0.4 - #validate archive
3:57:42 PM: ruby-3.0.4 - #extract
3:57:45 PM: ruby-3.0.4 - #validate binary
3:57:46 PM: ruby-3.0.4 - #setup
3:57:46 PM: ruby-3.0.4 - #gemset created /opt/buildhome/.rvm/gems/ruby-3.0.4@global
3:57:46 PM: ruby-3.0.4 - #importing gemset /opt/buildhome/.rvm/gemsets/global.gems…
3:57:47 PM: ruby-3.0.4 - #generating global wrappers…
3:57:47 PM: ruby-3.0.4 - #gemset created /opt/buildhome/.rvm/gems/ruby-3.0.4
3:57:47 PM: ruby-3.0.4 - #importing gemsetfile /opt/buildhome/.rvm/gemsets/default.gems evaluated to empty gem list
3:57:48 PM: ruby-3.0.4 - #generating default wrappers…
3:57:48 PM: Using /opt/buildhome/.rvm/gems/ruby-3.0.4
3:57:49 PM: Using ruby version 3.0.4
3:57:49 PM: Using bundler version 2.3.17 from Gemfile.lock
3:57:50 PM: Successfully installed bundler-2.3.17
3:57:50 PM: 1 gem installed
3:57:50 PM: Using PHP version 5.6
3:57:50 PM: Started restoring cached ruby gems
3:57:50 PM: Finished restoring cached ruby gems
3:57:50 PM: Installing gem bundle
3:57:50 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
3:57:50 PM: [DEPRECATED] The --binstubs option will be removed in favor of bundle binstubs --all
3:57:53 PM: Fetching gem metadata from https://rubygems.org/
3:57:53 PM: Resolving dependencies…
3:57:53 PM: Using bundler 2.3.17
3:57:53 PM: Fetching execjs 2.8.1
3:57:53 PM: Fetching backports 3.23.0
3:57:53 PM: Fetching concurrent-ruby 1.1.10
3:57:53 PM: Fetching minitest 5.16.2
3:57:53 PM: Fetching zeitwerk 2.6.0
3:57:53 PM: Fetching public_suffix 4.0.7
3:57:53 PM: Fetching coffee-script-source 1.12.2
3:57:53 PM: Fetching contracts 0.13.0
3:57:53 PM: Installing zeitwerk 2.6.0
3:57:53 PM: Installing execjs 2.8.1
3:57:53 PM: Installing minitest 5.16.2
3:57:53 PM: Installing coffee-script-source 1.12.2
3:57:53 PM: Installing public_suffix 4.0.7
3:57:53 PM: Installing contracts 0.13.0
3:57:53 PM: Installing backports 3.23.0
3:57:53 PM: Fetching dotenv 2.7.6
3:57:53 PM: Fetching eventmachine 1.2.7
3:57:53 PM: Installing concurrent-ruby 1.1.10
3:57:53 PM: Fetching http_parser.rb 0.8.0
3:57:53 PM: Fetching erubis 2.7.0
3:57:53 PM: Installing dotenv 2.7.6
3:57:53 PM: Fetching fast_blank 1.0.1
3:57:53 PM: Fetching fastimage 2.2.6
3:57:53 PM: Installing eventmachine 1.2.7 with native extensions
3:57:53 PM: Installing erubis 2.7.0
3:57:53 PM: Installing http_parser.rb 0.8.0 with native extensions
3:57:53 PM: Fetching ffi 1.15.5
3:57:53 PM: Installing fast_blank 1.0.1 with native extensions
3:57:54 PM: Installing fastimage 2.2.6
3:57:54 PM: Fetching temple 0.8.2
3:57:54 PM: Fetching tilt 2.0.10
3:57:54 PM: Installing ffi 1.15.5 with native extensions
3:57:54 PM: Installing tilt 2.0.10
3:57:54 PM: Installing temple 0.8.2
3:57:54 PM: Fetching hashie 3.6.0
3:57:54 PM: Installing hashie 3.6.0
3:57:54 PM: Fetching rexml 3.2.5
3:57:54 PM: Installing rexml 3.2.5
3:57:54 PM: Fetching libv8-node 16.10.0.0 (x86_64-linux)
3:57:54 PM: Fetching rb-fsevent 0.11.1
3:57:54 PM: Fetching memoist 0.16.2
3:57:54 PM: Fetching thor 1.2.1
3:57:54 PM: Installing rb-fsevent 0.11.1
3:57:54 PM: Installing memoist 0.16.2
3:57:55 PM: Fetching padrino-support 0.15.1
3:57:55 PM: Fetching parallel 1.22.1
3:57:55 PM: Installing thor 1.2.1
3:57:55 PM: Installing padrino-support 0.15.1
3:57:55 PM: Installing parallel 1.22.1
3:57:55 PM: Fetching rack 2.2.4
3:57:55 PM: Fetching servolux 0.13.0
3:57:55 PM: Fetching parslet 2.0.0
3:57:55 PM: Fetching webrick 1.7.0
3:57:55 PM: Installing servolux 0.13.0
3:57:55 PM: Installing webrick 1.7.0
3:57:55 PM: Installing rack 2.2.4
3:57:55 PM: Fetching racc 1.6.0
3:57:55 PM: Installing parslet 2.0.0
3:57:55 PM: Fetching autoprefixer-rails 9.8.6.5
3:57:55 PM: Fetching coffee-script 2.4.1
3:57:55 PM: Installing racc 1.6.0 with native extensions
3:57:56 PM: Installing coffee-script 2.4.1
3:57:56 PM: Fetching uglifier 3.2.0
3:57:56 PM: Fetching addressable 2.8.0
3:57:56 PM: Installing autoprefixer-rails 9.8.6.5
3:57:56 PM: Fetching i18n 1.6.0
3:57:56 PM: Installing uglifier 3.2.0
3:57:56 PM: Installing addressable 2.8.0
3:57:56 PM: Installing i18n 1.6.0
3:57:56 PM: Fetching tzinfo 2.0.4
3:57:56 PM: Fetching hamster 3.0.0
3:57:56 PM: Fetching haml 5.2.2
3:57:57 PM: Installing tzinfo 2.0.4
3:57:57 PM: Installing haml 5.2.2
3:57:57 PM: Fetching kramdown 2.4.0
3:57:57 PM: Installing hamster 3.0.0
3:57:57 PM: Fetching middleman-cli 4.4.2
3:57:57 PM: Fetching rack-livereload 0.3.17
3:57:57 PM: Installing kramdown 2.4.0
3:57:57 PM: Installing middleman-cli 4.4.2
3:57:57 PM: Fetching toml 0.3.0
3:57:57 PM: Installing toml 0.3.0
3:57:57 PM: Installing rack-livereload 0.3.17
3:57:57 PM: Fetching padrino-helpers 0.15.1
3:57:57 PM: Fetching activesupport 6.1.6
3:57:58 PM: Installing padrino-helpers 0.15.1
3:57:58 PM: Installing activesupport 6.1.6
3:57:58 PM: Fetching nokogiri 1.13.6 (x86_64-linux)
3:57:59 PM: Installing nokogiri 1.13.6 (x86_64-linux)
3:58:00 PM: Installing libv8-node 16.10.0.0 (x86_64-linux)
3:58:02 PM: Fetching mini_racer 0.6.2
3:58:02 PM: Installing mini_racer 0.6.2 with native extensions
3:58:11 PM: Fetching rb-inotify 0.10.1
3:58:11 PM: Fetching sassc 2.4.0
3:58:11 PM: Installing rb-inotify 0.10.1
3:58:11 PM: Fetching listen 3.0.8
3:58:11 PM: Installing sassc 2.4.0 with native extensions
3:58:11 PM: Installing listen 3.0.8
3:58:13 PM: Fetching em-websocket 0.5.3
3:58:13 PM: Installing em-websocket 0.5.3
3:59:23 PM: Fetching middleman-core 4.4.2
3:59:23 PM: Installing middleman-core 4.4.2
3:59:23 PM: Fetching middleman 4.4.2
3:59:23 PM: Fetching middleman-autoprefixer 2.10.1
3:59:23 PM: Fetching middleman-blog 4.0.3
3:59:23 PM: Fetching middleman-livereload 3.4.7
3:59:23 PM: Installing middleman-autoprefixer 2.10.1
3:59:23 PM: Installing middleman 4.4.2
3:59:23 PM: Installing middleman-blog 4.0.3
3:59:23 PM: Installing middleman-livereload 3.4.7
3:59:23 PM: Bundle complete! 7 Gemfile dependencies, 56 gems now installed.
3:59:23 PM: Bundled gems are installed into /opt/build/cache/bundle
3:59:23 PM: Post-install message from i18n:
3:59:23 PM: HEADS UP! i18n 1.1 changed fallbacks to exclude default locale.
3:59:23 PM: But that may break your application.
3:59:23 PM: Please check your Rails app for ‘config.i18n.fallbacks = true’.
3:59:23 PM: If you’re using I18n (>= 1.1.0) and Rails (< 5.2.2), this should be’config.i18n.fallbacks = [I18n.default_locale]‘.
3:59:23 PM: If not, fallbacks will be broken in your app by I18n 1.1.x.
3:59:23 PM: For more info see:
3:59:23 PM: Release v1.1.0 · ruby-i18n/i18n · GitHub
3:59:23 PM: Gem bundle installed
3:59:23 PM: Started restoring cached yarn cache
3:59:26 PM: Finished restoring cached yarn cache
3:59:26 PM: No yarn workspaces detected
3:59:26 PM: Started restoring cached node modules
3:59:26 PM: Finished restoring cached node modules
3:59:27 PM: Installing NPM modules using Yarn version 1.17.0
3:59:27 PM: yarn install v1.17.0
3:59:27 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.
3:59:27 PM: [1/4] Resolving packages…
3:59:28 PM: [2/4] Fetching packages…
3:59:45 PM: info @netlify/traffic-mesh-agent-darwin-x64@0.27.0: The platform “linux” is incompatible with this module.
3:59:45 PM: info “@netlify/traffic-mesh-agent-darwin-x64@0.27.0” is an optional dependency and failed compatibility check. Excluding it from installation.
3:59:45 PM: info fsevents@2.1.3: The platform “linux” is incompatible with this module.
3:59:45 PM: info “fsevents@2.1.3” is an optional dependency and failed compatibility check. Excluding it from installation.
3:59:45 PM: info fsevents@2.3.2: The platform “linux” is incompatible with this module.
3:59:45 PM: info “fsevents@2.3.2” is an optional dependency and failed compatibility check. Excluding it from installation.
3:59:45 PM: info esbuild-darwin-64@0.13.13: The platform “linux” is incompatible with this module.
3:59:45 PM: info “esbuild-darwin-64@0.13.13” is an optional dependency and failed compatibility check. Excluding it from installation.
3:59:45 PM: info esbuild-darwin-arm64@0.13.13: The platform “linux” is incompatible with this module.
3:59:45 PM: info “esbuild-darwin-arm64@0.13.13” is an optional dependency and failed compatibility check. Excluding it from installation.
3:59:45 PM: info esbuild-darwin-arm64@0.13.13: The CPU architecture “x64” is incompatible with this module.
3:59:45 PM: info esbuild-android-arm64@0.13.13: The platform “linux” is incompatible with this module.
3:59:45 PM: info “esbuild-android-arm64@0.13.13” is an optional dependency and failed compatibility check. Excluding it from installation.
3:59:45 PM: info esbuild-android-arm64@0.13.13: The CPU architecture “x64” is incompatible with this module.
3:59:45 PM: info esbuild-linux-arm@0.13.13: The CPU architecture “x64” is incompatible with this module.
3:59:45 PM: info “esbuild-linux-arm@0.13.13” is an optional dependency and failed compatibility check. Excluding it from installation.
3:59:45 PM: info esbuild-linux-32@0.13.13: The CPU architecture “x64” is incompatible with this module.
3:59:45 PM: info “esbuild-linux-32@0.13.13” is an optional dependency and failed compatibility check. Excluding it from installation.
3:59:45 PM: info esbuild-freebsd-64@0.13.13: The platform “linux” is incompatible with this module.
3:59:45 PM: info “esbuild-freebsd-64@0.13.13” is an optional dependency and failed compatibility check. Excluding it from installation.
3:59:45 PM: info esbuild-freebsd-arm64@0.13.13: The platform “linux” is incompatible with this module.
3:59:45 PM: info “esbuild-freebsd-arm64@0.13.13” is an optional dependency and failed compatibility check. Excluding it from installation.
3:59:45 PM: info esbuild-freebsd-arm64@0.13.13: The CPU architecture “x64” is incompatible with this module.
3:59:45 PM: info esbuild-linux-mips64le@0.13.13: The CPU architecture “x64” is incompatible with this module.
3:59:45 PM: info “esbuild-linux-mips64le@0.13.13” is an optional dependency and failed compatibility check. Excluding it from installation.
3:59:45 PM: info esbuild-linux-arm64@0.13.13: The CPU architecture “x64” is incompatible with this module.
3:59:45 PM: info “esbuild-linux-arm64@0.13.13” is an optional dependency and failed compatibility check. Excluding it from installation.
3:59:45 PM: info esbuild-linux-ppc64le@0.13.13: The CPU architecture “x64” is incompatible with this module.
3:59:45 PM: info “esbuild-linux-ppc64le@0.13.13” is an optional dependency and failed compatibility check. Excluding it from installation.
3:59:45 PM: info esbuild-openbsd-64@0.13.13: The platform “linux” is incompatible with this module.
3:59:45 PM: info “esbuild-openbsd-64@0.13.13” is an optional dependency and failed compatibility check. Excluding it from installation.
3:59:45 PM: info esbuild-sunos-64@0.13.13: The platform “linux” is incompatible with this module.
3:59:45 PM: info “esbuild-sunos-64@0.13.13” is an optional dependency and failed compatibility check. Excluding it from installation.
3:59:45 PM: info esbuild-windows-32@0.13.13: The platform “linux” is incompatible with this module.
3:59:45 PM: info “esbuild-windows-32@0.13.13” is an optional dependency and failed compatibility check. Excluding it from installation.
3:59:45 PM: info esbuild-windows-32@0.13.13: The CPU architecture “x64” is incompatible with this module.
3:59:45 PM: info esbuild-netbsd-64@0.13.13: The platform “linux” is incompatible with this module.
3:59:45 PM: info “esbuild-netbsd-64@0.13.13” is an optional dependency and failed compatibility check. Excluding it from installation.
3:59:45 PM: info esbuild-windows-arm64@0.13.13: The platform “linux” is incompatible with this module.
3:59:45 PM: info “esbuild-windows-arm64@0.13.13” is an optional dependency and failed compatibility check. Excluding it from installation.
3:59:45 PM: info esbuild-windows-arm64@0.13.13: The CPU architecture “x64” is incompatible with this module.
3:59:45 PM: info esbuild-windows-64@0.13.13: The platform “linux” is incompatible with this module.
3:59:45 PM: info “esbuild-windows-64@0.13.13” is an optional dependency and failed compatibility check. Excluding it from installation.
3:59:45 PM: info @netlify/traffic-mesh-agent-win32-x64@0.27.10: The platform “linux” is incompatible with this module.
3:59:45 PM: info “@netlify/traffic-mesh-agent-win32-x64@0.27.10” is an optional dependency and failed compatibility check. Excluding it from installation.
3:59:45 PM: info fsevents@1.2.13: The platform “linux” is incompatible with this module.
3:59:45 PM: info “fsevents@1.2.13” is an optional dependency and failed compatibility check. Excluding it from installation.
3:59:45 PM: [3/4] Linking dependencies…
3:59:52 PM: [4/4] Building fresh packages…
3:59:54 PM: success Saved lockfile.
3:59:54 PM: Done in 27.38s.
3:59:54 PM: NPM modules installed using Yarn
3:59:55 PM: Started restoring cached go cache
3:59:56 PM: Finished restoring cached go cache
3:59:56 PM: Installing Go version 1.12
3:59:56 PM: unset GOOS;
3:59:56 PM: unset GOARCH;
3:59:56 PM: export GOROOT=’/opt/buildhome/.gimme_cache/versions/go1.12.linux.amd64’;
3:59:56 PM: export PATH=“/opt/buildhome/.gimme_cache/versions/go1.12.linux.amd64/bin:${PATH}”;
3:59:56 PM: go version >&2;
3:59:56 PM: export GIMME_ENV=‘/opt/buildhome/.gimme_cache/env/go1.12.linux.amd64.env’;
3:59:56 PM: go version go1.12 linux/amd64
3:59:56 PM: Installing missing commands
3:59:56 PM: Verify run directory
3:59:57 PM: ​
3:59:57 PM: ────────────────────────────────────────────────────────────────
3:59:57 PM: Netlify Build
3:59:57 PM: ────────────────────────────────────────────────────────────────
3:59:57 PM: ​
3:59:57 PM: ❯ Version
3:59:57 PM: @netlify/build 27.3.3
3:59:57 PM: ​
3:59:57 PM: ❯ Flags
3:59:57 PM: baseRelDir: true
3:59:57 PM: buildId: 62c5a28d2813180009797a11
3:59:57 PM: deployId: 62c5a28d2813180009797a13
3:59:57 PM: ​
3:59:57 PM: ❯ Current directory
3:59:57 PM: /opt/build/repo
3:59:57 PM: ​
3:59:57 PM: ❯ Config file
3:59:57 PM: /opt/build/repo/netlify.toml
3:59:57 PM: ​
3:59:57 PM: ❯ Context
3:59:57 PM: deploy-preview
3:59:57 PM: ​
3:59:57 PM: ────────────────────────────────────────────────────────────────
3:59:57 PM: 1. build.command from netlify.toml
3:59:57 PM: ────────────────────────────────────────────────────────────────
3:59:57 PM: ​
3:59:57 PM: $ bundle exec middleman build
3:59:59 PM: == Executing: npm run webpack
4:00:02 PM: Browserslist: caniuse-lite is outdated. Please run:
4:00:02 PM: npx browserslist@latest --update-db
4:00:02 PM: Why you should do it regularly: GitHub - browserslist/browserslist: 🦔 Share target browsers between different front-end tools, like Autoprefixer, Stylelint and babel-preset-env
4:00:14 PM: == External: > flightfree@1.0.1 webpack /opt/build/repo
4:00:14 PM: == External: > WEBPACK_ENV=build webpack
4:00:14 PM: == External: Hash: afebb713cfdb385eec89
4:00:14 PM: == External: Version: webpack 4.46.0
4:00:14 PM: == External: Time: 11799ms
4:00:14 PM: == External: Built at: 07/06/2022 3:00:12 PM
4:00:14 PM: == External: Asset Size Chunks Chunk Names
4:00:14 PM: == External: javascripts/main.js 96.1 KiB 0 [emitted] main
4:00:14 PM: == External: javascripts/main.js.map 96 bytes 0 [emitted] [dev] main
4:00:14 PM: == External: stylesheets/main.css 35.8 KiB 0 [emitted] main
4:00:14 PM: == External: stylesheets/main.css.map 49.5 KiB 0 [emitted] [dev] main
4:00:14 PM: == External: Entrypoint main = stylesheets/main.css javascripts/main.js stylesheets/main.css.map javascripts/main.js.map
4:00:14 PM: == External: [93] (webpack)/buildin/global.js 905 bytes {0} [built]
4:00:14 PM: == External: [130] multi babel-polyfill ./assets/source/js/site.js ./assets/source/css/styles.css 52 bytes {0} [built]
4:00:14 PM: == External: [330] (webpack)/buildin/module.js 552 bytes {0} [built]
4:00:14 PM: == External: [334] ./assets/source/js/site.js 3.6 KiB {0} [built]
4:00:14 PM: == External: [335] ./assets/source/css/styles.css 39 bytes {0} [built]
4:00:14 PM: == External: + 332 hidden modules
4:00:14 PM: == External: Child mini-css-extract-plugin node_modules/css-loader/dist/cjs.js??ref–5-1!node_modules/postcss-loader/src/index.js!assets/source/css/styles.css:
4:00:14 PM: == External: Entrypoint mini-css-extract-plugin = *
4:00:14 PM: == External: [0] ./node_modules/css-loader/dist/cjs.js??ref–5-1!./node_modules/postcss-loader/src!./assets/source/css/styles.css 38.9 KiB {0} [built]
4:00:14 PM: == External: + 1 hidden module
4:00:14 PM: == Blog Sources: posts/{title}.html (:prefix + :sources)
4:00:14 PM: create build/stylesheets/main.css
4:00:14 PM: create build/images/uploads/steam-train-through-scotland.png
4:00:14 PM: create build/images/uploads/unbalanced.png

… etc. (character count exceeded) …

4:00:20 PM: create build/post/lonely-planet-s-guide-to-train-travel-in-europe/index.html
4:00:20 PM: create build/post/spain-by-train/index.html
4:00:20 PM: create build/post/safe-lgbtq-flight-free-travels/index.html
4:00:20 PM: create build/downloads/index.html
4:00:20 PM: create build/post/six-weeks-in-britain/index.html
4:00:20 PM: create build/about_us/index.html
4:00:20 PM: create build/contact_us/index.html
4:00:20 PM: create build/privacy_policy/index.html
4:00:20 PM: create build/podcast/index.html
4:00:20 PM: create build/faq/index.html
4:00:20 PM: create build/_redirects
4:00:20 PM: create build/take_action/index.html
4:00:20 PM: create build/why_flight_free/index.html
4:00:20 PM: create build/index.html
4:00:20 PM: create build/terms_and_conditions/index.html
4:00:20 PM: error build/blog/categories/travel/index.html
4:00:20 PM: create build/blog/categories/testimonials/index.html
4:00:20 PM: create build/blog/categories/climate/index.html
4:00:20 PM: error build/be_inspired/index.html
4:00:20 PM: create build/blog/categories/opinion/index.html
4:00:20 PM: There were errors during this build, re-run with middleman build --verbose to see the full exception.
4:00:20 PM: ​
4:00:20 PM: ────────────────────────────────────────────────────────────────
4:00:20 PM: “build.command” failed
4:00:20 PM: ────────────────────────────────────────────────────────────────
4:00:20 PM: ​
4:00:20 PM: Error message
4:00:20 PM: Command failed with exit code 1: bundle exec middleman build (Search results for '"non-zero exit code: 1"' - Netlify Support Forums)
4:00:20 PM: ​
4:00:20 PM: Error location
4:00:20 PM: In build.command from netlify.toml:
4:00:20 PM: bundle exec middleman build
4:00:20 PM: ​
4:00:20 PM: Resolved config
4:00:20 PM: build:
4:00:20 PM: command: bundle exec middleman build
4:00:20 PM: commandOrigin: config
4:00:20 PM: environment:
4:00:20 PM: - EXTRA_PLEDGE_NUMBER
4:00:20 PM: - MAILCHIMP_API_KEY
4:00:20 PM: - MAILCHIMP_LIST_ID
4:00:20 PM: - REVIEW_ID
4:00:20 PM: publish: /opt/build/repo/build
4:00:20 PM: publishOrigin: config
4:00:21 PM: Caching artifacts
4:00:21 PM: Started saving ruby gems
4:00:21 PM: Finished saving ruby gems
4:00:21 PM: Started saving node modules
4:00:21 PM: Finished saving node modules
4:00:21 PM: Started saving build plugins
4:00:21 PM: Finished saving build plugins
4:00:21 PM: Started saving yarn cache
4:00:27 PM: Finished saving yarn cache
4:00:27 PM: Started saving pip cache
4:00:27 PM: Finished saving pip cache
4:00:27 PM: Started saving emacs cask dependencies
4:00:27 PM: Finished saving emacs cask dependencies
4:00:27 PM: Started saving maven dependencies
4:00:27 PM: Finished saving maven dependencies
4:00:27 PM: Started saving boot dependencies
4:00:27 PM: Finished saving boot dependencies
4:00:27 PM: Started saving rust rustup cache
4:00:27 PM: Finished saving rust rustup cache
4:00:28 PM: Started saving go dependencies
4:00:29 PM: Finished saving go dependencies
4:00:29 PM: Cached ruby version 3.0.4
4:00:29 PM: Build failed due to a user error: Build script returned non-zero exit code: 2
4:00:29 PM: Creating deploy upload records
4:00:30 PM: Failing build: Failed to build site
4:00:30 PM: Failed during stage ‘building site’: Build script returned non-zero exit code: 2 (Search results for '"non-zero exit code: 2"' - Netlify Support Forums)
4:00:30 PM: Finished processing build request in 3m31.196733273s

4:12:18 PM: error build/post/holidays-on-mars/index.html
4:12:18 PM: incompatible character encodings: ASCII-8BIT and UTF-8
4:12:18 PM: _home_blog_post.erb:3:in __tilt_43440' /opt/build/cache/bundle/ruby/3.0.0/gems/tilt-2.0.10/lib/tilt/template.rb:170:in call’
/opt/build/cache/bundle/ruby/3.0.0/gems/tilt-2.0.10/lib/tilt/template.rb:170:in evaluate' /opt/build/cache/bundle/ruby/3.0.0/gems/tilt-2.0.10/lib/tilt/template.rb:109:in render’
/opt/build/cache/bundle/ruby/3.0.0/gems/middleman-core-4.4.2/lib/middleman-core/file_renderer.rb:79:in render' /opt/build/cache/bundle/ruby/3.0.0/gems/contracts-0.13.0/lib/contracts/method_reference.rb:43:in send_to’
/opt/build/cache/bundle/ruby/3.0.0/gems/contracts-0.13.0/lib/contracts/call_with.rb:76:in call_with' /opt/build/cache/bundle/ruby/3.0.0/gems/contracts-0.13.0/lib/contracts/method_handler.rb:138:in block in redefine_method’
/opt/build/cache/bundle/ruby/3.0.0/gems/middleman-core-4.4.2/lib/middleman-core/template_context.rb:202:in _render_with_all_renderers' /opt/build/cache/bundle/ruby/3.0.0/gems/contracts-0.13.0/lib/contracts/method_reference.rb:43:in send_to’
/opt/build/cache/bundle/ruby/3.0.0/gems/contracts-0.13.0/lib/contracts/call_with.rb:76:in call_with' /opt/build/cache/bundle/ruby/3.0.0/gems/contracts-0.13.0/lib/contracts/method_handler.rb:138:in block in redefine_method’
/opt/build/cache/bundle/ruby/3.0.0/gems/middleman-core-4.4.2/lib/middleman-core/template_context.rb:188:in render_file' /opt/build/cache/bundle/ruby/3.0.0/gems/contracts-0.13.0/lib/contracts/method_reference.rb:43:in send_to’
/opt/build/cache/bundle/ruby/3.0.0/gems/contracts-0.13.0/lib/contracts/call_with.rb:76:in call_with' /opt/build/cache/bundle/ruby/3.0.0/gems/contracts-0.13.0/lib/contracts/method_handler.rb:138:in block in redefine_method’
/opt/build/cache/bundle/ruby/3.0.0/gems/middleman-core-4.4.2/lib/middleman-core/template_context.rb:119:in render' /opt/build/cache/bundle/ruby/3.0.0/gems/contracts-0.13.0/lib/contracts/method_reference.rb:43:in send_to’
/opt/build/cache/bundle/ruby/3.0.0/gems/contracts-0.13.0/lib/contracts/call_with.rb:76:in call_with' /opt/build/cache/bundle/ruby/3.0.0/gems/contracts-0.13.0/lib/contracts/method_handler.rb:138:in block in redefine_method’
/opt/build/cache/bundle/ruby/3.0.0/gems/padrino-helpers-0.15.1/lib/padrino-helpers/render_helpers.rb:55:in block in partial' /opt/build/cache/bundle/ruby/3.0.0/gems/padrino-helpers-0.15.1/lib/padrino-helpers/render_helpers.rb:48:in each’
/opt/build/cache/bundle/ruby/3.0.0/gems/padrino-helpers-0.15.1/lib/padrino-helpers/render_helpers.rb:48:in each_with_object' /opt/build/cache/bundle/ruby/3.0.0/gems/padrino-helpers-0.15.1/lib/padrino-helpers/render_helpers.rb:48:in partial’
/opt/build/cache/bundle/ruby/3.0.0/gems/middleman-core-4.4.2/lib/middleman-core/core_extensions/default_helpers.rb:297:in partial' layouts/blog_post_layout.erb:54:in block in __tilt_43440’
/opt/build/cache/bundle/ruby/3.0.0/gems/middleman-core-4.4.2/lib/middleman-core/core_extensions/default_helpers.rb:21:in capture_from_template' /opt/build/cache/bundle/ruby/3.0.0/gems/middleman-core-4.4.2/lib/middleman-core/core_extensions/default_helpers.rb:76:in capture_html’
/opt/build/cache/bundle/ruby/3.0.0/gems/middleman-core-4.4.2/lib/middleman-core/template_context.rb:82:in wrap_layout' layouts/blog_post_layout.erb:1:in __tilt_43440’
/opt/build/cache/bundle/ruby/3.0.0/gems/tilt-2.0.10/lib/tilt/template.rb:170:in call' /opt/build/cache/bundle/ruby/3.0.0/gems/tilt-2.0.10/lib/tilt/template.rb:170:in evaluate’
/opt/build/cache/bundle/ruby/3.0.0/gems/tilt-2.0.10/lib/tilt/template.rb:109:in render' /opt/build/cache/bundle/ruby/3.0.0/gems/middleman-core-4.4.2/lib/middleman-core/file_renderer.rb:79:in render’
/opt/build/cache/bundle/ruby/3.0.0/gems/contracts-0.13.0/lib/contracts/method_reference.rb:43:in send_to' /opt/build/cache/bundle/ruby/3.0.0/gems/contracts-0.13.0/lib/contracts/call_with.rb:76:in call_with’
/opt/build/cache/bundle/ruby/3.0.0/gems/contracts-0.13.0/lib/contracts/method_handler.rb:138:in block in redefine_method' /opt/build/cache/bundle/ruby/3.0.0/gems/middleman-core-4.4.2/lib/middleman-core/template_renderer.rb:157:in block in render’
/opt/build/cache/bundle/ruby/3.0.0/gems/activesupport-6.1.6/lib/active_support/notifications.rb:205:in instrument' /opt/build/cache/bundle/ruby/3.0.0/gems/middleman-core-4.4.2/lib/middleman-core/util.rb:21:in instrument’
/opt/build/cache/bundle/ruby/3.0.0/gems/middleman-core-4.4.2/lib/middleman-core/template_renderer.rb:156:in render' /opt/build/cache/bundle/ruby/3.0.0/gems/contracts-0.13.0/lib/contracts/method_reference.rb:43:in send_to’
/opt/build/cache/bundle/ruby/3.0.0/gems/contracts-0.13.0/lib/contracts/call_with.rb:76:in call_with' /opt/build/cache/bundle/ruby/3.0.0/gems/contracts-0.13.0/lib/contracts/method_handler.rb:138:in block in redefine_method’
/opt/build/cache/bundle/ruby/3.0.0/gems/middleman-core-4.4.2/lib/middleman-core/sitemap/resource.rb:154:in render' /opt/build/cache/bundle/ruby/3.0.0/gems/contracts-0.13.0/lib/contracts/method_reference.rb:43:in send_to’
/opt/build/cache/bundle/ruby/3.0.0/gems/contracts-0.13.0/lib/contracts/call_with.rb:76:in call_with' /opt/build/cache/bundle/ruby/3.0.0/gems/contracts-0.13.0/lib/contracts/method_handler.rb:138:in block in redefine_method’
/opt/build/cache/bundle/ruby/3.0.0/gems/middleman-blog-4.0.3/lib/middleman-blog/blog_article.rb:59:in render' /opt/build/cache/bundle/ruby/3.0.0/gems/middleman-core-4.4.2/lib/middleman-core/rack.rb:113:in process_request’
/opt/build/cache/bundle/ruby/3.0.0/gems/middleman-core-4.4.2/lib/middleman-core/rack.rb:67:in block in call' /opt/build/cache/bundle/ruby/3.0.0/gems/middleman-core-4.4.2/lib/middleman-core/rack.rb:66:in catch’
/opt/build/cache/bundle/ruby/3.0.0/gems/middleman-core-4.4.2/lib/middleman-core/rack.rb:66:in call' /opt/build/cache/bundle/ruby/3.0.0/gems/rack-2.2.4/lib/rack/urlmap.rb:74:in block in call’
/opt/build/cache/bundle/ruby/3.0.0/gems/rack-2.2.4/lib/rack/urlmap.rb:58:in each' /opt/build/cache/bundle/ruby/3.0.0/gems/rack-2.2.4/lib/rack/urlmap.rb:58:in call’
/opt/build/cache/bundle/ruby/3.0.0/gems/rack-2.2.4/lib/rack/head.rb:12:in call' /opt/build/cache/bundle/ruby/3.0.0/gems/rack-2.2.4/lib/rack/lint.rb:50:in _call’
/opt/build/cache/bundle/ruby/3.0.0/gems/rack-2.2.4/lib/rack/lint.rb:38:in call' /opt/build/cache/bundle/ruby/3.0.0/gems/rack-2.2.4/lib/rack/builder.rb:244:in call’
/opt/build/cache/bundle/ruby/3.0.0/gems/rack-2.2.4/lib/rack/mock.rb:84:in request' /opt/build/cache/bundle/ruby/3.0.0/gems/rack-2.2.4/lib/rack/mock.rb:57:in get’
/opt/build/cache/bundle/ruby/3.0.0/gems/middleman-core-4.4.2/lib/middleman-core/builder.rb:232:in block in output_resource' /opt/build/cache/bundle/ruby/3.0.0/gems/activesupport-6.1.6/lib/active_support/notifications.rb:205:in instrument’
/opt/build/cache/bundle/ruby/3.0.0/gems/middleman-core-4.4.2/lib/middleman-core/util.rb:21:in instrument' /opt/build/cache/bundle/ruby/3.0.0/gems/middleman-core-4.4.2/lib/middleman-core/builder.rb:225:in output_resource’
/opt/build/cache/bundle/ruby/3.0.0/gems/contracts-0.13.0/lib/contracts/method_reference.rb:43:in send_to' /opt/build/cache/bundle/ruby/3.0.0/gems/contracts-0.13.0/lib/contracts/call_with.rb:76:in call_with’
/opt/build/cache/bundle/ruby/3.0.0/gems/contracts-0.13.0/lib/contracts/method_handler.rb:138:in block in redefine_method' /opt/build/cache/bundle/ruby/3.0.0/gems/parallel-1.22.1/lib/parallel.rb:587:in call_with_index’
/opt/build/cache/bundle/ruby/3.0.0/gems/parallel-1.22.1/lib/parallel.rb:557:in process_incoming_jobs' /opt/build/cache/bundle/ruby/3.0.0/gems/parallel-1.22.1/lib/parallel.rb:537:in block in worker’
/opt/build/cache/bundle/ruby/3.0.0/gems/parallel-1.22.1/lib/parallel.rb:528:in fork' /opt/build/cache/bundle/ruby/3.0.0/gems/parallel-1.22.1/lib/parallel.rb:528:in worker’
/opt/build/cache/bundle/ruby/3.0.0/gems/parallel-1.22.1/lib/parallel.rb:519:in block in create_workers' /opt/build/cache/bundle/ruby/3.0.0/gems/parallel-1.22.1/lib/parallel.rb:518:in each’
/opt/build/cache/bundle/ruby/3.0.0/gems/parallel-1.22.1/lib/parallel.rb:518:in each_with_index' /opt/build/cache/bundle/ruby/3.0.0/gems/parallel-1.22.1/lib/parallel.rb:518:in create_worker== Request: /post/sorry-boss-i-ve-given-up-flying/index.html

The relevant bit:

incompatible character encodings: ASCII-8BIT and UTF-8

Doe you have any unescaped special characters in your data perhaps?

Thank you Tom.

Not that I can identify. The issue appears to be with the way the urls are being parsed. Plus, the files are generated by the Netlify CMS. There’s no problem on the current live site (running the previous set-up). So I’m guessing it’s to do with upgraded Ruby or another installed gem.

Any ideas?

Can you share a repository so I can have a look?

Thanks Tom.

Right. So… I am not sure what the problem is, but it definitely has something to do with special characters in the url’s of your post. Now, that does not sound very reassuring but I found a fix:

Replace all instances of <%= article.url %> with <%= article.url.force_encoding("UTF-8") %>

I did fool around with the repo quite a bit but I’m pretty sure this is the thing that did it. Otherwise: let me know and I’ll try to retrace my steps.

1 Like

That’s done it! Thanks Tom. Is there a way I can test the Netlify CMS admin with a preview build?

Many thanks again for your patience and support.

Netlify CMS doesn’t use the html files etc, it doesn’t care much about your frontend. Since the data hasn’t changed, things should still work the same.