PG::ConnectionBad: FATAL: role "git" does not exist
I have updated gitlab from 13.11.4
to 13.12.1
and am getting this error: PG::ConnectionBad: FATAL: role "git" does not exist
when executing sudo -u git bundle exec rake gitlab:env:info RAILS_ENV=production
gitlab won't start
checklist:
emerge --sync
emerge -u gitlab
emerge --config "=www-apps/gitlab-13.12.1"
etc-update
emerge --config "=www-apps/gitlab-13.12.1"
chown -R git:git /opt/gitlab /etc/gitlab
reboot
sudo -u git bundle exec rake gitlab:check RAILS_ENV=production
Checking GitLab subtasks ...
Checking GitLab Shell ...
GitLab Shell: ... GitLab Shell version >= 13.18.0 ? ... OK (13.18.0)
Running /opt/gitlab/gitlab-shell/bin/check
Internal API available: FAILED - Internal API error (502)
gitlab-shell self-check failed
Try fixing it:
Make sure GitLab is running;
Check the gitlab-shell configuration file:
sudo -u git -H editor /opt/gitlab/gitlab-shell/config.yml
Please fix the error above and rerun the checks.
Checking GitLab Shell ... Finished
Checking Gitaly ...
Gitaly: ... default ... OK
Checking Gitaly ... Finished
Checking Sidekiq ...
Sidekiq: ... Running? ... no
Try fixing it:
sudo -u git -H RAILS_ENV=production bin/background_jobs start
For more information see:
doc/install/installation.md in section "Install Init Script"
see log/sidekiq.log for possible errors
Please fix the error above and rerun the checks.
Checking Sidekiq ... Finished
Checking Incoming Email ...
Incoming Email: ... Reply by email is disabled in config/gitlab.yml
Checking Incoming Email ... Finished
Checking LDAP ...
LDAP: ... LDAP is disabled in config/gitlab.yml
Checking LDAP ... Finished
Checking GitLab App ...
Git configured correctly? ... yes
Database config exists? ... yes
All migrations up? ... yes
Database contains orphaned GroupMembers? ... Exception: FATAL: role "git" does not exist
GitLab config exists? ... yes
GitLab config up to date? ... yes
Log directory writable? ... yes
Tmp directory writable? ... yes
Uploads directory exists? ... yes
Uploads directory has correct permissions? ... yes
Uploads directory tmp has correct permissions? ... skipped (no tmp uploads folder yet)
Projects have namespace: ... Exception: FATAL: role "git" does not exist
Redis version >= 5.0.0? ... yes
Ruby version >= 2.7.2 ? ... yes (2.7.2)
Git version >= 2.31.0 ? ... yes (2.31.1)
Git user has default SSH configuration? ... yes
Active users: ... Exception: FATAL: role "git" does not exist
Is authorized keys file accessible? ... yes
GitLab configured to store new projects in hashed storage? ... no
Try fixing it:
Please enable the setting
`Use hashed storage paths for newly created and renamed projects`
in GitLab's Admin panel to avoid security issues and ensure data integrity.
For more information see:
doc/administration/repository_storage_types.md
All projects are in hashed storage? ... Exception: FATAL: role "git" does not exist
Checking GitLab App ... Finished
Checking GitLab subtasks ... Finished
Edited by Ghost User