Removed configurations found in gitlab.rb. Aborting reconfigure (14.10.5 to 15.0.2)

I’m trying to upgrade my docker gitlab-ee from 14.10.5 to 15.0.2, but I’m getting this error:

RuntimeError
Removed configurations found in gitlab.rb. Aborting reconfigure.

------------
Removed configurations found in gitlab.rb. Aborting reconfigure.

Cookbook Trace:
---------------
  /opt/gitlab/embedded/cookbooks/cache/cookbooks/package/libraries/omnibus_helper.rb:229:in `check_deprecations'
  /opt/gitlab/embedded/cookbooks/cache/cookbooks/gitlab/recipes/default.rb:28:in `from_file'
  /opt/gitlab/embedded/cookbooks/cache/cookbooks/gitlab-ee/recipes/default.rb:20:in `from_file'

Relevant File Content:
----------------------
/opt/gitlab/embedded/cookbooks/cache/cookbooks/package/libraries/omnibus_helper.rb:

222:      # We are doing something similar in check_config command.
223:      gitlab_rb_config = Gitlab['node'].normal
224:  
225:      removal_messages = Gitlab::Deprecations.check_config(current_version, gitlab_rb_config, :removal)
226:      removal_messages.each do |msg|
227:        LoggingHelper.removal(msg)
228:      end
229>>     raise "Removed configurations found in gitlab.rb. Aborting reconfigure." unless removal_messages.empty?
230:  
231:      deprecation_messages = Gitlab::Deprecations.check_config(current_version, gitlab_rb_config, :deprecation)
232:      deprecation_messages.each do |msg|
233:        LoggingHelper.deprecation(msg)
234:      end
235:    end
236:  
237:    def self.check_environment
238:      ENV['LD_LIBRARY_PATH'] && LoggingHelper.warning('LD_LIBRARY_PATH was found in the env variables, this may cause issues with linking against the included libraries.')

System Info:
------------
chef_version=15.17.4
platform=ubuntu
platform_version=20.04
ruby=ruby 2.7.5p203 (2021-11-24 revision f69aeb8314) [x86_64-linux]
program_name=/opt/gitlab/embedded/bin/cinc-client
executable=/opt/gitlab/embedded/bin/cinc-client


Running handlers:

Removals:
* gitlab_shell['custom_hooks_dir'] has been deprecated since 14.3 and was removed in 15.0. Use `gitaly['custom_hooks_dir']` instead.

Running handlers complete

I already checked gitlab.rb and gitlab.yml files and there no reference to custom_hooks_dir in those files. These are all the references found on /opt/gitlab, /etc/gitlab and /var/opt/gitlab:

root@b1b334f79211:/opt/gitlab# grep -rnw '/opt/gitlab'  -e 'custom_hooks_dir'
Binary file /opt/gitlab/embedded/bin/gitaly matches
Binary file /opt/gitlab/embedded/bin/gitaly-hooks matches
/opt/gitlab/embedded/cookbooks/gitaly/attributes/default.rb:53:default['gitaly']['custom_hooks_dir'] = nil
/opt/gitlab/embedded/cookbooks/gitaly/recipes/enable.rb:95:custom_hooks_dir = node.dig('gitlab', 'gitlab-shell', 'custom_hooks_dir') || node.dig('gitaly', 'custom_hooks_dir')
/opt/gitlab/embedded/cookbooks/gitaly/recipes/enable.rb:107:      custom_hooks_dir: custom_hooks_dir }
/opt/gitlab/embedded/cookbooks/gitaly/templates/default/gitaly-config.toml.erb:142:<% if @custom_hooks_dir %>
/opt/gitlab/embedded/cookbooks/gitaly/templates/default/gitaly-config.toml.erb:143:custom_hooks_dir = '<%= @custom_hooks_dir %>'
/opt/gitlab/embedded/cookbooks/gitlab/attributes/default.rb:617:default['gitlab']['gitlab-shell']['custom_hooks_dir'] = nil
/opt/gitlab/embedded/cookbooks/package/libraries/deprecations.rb:155:            config_keys: %w(gitlab gitlab-shell custom_hooks_dir),
/opt/gitlab/embedded/cookbooks/package/libraries/deprecations.rb:158:            note: "Use `gitaly['custom_hooks_dir']` instead."
/opt/gitlab/embedded/cookbooks/cache/cookbooks/package/libraries/deprecations.rb:155:            config_keys: %w(gitlab gitlab-shell custom_hooks_dir),
/opt/gitlab/embedded/cookbooks/cache/cookbooks/package/libraries/deprecations.rb:158:            note: "Use `gitaly['custom_hooks_dir']` instead."
/opt/gitlab/embedded/cookbooks/cache/cookbooks/gitlab/attributes/default.rb:617:default['gitlab']['gitlab-shell']['custom_hooks_dir'] = nil
/opt/gitlab/embedded/cookbooks/cache/cookbooks/gitaly/attributes/default.rb:53:default['gitaly']['custom_hooks_dir'] = nil
/opt/gitlab/embedded/cookbooks/cache/cookbooks/gitaly/recipes/enable.rb:95:custom_hooks_dir = node.dig('gitlab', 'gitlab-shell', 'custom_hooks_dir') || node.dig('gitaly', 'custom_hooks_dir')
/opt/gitlab/embedded/cookbooks/cache/cookbooks/gitaly/recipes/enable.rb:107:      custom_hooks_dir: custom_hooks_dir }
/opt/gitlab/embedded/cookbooks/cache/cookbooks/gitaly/templates/default/gitaly-config.toml.erb:142:<% if @custom_hooks_dir %>
/opt/gitlab/embedded/cookbooks/cache/cookbooks/gitaly/templates/default/gitaly-config.toml.erb:143:custom_hooks_dir = '<%= @custom_hooks_dir %>'
/opt/gitlab/embedded/cookbooks/cache/backup/var/opt/gitlab/gitaly/config.toml.chef-20221202170327.361673:45:custom_hooks_dir = '/opt/gitlab/embedded/service/gitlab-shell/hooks'
/opt/gitlab/embedded/service/gitlab-rails/data/deprecations/distribution_deprecations_14-4.yml:1:- name: "Move `custom_hooks_dir` setting from GitLab Shell to Gitaly"  # The name of the feature to be deprecated
/opt/gitlab/embedded/service/gitlab-rails/data/deprecations/distribution_deprecations_14-4.yml:6:    The [`custom_hooks_dir`](https://docs.gitlab.com/ee/administration/server_hooks.html#create-a-global-server-hook-for-all-repositories) setting is now configured in Gitaly, and will be removed from GitLab Shell in GitLab 15.0.
/opt/gitlab/embedded/service/gitlab-rails/doc/administration/server_hooks.md:70:To use a different directory for global server hooks, set `custom_hooks_dir` in Gitaly configuration:
/opt/gitlab/embedded/service/gitlab-rails/doc/administration/server_hooks.md:76:    `custom_hooks_dir` value in `gitlab-shell/config.yml` if the value in `gitaly/config.toml` is blank or non-existent.
/opt/gitlab/embedded/service/gitlab-rails/doc/administration/server_hooks.md:100:- `<custom_hooks_dir>/<hook_name>.d/*`: Location for all executable global hook files except editor backup files.
/opt/gitlab/embedded/service/gitlab-rails/doc/update/deprecations.md:165:### Move `custom_hooks_dir` setting from GitLab Shell to Gitaly
/opt/gitlab/embedded/service/gitlab-rails/doc/update/deprecations.md:167:The [`custom_hooks_dir`](https://docs.gitlab.com/ee/administration/server_hooks.html#create-a-global-server-hook-for-all-repositories) setting is now configured in Gitaly, and will be removed from GitLab Shell in GitLab 15.0.
/opt/gitlab/embedded/nodes/b1b334f79211.json:14:        "custom_hooks_dir": "/opt/gitlab/embedded/service/gitlab-shell/hooks",
/opt/gitlab/embedded/nodes/b1b334f79211.json:829:      "custom_hooks_dir": null,
/opt/gitlab/embedded/nodes/b1b334f79211.json:1945:        "custom_hooks_dir": null,


root@b1b334f79211:/opt/gitlab# grep -rnw '/etc/gitlab'  -e 'custom_hooks_dir'
root@b1b334f79211:/opt/gitlab# grep -rnw '/var/opt/gitlab'  -e 'custom_hooks_dir'
/var/opt/gitlab/gitaly/config.toml:45:custom_hooks_dir = '/opt/gitlab/embedded/service/gitlab-shell/hooks'
Binary file /var/opt/gitlab/postgresql/data/pg_wal/0000000100000010000000B7 matches
Binary file /var/opt/gitlab/postgresql/data/pg_wal/0000000100000010000000B8 matches

Am I missing something here?