Upgrade from 13.1.11 to 13.8.8 - reproducible failure

I keep hitting a snag performing the upgrade between 13.1.11 to 13.8.8, is there a solution or workaround ?

== 20200703121557 RemoveFKeysFromCiDailyReportResultsTable: migrated (0.0197s)

== 20200703124823 CreateNamespaceSettings: migrating ==========================
-- create_table(:namespace_settings, {:id=>false})
   -> 0.0051s
== 20200703124823 CreateNamespaceSettings: migrated (0.0079s) =================

== 20200703125016 BackfillNamespaceSettings: migrating ========================
-- Scheduling `BackfillNamespaceSettings` jobs
STDERR:
---- End output of "bash"  "/tmp/chef-script20240310-7666-1e3e6d7" ----
Ran "bash"  "/tmp/chef-script20240310-7666-1e3e6d7" returned 1

Running handlers complete
Chef Infra Client failed. 31 resources updated in 01 minutes 20 seconds
Running reconfigure: NOT OK
== Fatal error ==
Something went wrong during final reconfiguration, please check the output
== Reverting ==
ok: down: postgresql: 0s, normally up
Symlink correct version of binaries: OK
ok: run: postgresql: (pid 8249) 1s
== Reverted ==
== Reverted to 11.11. Please check output for what went wrong ==
Toggling deploy page:rm -f /opt/gitlab/embedded/service/gitlab-rails/public/index.html
Toggling deploy page: OK
Toggling services:ok: run: alertmanager: (pid 8261) 0s
ok: run: gitaly: (pid 8270) 1s
ok: run: gitlab-exporter: (pid 8285) 0s
ok: run: grafana: (pid 8294) 0s
ok: run: logrotate: (pid 8305) 1s
ok: run: node-exporter: (pid 8349) 1s
ok: run: postgres-exporter: (pid 8392) 0s
ok: run: prometheus: (pid 8399) 0s
ok: run: redis-exporter: (pid 8407) 1s
ok: run: sidekiq: (pid 8413) 0s
Toggling services: OK
Checking if a newer PostgreSQL version is available and attempting automatic upgrade to it: NOT OK
Error ensuring PostgreSQL is updated. Please check the logs
warning: %posttrans(gitlab-ee-13.8.8-ee.0.el7.x86_64) scriptlet failed, exit status 1
Non-fatal POSTTRANS scriptlet failure in rpm package gitlab-ee-13.8.8-ee.0.el7.x86_64
  Verifying  : gitlab-ee-13.8.8-ee.0.el7.x86_64                                                         1/2
  Verifying  : gitlab-ee-13.1.11-ee.0.el7.x86_64                                                        2/2

Updated:
  gitlab-ee.x86_64 0:13.8.8-ee.0.el7

Complete!

I retried the reconfigure and redirected the output to a log file.

As the file is large, I have grep for the word error in the log file.

It appears related to redis

$ grep -i error reconfigure.log
              -- add_column(:resource_state_events, :close_after_error_tracking_resolve, :boolean, {:default=>false, :null=>false})
              -- execute("ALTER TABLE elastic_reindexing_tasks\nADD CONSTRAINT check_7f64acda8e\nCHECK ( char_length(error_message) <= 255 )\nNOT VALID;\n")
              StandardError: An error has occurred, all later migrations canceled:
              Error connecting to Redis on /var/opt/gitlab/redis/redis.socket (Errno::ENOENT)
              Redis::CannotConnectError: Error connecting to Redis on /var/opt/gitlab/redis/redis.socket (Errno::ENOENT)
    Error executing action `run` on resource 'bash[migrate gitlab-rails database]'
    -- add_column(:resource_state_events, :close_after_error_tracking_resolve, :boolean, {:default=>false, :null=>false})
    -- execute("ALTER TABLE elastic_reindexing_tasks\nADD CONSTRAINT check_7f64acda8e\nCHECK ( char_length(error_message) <= 255 )\nNOT VALID;\n")
    StandardError: An error has occurred, all later migrations canceled:
    Error connecting to Redis on /var/opt/gitlab/redis/redis.socket (Errno::ENOENT)
    Redis::CannotConnectError: Error connecting to Redis on /var/opt/gitlab/redis/redis.socket (Errno::ENOENT)
There was an error running gitlab-ctl reconfigure:
bash[migrate gitlab-rails database] (gitlab::database_migrations line 55) had an error: Mixlib::ShellOut::ShellCommandFailed: Expected process to exit with [0], but received '1'
-- add_column(:resource_state_events, :close_after_error_tracking_resolve, :boolean, {:default=>false, :null=>false})
-- execute("ALTER TABLE elastic_reindexing_tasks\nADD CONSTRAINT check_7f64acda8e\nCHECK ( char_length(error_message) <= 255 )\nNOT VALID;\n")
StandardError: An error has occurred, all later migrations canceled:
Error connecting to Redis on /var/opt/gitlab/redis/redis.socket (Errno::ENOENT)
Redis::CannotConnectError: Error connecting to Redis on /var/opt/gitlab/redis/redis.socket (Errno::ENOENT)