This is happening on both of my Jekyll sites, same error too. But they both build locally just fine:
% bundle exec jekyll build
Configuration file: /Users/kev/GitHub/kq-jekyll/_config.yml
Source: /Users/kev/GitHub/kq-jekyll
Destination: /Users/kev/GitHub/kq-jekyll/_site
Incremental build: disabled. Enable with --incremental
Generating...
done in 3.052 seconds.
Auto-regeneration: disabled. Use --watch to enable.
Iβve tried running a bundle update locally, to see if any of my gems were out of date versus Netlify, but that hasnβt fixed the problem. I also tried test deleting the netlify.toml file in case it was something wonky with the cache, but that didnβt work either. The only thing my netlify.toml file does is cache fonts anyway:
[[headers]]
for = "/assets/fonts/*"
[headers.values]
Cache-Control = "public, max-age=31536000"
The logs donβt give me much to go on, so hoping someone here may be able to help please?
I have the same problem as of yesterday (21 Feb) - Iβve updated my bundler, but the problem persists:
9:23:11 AM: $ jekyll build
9:23:11 AM: Activating bundler (~> 2.4) failed:
9:23:11 AM: Could not find 'bundler' (2.4.7) required by your /opt/build/repo/Gemfile.lock.
9:23:11 AM: To update to the latest version installed on your system, run `bundle update --bundler`.
9:23:11 AM: To install the missing version, run `gem install bundler:2.4.7`
9:23:11 AM: Checked in 'GEM_PATH=/opt/buildhome/.gem/ruby/2.7.0:/opt/buildhome/.rvm/rubies/ruby-2.7.4/lib/ruby/gems/2.7.0', execute `gem env` for more information
9:23:11 AM: To install the version of bundler this project requires, run `gem install bundler -v '~> 2.4'`
9:23:11 AM: β
9:23:11 AM: "build.command" failed
9:23:11 AM: ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
9:23:11 AM: β
9:23:11 AM: Error message
9:23:11 AM: Command failed with exit code 42: jekyll build (https://ntl.fyi/exit-code-42)
Hi both @keq@yorkshiremoose Iβm so sorry you were impacted by this Jekyll building incident. We have rollback the change that caused these builds to fail and this should not be the case. Can you please re-deploy and confirm if you are still experiencing this issue>
Weβre having the same issue todayβ¦ We havenβt touched anything on the configurations and then suddenly our builds failing. Hereβs the logs below
7:43:09 AM: Activating bundler (~> 2.4) failed:
7:43:09 AM: Could not find 'bundler' (2.4.9) required by your /opt/build/repo/Gemfile.lock.
7:43:09 AM: To update to the latest version installed on your system, run `bundle update --bundler`.
7:43:09 AM: To install the missing version, run `gem install bundler:2.4.9`
7:43:09 AM: Checked in 'GEM_PATH=/opt/buildhome/.rvm/gems/ruby-2.6.3@apex_sites3:/opt/buildhome/.rvm/gems/ruby-2.6.3@global', execute `gem env` for more information
7:43:09 AM: To install the version of bundler this project requires, run `gem install bundler -v '~> 2.4'`
7:43:09 AM: β
7:43:09 AM: "build.command" failed
7:43:09 AM: ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
7:43:09 AM: β
7:43:09 AM: Error message
7:43:09 AM: Command failed with exit code 42: jekyll build --config _config.yml,_config.staging.yml (https://ntl.fyi/exit-code-42)
Nvm @SamO weβve figured it out, we just need to downgrade bundler to 1.17.2, we just donβt know why an older version work and much more updated version does not work.