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:indump' /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:inblock 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:inexecute' /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:inmon_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:ininvoke' /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:inblock 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:inexecute' /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:inmon_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:ininvoke' /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:inblock (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:inblock 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:intop_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:instandard_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:inkernel_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:inexec' /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:ininvoke_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:indispatch' /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:instart' /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:inwith_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:inload' /opt/gitlab/embedded/bin/bundle:23:in
’
Tasks: TOP => gitlab:backup:db:create