upgraded from 16.3.7 to 16.7.6 and 12 hours later it still on the background database tasks:
gitlabhq_production=# select job_class_name, table_name, column_name, job_arguments from batched_background_migrations where status <> 3;
job_class_name | table_name | column_name | job_arguments
----------------------------------------------------+-----------------------------+-------------+------------------------------------------------------------------------------
CopyColumnUsingBackgroundMigrationJob | ci_namespace_monthly_usages | id | [["shared_runners_duration"], ["shared_runners_duration_convert_to_bigint"]]
BackfillUsersWithDefaults | users | id | []
BackfillUserPreferencesWithDefaults | user_preferences | id | []
CreateComplianceStandardsAdherence | projects | id | []
BackfillProjectStatisticsStorageSizeWithRecentSize | project_statistics | project_id | []
UpdateUsersSetExternalIfServiceAccount | users | id | []
CopyColumnUsingBackgroundMigrationJob | ci_project_monthly_usages | id | [["shared_runners_duration"], ["shared_runners_duration_convert_to_bigint"]]
(7 rows)
Have done 50+ upgrades over the years and usually the background scripts take 30 mins.
Is there a way to debug what’s causing this to hang?
Unable to run gitlab-ctl reconfigure until this has completed