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 theProjectNamespaces::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