Failed to upgrade GitLab ee 14.0.12 -> 14.10.0

Update / Solution:

I ran the db migration task again after finalizing background migration ProjectNamespaces::BackfillProjectNamespaces that was causing the error, and in finished successfully this time and triggered the rest of the stuck migrations. After all migrations were complete, I was able to reconfigure successfully.

To summarize, the issue was fixed with the following steps:

  • Finalize migration that caused the error manually by runing sudo gitlab-rake gitlab:background_migrations:finalize[ProjectNamespaces::BackfillProjectNamespaces,projects,id,'[null\,"up"]'], as suggested in error logs. After that the ProjectNamespaces::BackfillProjectNamespaces migration should be finished.
  • run db migration task sudo gitlab-rake db:migrate - it should complete without further errors
  • wait for the rest of the background migrations to finish
  • reconfigure gitlab to finish the upgrade - sudo gitlab-ctl reconfigure
7 Likes