Backups: Upload backups with S3 compatible provider failed
Summary
Unable to upload a backup file to a (comptabile) S3 external storage.
Steps to reproduce
- Deploy a fresh gitlab instance
- Configure backup using a S3 bucket from Infomaniak :
gitlab_rails['backup_keep_time'] = 604800
gitlab_rails['backup_upload_connection'] = {
'provider' => 'AWS',
'region' => 'us-east-1',
'aws_access_key_id' => 'XXXXXXXXXXXXXXXXX',
'aws_secret_access_key' => 'XXXXXXXXXXXXXXX',
'endpoint' => 'https://s3.pub1.infomaniak.cloud',
}
gitlab_rails['backup_upload_remote_directory'] = 'gitlab-backup'
- Attempt to create a backup:
sudo gitlab-backup create
.
What is the current bug behavior?
The gitlab-backup
commands use v1
has bucket name insted of the configured one.
What is the expected correct behavior?
The bucket name should be the configured one. In my case, should be gitlab-backup
Relevant logs and/or screenshots
Output of `sudo gitlab-backup create` commands
debian@gitlab:~$ sudo gitlab-backup create --trace ** Invoke gitlab:backup:create (first_time) ** Invoke gitlab_environment (first_time) ** Execute gitlab_environment ** Invoke environment (first_time) ** Execute environment ** Execute gitlab:backup:create 2024-04-04 12:50:40 UTC -- Dumping database ... Dumping PostgreSQL database gitlabhq_production ... [DONE] 2024-04-04 12:50:43 UTC -- Dumping database ... done 2024-04-04 12:50:43 UTC -- Dumping repositories ... 2024-04-04 12:50:43 UTC -- Dumping repositories ... done 2024-04-04 12:50:43 UTC -- Dumping uploads ... 2024-04-04 12:50:43 UTC -- Dumping uploads ... done 2024-04-04 12:50:43 UTC -- Dumping builds ... 2024-04-04 12:50:43 UTC -- Dumping builds ... done 2024-04-04 12:50:43 UTC -- Dumping artifacts ... 2024-04-04 12:50:43 UTC -- Dumping artifacts ... done 2024-04-04 12:50:43 UTC -- Dumping pages ... 2024-04-04 12:50:43 UTC -- Dumping pages ... done 2024-04-04 12:50:43 UTC -- Dumping lfs objects ... 2024-04-04 12:50:43 UTC -- Dumping lfs objects ... done 2024-04-04 12:50:43 UTC -- Dumping terraform states ... 2024-04-04 12:50:43 UTC -- Dumping terraform states ... done 2024-04-04 12:50:43 UTC -- Dumping container registry images ... [DISABLED] 2024-04-04 12:50:43 UTC -- Dumping packages ... 2024-04-04 12:50:43 UTC -- Dumping packages ... done 2024-04-04 12:50:43 UTC -- Dumping ci secure files ... 2024-04-04 12:50:43 UTC -- Dumping ci secure files ... done 2024-04-04 12:50:43 UTC -- Creating backup archive: 1712235040_2024_04_04_16.10.1-ee_gitlab_backup.tar ... 2024-04-04 12:50:43 UTC -- Creating backup archive: 1712235040_2024_04_04_16.10.1-ee_gitlab_backup.tar ... done 2024-04-04 12:50:43 UTC -- Uploading backup archive to remote storage gitlab-backup ... 2024-04-04 12:50:44 UTC -- Deleting tar staging files ... 2024-04-04 12:50:44 UTC -- Cleaning up /var/opt/gitlab/backups/backup_information.yml 2024-04-04 12:50:44 UTC -- Cleaning up /var/opt/gitlab/backups/db 2024-04-04 12:50:44 UTC -- Cleaning up /var/opt/gitlab/backups/uploads.tar.gz 2024-04-04 12:50:44 UTC -- Cleaning up /var/opt/gitlab/backups/builds.tar.gz 2024-04-04 12:50:44 UTC -- Cleaning up /var/opt/gitlab/backups/artifacts.tar.gz 2024-04-04 12:50:44 UTC -- Cleaning up /var/opt/gitlab/backups/pages.tar.gz 2024-04-04 12:50:44 UTC -- Cleaning up /var/opt/gitlab/backups/lfs.tar.gz 2024-04-04 12:50:44 UTC -- Cleaning up /var/opt/gitlab/backups/terraform_state.tar.gz 2024-04-04 12:50:44 UTC -- Cleaning up /var/opt/gitlab/backups/packages.tar.gz 2024-04-04 12:50:44 UTC -- Cleaning up /var/opt/gitlab/backups/ci_secure_files.tar.gz 2024-04-04 12:50:44 UTC -- Deleting tar staging files ... done 2024-04-04 12:50:44 UTC -- Deleting backups/tmp ... 2024-04-04 12:50:44 UTC -- Deleting backups/tmp ... done 2024-04-04 12:50:44 UTC -- Deleting backup and restore PID file ... done rake aborted! Excon::Error::BadRequest: Expected(200) <=> Actual(400 Bad Request) excon.error.response :body => "\nInvalidBucketName
The specified bucket is not valid.tx75d92074848949e5ac2f0-00660ea224v1" :cookies => [ ] :headers => { "content-type" => "application/xml" "date" => "Thu, 04 Apr 2024 12:50:44 GMT" "strict-transport-security" => "max-age=63072000" "x-amz-id-2" => "tx75d92074848949e5ac2f0-00660ea224" "x-amz-request-id" => "tx75d92074848949e5ac2f0-00660ea224" "x-openstack-request-id" => "tx75d92074848949e5ac2f0-00660ea224" "x-trans-id" => "tx75d92074848949e5ac2f0-00660ea224" } :host => "gitlab-backup.s3.pub1.infomaniak.cloud" :local_address => "10.10.0.154" :local_port => 59512 :method => "PUT" :omit_default_port => false :path => "/1712235040_2024_04_04_16.10.1-ee_gitlab_backup.tar" :port => 443 :query => nil :reason_phrase => "Bad Request" :remote_ip => "45.157.188.68" :scheme => "https" :status => 400 :status_line => "HTTP/1.1 400 Bad Request\r\n" /opt/gitlab/embedded/lib/ruby/gems/3.1.0/gems/excon-0.99.0/lib/excon/middlewares/expects.rb:13:in `response_call' /opt/gitlab/embedded/lib/ruby/gems/3.1.0/gems/excon-0.99.0/lib/excon/middlewares/response_parser.rb:12:in `response_call' /opt/gitlab/embedded/lib/ruby/gems/3.1.0/gems/excon-0.99.0/lib/excon/connection.rb:459:in `response' /opt/gitlab/embedded/lib/ruby/gems/3.1.0/gems/excon-0.99.0/lib/excon/connection.rb:290:in `request' /opt/gitlab/embedded/lib/ruby/gems/3.1.0/gems/excon-0.99.0/lib/excon/middlewares/idempotent.rb:50:in `error_call' /opt/gitlab/embedded/lib/ruby/gems/3.1.0/gems/excon-0.99.0/lib/excon/middlewares/base.rb:17:in `error_call' /opt/gitlab/embedded/lib/ruby/gems/3.1.0/gems/excon-0.99.0/lib/excon/middlewares/base.rb:17:in `error_call' /opt/gitlab/embedded/lib/ruby/gems/3.1.0/gems/excon-0.99.0/lib/excon/connection.rb:315:in `rescue in request' /opt/gitlab/embedded/lib/ruby/gems/3.1.0/gems/excon-0.99.0/lib/excon/connection.rb:230:in `request' /opt/gitlab/embedded/lib/ruby/gems/3.1.0/gems/excon-0.99.0/lib/excon/middlewares/idempotent.rb:50:in `error_call' /opt/gitlab/embedded/lib/ruby/gems/3.1.0/gems/excon-0.99.0/lib/excon/middlewares/base.rb:17:in `error_call' /opt/gitlab/embedded/lib/ruby/gems/3.1.0/gems/excon-0.99.0/lib/excon/middlewares/base.rb:17:in `error_call' /opt/gitlab/embedded/lib/ruby/gems/3.1.0/gems/excon-0.99.0/lib/excon/connection.rb:315:in `rescue in request' /opt/gitlab/embedded/lib/ruby/gems/3.1.0/gems/excon-0.99.0/lib/excon/connection.rb:230:in `request' /opt/gitlab/embedded/lib/ruby/gems/3.1.0/gems/excon-0.99.0/lib/excon/middlewares/idempotent.rb:50:in `error_call' /opt/gitlab/embedded/lib/ruby/gems/3.1.0/gems/excon-0.99.0/lib/excon/middlewares/base.rb:17:in `error_call' /opt/gitlab/embedded/lib/ruby/gems/3.1.0/gems/excon-0.99.0/lib/excon/middlewares/base.rb:17:in `error_call' /opt/gitlab/embedded/lib/ruby/gems/3.1.0/gems/excon-0.99.0/lib/excon/connection.rb:315:in `rescue in request' /opt/gitlab/embedded/lib/ruby/gems/3.1.0/gems/excon-0.99.0/lib/excon/connection.rb:230:in `request' /opt/gitlab/embedded/lib/ruby/gems/3.1.0/gems/fog-core-2.1.0/lib/fog/core/connection.rb:81:in `request' /opt/gitlab/embedded/lib/ruby/gems/3.1.0/gems/fog-xml-0.1.3/lib/fog/xml/connection.rb:9:in `request' /opt/gitlab/embedded/lib/ruby/gems/3.1.0/gems/fog-aws-3.18.0/lib/fog/aws/storage.rb:677:in `_request' /opt/gitlab/embedded/lib/ruby/gems/3.1.0/gems/fog-aws-3.18.0/lib/fog/aws/storage.rb:672:in `request' /opt/gitlab/embedded/lib/ruby/gems/3.1.0/gems/fog-aws-3.18.0/lib/fog/aws/requests/storage/put_object.rb:48:in `put_object' /opt/gitlab/embedded/lib/ruby/gems/3.1.0/gems/fog-aws-3.18.0/lib/fog/aws/models/storage/file.rb:282:in `save' /opt/gitlab/embedded/lib/ruby/gems/3.1.0/gems/fog-core-2.1.0/lib/fog/core/collection.rb:50:in `create' /opt/gitlab/embedded/service/gitlab-rails/lib/backup/remote_storage.rb:27:in `upload' /opt/gitlab/embedded/service/gitlab-rails/lib/backup/manager.rb:266:in `upload' /opt/gitlab/embedded/service/gitlab-rails/lib/backup/manager.rb:148:in `run_all_create_tasks' /opt/gitlab/embedded/service/gitlab-rails/lib/backup/manager.rb:28:in `create' /opt/gitlab/embedded/service/gitlab-rails/lib/tasks/gitlab/backup.rake:12:in `block in create_backup' /opt/gitlab/embedded/service/gitlab-rails/lib/tasks/gitlab/backup.rake:68:in `lock_backup' /opt/gitlab/embedded/service/gitlab-rails/lib/tasks/gitlab/backup.rake:10:in `create_backup' /opt/gitlab/embedded/service/gitlab-rails/lib/tasks/gitlab/backup.rake:107:in `block (3 levels) in ' /opt/gitlab/embedded/lib/ruby/gems/3.1.0/gems/rake-13.0.6/lib/rake/task.rb:281:in `block in execute' /opt/gitlab/embedded/lib/ruby/gems/3.1.0/gems/rake-13.0.6/lib/rake/task.rb:281:in `each' /opt/gitlab/embedded/lib/ruby/gems/3.1.0/gems/rake-13.0.6/lib/rake/task.rb:281:in `execute' /opt/gitlab/embedded/lib/ruby/gems/3.1.0/gems/sentry-ruby-5.10.0/lib/sentry/rake.rb:26:in `execute' /opt/gitlab/embedded/lib/ruby/gems/3.1.0/gems/rake-13.0.6/lib/rake/task.rb:219:in `block in invoke_with_call_chain' /opt/gitlab/embedded/lib/ruby/gems/3.1.0/gems/rake-13.0.6/lib/rake/task.rb:199:in `synchronize' /opt/gitlab/embedded/lib/ruby/gems/3.1.0/gems/rake-13.0.6/lib/rake/task.rb:199:in `invoke_with_call_chain' /opt/gitlab/embedded/lib/ruby/gems/3.1.0/gems/rake-13.0.6/lib/rake/task.rb:188:in `invoke' /opt/gitlab/embedded/lib/ruby/gems/3.1.0/gems/rake-13.0.6/lib/rake/application.rb:160:in `invoke_task' /opt/gitlab/embedded/lib/ruby/gems/3.1.0/gems/rake-13.0.6/lib/rake/application.rb:116:in `block (2 levels) in top_level' /opt/gitlab/embedded/lib/ruby/gems/3.1.0/gems/rake-13.0.6/lib/rake/application.rb:116:in `each' /opt/gitlab/embedded/lib/ruby/gems/3.1.0/gems/rake-13.0.6/lib/rake/application.rb:116:in `block in top_level' /opt/gitlab/embedded/lib/ruby/gems/3.1.0/gems/rake-13.0.6/lib/rake/application.rb:125:in `run_with_threads' /opt/gitlab/embedded/lib/ruby/gems/3.1.0/gems/rake-13.0.6/lib/rake/application.rb:110:in `top_level' /opt/gitlab/embedded/lib/ruby/gems/3.1.0/gems/rake-13.0.6/lib/rake/application.rb:83:in `block in run' /opt/gitlab/embedded/lib/ruby/gems/3.1.0/gems/rake-13.0.6/lib/rake/application.rb:186:in `standard_exception_handling' /opt/gitlab/embedded/lib/ruby/gems/3.1.0/gems/rake-13.0.6/lib/rake/application.rb:80:in `run' /opt/gitlab/embedded/lib/ruby/gems/3.1.0/gems/rake-13.0.6/exe/rake:27:in `' /opt/gitlab/embedded/bin/rake:25:in `load' /opt/gitlab/embedded/bin/rake:25:in `' /opt/gitlab/embedded/lib/ruby/site_ruby/3.1.0/bundler/cli/exec.rb:58:in `load' /opt/gitlab/embedded/lib/ruby/site_ruby/3.1.0/bundler/cli/exec.rb:58:in `kernel_load' /opt/gitlab/embedded/lib/ruby/site_ruby/3.1.0/bundler/cli/exec.rb:23:in `run' /opt/gitlab/embedded/lib/ruby/site_ruby/3.1.0/bundler/cli.rb:451:in `exec' /opt/gitlab/embedded/lib/ruby/site_ruby/3.1.0/bundler/vendor/thor/lib/thor/command.rb:28:in `run' /opt/gitlab/embedded/lib/ruby/site_ruby/3.1.0/bundler/vendor/thor/lib/thor/invocation.rb:127:in `invoke_command' /opt/gitlab/embedded/lib/ruby/site_ruby/3.1.0/bundler/vendor/thor/lib/thor.rb:527:in `dispatch' /opt/gitlab/embedded/lib/ruby/site_ruby/3.1.0/bundler/cli.rb:34:in `dispatch' /opt/gitlab/embedded/lib/ruby/site_ruby/3.1.0/bundler/vendor/thor/lib/thor/base.rb:584:in `start' /opt/gitlab/embedded/lib/ruby/site_ruby/3.1.0/bundler/cli.rb:28:in `start' /opt/gitlab/embedded/lib/ruby/gems/3.1.0/gems/bundler-2.5.6/exe/bundle:28:in `block in ' /opt/gitlab/embedded/lib/ruby/site_ruby/3.1.0/bundler/friendly_errors.rb:117:in `with_friendly_errors' /opt/gitlab/embedded/lib/ruby/gems/3.1.0/gems/bundler-2.5.6/exe/bundle:20:in `' /opt/gitlab/embedded/bin/bundle:25:in `load' /opt/gitlab/embedded/bin/bundle:25:in `'Caused by: Excon::Error::BadRequest: Expected(200) <=> Actual(400 Bad Request) excon.error.response :body => "\n
InvalidBucketName
The specified bucket is not valid.txd490d2033df14ccb8b612-00660ea223v1" :cookies => [ ] :headers => { "content-type" => "application/xml" "date" => "Thu, 04 Apr 2024 12:50:44 GMT" "strict-transport-security" => "max-age=63072000" "x-amz-id-2" => "txd490d2033df14ccb8b612-00660ea223" "x-amz-request-id" => "txd490d2033df14ccb8b612-00660ea223" "x-openstack-request-id" => "txd490d2033df14ccb8b612-00660ea223" "x-trans-id" => "txd490d2033df14ccb8b612-00660ea223" } :host => "gitlab-backup.s3.pub1.infomaniak.cloud" :local_address => "10.10.0.154" :local_port => 52886 :method => "PUT" :omit_default_port => false :path => "/1712235040_2024_04_04_16.10.1-ee_gitlab_backup.tar" :port => 443 :query => nil :reason_phrase => "Bad Request" :remote_ip => "45.157.188.67" :scheme => "https" :status => 400 :status_line => "HTTP/1.1 400 Bad Request\r\n" /opt/gitlab/embedded/lib/ruby/gems/3.1.0/gems/excon-0.99.0/lib/excon/middlewares/expects.rb:13:inresponse_call' /opt/gitlab/embedded/lib/ruby/gems/3.1.0/gems/excon-0.99.0/lib/excon/middlewares/response_parser.rb:12:in
response_call' /opt/gitlab/embedded/lib/ruby/gems/3.1.0/gems/excon-0.99.0/lib/excon/connection.rb:459:inresponse' /opt/gitlab/embedded/lib/ruby/gems/3.1.0/gems/excon-0.99.0/lib/excon/connection.rb:290:in
request' /opt/gitlab/embedded/lib/ruby/gems/3.1.0/gems/excon-0.99.0/lib/excon/middlewares/idempotent.rb:50:inerror_call' /opt/gitlab/embedded/lib/ruby/gems/3.1.0/gems/excon-0.99.0/lib/excon/middlewares/base.rb:17:in
error_call' /opt/gitlab/embedded/lib/ruby/gems/3.1.0/gems/excon-0.99.0/lib/excon/middlewares/base.rb:17:inerror_call' /opt/gitlab/embedded/lib/ruby/gems/3.1.0/gems/excon-0.99.0/lib/excon/connection.rb:315:in
rescue in request' /opt/gitlab/embedded/lib/ruby/gems/3.1.0/gems/excon-0.99.0/lib/excon/connection.rb:230:inrequest' /opt/gitlab/embedded/lib/ruby/gems/3.1.0/gems/excon-0.99.0/lib/excon/middlewares/idempotent.rb:50:in
error_call' /opt/gitlab/embedded/lib/ruby/gems/3.1.0/gems/excon-0.99.0/lib/excon/middlewares/base.rb:17:inerror_call' /opt/gitlab/embedded/lib/ruby/gems/3.1.0/gems/excon-0.99.0/lib/excon/middlewares/base.rb:17:in
error_call' /opt/gitlab/embedded/lib/ruby/gems/3.1.0/gems/excon-0.99.0/lib/excon/connection.rb:315:inrescue in request' /opt/gitlab/embedded/lib/ruby/gems/3.1.0/gems/excon-0.99.0/lib/excon/connection.rb:230:in
request' /opt/gitlab/embedded/lib/ruby/gems/3.1.0/gems/fog-core-2.1.0/lib/fog/core/connection.rb:81:inrequest' /opt/gitlab/embedded/lib/ruby/gems/3.1.0/gems/fog-xml-0.1.3/lib/fog/xml/connection.rb:9:in
request' /opt/gitlab/embedded/lib/ruby/gems/3.1.0/gems/fog-aws-3.18.0/lib/fog/aws/storage.rb:677:in_request' /opt/gitlab/embedded/lib/ruby/gems/3.1.0/gems/fog-aws-3.18.0/lib/fog/aws/storage.rb:672:in
request' /opt/gitlab/embedded/lib/ruby/gems/3.1.0/gems/fog-aws-3.18.0/lib/fog/aws/requests/storage/put_object.rb:48:input_object' /opt/gitlab/embedded/lib/ruby/gems/3.1.0/gems/fog-aws-3.18.0/lib/fog/aws/models/storage/file.rb:282:in
save' /opt/gitlab/embedded/lib/ruby/gems/3.1.0/gems/fog-core-2.1.0/lib/fog/core/collection.rb:50:increate' /opt/gitlab/embedded/service/gitlab-rails/lib/backup/remote_storage.rb:27:in
upload' /opt/gitlab/embedded/service/gitlab-rails/lib/backup/manager.rb:266:inupload' /opt/gitlab/embedded/service/gitlab-rails/lib/backup/manager.rb:148:in
run_all_create_tasks' /opt/gitlab/embedded/service/gitlab-rails/lib/backup/manager.rb:28:increate' /opt/gitlab/embedded/service/gitlab-rails/lib/tasks/gitlab/backup.rake:12:in
block in create_backup' /opt/gitlab/embedded/service/gitlab-rails/lib/tasks/gitlab/backup.rake:68:inlock_backup' /opt/gitlab/embedded/service/gitlab-rails/lib/tasks/gitlab/backup.rake:10:in
create_backup' /opt/gitlab/embedded/service/gitlab-rails/lib/tasks/gitlab/backup.rake:107:inblock (3 levels) in <top (required)>' /opt/gitlab/embedded/lib/ruby/gems/3.1.0/gems/rake-13.0.6/lib/rake/task.rb:281:in
block in execute' /opt/gitlab/embedded/lib/ruby/gems/3.1.0/gems/rake-13.0.6/lib/rake/task.rb:281:ineach' /opt/gitlab/embedded/lib/ruby/gems/3.1.0/gems/rake-13.0.6/lib/rake/task.rb:281:in
execute' /opt/gitlab/embedded/lib/ruby/gems/3.1.0/gems/sentry-ruby-5.10.0/lib/sentry/rake.rb:26:inexecute' /opt/gitlab/embedded/lib/ruby/gems/3.1.0/gems/rake-13.0.6/lib/rake/task.rb:219:in
block in invoke_with_call_chain' /opt/gitlab/embedded/lib/ruby/gems/3.1.0/gems/rake-13.0.6/lib/rake/task.rb:199:insynchronize' /opt/gitlab/embedded/lib/ruby/gems/3.1.0/gems/rake-13.0.6/lib/rake/task.rb:199:in
invoke_with_call_chain' /opt/gitlab/embedded/lib/ruby/gems/3.1.0/gems/rake-13.0.6/lib/rake/task.rb:188:ininvoke' /opt/gitlab/embedded/lib/ruby/gems/3.1.0/gems/rake-13.0.6/lib/rake/application.rb:160:in
invoke_task' /opt/gitlab/embedded/lib/ruby/gems/3.1.0/gems/rake-13.0.6/lib/rake/application.rb:116:inblock (2 levels) in top_level' /opt/gitlab/embedded/lib/ruby/gems/3.1.0/gems/rake-13.0.6/lib/rake/application.rb:116:in
each' /opt/gitlab/embedded/lib/ruby/gems/3.1.0/gems/rake-13.0.6/lib/rake/application.rb:116:inblock in top_level' /opt/gitlab/embedded/lib/ruby/gems/3.1.0/gems/rake-13.0.6/lib/rake/application.rb:125:in
run_with_threads' /opt/gitlab/embedded/lib/ruby/gems/3.1.0/gems/rake-13.0.6/lib/rake/application.rb:110:intop_level' /opt/gitlab/embedded/lib/ruby/gems/3.1.0/gems/rake-13.0.6/lib/rake/application.rb:83:in
block in run' /opt/gitlab/embedded/lib/ruby/gems/3.1.0/gems/rake-13.0.6/lib/rake/application.rb:186:instandard_exception_handling' /opt/gitlab/embedded/lib/ruby/gems/3.1.0/gems/rake-13.0.6/lib/rake/application.rb:80:in
run' /opt/gitlab/embedded/lib/ruby/gems/3.1.0/gems/rake-13.0.6/exe/rake:27:in<top (required)>' /opt/gitlab/embedded/bin/rake:25:in
load' /opt/gitlab/embedded/bin/rake:25:in<top (required)>' /opt/gitlab/embedded/lib/ruby/site_ruby/3.1.0/bundler/cli/exec.rb:58:in
load' /opt/gitlab/embedded/lib/ruby/site_ruby/3.1.0/bundler/cli/exec.rb:58:inkernel_load' /opt/gitlab/embedded/lib/ruby/site_ruby/3.1.0/bundler/cli/exec.rb:23:in
run' /opt/gitlab/embedded/lib/ruby/site_ruby/3.1.0/bundler/cli.rb:451:inexec' /opt/gitlab/embedded/lib/ruby/site_ruby/3.1.0/bundler/vendor/thor/lib/thor/command.rb:28:in
run' /opt/gitlab/embedded/lib/ruby/site_ruby/3.1.0/bundler/vendor/thor/lib/thor/invocation.rb:127:ininvoke_command' /opt/gitlab/embedded/lib/ruby/site_ruby/3.1.0/bundler/vendor/thor/lib/thor.rb:527:in
dispatch' /opt/gitlab/embedded/lib/ruby/site_ruby/3.1.0/bundler/cli.rb:34:indispatch' /opt/gitlab/embedded/lib/ruby/site_ruby/3.1.0/bundler/vendor/thor/lib/thor/base.rb:584:in
start' /opt/gitlab/embedded/lib/ruby/site_ruby/3.1.0/bundler/cli.rb:28:instart' /opt/gitlab/embedded/lib/ruby/gems/3.1.0/gems/bundler-2.5.6/exe/bundle:28:in
block in <top (required)>' /opt/gitlab/embedded/lib/ruby/site_ruby/3.1.0/bundler/friendly_errors.rb:117:inwith_friendly_errors' /opt/gitlab/embedded/lib/ruby/gems/3.1.0/gems/bundler-2.5.6/exe/bundle:20:in
<top (required)>' /opt/gitlab/embedded/bin/bundle:25:inload' /opt/gitlab/embedded/bin/bundle:25:in
'Caused by: Excon::Error::BadRequest: Expected(200) <=> Actual(400 Bad Request) excon.error.response :body => "\n
InvalidBucketName
The specified bucket is not valid.tx6b362eb2cb0a4891953d6-00660ea223v1" :cookies => [ ] :headers => { "content-type" => "application/xml" "date" => "Thu, 04 Apr 2024 12:50:43 GMT" "strict-transport-security" => "max-age=63072000" "x-amz-id-2" => "tx6b362eb2cb0a4891953d6-00660ea223" "x-amz-request-id" => "tx6b362eb2cb0a4891953d6-00660ea223" "x-openstack-request-id" => "tx6b362eb2cb0a4891953d6-00660ea223" "x-trans-id" => "tx6b362eb2cb0a4891953d6-00660ea223" } :host => "gitlab-backup.s3.pub1.infomaniak.cloud" :local_address => "10.10.0.154" :local_port => 51940 :method => "PUT" :omit_default_port => false :path => "/1712235040_2024_04_04_16.10.1-ee_gitlab_backup.tar" :port => 443 :query => nil :reason_phrase => "Bad Request" :remote_ip => "45.157.188.59" :scheme => "https" :status => 400 :status_line => "HTTP/1.1 400 Bad Request\r\n" /opt/gitlab/embedded/lib/ruby/gems/3.1.0/gems/excon-0.99.0/lib/excon/middlewares/expects.rb:13:inresponse_call' /opt/gitlab/embedded/lib/ruby/gems/3.1.0/gems/excon-0.99.0/lib/excon/middlewares/response_parser.rb:12:in
response_call' /opt/gitlab/embedded/lib/ruby/gems/3.1.0/gems/excon-0.99.0/lib/excon/connection.rb:459:inresponse' /opt/gitlab/embedded/lib/ruby/gems/3.1.0/gems/excon-0.99.0/lib/excon/connection.rb:290:in
request' /opt/gitlab/embedded/lib/ruby/gems/3.1.0/gems/excon-0.99.0/lib/excon/middlewares/idempotent.rb:50:inerror_call' /opt/gitlab/embedded/lib/ruby/gems/3.1.0/gems/excon-0.99.0/lib/excon/middlewares/base.rb:17:in
error_call' /opt/gitlab/embedded/lib/ruby/gems/3.1.0/gems/excon-0.99.0/lib/excon/middlewares/base.rb:17:inerror_call' /opt/gitlab/embedded/lib/ruby/gems/3.1.0/gems/excon-0.99.0/lib/excon/connection.rb:315:in
rescue in request' /opt/gitlab/embedded/lib/ruby/gems/3.1.0/gems/excon-0.99.0/lib/excon/connection.rb:230:inrequest' /opt/gitlab/embedded/lib/ruby/gems/3.1.0/gems/fog-core-2.1.0/lib/fog/core/connection.rb:81:in
request' /opt/gitlab/embedded/lib/ruby/gems/3.1.0/gems/fog-xml-0.1.3/lib/fog/xml/connection.rb:9:inrequest' /opt/gitlab/embedded/lib/ruby/gems/3.1.0/gems/fog-aws-3.18.0/lib/fog/aws/storage.rb:677:in
_request' /opt/gitlab/embedded/lib/ruby/gems/3.1.0/gems/fog-aws-3.18.0/lib/fog/aws/storage.rb:672:inrequest' /opt/gitlab/embedded/lib/ruby/gems/3.1.0/gems/fog-aws-3.18.0/lib/fog/aws/requests/storage/put_object.rb:48:in
put_object' /opt/gitlab/embedded/lib/ruby/gems/3.1.0/gems/fog-aws-3.18.0/lib/fog/aws/models/storage/file.rb:282:insave' /opt/gitlab/embedded/lib/ruby/gems/3.1.0/gems/fog-core-2.1.0/lib/fog/core/collection.rb:50:in
create' /opt/gitlab/embedded/service/gitlab-rails/lib/backup/remote_storage.rb:27:inupload' /opt/gitlab/embedded/service/gitlab-rails/lib/backup/manager.rb:266:in
upload' /opt/gitlab/embedded/service/gitlab-rails/lib/backup/manager.rb:148:inrun_all_create_tasks' /opt/gitlab/embedded/service/gitlab-rails/lib/backup/manager.rb:28:in
create' /opt/gitlab/embedded/service/gitlab-rails/lib/tasks/gitlab/backup.rake:12:inblock in create_backup' /opt/gitlab/embedded/service/gitlab-rails/lib/tasks/gitlab/backup.rake:68:in
lock_backup' /opt/gitlab/embedded/service/gitlab-rails/lib/tasks/gitlab/backup.rake:10:increate_backup' /opt/gitlab/embedded/service/gitlab-rails/lib/tasks/gitlab/backup.rake:107:in
block (3 levels) in <top (required)>' /opt/gitlab/embedded/lib/ruby/gems/3.1.0/gems/rake-13.0.6/lib/rake/task.rb:281:inblock in execute' /opt/gitlab/embedded/lib/ruby/gems/3.1.0/gems/rake-13.0.6/lib/rake/task.rb:281:in
each' /opt/gitlab/embedded/lib/ruby/gems/3.1.0/gems/rake-13.0.6/lib/rake/task.rb:281:inexecute' /opt/gitlab/embedded/lib/ruby/gems/3.1.0/gems/sentry-ruby-5.10.0/lib/sentry/rake.rb:26:in
execute' /opt/gitlab/embedded/lib/ruby/gems/3.1.0/gems/rake-13.0.6/lib/rake/task.rb:219:inblock in invoke_with_call_chain' /opt/gitlab/embedded/lib/ruby/gems/3.1.0/gems/rake-13.0.6/lib/rake/task.rb:199:in
synchronize' /opt/gitlab/embedded/lib/ruby/gems/3.1.0/gems/rake-13.0.6/lib/rake/task.rb:199:ininvoke_with_call_chain' /opt/gitlab/embedded/lib/ruby/gems/3.1.0/gems/rake-13.0.6/lib/rake/task.rb:188:in
invoke' /opt/gitlab/embedded/lib/ruby/gems/3.1.0/gems/rake-13.0.6/lib/rake/application.rb:160:ininvoke_task' /opt/gitlab/embedded/lib/ruby/gems/3.1.0/gems/rake-13.0.6/lib/rake/application.rb:116:in
block (2 levels) in top_level' /opt/gitlab/embedded/lib/ruby/gems/3.1.0/gems/rake-13.0.6/lib/rake/application.rb:116:ineach' /opt/gitlab/embedded/lib/ruby/gems/3.1.0/gems/rake-13.0.6/lib/rake/application.rb:116:in
block in top_level' /opt/gitlab/embedded/lib/ruby/gems/3.1.0/gems/rake-13.0.6/lib/rake/application.rb:125:inrun_with_threads' /opt/gitlab/embedded/lib/ruby/gems/3.1.0/gems/rake-13.0.6/lib/rake/application.rb:110:in
top_level' /opt/gitlab/embedded/lib/ruby/gems/3.1.0/gems/rake-13.0.6/lib/rake/application.rb:83:inblock in run' /opt/gitlab/embedded/lib/ruby/gems/3.1.0/gems/rake-13.0.6/lib/rake/application.rb:186:in
standard_exception_handling' /opt/gitlab/embedded/lib/ruby/gems/3.1.0/gems/rake-13.0.6/lib/rake/application.rb:80:inrun' /opt/gitlab/embedded/lib/ruby/gems/3.1.0/gems/rake-13.0.6/exe/rake:27:in
<top (required)>' /opt/gitlab/embedded/bin/rake:25:inload' /opt/gitlab/embedded/bin/rake:25:in
<top (required)>' /opt/gitlab/embedded/lib/ruby/site_ruby/3.1.0/bundler/cli/exec.rb:58:inload' /opt/gitlab/embedded/lib/ruby/site_ruby/3.1.0/bundler/cli/exec.rb:58:in
kernel_load' /opt/gitlab/embedded/lib/ruby/site_ruby/3.1.0/bundler/cli/exec.rb:23:inrun' /opt/gitlab/embedded/lib/ruby/site_ruby/3.1.0/bundler/cli.rb:451:in
exec' /opt/gitlab/embedded/lib/ruby/site_ruby/3.1.0/bundler/vendor/thor/lib/thor/command.rb:28:inrun' /opt/gitlab/embedded/lib/ruby/site_ruby/3.1.0/bundler/vendor/thor/lib/thor/invocation.rb:127:in
invoke_command' /opt/gitlab/embedded/lib/ruby/site_ruby/3.1.0/bundler/vendor/thor/lib/thor.rb:527:indispatch' /opt/gitlab/embedded/lib/ruby/site_ruby/3.1.0/bundler/cli.rb:34:in
dispatch' /opt/gitlab/embedded/lib/ruby/site_ruby/3.1.0/bundler/vendor/thor/lib/thor/base.rb:584:instart' /opt/gitlab/embedded/lib/ruby/site_ruby/3.1.0/bundler/cli.rb:28:in
start' /opt/gitlab/embedded/lib/ruby/gems/3.1.0/gems/bundler-2.5.6/exe/bundle:28:inblock in <top (required)>' /opt/gitlab/embedded/lib/ruby/site_ruby/3.1.0/bundler/friendly_errors.rb:117:in
with_friendly_errors' /opt/gitlab/embedded/lib/ruby/gems/3.1.0/gems/bundler-2.5.6/exe/bundle:20:in<top (required)>' /opt/gitlab/embedded/bin/bundle:25:in
load' /opt/gitlab/embedded/bin/bundle:25:in `'Caused by: Excon::Error::BadRequest: Expected(200) <=> Actual(400 Bad Request) excon.error.response :body => "\n
InvalidBucketName
The specified bucket is not valid.txfecf3702b9a44ff1afa23-00660ea223v1" :cookies => [ ] :headers => { "content-type" => "application/xml" "date" => "Thu, 04 Apr 2024 12:50:43 GMT" "strict-transport-security" => "max-age=63072000" "x-amz-id-2" => "txfecf3702b9a44ff1afa23-00660ea223" "x-amz-request-id" => "txfecf3702b9a44ff1afa23-00660ea223" "x-openstack-request-id" => "txfecf3702b9a44ff1afa23-00660ea223" "x-trans-id" => "txfecf3702b9a44ff1afa23-00660ea223" } :host => "gitlab-backup.s3.pub1.infomaniak.cloud" :local_address => "10.10.0.154" :local_port => 56180 :method => "PUT" :omit_default_port => false :path => "/1712235040_2024_04_04_16.10.1-ee_gitlab_backup.tar" :port => 443 :query => nil :reason_phrase => "Bad Request" :remote_ip => "45.157.188.66" :scheme => "https" :status => 400 :status_line => "HTTP/1.1 400 Bad Request\r\n" /opt/gitlab/embedded/lib/ruby/gems/3.1.0/gems/excon-0.99.0/lib/excon/middlewares/expects.rb:13:inresponse_call' /opt/gitlab/embedded/lib/ruby/gems/3.1.0/gems/excon-0.99.0/lib/excon/middlewares/response_parser.rb:12:in
response_call' /opt/gitlab/embedded/lib/ruby/gems/3.1.0/gems/excon-0.99.0/lib/excon/connection.rb:459:inresponse' /opt/gitlab/embedded/lib/ruby/gems/3.1.0/gems/excon-0.99.0/lib/excon/connection.rb:290:in
request' /opt/gitlab/embedded/lib/ruby/gems/3.1.0/gems/fog-core-2.1.0/lib/fog/core/connection.rb:81:inrequest' /opt/gitlab/embedded/lib/ruby/gems/3.1.0/gems/fog-xml-0.1.3/lib/fog/xml/connection.rb:9:in
request' /opt/gitlab/embedded/lib/ruby/gems/3.1.0/gems/fog-aws-3.18.0/lib/fog/aws/storage.rb:677:in_request' /opt/gitlab/embedded/lib/ruby/gems/3.1.0/gems/fog-aws-3.18.0/lib/fog/aws/storage.rb:672:in
request' /opt/gitlab/embedded/lib/ruby/gems/3.1.0/gems/fog-aws-3.18.0/lib/fog/aws/requests/storage/put_object.rb:48:input_object' /opt/gitlab/embedded/lib/ruby/gems/3.1.0/gems/fog-aws-3.18.0/lib/fog/aws/models/storage/file.rb:282:in
save' /opt/gitlab/embedded/lib/ruby/gems/3.1.0/gems/fog-core-2.1.0/lib/fog/core/collection.rb:50:increate' /opt/gitlab/embedded/service/gitlab-rails/lib/backup/remote_storage.rb:27:in
upload' /opt/gitlab/embedded/service/gitlab-rails/lib/backup/manager.rb:266:inupload' /opt/gitlab/embedded/service/gitlab-rails/lib/backup/manager.rb:148:in
run_all_create_tasks' /opt/gitlab/embedded/service/gitlab-rails/lib/backup/manager.rb:28:increate' /opt/gitlab/embedded/service/gitlab-rails/lib/tasks/gitlab/backup.rake:12:in
block in create_backup' /opt/gitlab/embedded/service/gitlab-rails/lib/tasks/gitlab/backup.rake:68:inlock_backup' /opt/gitlab/embedded/service/gitlab-rails/lib/tasks/gitlab/backup.rake:10:in
create_backup' /opt/gitlab/embedded/service/gitlab-rails/lib/tasks/gitlab/backup.rake:107:inblock (3 levels) in <top (required)>' /opt/gitlab/embedded/lib/ruby/gems/3.1.0/gems/rake-13.0.6/lib/rake/task.rb:281:in
block in execute' /opt/gitlab/embedded/lib/ruby/gems/3.1.0/gems/rake-13.0.6/lib/rake/task.rb:281:ineach' /opt/gitlab/embedded/lib/ruby/gems/3.1.0/gems/rake-13.0.6/lib/rake/task.rb:281:in
execute' /opt/gitlab/embedded/lib/ruby/gems/3.1.0/gems/sentry-ruby-5.10.0/lib/sentry/rake.rb:26:inexecute' /opt/gitlab/embedded/lib/ruby/gems/3.1.0/gems/rake-13.0.6/lib/rake/task.rb:219:in
block in invoke_with_call_chain' /opt/gitlab/embedded/lib/ruby/gems/3.1.0/gems/rake-13.0.6/lib/rake/task.rb:199:insynchronize' /opt/gitlab/embedded/lib/ruby/gems/3.1.0/gems/rake-13.0.6/lib/rake/task.rb:199:in
invoke_with_call_chain' /opt/gitlab/embedded/lib/ruby/gems/3.1.0/gems/rake-13.0.6/lib/rake/task.rb:188:ininvoke' /opt/gitlab/embedded/lib/ruby/gems/3.1.0/gems/rake-13.0.6/lib/rake/application.rb:160:in
invoke_task' /opt/gitlab/embedded/lib/ruby/gems/3.1.0/gems/rake-13.0.6/lib/rake/application.rb:116:inblock (2 levels) in top_level' /opt/gitlab/embedded/lib/ruby/gems/3.1.0/gems/rake-13.0.6/lib/rake/application.rb:116:in
each' /opt/gitlab/embedded/lib/ruby/gems/3.1.0/gems/rake-13.0.6/lib/rake/application.rb:116:inblock in top_level' /opt/gitlab/embedded/lib/ruby/gems/3.1.0/gems/rake-13.0.6/lib/rake/application.rb:125:in
run_with_threads' /opt/gitlab/embedded/lib/ruby/gems/3.1.0/gems/rake-13.0.6/lib/rake/application.rb:110:intop_level' /opt/gitlab/embedded/lib/ruby/gems/3.1.0/gems/rake-13.0.6/lib/rake/application.rb:83:in
block in run' /opt/gitlab/embedded/lib/ruby/gems/3.1.0/gems/rake-13.0.6/lib/rake/application.rb:186:instandard_exception_handling' /opt/gitlab/embedded/lib/ruby/gems/3.1.0/gems/rake-13.0.6/lib/rake/application.rb:80:in
run' /opt/gitlab/embedded/lib/ruby/gems/3.1.0/gems/rake-13.0.6/exe/rake:27:in<top (required)>' /opt/gitlab/embedded/bin/rake:25:in
load' /opt/gitlab/embedded/bin/rake:25:in<top (required)>' /opt/gitlab/embedded/lib/ruby/site_ruby/3.1.0/bundler/cli/exec.rb:58:in
load' /opt/gitlab/embedded/lib/ruby/site_ruby/3.1.0/bundler/cli/exec.rb:58:inkernel_load' /opt/gitlab/embedded/lib/ruby/site_ruby/3.1.0/bundler/cli/exec.rb:23:in
run' /opt/gitlab/embedded/lib/ruby/site_ruby/3.1.0/bundler/cli.rb:451:inexec' /opt/gitlab/embedded/lib/ruby/site_ruby/3.1.0/bundler/vendor/thor/lib/thor/command.rb:28:in
run' /opt/gitlab/embedded/lib/ruby/site_ruby/3.1.0/bundler/vendor/thor/lib/thor/invocation.rb:127:ininvoke_command' /opt/gitlab/embedded/lib/ruby/site_ruby/3.1.0/bundler/vendor/thor/lib/thor.rb:527:in
dispatch' /opt/gitlab/embedded/lib/ruby/site_ruby/3.1.0/bundler/cli.rb:34:indispatch' /opt/gitlab/embedded/lib/ruby/site_ruby/3.1.0/bundler/vendor/thor/lib/thor/base.rb:584:in
start' /opt/gitlab/embedded/lib/ruby/site_ruby/3.1.0/bundler/cli.rb:28:instart' /opt/gitlab/embedded/lib/ruby/gems/3.1.0/gems/bundler-2.5.6/exe/bundle:28:in
block in <top (required)>' /opt/gitlab/embedded/lib/ruby/site_ruby/3.1.0/bundler/friendly_errors.rb:117:inwith_friendly_errors' /opt/gitlab/embedded/lib/ruby/gems/3.1.0/gems/bundler-2.5.6/exe/bundle:20:in
<top (required)>' /opt/gitlab/embedded/bin/bundle:25:inload' /opt/gitlab/embedded/bin/bundle:25:in
' Tasks: TOP => gitlab:backup:create
Results of GitLab environment info
Expand for output related to GitLab environment info
System information System: Debian 12 Proxy: no Current User: git Using RVM: no Ruby Version: 3.1.4p223 Gem Version: 3.5.6 Bundler Version:2.5.6 Rake Version: 13.0.6 Redis Version: 7.0.15 Sidekiq Version:7.1.6 Go Version: unknown GitLab information Version: 16.10.1-ee Revision: a5d6463727c Directory: /opt/gitlab/embedded/service/gitlab-rails DB Adapter: PostgreSQL DB Version: 14.11 URL: https://gitlab.scouthosting.net HTTP Clone URL: https://gitlab.scouthosting.net/some-group/some-project.git SSH Clone URL: git@gitlab.scouthosting.net:some-group/some-project.git Elasticsearch: no Geo: no Using LDAP: no Using Omniauth: yes Omniauth Providers: GitLab Shell Version: 14.34.0 Repository storages: - default: unix:/var/opt/gitlab/gitaly/gitaly.socket GitLab Shell path: /opt/gitlab/embedded/service/gitlab-shell Gitaly - default Address: unix:/var/opt/gitlab/gitaly/gitaly.socket - default Version: 16.10.1 - default Git Version: 2.43.0
Results of GitLab application Check
Expand for output related to the GitLab application check
Checking GitLab subtasks ...
Checking GitLab Shell ...
GitLab Shell: ... GitLab Shell version >= 14.34.0 ? ... OK (14.34.0) Running /opt/gitlab/embedded/service/gitlab-shell/bin/check Internal API available: OK Redis available via internal API: OK gitlab-shell self-check successful
Checking GitLab Shell ... Finished
Checking Gitaly ...
Gitaly: ... default ... OK
Checking Gitaly ... Finished
Checking Sidekiq ...
Sidekiq: ... Running? ... yes Number of Sidekiq processes (cluster/worker) ... 1/1
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 ...
Database config exists? ... yes Tables are truncated? ... skipped All migrations up? ... yes Database contains orphaned GroupMembers? ... no GitLab config exists? ... yes GitLab config up to date? ... yes Cable config exists? ... yes Resque config exists? ... 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) Systemd unit files or init script exist? ... skipped (omnibus-gitlab has neither init script nor systemd units) Systemd unit files or init script up-to-date? ... skipped (omnibus-gitlab has neither init script nor systemd units) Projects have namespace: ... can't check, you have no projects Redis version >= 6.2.14? ... yes Ruby version >= 3.0.6 ? ... yes (3.1.4) Git user has default SSH configuration? ... yes Active users: ... 1 Is authorized keys file accessible? ... yes GitLab configured to store new projects in hashed storage? ... yes All projects are in hashed storage? ... yes Elasticsearch version 7.x-8.x or OpenSearch version 1.x ... skipped (Advanced Search is disabled) All migrations must be finished before doing a major upgrade ... skipped (Advanced Search is disabled)
Checking GitLab App ... Finished
Checking GitLab subtasks ... Finished