Unable to upgrade from 14.10.5 to 15.0.2

I am trying to upgrade from 14.10.5 to 15.0.2 but I’ve run into a problem. When upgrading I get the following error:

Malformed configuration JSON file found at /opt/gitlab/embedded/nodes/EIS-GITLAB-1.eoc.local.json.
This usually happens when your last run of `gitlab-ctl reconfigure` didn't complete successfully.
This file is used to check if any of the unsupported configurations are enabled,
and hence require a working reconfigure before upgrading.
Please run `sudo gitlab-ctl reconfigure` to fix it and try again.
error: %pre(gitlab-ee-15.0.2-ee.0.el7.x86_64) scriptlet failed, exit status 1
Error in PREIN scriptlet in rpm package gitlab-ee-15.0.2-ee.0.el7.x86_64
gitlab-ee-14.10.5-ee.0.el7.x86_64 was supposed to be removed but is not!
  Verifying  : gitlab-ee-14.10.5-ee.0.el7.x86_64                                                                                                                                                                                                          1/2
  Verifying  : gitlab-ee-15.0.2-ee.0.el7.x86_64                                                                                                                                                                                                           2/2

Failed:
  gitlab-ee.x86_64 0:14.10.5-ee.0.el7                                                                                            gitlab-ee.x86_64 0:15.0.2-ee.0.el7

Complete!

So, I re-ran sudo gitlab-ctl reconfigure but that failed and I don’t know why…

Starting Chef Infra Client, version 15.17.4
resolving cookbooks for run list: ["gitlab-ee"]
Synchronizing Cookbooks:
  - gitlab-ee (0.0.1)
  - package (0.1.0)
  - gitlab (0.0.1)
  - consul (0.1.0)
  - patroni (0.1.0)
  - pgbouncer (0.1.0)
  - spamcheck (0.1.0)
  - runit (5.1.3)
  - logrotate (0.1.0)
  - postgresql (0.1.0)
  - redis (0.1.0)
  - monitoring (0.1.0)
  - registry (0.1.0)
  - mattermost (0.1.0)
  - gitaly (0.1.0)
  - praefect (0.1.0)
  - gitlab-kas (0.1.0)
  - nginx (0.1.0)
  - acme (4.1.3)
  - crond (0.1.0)
  - letsencrypt (0.1.0)
  - gitlab-pages (0.1.0)
Installing Cookbook Gems:
Compiling Cookbooks...

================================================================================
Recipe Compile Error in /opt/gitlab/embedded/cookbooks/cache/cookbooks/gitlab-ee/recipes/default.rb
================================================================================

Mixlib::Config::UnknownConfigOptionError
----------------------------------------
Reading unsupported config value i.

Cookbook Trace:
---------------
  /opt/gitlab/embedded/cookbooks/cache/cookbooks/package/libraries/settings_dsl.rb:125:in `internal_get'
  /opt/gitlab/embedded/cookbooks/cache/cookbooks/package/libraries/settings_dsl.rb:105:in `block in from_file'
  /opt/gitlab/embedded/cookbooks/cache/cookbooks/package/libraries/config_mash.rb:35:in `auto_vivify'
  /opt/gitlab/embedded/cookbooks/cache/cookbooks/package/libraries/settings_dsl.rb:105:in `from_file'
  /opt/gitlab/embedded/cookbooks/cache/cookbooks/gitlab/recipes/config.rb:22:in `from_file'
  /opt/gitlab/embedded/cookbooks/cache/cookbooks/gitlab/recipes/default.rb:26: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/settings_dsl.rb:

118:    end
119:
120:    # Enhance get so strict mode errors aren't thrown as long as the setting is witin our defined config
121:    def internal_get(symbol)
122:      if configuration.key?(symbol)
123:        configuration[symbol]
124:      else
125>>       super
126:      end
127:    end
128:
129:    def hyphenate_config_keys
130:      results = { "gitlab" => {}, "roles" => {}, "monitoring" => {} }
131:
132:      # Add the settings to the results
133:      sorted_settings.each do |key, value|
134:        raise "Attribute parent value invalid for key: #{key} (#{value})" if value[:parent] && !results.key?(value[:parent])

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


Running handlers:
There was an error running gitlab-ctl reconfigure:

Reading unsupported config value i.

Running handlers complete
Chef Infra Client failed. 0 resources updated in 13 seconds

Any suggestions on what the problem is or how I can resolve it?