After upgrading to 18.2.0-ce.0 the command "gitlab-ctl check-config" fails with a "NoMethodError"

Today we upgraded our GitLab instances:

Unpacking gitlab-ce (18.2.0-ce.0) over (18.1.2-ce.0) ... Setting up gitlab-ce (18.2.0-ce.0) ..

After upgrading the "gitlab-ctl check-config " command fails with the following error:

# gitlab-ctl check-config
/opt/gitlab/embedded/cookbooks/package/libraries/deprecations.rb:93:in `applicable_deprecations': undefined method `empty?' for nil:NilClass (NoMethodError)



        incoming_version = next_major_version if incoming_version.empty?
                                                                 ^^^^^^^
	from /opt/gitlab/embedded/cookbooks/package/libraries/deprecations.rb:111:in `check_config'
	from /opt/gitlab/embedded/service/omnibus-ctl/check_config.rb:51:in `block in load_file'
	from /opt/gitlab/embedded/lib/ruby/gems/3.2.0/gems/omnibus-ctl-0.6.12/lib/omnibus-ctl.rb:197:in `block in add_command'
	from /opt/gitlab/embedded/lib/ruby/gems/3.2.0/gems/omnibus-ctl-0.6.12/lib/omnibus-ctl.rb:747:in `run'
	from /opt/gitlab/embedded/lib/ruby/gems/3.2.0/gems/omnibus-ctl-0.6.12/bin/omnibus-ctl:31:in `<top (required)>'
	from /opt/gitlab/embedded/bin/omnibus-ctl:25:in `load'
	from /opt/gitlab/embedded/bin/omnibus-ctl:25:in `<main>'

The return code is also "1":

# echo $?
1

We are using this command on a daily basis and after upgrades to check if our instances config is correct. I guess the command should work with a correct installation of GitLab.

THX for your effort!

Edited by 🤖 GitLab Bot 🤖