when trying to upgrade gitlab to 13.8.0 or any higher version i am getting following error.
bash[migrate gitlab-rails database] (gitlab::database_migrations line 70) had an error: Mixlib::ShellOut::ShellCommandFailed: Expected process to exit with [0], but received ‘1’
---- Begin output of “bash” “/tmp/chef-script20210407-23613-1njgtth” ----
STDOUT: == 20200816133024 AddCveIdRequestProjectSetting: migrating ====================
– add_column(:project_settings, :cve_id_request_enabled, :boolean, {:default=>true, :null=>false})
→ 0.0015s
== 20200816133024 AddCveIdRequestProjectSetting: migrated (0.0016s) ===========
== 20201112130715 ScheduleRecalculateUuidOnVulnerabilitiesOccurrences: migrating
– Scheduling RecalculateVulnerabilitiesOccurrencesUuid jobs
– Scheduled 0 RecalculateVulnerabilitiesOccurrencesUuid jobs with a maximum of 2500 records per batch and an interval of 120 seconds.
The migration is expected to take at least 0 seconds. Expect all jobs to have completed after 2021-04-07 10:26:13 UTC."
== 20201112130715 ScheduleRecalculateUuidOnVulnerabilitiesOccurrences: migrated (0.0174s)
== 20201112215132 SwapPartitionedAuditEvents: migrating =======================
– execute(“DROP TRIGGER IF EXISTS table_sync_trigger_ee39a25f9d ON audit_events”)
→ 0.0006s
– execute(“DROP FUNCTION IF EXISTS table_sync_function_2be879775d()”)
→ 0.0003s
– replace_table("ALTER TABLE “audit_events”
ALTER COLUMN “id” DROP DEFAULT;
ALTER TABLE “audit_events_part_5fc467ac26”
ALTER COLUMN “id” SET DEFAULT nextval(’“audit_events_id_seq”’::regclass);
ALTER SEQUENCE “audit_events_id_seq”
OWNED BY “audit_events_part_5fc467ac26”.“id”;
ALTER TABLE “audit_events”
RENAME TO “audit_events_archived”;
ALTER TABLE “audit_events_archived”
RENAME CONSTRAINT “audit_events_pkey” TO “audit_events_archived_pkey”;
ALTER TABLE “audit_events_part_5fc467ac26”
RENAME TO “audit_events”;
ALTER TABLE “audit_events”
RENAME CONSTRAINT “audit_events_part_5fc467ac26_pkey” TO “audit_events_pkey”;
ALTER TABLE “gitlab_partitions_dynamic”.“audit_events_part_5fc467ac26_000000”
RENAME CONSTRAINT “audit_events_part_5fc467ac26_000000_pkey” TO “audit_events_000000_pkey”;
ALTER TABLE “gitlab_partitions_dynamic”.“audit_events_part_5fc467ac26_000000”
RENAME TO “audit_events_000000”;
ALTER TABLE “gitlab_partitions_dynamic”.“audit_events_part_5fc467ac26_201803”
RENAME CONSTRAINT “audit_events_part_5fc467ac26_201803_pkey” TO “audit_events_201803_pkey”;
ALTER TABLE “gitlab_partitions_dynamic”.“audit_events_part_5fc467ac26_201803”
RENAME TO “audit_events_201803”;
ALTER TABLE “gitlab_partitions_dynamic”.“audit_events_part_5fc467ac26_201804”
RENAME CONSTRAINT “audit_events_part_5fc467ac26_201804_pkey” TO “audit_events_201804_pkey”;
ALTER TABLE “gitlab_partitions_dynamic”.“audit_events_part_5fc467ac26_201804”
RENAME TO “audit_events_201804”;
ALTER TABLE “gitlab_partitions_dynamic”.“audit_events_part_5fc467ac26_201805”
RENAME CONSTRAINT “audit_events_part_5fc467ac26_201805_pkey” TO “audit_events_201805_pkey”;
ALTER TABLE “gitlab_partitions_dynamic”.“audit_events_part_5fc467ac26_201805”
RENAME TO “audit_events_201805”;
ALTER TABLE “gitlab_partitions_dynamic”.“audit_events_part_5fc467ac26_201806”
RENAME CONSTRAINT “audit_events_part_5fc467ac26_201806_pkey” TO “audit_events_201806_pkey”;
ALTER TABLE “gitlab_partitions_dynamic”.“audit_events_part_5fc467ac26_201806”
RENAME TO “audit_events_201806”;
ALTER TABLE “gitlab_partitions_dynamic”.“audit_events_part_5fc467ac26_201807”
RENAME CONSTRAINT “audit_events_part_5fc467ac26_201807_pkey” TO “audit_events_201807_pkey”;
ALTER TABLE “gitlab_partitions_dynamic”.“audit_events_part_5fc467ac26_201807”
RENAME TO “audit_events_201807”;
ALTER TABLE “gitlab_partitions_dynamic”.“audit_events_part_5fc467ac26_201808”
RENAME CONSTRAINT “audit_events_part_5fc467ac26_201808_pkey” TO “audit_events_201808_pkey”;
ALTER TABLE “gitlab_partitions_dynamic”.“audit_events_part_5fc467ac26_201808”
RENAME TO “audit_events_201808”;
ALTER TABLE “gitlab_partitions_dynamic”.“audit_events_part_5fc467ac26_201809”
RENAME CONSTRAINT “audit_events_part_5fc467ac26_201809_pkey” TO “audit_events_201809_pkey”;
ALTER TABLE “gitlab_partitions_dynamic”.“audit_events_part_5fc467ac26_201809”
RENAME TO “audit_events_201809”;
ALTER TABLE “gitlab_partitions_dynamic”.“audit_events_part_5fc467ac26_201810”
RENAME CONSTRAINT “audit_events_part_5fc467ac26_201810_pkey” TO “audit_events_201810_pkey”;
ALTER TABLE “gitlab_partitions_dynamic”.“audit_events_part_5fc467ac26_201810”
RENAME TO “audit_events_201810”;
ALTER TABLE “gitlab_partitions_dynamic”.“audit_events_part_5fc467ac26_201811”
RENAME CONSTRAINT “audit_events_part_5fc467ac26_201811_pkey” TO “audit_events_201811_pkey”;
ALTER TABLE “gitlab_partitions_dynamic”.“audit_events_part_5fc467ac26_201811”
RENAME TO “audit_events_201811”;
ALTER TABLE “gitlab_partitions_dynamic”.“audit_events_part_5fc467ac26_201812”
RENAME CONSTRAINT “audit_events_part_5fc467ac26_201812_pkey” TO “audit_events_201812_pkey”;
ALTER TABLE “gitlab_partitions_dynamic”.“audit_events_part_5fc467ac26_201812”
RENAME TO “audit_events_201812”;
ALTER TABLE “gitlab_partitions_dynamic”.“audit_events_part_5fc467ac26_201901”
RENAME CONSTRAINT “audit_events_part_5fc467ac26_201901_pkey” TO “audit_events_201901_pkey”;
ALTER TABLE “gitlab_partitions_dynamic”.“audit_events_part_5fc467ac26_201901”
RENAME TO “audit_events_201901”;
ALTER TABLE “gitlab_partitions_dynamic”.“audit_events_part_5fc467ac26_201902”
RENAME CONSTRAINT “audit_events_part_5fc467ac26_201902_pkey” TO “audit_events_201902_pkey”;
ALTER TABLE “gitlab_partitions_dynamic”.“audit_events_part_5fc467ac26_201902”
RENAME TO “audit_events_201902”;
ALTER TABLE “gitlab_partitions_dynamic”.“audit_events_part_5fc467ac26_201903”
RENAME CONSTRAINT “audit_events_part_5fc467ac26_201903_pkey” TO “audit_events_201903_pkey”;
ALTER TABLE “gitlab_partitions_dynamic”.“audit_events_part_5fc467ac26_201903”
RENAME TO “audit_events_201903”;
ALTER TABLE “gitlab_partitions_dynamic”.“audit_events_part_5fc467ac26_201904”
RENAME CONSTRAINT “audit_events_part_5fc467ac26_201904_pkey” TO “audit_events_201904_pkey”;
ALTER TABLE “gitlab_partitions_dynamic”.“audit_events_part_5fc467ac26_201904”
RENAME TO “audit_events_201904”;
ALTER TABLE “gitlab_partitions_dynamic”.“audit_events_part_5fc467ac26_201905”
RENAME CONSTRAINT “audit_events_part_5fc467ac26_201905_pkey” TO “audit_events_201905_pkey”;
ALTER TABLE “gitlab_partitions_dynamic”.“audit_events_part_5fc467ac26_201905”
RENAME TO “audit_events_201905”;
ALTER TABLE “gitlab_partitions_dynamic”.“audit_events_part_5fc467ac26_201906”
RENAME CONSTRAINT “audit_events_part_5fc467ac26_201906_pkey” TO “audit_events_201906_pkey”;
ALTER TABLE “gitlab_partitions_dynamic”.“audit_events_part_5fc467ac26_201906”
RENAME TO “audit_events_201906”;
ALTER TABLE “gitlab_partitions_dynamic”.“audit_events_part_5fc467ac26_201907”
RENAME CONSTRAINT “audit_events_part_5fc467ac26_201907_pkey” TO “audit_events_201907_pkey”;
ALTER TABLE “gitlab_partitions_dynamic”.“audit_events_part_5fc467ac26_201907”
RENAME TO “audit_events_201907”;
ALTER TABLE “gitlab_partitions_dynamic”.“audit_events_part_5fc467ac26_201908”
RENAME CONSTRAINT “audit_events_part_5fc467ac26_201908_pkey” TO “audit_events_201908_pkey”;
ALTER TABLE “gitlab_partitions_dynamic”.“audit_events_part_5fc467ac26_201908”
RENAME TO “audit_events_201908”;
ALTER TABLE “gitlab_partitions_dynamic”.“audit_events_part_5fc467ac26_201909”
RENAME CONSTRAINT “audit_events_part_5fc467ac26_201909_pkey” TO “audit_events_201909_pkey”;
ALTER TABLE “gitlab_partitions_dynamic”.“audit_events_part_5fc467ac26_201909”
RENAME TO “audit_events_201909”;
ALTER TABLE “gitlab_partitions_dynamic”.“audit_events_part_5fc467ac26_201910”
RENAME CONSTRAINT “audit_events_part_5fc467ac26_201910_pkey” TO “audit_events_201910_pkey”;
ALTER TABLE “gitlab_partitions_dynamic”.“audit_events_part_5fc467ac26_201910”
RENAME TO “audit_events_201910”;
ALTER TABLE “gitlab_partitions_dynamic”.“audit_events_part_5fc467ac26_201911”
RENAME CONSTRAINT “audit_events_part_5fc467ac26_201911_pkey” TO “audit_events_201911_pkey”;
ALTER TABLE “gitlab_partitions_dynamic”.“audit_events_part_5fc467ac26_201911”
RENAME TO “audit_events_201911”;
ALTER TABLE “gitlab_partitions_dynamic”.“audit_events_part_5fc467ac26_201912”
RENAME CONSTRAINT “audit_events_part_5fc467ac26_201912_pkey” TO “audit_events_201912_pkey”;
ALTER TABLE “gitlab_partitions_dynamic”.“audit_events_part_5fc467ac26_201912”
RENAME TO “audit_events_201912”;
ALTER TABLE “gitlab_partitions_dynamic”.“audit_events_part_5fc467ac26_202001”
RENAME CONSTRAINT “audit_events_part_5fc467ac26_202001_pkey” TO “audit_events_202001_pkey”;
ALTER TABLE “gitlab_partitions_dynamic”.“audit_events_part_5fc467ac26_202001”
RENAME TO “audit_events_202001”;
ALTER TABLE “gitlab_partitions_dynamic”.“audit_events_part_5fc467ac26_202002”
RENAME CONSTRAINT “audit_events_part_5fc467ac26_202002_pkey” TO “audit_events_202002_pkey”;
ALTER TABLE “gitlab_partitions_dynamic”.“audit_events_part_5fc467ac26_202002”
RENAME TO “audit_events_202002”;
ALTER TABLE “gitlab_partitions_dynamic”.“audit_events_part_5fc467ac26_202003”
RENAME CONSTRAINT “audit_events_part_5fc467ac26_202003_pkey” TO “audit_events_202003_pkey”;
ALTER TABLE “gitlab_partitions_dynamic”.“audit_events_part_5fc467ac26_202003”
RENAME TO “audit_events_202003”;
ALTER TABLE “gitlab_partitions_dynamic”.“audit_events_part_5fc467ac26_202004”
RENAME CONSTRAINT “audit_events_part_5fc467ac26_202004_pkey” TO “audit_events_202004_pkey”;
ALTER TABLE “gitlab_partitions_dynamic”.“audit_events_part_5fc467ac26_202004”
RENAME TO “audit_events_202004”;
ALTER TABLE “gitlab_partitions_dynamic”.“audit_events_part_5fc467ac26_202005”
RENAME CONSTRAINT “audit_events_part_5fc467ac26_202005_pkey” TO “audit_events_202005_pkey”;
ALTER TABLE “gitlab_partitions_dynamic”.“audit_events_part_5fc467ac26_202005”
RENAME TO “audit_events_202005”;
ALTER TABLE “gitlab_partitions_dynamic”.“audit_events_part_5fc467ac26_202006”
RENAME CONSTRAINT “audit_events_part_5fc467ac26_202006_pkey” TO “audit_events_202006_pkey”;
ALTER TABLE “gitlab_partitions_dynamic”.“audit_events_part_5fc467ac26_202006”
RENAME TO “audit_events_202006”;
ALTER TABLE “gitlab_partitions_dynamic”.“audit_events_part_5fc467ac26_202007”
RENAME CONSTRAINT “audit_events_part_5fc467ac26_202007_pkey” TO “audit_events_202007_pkey”;
ALTER TABLE “gitlab_partitions_dynamic”.“audit_events_part_5fc467ac26_202007”
RENAME TO “audit_events_202007”;
ALTER TABLE “gitlab_partitions_dynamic”.“audit_events_part_5fc467ac26_202008”
RENAME CONSTRAINT “audit_events_part_5fc467ac26_202008_pkey” TO “audit_events_202008_pkey”;
ALTER TABLE “gitlab_partitions_dynamic”.“audit_events_part_5fc467ac26_202008”
RENAME TO “audit_events_202008”;
ALTER TABLE “gitlab_partitions_dynamic”.“audit_events_part_5fc467ac26_202009”
RENAME CONSTRAINT “audit_events_part_5fc467ac26_202009_pkey” TO “audit_events_202009_pkey”;
ALTER TABLE “gitlab_partitions_dynamic”.“audit_events_part_5fc467ac26_202009”
RENAME TO “audit_events_202009”;
ALTER TABLE “gitlab_partitions_dynamic”.“audit_events_part_5fc467ac26_202010”
RENAME CONSTRAINT “audit_events_part_5fc467ac26_202010_pkey” TO “audit_events_202010_pkey”;
ALTER TABLE “gitlab_partitions_dynamic”.“audit_events_part_5fc467ac26_202010”
RENAME TO “audit_events_202010”;
ALTER TABLE “gitlab_partitions_dynamic”.“audit_events_part_5fc467ac26_202011”
RENAME CONSTRAINT “audit_events_part_5fc467ac26_202011_pkey” TO “audit_events_202011_pkey”;
ALTER TABLE “gitlab_partitions_dynamic”.“audit_events_part_5fc467ac26_202011”
RENAME TO “audit_events_202011”;
ALTER TABLE “gitlab_partitions_dynamic”.“audit_events_part_5fc467ac26_202012”
RENAME CONSTRAINT “audit_events_part_5fc467ac26_202012_pkey” TO “audit_events_202012_pkey”;
ALTER TABLE “gitlab_partitions_dynamic”.“audit_events_part_5fc467ac26_202012”
RENAME TO “audit_events_202012”;
ALTER TABLE “gitlab_partitions_dynamic”.“audit_events_part_5fc467ac26_202101”
RENAME CONSTRAINT “audit_events_part_5fc467ac26_202101_pkey” TO “audit_events_202101_pkey”;
ALTER TABLE “gitlab_partitions_dynamic”.“audit_events_part_5fc467ac26_202101”
RENAME TO “audit_events_202101”;
ALTER TABLE “gitlab_partitions_dynamic”.“audit_events_part_5fc467ac26_202102”
RENAME CONSTRAINT “audit_events_part_5fc467ac26_202102_pkey” TO “audit_events_202102_pkey”;
ALTER TABLE “gitlab_partitions_dynamic”.“audit_events_part_5fc467ac26_202102”
RENAME TO “audit_events_202102”;
ALTER TABLE “gitlab_partitions_dynamic”.“audit_events_part_5fc467ac26_202103”
RENAME CONSTRAINT “audit_events_part_5fc467ac26_202103_pkey” TO “audit_events_202103_pkey”;
ALTER TABLE “gitlab_partitions_dynamic”.“audit_events_part_5fc467ac26_202103”
RENAME TO “audit_events_202103”;
ALTER TABLE “gitlab_partitions_dynamic”.“audit_events_part_5fc467ac26_202104”
RENAME CONSTRAINT “audit_events_part_5fc467ac26_202104_pkey” TO “audit_events_202104_pkey”;
ALTER TABLE “gitlab_partitions_dynamic”.“audit_events_part_5fc467ac26_202104”
RENAME TO “audit_events_202104”;
ALTER TABLE “gitlab_partitions_dynamic”.“audit_events_part_5fc467ac26_202105”
RENAME CONSTRAINT “audit_events_part_5fc467ac26_202105_pkey” TO “audit_events_202105_pkey”;
ALTER TABLE “gitlab_partitions_dynamic”.“audit_events_part_5fc467ac26_202105”
RENAME TO “audit_events_202105”;
ALTER TABLE “gitlab_partitions_dynamic”.“audit_events_part_5fc467ac26_202106”
RENAME CONSTRAINT “audit_events_part_5fc467ac26_202106_pkey” TO “audit_events_202106_pkey”;
ALTER TABLE “gitlab_partitions_dynamic”.“audit_events_part_5fc467ac26_202106”
RENAME TO “audit_events_202106”;
ALTER TABLE “gitlab_partitions_dynamic”.“audit_events_part_5fc467ac26_202107”
RENAME CONSTRAINT “audit_events_part_5fc467ac26_202107_pkey” TO “audit_events_202107_pkey”;
ALTER TABLE “gitlab_partitions_dynamic”.“audit_events_part_5fc467ac26_202107”
RENAME TO “audit_events_202107”;
ALTER TABLE “gitlab_partitions_dynamic”.“audit_events_part_5fc467ac26_202108”
RENAME CONSTRAINT “audit_events_part_5fc467ac26_202108_pkey” TO “audit_events_202108_pkey”;
ALTER TABLE “gitlab_partitions_dynamic”.“audit_events_part_5fc467ac26_202108”
RENAME TO “audit_events_202108”;
ALTER TABLE “gitlab_partitions_dynamic”.“audit_events_part_5fc467ac26_202109”
RENAME CONSTRAINT “audit_events_part_5fc467ac26_202109_pkey” TO “audit_events_202109_pkey”;
ALTER TABLE “gitlab_partitions_dynamic”.“audit_events_part_5fc467ac26_202109”
RENAME TO “audit_events_202109”;
ALTER TABLE “gitlab_partitions_dynamic”.“audit_events_part_5fc467ac26_202110”
RENAME CONSTRAINT “audit_events_part_5fc467ac26_202110_pkey” TO “audit_events_202110_pkey”;
ALTER TABLE “gitlab_partitions_dynamic”.“audit_events_part_5fc467ac26_202110”
RENAME TO “audit_events_202110"”)rake aborted!
StandardError: An error has occurred, this and all later migrations canceled:
PG::ObjectNotInPrerequisiteState: ERROR: sequence must have same owner as table it is linked to
/opt/gitlab/embedded/service/gitlab-rails/lib/gitlab/database/partitioning/replace_table.rb:32:in execute' /opt/gitlab/embedded/service/gitlab-rails/lib/gitlab/database/partitioning/replace_table.rb:27:in
perform’
/opt/gitlab/embedded/service/gitlab-rails/lib/gitlab/database/partitioning_migration_helpers/table_management_helpers.rb:425:in block in replace_table' /opt/gitlab/embedded/service/gitlab-rails/lib/gitlab/database/with_lock_retries.rb:121:in
run_block’
/opt/gitlab/embedded/service/gitlab-rails/lib/gitlab/database/with_lock_retries.rb:130:in block in run_block_with_transaction' /opt/gitlab/embedded/service/gitlab-rails/lib/gitlab/database.rb:342:in
block in transaction’
/opt/gitlab/embedded/service/gitlab-rails/lib/gitlab/database.rb:341:in transaction' /opt/gitlab/embedded/service/gitlab-rails/lib/gitlab/database/with_lock_retries.rb:125:in
run_block_with_transaction’
/opt/gitlab/embedded/service/gitlab-rails/lib/gitlab/database/with_lock_retries.rb:95:in run' /opt/gitlab/embedded/service/gitlab-rails/lib/gitlab/database/migration_helpers.rb:395:in
with_lock_retries’
/opt/gitlab/embedded/service/gitlab-rails/lib/gitlab/database/partitioning_migration_helpers/table_management_helpers.rb:422:in replace_table' /opt/gitlab/embedded/service/gitlab-rails/lib/gitlab/database/partitioning_migration_helpers/table_management_helpers.rb:206:in
replace_with_partitioned_table’
/opt/gitlab/embedded/service/gitlab-rails/db/migrate/20201112215132_swap_partitioned_audit_events.rb:9:in up' /opt/gitlab/embedded/service/gitlab-rails/lib/gitlab/database.rb:342:in
block in transaction’
/opt/gitlab/embedded/service/gitlab-rails/lib/gitlab/database.rb:341:in transaction' /opt/gitlab/embedded/service/gitlab-rails/lib/tasks/gitlab/db.rake:61:in
block (3 levels) in <top (required)>’
/opt/gitlab/embedded/bin/bundle:23:in load' /opt/gitlab/embedded/bin/bundle:23:in
’
Caused by:
ActiveRecord::StatementInvalid: PG::ObjectNotInPrerequisiteState: ERROR: sequence must have same owner as table it is linked to
/opt/gitlab/embedded/service/gitlab-rails/lib/gitlab/database/partitioning/replace_table.rb:32:in execute' /opt/gitlab/embedded/service/gitlab-rails/lib/gitlab/database/partitioning/replace_table.rb:27:in
perform’
/opt/gitlab/embedded/service/gitlab-rails/lib/gitlab/database/partitioning_migration_helpers/table_management_helpers.rb:425:in block in replace_table' /opt/gitlab/embedded/service/gitlab-rails/lib/gitlab/database/with_lock_retries.rb:121:in
run_block’
/opt/gitlab/embedded/service/gitlab-rails/lib/gitlab/database/with_lock_retries.rb:130:in block in run_block_with_transaction' /opt/gitlab/embedded/service/gitlab-rails/lib/gitlab/database.rb:342:in
block in transaction’
/opt/gitlab/embedded/service/gitlab-rails/lib/gitlab/database.rb:341:in transaction' /opt/gitlab/embedded/service/gitlab-rails/lib/gitlab/database/with_lock_retries.rb:125:in
run_block_with_transaction’
/opt/gitlab/embedded/service/gitlab-rails/lib/gitlab/database/with_lock_retries.rb:95:in run' /opt/gitlab/embedded/service/gitlab-rails/lib/gitlab/database/migration_helpers.rb:395:in
with_lock_retries’
/opt/gitlab/embedded/service/gitlab-rails/lib/gitlab/database/partitioning_migration_helpers/table_management_helpers.rb:422:in replace_table' /opt/gitlab/embedded/service/gitlab-rails/lib/gitlab/database/partitioning_migration_helpers/table_management_helpers.rb:206:in
replace_with_partitioned_table’
/opt/gitlab/embedded/service/gitlab-rails/db/migrate/20201112215132_swap_partitioned_audit_events.rb:9:in up' /opt/gitlab/embedded/service/gitlab-rails/lib/gitlab/database.rb:342:in
block in transaction’
/opt/gitlab/embedded/service/gitlab-rails/lib/gitlab/database.rb:341:in transaction' /opt/gitlab/embedded/service/gitlab-rails/lib/tasks/gitlab/db.rake:61:in
block (3 levels) in <top (required)>’
/opt/gitlab/embedded/bin/bundle:23:in load' /opt/gitlab/embedded/bin/bundle:23:in
’
Caused by:
PG::ObjectNotInPrerequisiteState: ERROR: sequence must have same owner as table it is linked to
/opt/gitlab/embedded/service/gitlab-rails/lib/gitlab/database/partitioning/replace_table.rb:32:in execute' /opt/gitlab/embedded/service/gitlab-rails/lib/gitlab/database/partitioning/replace_table.rb:27:in
perform’
/opt/gitlab/embedded/service/gitlab-rails/lib/gitlab/database/partitioning_migration_helpers/table_management_helpers.rb:425:in block in replace_table' /opt/gitlab/embedded/service/gitlab-rails/lib/gitlab/database/with_lock_retries.rb:121:in
run_block’
/opt/gitlab/embedded/service/gitlab-rails/lib/gitlab/database/with_lock_retries.rb:130:in block in run_block_with_transaction' /opt/gitlab/embedded/service/gitlab-rails/lib/gitlab/database.rb:342:in
block in transaction’
/opt/gitlab/embedded/service/gitlab-rails/lib/gitlab/database.rb:341:in transaction' /opt/gitlab/embedded/service/gitlab-rails/lib/gitlab/database/with_lock_retries.rb:125:in
run_block_with_transaction’
/opt/gitlab/embedded/service/gitlab-rails/lib/gitlab/database/with_lock_retries.rb:95:in run' /opt/gitlab/embedded/service/gitlab-rails/lib/gitlab/database/migration_helpers.rb:395:in
with_lock_retries’
/opt/gitlab/embedded/service/gitlab-rails/lib/gitlab/database/partitioning_migration_helpers/table_management_helpers.rb:422:in replace_table' /opt/gitlab/embedded/service/gitlab-rails/lib/gitlab/database/partitioning_migration_helpers/table_management_helpers.rb:206:in
replace_with_partitioned_table’
/opt/gitlab/embedded/service/gitlab-rails/db/migrate/20201112215132_swap_partitioned_audit_events.rb:9:in up' /opt/gitlab/embedded/service/gitlab-rails/lib/gitlab/database.rb:342:in
block in transaction’
/opt/gitlab/embedded/service/gitlab-rails/lib/gitlab/database.rb:341:in transaction' /opt/gitlab/embedded/service/gitlab-rails/lib/tasks/gitlab/db.rake:61:in
block (3 levels) in <top (required)>’
/opt/gitlab/embedded/bin/bundle:23:in load' /opt/gitlab/embedded/bin/bundle:23:in
’
Tasks: TOP => db:migrate
(See full trace by running task with --trace)
STDERR:
---- End output of “bash” “/tmp/chef-script20210407-23613-1njgtth” ----
Ran “bash” “/tmp/chef-script20210407-23613-1njgtth” returned 1
Running handlers:
There was an error running gitlab-ctl reconfigure:
Running handlers complete
Chef Infra Client failed. 16 resources updated in 01 minutes 18 seconds
There was an error running gitlab-ctl reconfigure. Please check the output above for more
details.
warning: %posttrans(gitlab-ee-13.10.0-ee.0.el7.x86_64) scriptlet failed, exit status 1