Upgrade gitlab-ce 15.4.6 to 16.11.x

I am upgrading gitlab-ce from 15.4.6 to 16.11, but I have not been able to continue, I only got to 15.8.6, from 15.9.0 onwards the upgrade fails.

Upgrade path recommends 15.11.13 => 16.1.6 => 16.3.7 => 16.7.7 => 16.11.2

Centos 7.9
2 cpu 8gb ram

Error

  • rails_migration[gitlab-rails] action run
    • bash_hide_env[migrate gitlab-rails database] action run
      [execute] rake aborted!
      Errno::EINVAL: Invalid argument @ rb_sysopen -
      /opt/gitlab/embedded/service/gitlab-rails/lib/gitlab/redis/wrapper.rb:212:in read' /opt/gitlab/embedded/service/gitlab-rails/lib/gitlab/redis/wrapper.rb:212:in read_yaml’
      /opt/gitlab/embedded/service/gitlab-rails/lib/gitlab/redis/wrapper.rb:196:in fetch_config' /opt/gitlab/embedded/service/gitlab-rails/lib/gitlab/redis/wrapper.rb:161:in raw_config_hash’
      /opt/gitlab/embedded/service/gitlab-rails/lib/gitlab/redis/wrapper.rb:126:in redis_store_options' /opt/gitlab/embedded/service/gitlab-rails/lib/gitlab/redis/wrapper.rb:100:in params’
      /opt/gitlab/embedded/service/gitlab-rails/lib/gitlab/redis/wrapper.rb:20:in params' /opt/gitlab/embedded/service/gitlab-rails/lib/gitlab/redis/wrapper.rb:91:in redis’
      /opt/gitlab/embedded/service/gitlab-rails/lib/gitlab/redis/wrapper.rb:31:in block in pool' /opt/gitlab/embedded/service/gitlab-rails/lib/gitlab/redis/wrapper.rb:23:in with’
      /opt/gitlab/embedded/service/gitlab-rails/config/initializers/7_redis.rb:16:in block in <top (required)>' /opt/gitlab/embedded/service/gitlab-rails/config/initializers/7_redis.rb:15:in each’
      /opt/gitlab/embedded/service/gitlab-rails/config/initializers/7_redis.rb:15:in <top (required)>' /opt/gitlab/embedded/service/gitlab-rails/config/environment.rb:7:in <top (required)>’
      /opt/gitlab/embedded/bin/bundle:23:in load' /opt/gitlab/embedded/bin/bundle:23:in
      Tasks: TOP => gitlab:db:configure => environment
      (See full trace by running task with --trace)

      ================================================================================
      Error executing action run on resource ‘bash_hide_env[migrate gitlab-rails database]’

      Mixlib::ShellOut::ShellCommandFailed

      Expected process to exit with [0], but received ‘1’
      ---- Begin output of “bash” ----
      STDOUT: rake aborted!

[2024-05-10T17:56:17-04:00] ERROR: Exception handlers complete
Infra Phase failed. 36 resources updated in 01 minutes 00 seconds
[2024-05-10T17:56:17-04:00] FATAL: Stacktrace dumped to /opt/gitlab/embedded/cookbooks/cache/cinc-stacktrace.out
[2024-05-10T17:56:17-04:00] FATAL: ---------------------------------------------------------------------------------------
[2024-05-10T17:56:17-04:00] FATAL: PLEASE PROVIDE THE CONTENTS OF THE stacktrace.out FILE (above) IF YOU FILE A BUG REPORT
[2024-05-10T17:56:17-04:00] FATAL: ---------------------------------------------------------------------------------------
[2024-05-10T17:56:17-04:00] FATAL: Chef::Exceptions::MultipleFailures: Multiple failures occurred:

  • Mixlib::ShellOut::ShellCommandFailed occurred in Cinc Client run: rails_migration[gitlab-rails] (gitlab::database_migrations line 51) had an error: Mixlib::ShellOut::ShellCommandFailed: bash_hide_env[migrate gitlab-rails database] (gitlab::database_migrations line 18) had an error: Mixlib::ShellOut::ShellCommandFailed: Expected process to exit with [0], but received ‘1’
    ---- Begin output of “bash” ----
    STDOUT: rake aborted!
    Errno::EINVAL: Invalid argument @ rb_sysopen -
    /opt/gitlab/embedded/service/gitlab-rails/lib/gitlab/redis/wrapper.rb:212:in read' /opt/gitlab/embedded/service/gitlab-rails/lib/gitlab/redis/wrapper.rb:212:in read_yaml’
    /opt/gitlab/embedded/service/gitlab-rails/lib/gitlab/redis/wrapper.rb:196:in fetch_config' /opt/gitlab/embedded/service/gitlab-rails/lib/gitlab/redis/wrapper.rb:161:in raw_config_hash’
    /opt/gitlab/embedded/service/gitlab-rails/lib/gitlab/redis/wrapper.rb:126:in redis_store_options' /opt/gitlab/embedded/service/gitlab-rails/lib/gitlab/redis/wrapper.rb:100:in params’
    /opt/gitlab/embedded/service/gitlab-rails/lib/gitlab/redis/wrapper.rb:20:in params' /opt/gitlab/embedded/service/gitlab-rails/lib/gitlab/redis/wrapper.rb:91:in redis’
    /opt/gitlab/embedded/service/gitlab-rails/lib/gitlab/redis/wrapper.rb:31:in block in pool' /opt/gitlab/embedded/service/gitlab-rails/lib/gitlab/redis/wrapper.rb:23:in with’
    /opt/gitlab/embedded/service/gitlab-rails/config/initializers/7_redis.rb:16:in block in <top (required)>' /opt/gitlab/embedded/service/gitlab-rails/config/initializers/7_redis.rb:15:in each’
    /opt/gitlab/embedded/service/gitlab-rails/config/initializers/7_redis.rb:15:in <top (required)>' /opt/gitlab/embedded/service/gitlab-rails/config/environment.rb:7:in <top (required)>’
    /opt/gitlab/embedded/bin/bundle:23:in load' /opt/gitlab/embedded/bin/bundle:23:in
    Tasks: TOP => gitlab:db:configure => environment
    (See full trace by running task with --trace)
    STDERR:
    ---- End output of “bash” ----