My deployment previews are failing due to bundler install errors:
2:48:28 AM: Build ready to start
2:48:32 AM: build-image version: 72a309a113b53ef075815b129953617827965e48 (focal)
2:48:32 AM: build-image tag: v4.8.2
2:48:32 AM: buildbot version: 72ebfe61ef7a5152002962d9129cc52f5b1bb560
2:48:32 AM: Fetching cached dependencies
2:48:32 AM: Finished downloading cache in 574.704676ms
2:48:32 AM: Starting to extract cache
2:48:36 AM: Finished extracting cache in 3.854688593s
2:48:36 AM: Finished fetching cache in 4.461230192s
2:48:36 AM: Starting to prepare the repo for build
2:48:37 AM: Preparing Git Reference pull/138/head
2:48:37 AM: Parsing package.json dependencies
2:48:37 AM: Different build command detected, going to use the one specified in the Netlify configuration file: 'git submodule update --init --remote && bundle exec jekyll build --config '_config.yml,_config_staging.yml'' versus 'bundle exec jekyll build --config '_config.yml,_config_staging.yml'' in the Netlify UI
2:48:38 AM: Starting build script
2:48:38 AM: Installing dependencies
2:48:38 AM: Python version set to 2.7
2:48:38 AM: Started restoring cached node version
2:48:39 AM: Finished restoring cached node version
2:48:39 AM: v16.15.1 is already installed.
2:48:40 AM: Now using node v16.15.1 (npm v8.11.0)
2:48:40 AM: Started restoring cached build plugins
2:48:40 AM: Finished restoring cached build plugins
2:48:40 AM: Attempting ruby version 2.6.2, read from environment
2:48:40 AM: Started restoring cached ruby version
2:48:40 AM: Finished restoring cached ruby version
2:48:41 AM: Using ruby version 2.6.2
2:48:41 AM: Using bundler version 2.3.10 from Gemfile.lock
2:48:42 AM: ERROR: Error installing bundler:
2:48:42 AM: "bundler" from bundler conflicts with /opt/buildhome/.rvm/gems/ruby-2.6.2/bin/bundler
2:48:42 AM: Error installing bundler
2:48:42 AM: Build was terminated: Build script returned non-zero exit code: 1
2:48:42 AM: Creating deploy upload records
2:48:42 AM: Failing build: Failed to build site
2:48:42 AM: Failed during stage 'building site': Build script returned non-zero exit code: 1 (https://ntl.fyi/exit-code-1)
2:48:42 AM: Finished processing build request in 10.26317364s
As a workaround, clearing the cache manually has worked, but automatic builds still fail. Iβd like to get away from manually clearing the cache.
Here is the Gemfile.lock for reference as well:
PATH
remote: _external/data/wai-gems
specs:
wai-gems (1.0.0)
jekyll-github-metadata
jekyll-include-cache
jekyll-paginate
jekyll-redirect-from
jekyll-relative-links
jekyll-remote-theme
jekyll-seo-tag
jekyll-sitemap
wai-website-plugin
GEM
remote: https://rubygems.org/
specs:
addressable (2.8.0)
public_suffix (>= 2.0.2, < 5.0)
colorator (1.1.0)
concurrent-ruby (1.1.10)
em-websocket (0.5.3)
eventmachine (>= 0.12.9)
http_parser.rb (~> 0)
eventmachine (1.2.7)
faraday (2.3.0)
faraday-net_http (~> 2.0)
ruby2_keywords (>= 0.0.4)
faraday-net_http (2.0.3)
ffi (1.15.5)
forwardable-extended (2.6.0)
http_parser.rb (0.8.0)
i18n (1.10.0)
concurrent-ruby (~> 1.0)
jekyll (4.2.2)
addressable (~> 2.4)
colorator (~> 1.0)
em-websocket (~> 0.5)
i18n (~> 1.0)
jekyll-sass-converter (~> 2.0)
jekyll-watch (~> 2.0)
kramdown (~> 2.3)
kramdown-parser-gfm (~> 1.0)
liquid (~> 4.0)
mercenary (~> 0.4.0)
pathutil (~> 0.9)
rouge (~> 3.0)
safe_yaml (~> 1.0)
terminal-table (~> 2.0)
jekyll-github-metadata (2.15.0)
jekyll (>= 3.4, < 5.0)
octokit (~> 4.0, != 4.4.0)
jekyll-include-cache (0.2.1)
jekyll (>= 3.7, < 5.0)
jekyll-paginate (1.1.0)
jekyll-redirect-from (0.16.0)
jekyll (>= 3.3, < 5.0)
jekyll-relative-links (0.6.1)
jekyll (>= 3.3, < 5.0)
jekyll-remote-theme (0.4.3)
addressable (~> 2.0)
jekyll (>= 3.5, < 5.0)
jekyll-sass-converter (>= 1.0, <= 3.0.0, != 2.0.0)
rubyzip (>= 1.3.0, < 3.0)
jekyll-sass-converter (2.2.0)
sassc (> 2.0.1, < 3.0)
jekyll-seo-tag (2.8.0)
jekyll (>= 3.8, < 5.0)
jekyll-sitemap (1.4.0)
jekyll (>= 3.7, < 5.0)
jekyll-watch (2.2.1)
listen (~> 3.0)
kramdown (2.4.0)
rexml
kramdown-parser-gfm (1.1.0)
kramdown (~> 2.0)
liquid (4.0.3)
listen (3.7.1)
rb-fsevent (~> 0.10, >= 0.10.3)
rb-inotify (~> 0.9, >= 0.9.10)
mercenary (0.4.0)
mini_portile2 (2.8.0)
nokogiri (1.13.6)
mini_portile2 (~> 2.8.0)
racc (~> 1.4)
octokit (4.25.0)
faraday (>= 1, < 3)
sawyer (~> 0.9)
pathutil (0.16.2)
forwardable-extended (~> 2.6)
public_suffix (4.0.7)
racc (1.6.0)
rb-fsevent (0.11.1)
rb-inotify (0.10.1)
ffi (~> 1.0)
rexml (3.2.5)
rouge (3.29.0)
ruby2_keywords (0.0.5)
rubyzip (2.3.2)
safe_yaml (1.0.5)
sassc (2.4.0)
ffi (~> 1.9)
sawyer (0.9.2)
addressable (>= 2.3.5)
faraday (>= 0.17.3, < 3)
terminal-table (2.0.0)
unicode-display_width (~> 1.1, >= 1.1.1)
unicode-display_width (1.8.0)
wai-website-plugin (0.2)
jekyll (>= 3.6, < 5.0)
PLATFORMS
ruby
DEPENDENCIES
nokogiri
wai-gems!
BUNDLED WITH
2.3.10