Failure with ruby-bundler 2.4.22-1
Description:
ruby-bundler
was updated to 2.4.22-1 and gitlab
16.6.2-1 now fails with
gitlab-puma[3121438]: bundler: failed to load command: puma (/usr/share/webapps/gitlab/vendor/bundle/ruby/3.0.0/bin/puma)
gitlab-puma[3121438]: /usr/share/webapps/gitlab/vendor/bundle/ruby/3.0.0/gems/bundler-2.4.21/lib/bundler/definition.rb:540:in `materialize': Could not find json-2.6.3 in locally installed gems (Bundler::GemNotFound)
gitlab-puma[3121438]: from /usr/share/webapps/gitlab/vendor/bundle/ruby/3.0.0/gems/bundler-2.4.21/lib/bundler/definition.rb:200:in `specs'
gitlab-puma[3121438]: from /usr/share/webapps/gitlab/vendor/bundle/ruby/3.0.0/gems/bundler-2.4.21/lib/bundler/definition.rb:266:in `specs_for'
gitlab-puma[3121438]: from /usr/share/webapps/gitlab/vendor/bundle/ruby/3.0.0/gems/bundler-2.4.21/lib/bundler/runtime.rb:18:in `setup'
gitlab-puma[3121438]: from /usr/share/webapps/gitlab/vendor/bundle/ruby/3.0.0/gems/bundler-2.4.21/lib/bundler.rb:162:in `setup'
gitlab-puma[3121438]: from /usr/share/webapps/gitlab/vendor/bundle/ruby/3.0.0/gems/bundler-2.4.21/lib/bundler/setup.rb:23:in `block in <top (required)>'
gitlab-puma[3121438]: from /usr/share/webapps/gitlab/vendor/bundle/ruby/3.0.0/gems/bundler-2.4.21/lib/bundler/ui/shell.rb:159:in `with_level'
gitlab-puma[3121438]: from /usr/share/webapps/gitlab/vendor/bundle/ruby/3.0.0/gems/bundler-2.4.21/lib/bundler/ui/shell.rb:111:in `silence'
gitlab-puma[3121438]: from /usr/share/webapps/gitlab/vendor/bundle/ruby/3.0.0/gems/bundler-2.4.21/lib/bundler/setup.rb:23:in `<top (required)>'
gitlab-puma[3121438]: from /usr/share/webapps/gitlab/vendor/bundle/ruby/3.0.0/gems/bundler-2.4.21/lib/bundler/cli/exec.rb:56:in `require_relative'
gitlab-puma[3121438]: from /usr/share/webapps/gitlab/vendor/bundle/ruby/3.0.0/gems/bundler-2.4.21/lib/bundler/cli/exec.rb:56:in `kernel_load'
gitlab-puma[3121438]: from /usr/share/webapps/gitlab/vendor/bundle/ruby/3.0.0/gems/bundler-2.4.21/lib/bundler/cli/exec.rb:23:in `run'
gitlab-puma[3121438]: from /usr/share/webapps/gitlab/vendor/bundle/ruby/3.0.0/gems/bundler-2.4.21/lib/bundler/cli.rb:492:in `exec'
gitlab-puma[3121438]: from /usr/share/webapps/gitlab/vendor/bundle/ruby/3.0.0/gems/bundler-2.4.21/lib/bundler/vendor/thor/lib/thor/command.rb:27:in `run'
gitlab-puma[3121438]: from /usr/share/webapps/gitlab/vendor/bundle/ruby/3.0.0/gems/bundler-2.4.21/lib/bundler/vendor/thor/lib/thor/invocation.rb:127:in `invoke_command'
gitlab-puma[3121438]: from /usr/share/webapps/gitlab/vendor/bundle/ruby/3.0.0/gems/bundler-2.4.21/lib/bundler/vendor/thor/lib/thor.rb:392:in `dispatch'
gitlab-puma[3121438]: from /usr/share/webapps/gitlab/vendor/bundle/ruby/3.0.0/gems/bundler-2.4.21/lib/bundler/cli.rb:34:in `dispatch'
gitlab-puma[3121438]: from /usr/share/webapps/gitlab/vendor/bundle/ruby/3.0.0/gems/bundler-2.4.21/lib/bundler/vendor/thor/lib/thor/base.rb:485:in `start'
gitlab-puma[3121438]: from /usr/share/webapps/gitlab/vendor/bundle/ruby/3.0.0/gems/bundler-2.4.21/lib/bundler/cli.rb:28:in `start'
gitlab-puma[3121438]: from /usr/share/webapps/gitlab/vendor/bundle/ruby/3.0.0/gems/bundler-2.4.21/exe/bundle:37:in `block in <top (required)>'
gitlab-puma[3121438]: from /usr/share/webapps/gitlab/vendor/bundle/ruby/3.0.0/gems/bundler-2.4.21/lib/bundler/friendly_errors.rb:117:in `with_friendly_errors'
gitlab-puma[3121438]: from /usr/share/webapps/gitlab/vendor/bundle/ruby/3.0.0/gems/bundler-2.4.21/exe/bundle:29:in `<top (required)>'
gitlab-puma[3121438]: from /usr/bin/bundle:25:in `load'
gitlab-puma[3121438]: from /usr/bin/bundle:25:in `<main>'
Notice the /usr/share/webapps/gitlab/vendor/bundle/ruby/3.0.0/gems/bundler-2.4.21/
path. Trying to rebuild gitlab
leads to this error:
==> Starting build()...
Fetching bundled gems...
Bundler 2.4.22 is running, but your lockfile was generated with 2.4.21. Installing Bundler 2.4.21 and restarting using that version.
Fetching gem metadata from https://rubygems.org/.
Fetching bundler 2.4.21
Installing bundler 2.4.21
[!] There was an error parsing `Gemfile`: cannot load such file -- json. Bundler cannot continue.
# from /build/gitlab/src/gitlab-foss/Gemfile:7
# -------------------------------------------
# $LOAD_PATH.unshift(File.expand_path("vendor/gems/bundler-checksum/lib", __dir__))
> require 'bundler-checksum'
# BundlerChecksum.patch!
# -------------------------------------------