Error running jekyll build

Hi guys, I created my very own jekyll website using the docs and I wanted to host it on Vercel as Github Pages doesn’t support secrets as I wanted to use Lastfm API.

This is link to my website: GitHub - bsod2528/bsod2528.github.io: its a website

The below the logs on deploying to vercel:

[11:33:37.117] Running build in Washington, D.C., USA (East) – iad1
[11:33:37.321] Cloning github.com/bsod2528/bsod2528.github.io (Branch: jekyll, Commit: 563e84a)
[11:33:37.339] Skipping build cache, deployment was triggered without cache.
[11:33:38.346] Cloning completed: 1.024s
[11:33:39.095] Running "vercel build"
[11:33:42.025] Vercel CLI 34.1.7
[11:33:43.866] Installing dependencies...
[11:33:44.181] Bundler 2.5.9 is running, but your lockfile was generated with 2.5.6. Installing Bundler 2.5.6 and restarting using that version.
[11:33:45.235] Fetching gem metadata from https://rubygems.org/.
[11:33:45.241] Fetching bundler 2.5.6
[11:33:45.363] Installing bundler 2.5.6
[11:33:47.477] Fetching gem metadata from https://rubygems.org/...........
[11:33:47.483] Resolving dependencies...
[11:33:47.538] Fetching rake 13.2.1
[11:33:47.605] Installing rake 13.2.1
[11:33:47.624] Fetching public_suffix 5.0.5
[11:33:47.627] Fetching colorator 1.1.0
[11:33:47.634] Installing colorator 1.1.0
[11:33:47.638] Installing public_suffix 5.0.5
[11:33:47.643] Fetching concurrent-ruby 1.2.3
[11:33:47.656] Fetching eventmachine 1.2.7
[11:33:47.673] Installing concurrent-ruby 1.2.3
[11:33:47.681] Installing eventmachine 1.2.7 with native extensions
[11:33:47.763] Fetching http_parser.rb 0.8.0
[11:33:47.785] Installing http_parser.rb 0.8.0 with native extensions
[11:33:50.103] Fetching ffi 1.16.3
[11:33:50.166] Installing ffi 1.16.3 with native extensions
[11:34:00.495] Fetching forwardable-extended 2.6.0
[11:34:00.510] Installing forwardable-extended 2.6.0
[11:34:00.519] Fetching google-protobuf 4.26.1 (x86_64-linux)
[11:34:00.591] Installing google-protobuf 4.26.1 (x86_64-linux)
[11:34:00.634] Fetching rb-fsevent 0.11.2
[11:34:00.642] Installing rb-fsevent 0.11.2
[11:34:00.654] Fetching rexml 3.2.6
[11:34:00.665] Installing rexml 3.2.6
[11:34:00.685] Fetching liquid 4.0.4
[11:34:00.698] Installing liquid 4.0.4
[11:34:00.724] Fetching mercenary 0.4.0
[11:34:00.732] Installing mercenary 0.4.0
[11:34:00.740] Fetching rouge 4.2.1
[11:34:00.770] Installing rouge 4.2.1
[11:34:00.915] Fetching safe_yaml 1.0.5
[11:34:00.924] Installing safe_yaml 1.0.5
[11:34:00.938] Fetching unicode-display_width 2.5.0
[11:34:00.944] Installing unicode-display_width 2.5.0
[11:34:00.949] Fetching webrick 1.8.1
[11:34:00.957] Installing webrick 1.8.1
[11:34:00.969] Fetching wdm 0.1.1
[11:34:00.976] Installing wdm 0.1.1 with native extensions
[11:34:01.178] Fetching addressable 2.8.6
[11:34:01.189] Installing addressable 2.8.6
[11:34:01.202] Fetching i18n 1.14.4
[11:34:01.210] Installing i18n 1.14.4
[11:34:01.225] Fetching rb-inotify 0.10.1
[11:34:01.232] Installing rb-inotify 0.10.1
[11:34:01.239] Fetching pathutil 0.16.2
[11:34:01.246] Installing pathutil 0.16.2
[11:34:01.254] Fetching sass-embedded 1.76.0 (x86_64-linux-gnu)
[11:34:01.416] Installing sass-embedded 1.76.0 (x86_64-linux-gnu)
[11:34:01.553] Fetching kramdown 2.4.0
[11:34:01.576] Installing kramdown 2.4.0
[11:34:01.804] Fetching terminal-table 3.0.2
[11:34:01.811] Installing terminal-table 3.0.2
[11:34:01.822] Fetching listen 3.9.0
[11:34:01.830] Installing listen 3.9.0
[11:34:01.844] Fetching jekyll-sass-converter 3.0.0
[11:34:01.851] Installing jekyll-sass-converter 3.0.0
[11:34:01.856] Fetching kramdown-parser-gfm 1.1.0
[11:34:01.862] Installing kramdown-parser-gfm 1.1.0
[11:34:01.873] Fetching jekyll-watch 2.2.1
[11:34:01.880] Installing jekyll-watch 2.2.1
[11:34:05.999] Fetching em-websocket 0.5.3
[11:34:06.011] Installing em-websocket 0.5.3
[11:34:06.021] Fetching jekyll 4.3.3
[11:34:06.033] Installing jekyll 4.3.3
[11:34:06.060] Bundle complete! 2 Gemfile dependencies, 32 gems now installed.
[11:34:06.061] Bundled gems are installed into `./vendor/bundle`
[11:34:06.255] /ruby33/lib/ruby/gems/3.3.0/gems/bundler-2.5.9/lib/bundler/definition.rb:596:in `materialize': Could not find wdm-0.1.1, jekyll-4.3.3, addressable-2.8.6, colorator-1.1.0, em-websocket-0.5.3, i18n-1.14.4, jekyll-sass-converter-3.0.0, jekyll-watch-2.2.1, kramdown-2.4.0, kramdown-parser-gfm-1.1.0, liquid-4.0.4, mercenary-0.4.0, pathutil-0.16.2, rouge-4.2.1, safe_yaml-1.0.5, terminal-table-3.0.2, webrick-1.8.1, public_suffix-5.0.5, eventmachine-1.2.7, http_parser.rb-0.8.0, concurrent-ruby-1.2.3, sass-embedded-1.76.0-x86_64-linux-gnu, listen-3.9.0, forwardable-extended-2.6.0, unicode-display_width-2.5.0, google-protobuf-4.26.1-x86_64-linux, rb-fsevent-0.11.2, rb-inotify-0.10.1, rake-13.2.1, ffi-1.16.3 in cached gems or installed locally (Bundler::GemNotFound)
[11:34:06.257] 	from /ruby33/lib/ruby/gems/3.3.0/gems/bundler-2.5.9/lib/bundler/definition.rb:203:in `specs'
[11:34:06.257] 	from /ruby33/lib/ruby/gems/3.3.0/gems/bundler-2.5.9/lib/bundler/definition.rb:270:in `specs_for'
[11:34:06.258] 	from /ruby33/lib/ruby/gems/3.3.0/gems/bundler-2.5.9/lib/bundler/runtime.rb:18:in `setup'
[11:34:06.258] 	from /ruby33/lib/ruby/gems/3.3.0/gems/bundler-2.5.9/lib/bundler.rb:162:in `setup'
[11:34:06.258] 	from /ruby33/lib/ruby/gems/3.3.0/gems/bundler-2.5.9/lib/bundler/setup.rb:26:in `block in <top (required)>'
[11:34:06.258] 	from /ruby33/lib/ruby/gems/3.3.0/gems/bundler-2.5.9/lib/bundler/ui/shell.rb:159:in `with_level'
[11:34:06.258] 	from /ruby33/lib/ruby/gems/3.3.0/gems/bundler-2.5.9/lib/bundler/ui/shell.rb:111:in `silence'
[11:34:06.258] 	from /ruby33/lib/ruby/gems/3.3.0/gems/bundler-2.5.9/lib/bundler/setup.rb:26:in `<top (required)>'
[11:34:06.259] 	from <internal:/ruby33/lib/ruby/3.3.0/rubygems/core_ext/kernel_require.rb>:127:in `require'
[11:34:06.259] 	from <internal:/ruby33/lib/ruby/3.3.0/rubygems/core_ext/kernel_require.rb>:127:in `require'
[11:34:06.259] 	from /vercel/path0/vendor/bin/jekyll:25:in `<main>'
[11:34:06.260] Error: Command "jekyll build" exited with 1
[11:34:06.514] 
1 Like

see how the first one says it is using bundler 2.5.6 but then the error is looking for stuff in the bundler 2.5.9 path.

I think you need to get your bundler lockfile to use 2.5.9.

I’m not sure why it cares so much, but I don’t use bundler so not sure.