You have already activated bundler 2.4.18, but your Gemfile requires bundler 2.2.33.
I was upgrading to the process below(with rpm file)
14.7.0
->14.9.5
->14.10.5
->15.0.5
->15.1.6
->15.4.6
->15.11.13
->16.0.8
->16.1.6
->16.2.9
->16.3.7
I rolled back a few times in the middle, It is currently in the 15.11.13
version.
I tried gitlab-rake gitlab:check
and got an error.
If there is a solution, I would appreciate it if you could let me know.
--error log
[root@scsic-iecvan-scmdev gitlab]# gitlab-rake gitlab:check
bundler: failed to load command: rake (/opt/gitlab/embedded/bin/rake)
/opt/gitlab/embedded/lib/ruby/3.0.0/bundler/runtime.rb:309:in `check_for_activated_spec!':
You have already activated bundler 2.4.18, but your Gemfile requires bundler 2.2.33. Since
bundler is a default gem, you can either remove your dependency on it or try updating to a newer
version of bundler that supports bundler as a default gem. (Gem::LoadError)
from /opt/gitlab/embedded/lib/ruby/3.0.0/bundler/runtime.rb:25:in `block in setup'
from /opt/gitlab/embedded/lib/ruby/3.0.0/bundler/spec_set.rb:136:in `each'
from /opt/gitlab/embedded/lib/ruby/3.0.0/bundler/spec_set.rb:136:in `each'
from /opt/gitlab/embedded/lib/ruby/3.0.0/bundler/runtime.rb:24:in `map'
from /opt/gitlab/embedded/lib/ruby/3.0.0/bundler/runtime.rb:24:in `setup'
from /opt/gitlab/embedded/lib/ruby/3.0.0/bundler.rb:150:in `setup'
from /opt/gitlab/embedded/lib/ruby/3.0.0/bundler/setup.rb:10:in `block in <top (required)>'
from /opt/gitlab/embedded/lib/ruby/3.0.0/bundler/ui/shell.rb:136:in `with_level'
from /opt/gitlab/embedded/lib/ruby/3.0.0/bundler/ui/shell.rb:88:in `silence'
from /opt/gitlab/embedded/lib/ruby/3.0.0/bundler/setup.rb:10:in `<top (required)>'
from /opt/gitlab/embedded/lib/ruby/3.0.0/bundler/cli/exec.rb:56:in `require_relative'
from /opt/gitlab/embedded/lib/ruby/3.0.0/bundler/cli/exec.rb:56:in `kernel_load'
from /opt/gitlab/embedded/lib/ruby/3.0.0/bundler/cli/exec.rb:23:in `run'
from /opt/gitlab/embedded/lib/ruby/3.0.0/bundler/cli.rb:479:in `exec'
from /opt/gitlab/embedded/lib/ruby/3.0.0/bundler/vendor/thor/lib/thor/command.rb:27:in `run'
from /opt/gitlab/embedded/lib/ruby/3.0.0/bundler/vendor/thor/lib/thor/invocation.rb:127:in `invoke_command'
from /opt/gitlab/embedded/lib/ruby/3.0.0/bundler/vendor/thor/lib/thor.rb:392:in `dispatch'
from /opt/gitlab/embedded/lib/ruby/3.0.0/bundler/cli.rb:31:in `dispatch'
from /opt/gitlab/embedded/lib/ruby/3.0.0/bundler/vendor/thor/lib/thor/base.rb:485:in `start'
from /opt/gitlab/embedded/lib/ruby/3.0.0/bundler/cli.rb:25:in `start'
from /opt/gitlab/embedded/lib/ruby/gems/3.0.0/gems/bundler-2.4.18/exe/bundle:37:in `block in <top (required)>'
from /opt/gitlab/embedded/lib/ruby/3.0.0/bundler/friendly_errors.rb:103:in `with_friendly_errors'
from /opt/gitlab/embedded/lib/ruby/gems/3.0.0/gems/bundler-2.4.18/exe/bundle:29:in `<top (required)>'
from /opt/gitlab/embedded/bin/bundle:23:in `load'
from /opt/gitlab/embedded/bin/bundle:23:in `<main>'
Edited by Dmytro Makovey