Bad database user on postgresql from 11 to 12 (omnibus)


I tried to move from gitlab 13.6 to 13.7+ but it failed due to postgresql migration from 11 to 12. I then tried to use gitlab-ctl pg-upgrade but it also failed with the following log :

 # cat pg_upgrade_internal.log 

Performing Consistency Checks
Checking cluster versions                                   ok
Checking database user is the install user                  database user "gitlab-psql" is not the install user

I had a look within the database using sudo -u gitlab-psql /opt/gitlab/embedded/bin/psql -h /var/opt/gitlab/postgresql -d gitlabhq_production and all the tables are owned by gitlab.

If you have any idea :wink:

Issue created on GItlab forge but no more success than here :cry: