Okay, found the fix here:
sudo gitlab-rake db:migrate
and it said it was expecting the project namespaces backfill task to be marked complete but it wasn’t, and to run this command:
sudo gitlab-rake gitlab:background_migrations:finalize[ProjectNamespaces::BackfillProjectNamespaces,projects,id,‘[null,“up”]’]
Running gitlab-ctl reconfigure then suceeded.