Skip to content

cannot run gitlab-backup-cli with 18.0.2

Hello,

currently with i update my helm chart gitlab/gitlab 9.0.2 we use registry.gitlab.com/gitlab-org/build/cng/gitlab-toolbox-ee:v18.0.2

whem i run gitlab-backup-cli backup all i have this issue :

/srv/gitlab/gems/gitlab-backup-cli/lib/gitlab/backup/cli/targets/database.rb:59:in `block in dump': undefined method `join' for "pg_dump: error: aborting because of server version mismatch\npg_dump: detail: server version: 17.5; pg_dump version: 16.8\n":String (NoMethodError)

                Gitlab::Backup::Cli::Output.print(errors.join, stderr: true)
                                                        ^^^^^
        from /srv/gitlab/gems/gitlab-backup-cli/lib/gitlab/backup/cli/services/postgres.rb:24:in `block in each'
        from /srv/gitlab/gems/gitlab-backup-cli/lib/gitlab/backup/cli/services/postgres.rb:23:in `each'
        from /srv/gitlab/gems/gitlab-backup-cli/lib/gitlab/backup/cli/services/postgres.rb:23:in `each'
        from /srv/gitlab/gems/gitlab-backup-cli/lib/gitlab/backup/cli/targets/database.rb:48:in `dump'
        from /srv/gitlab/gems/gitlab-backup-cli/lib/gitlab/backup/cli/tasks/task.rb:29:in `backup!'
        from /srv/gitlab/gems/gitlab-backup-cli/lib/gitlab/backup/cli/backup_executor.rb:69:in `block (2 levels) in execute_all_tasks'
        from /srv/gitlab/gems/gitlab-backup-cli/lib/gitlab/backup/cli/backup_executor.rb:111:in `measure_duration'
        from /srv/gitlab/gems/gitlab-backup-cli/lib/gitlab/backup/cli/backup_executor.rb:68:in `block in execute_all_tasks'
        from /srv/gitlab/gems/gitlab-backup-cli/lib/gitlab/backup/cli/tasks.rb:42:in `block in build_each'
        from /srv/gitlab/gems/gitlab-backup-cli/lib/gitlab/backup/cli/tasks.rb:41:in `each'
        from /srv/gitlab/gems/gitlab-backup-cli/lib/gitlab/backup/cli/tasks.rb:41:in `build_each'
        from /srv/gitlab/gems/gitlab-backup-cli/lib/gitlab/backup/cli/backup_executor.rb:61:in `execute_all_tasks'
        from /srv/gitlab/gems/gitlab-backup-cli/lib/gitlab/backup/cli/backup_executor.rb:37:in `execute'
        from /srv/gitlab/gems/gitlab-backup-cli/lib/gitlab/backup/cli/commands/backup_subcommand.rb:26:in `block in all'
        from /srv/gitlab/gems/gitlab-backup-cli/lib/gitlab/backup/cli/commands/backup_subcommand.rb:45:in `measure_duration'
        from /srv/gitlab/gems/gitlab-backup-cli/lib/gitlab/backup/cli/commands/backup_subcommand.rb:23:in `all'
        from /srv/gitlab/vendor/bundle/ruby/3.2.0/gems/thor-1.3.1/lib/thor/command.rb:28:in `run'
        from /srv/gitlab/vendor/bundle/ruby/3.2.0/gems/thor-1.3.1/lib/thor/invocation.rb:127:in `invoke_command'
        from /srv/gitlab/vendor/bundle/ruby/3.2.0/gems/thor-1.3.1/lib/thor.rb:527:in `dispatch'
        from /srv/gitlab/vendor/bundle/ruby/3.2.0/gems/thor-1.3.1/lib/thor/invocation.rb:116:in `invoke'
        from /srv/gitlab/vendor/bundle/ruby/3.2.0/gems/thor-1.3.1/lib/thor.rb:338:in `block in subcommand'
        from /srv/gitlab/vendor/bundle/ruby/3.2.0/gems/thor-1.3.1/lib/thor/command.rb:28:in `run'
        from /srv/gitlab/vendor/bundle/ruby/3.2.0/gems/thor-1.3.1/lib/thor/invocation.rb:127:in `invoke_command'
        from /srv/gitlab/vendor/bundle/ruby/3.2.0/gems/thor-1.3.1/lib/thor.rb:527:in `dispatch'
        from /srv/gitlab/vendor/bundle/ruby/3.2.0/gems/thor-1.3.1/lib/thor/base.rb:584:in `start'
        from /srv/gitlab/gems/gitlab-backup-cli/lib/gitlab/backup/cli.rb:44:in `start'
        from /srv/gitlab/bin/gitlab-backup-cli:14:in `<main>'