Backup rake task failing following system upgrade

After upgrade the Debian host onto which I’ve installed gitlab-ce the backup rake task is now systematically failing. Here’s the output with tracing activated, I’m sure it’s something stupid that I’ve overlooked but I’m at a loss and would appreciate any help possible :

root@app-git-vm01:/var/opt/gitlab/postgresql# /opt/gitlab/bin/gitlab-rake gitlab:backup:create --trace
** Invoke gitlab:backup:create (first_time)
** Invoke gitlab_environment (first_time)
** Invoke environment (first_time)
** Execute environment
** Execute gitlab_environment
** Execute gitlab:backup:create
** Invoke gitlab:backup:db:create (first_time)
** Invoke gitlab_environment
** Execute gitlab:backup:db:create
Dumping database …
Dumping PostgreSQL database gitlabhq_production … pg_dump: [archiver (db)] connection to database “gitlabhq_production” failed: FATAL: Peer authentication failed for user “gitlab”
[FAILED]
rake aborted!
Backup::Error: Backup failed
/opt/gitlab/embedded/service/gitlab-rails/lib/backup/database.rb:49:in dump' /opt/gitlab/embedded/service/gitlab-rails/lib/tasks/gitlab/backup.rake:99:in block (4 levels) in <top (required)>’
/opt/gitlab/embedded/lib/ruby/gems/2.5.0/gems/rake-12.3.1/lib/rake/task.rb:271:in block in execute' /opt/gitlab/embedded/lib/ruby/gems/2.5.0/gems/rake-12.3.1/lib/rake/task.rb:271:in each’
/opt/gitlab/embedded/lib/ruby/gems/2.5.0/gems/rake-12.3.1/lib/rake/task.rb:271:in execute' /opt/gitlab/embedded/lib/ruby/gems/2.5.0/gems/rake-12.3.1/lib/rake/task.rb:213:in block in invoke_with_call_chain’
/opt/gitlab/embedded/lib/ruby/2.5.0/monitor.rb:226:in mon_synchronize' /opt/gitlab/embedded/lib/ruby/gems/2.5.0/gems/rake-12.3.1/lib/rake/task.rb:193:in invoke_with_call_chain’
/opt/gitlab/embedded/lib/ruby/gems/2.5.0/gems/rake-12.3.1/lib/rake/task.rb:182:in invoke' /opt/gitlab/embedded/service/gitlab-rails/lib/tasks/gitlab/backup.rake:10:in block (3 levels) in <top (required)>’
/opt/gitlab/embedded/lib/ruby/gems/2.5.0/gems/rake-12.3.1/lib/rake/task.rb:271:in block in execute' /opt/gitlab/embedded/lib/ruby/gems/2.5.0/gems/rake-12.3.1/lib/rake/task.rb:271:in each’
/opt/gitlab/embedded/lib/ruby/gems/2.5.0/gems/rake-12.3.1/lib/rake/task.rb:271:in execute' /opt/gitlab/embedded/lib/ruby/gems/2.5.0/gems/rake-12.3.1/lib/rake/task.rb:213:in block in invoke_with_call_chain’
/opt/gitlab/embedded/lib/ruby/2.5.0/monitor.rb:226:in mon_synchronize' /opt/gitlab/embedded/lib/ruby/gems/2.5.0/gems/rake-12.3.1/lib/rake/task.rb:193:in invoke_with_call_chain’
/opt/gitlab/embedded/lib/ruby/gems/2.5.0/gems/rake-12.3.1/lib/rake/task.rb:182:in invoke' /opt/gitlab/embedded/lib/ruby/gems/2.5.0/gems/rake-12.3.1/lib/rake/application.rb:160:in invoke_task’
/opt/gitlab/embedded/lib/ruby/gems/2.5.0/gems/rake-12.3.1/lib/rake/application.rb:116:in block (2 levels) in top_level' /opt/gitlab/embedded/lib/ruby/gems/2.5.0/gems/rake-12.3.1/lib/rake/application.rb:116:in each’
/opt/gitlab/embedded/lib/ruby/gems/2.5.0/gems/rake-12.3.1/lib/rake/application.rb:116:in block in top_level' /opt/gitlab/embedded/lib/ruby/gems/2.5.0/gems/rake-12.3.1/lib/rake/application.rb:125:in run_with_threads’
/opt/gitlab/embedded/lib/ruby/gems/2.5.0/gems/rake-12.3.1/lib/rake/application.rb:110:in top_level' /opt/gitlab/embedded/lib/ruby/gems/2.5.0/gems/rake-12.3.1/lib/rake/application.rb:83:in block in run’
/opt/gitlab/embedded/lib/ruby/gems/2.5.0/gems/rake-12.3.1/lib/rake/application.rb:186:in standard_exception_handling' /opt/gitlab/embedded/lib/ruby/gems/2.5.0/gems/rake-12.3.1/lib/rake/application.rb:80:in run’
/opt/gitlab/embedded/lib/ruby/gems/2.5.0/gems/rake-12.3.1/exe/rake:27:in <top (required)>' /opt/gitlab/embedded/bin/rake:23:in load’
/opt/gitlab/embedded/bin/rake:23:in <top (required)>' /opt/gitlab/embedded/lib/ruby/gems/2.5.0/gems/bundler-1.16.6/lib/bundler/cli/exec.rb:74:in load’
/opt/gitlab/embedded/lib/ruby/gems/2.5.0/gems/bundler-1.16.6/lib/bundler/cli/exec.rb:74:in kernel_load' /opt/gitlab/embedded/lib/ruby/gems/2.5.0/gems/bundler-1.16.6/lib/bundler/cli/exec.rb:28:in run’
/opt/gitlab/embedded/lib/ruby/gems/2.5.0/gems/bundler-1.16.6/lib/bundler/cli.rb:424:in exec' /opt/gitlab/embedded/lib/ruby/gems/2.5.0/gems/bundler-1.16.6/lib/bundler/vendor/thor/lib/thor/command.rb:27:in run’
/opt/gitlab/embedded/lib/ruby/gems/2.5.0/gems/bundler-1.16.6/lib/bundler/vendor/thor/lib/thor/invocation.rb:126:in invoke_command' /opt/gitlab/embedded/lib/ruby/gems/2.5.0/gems/bundler-1.16.6/lib/bundler/vendor/thor/lib/thor.rb:387:in dispatch’
/opt/gitlab/embedded/lib/ruby/gems/2.5.0/gems/bundler-1.16.6/lib/bundler/cli.rb:27:in dispatch' /opt/gitlab/embedded/lib/ruby/gems/2.5.0/gems/bundler-1.16.6/lib/bundler/vendor/thor/lib/thor/base.rb:466:in start’
/opt/gitlab/embedded/lib/ruby/gems/2.5.0/gems/bundler-1.16.6/lib/bundler/cli.rb:18:in start' /opt/gitlab/embedded/lib/ruby/gems/2.5.0/gems/bundler-1.16.6/exe/bundle:30:in block in <top (required)>’
/opt/gitlab/embedded/lib/ruby/gems/2.5.0/gems/bundler-1.16.6/lib/bundler/friendly_errors.rb:124:in with_friendly_errors' /opt/gitlab/embedded/lib/ruby/gems/2.5.0/gems/bundler-1.16.6/exe/bundle:22:in <top (required)>’
/opt/gitlab/embedded/bin/bundle:23:in load' /opt/gitlab/embedded/bin/bundle:23:in
Tasks: TOP => gitlab:backup:db:create

Hi.
What kernel do you use?
I have same problem. I dont know exactly what it is, but:
If I run my old OpenVZ container as LXC on modern debian 9 (last rep kernel) and made dist-upgrade from deb 7 to 9 then update 11.6.10 to 11.7.1 gitlab-ce it works fine.
If I run my same old OpenVZ container on old debian 7 (last rep kernel) I got same problem as you.

Newer-mind. I’ve fixed the problem just reboot server and that is it!

Self answer, running gitlab-ctl reconfigure solved the issue.