sameersbn / docker-gitlab

Dockerized GitLab
http://www.damagehead.com/docker-gitlab/
MIT License
7.9k stars 2.14k forks source link

Backup to S3 failed. #1279

Open haoyixin opened 7 years ago

haoyixin commented 7 years ago
root@gitlab-2924716172-bzhls:/home/git/gitlab# bin/rake gitlab:backup:create --trace
** Invoke gitlab:backup:create (first_time)
** Invoke environment (first_time)
** Execute environment
** Execute gitlab:backup:create
 Warning
  You are running as user root, we hope you know what you are doing.
  Things may work/fail for the wrong reasons.
  For correct results you should run this as user git.

** Invoke gitlab:backup:db:create (first_time)
** Invoke environment
** Execute gitlab:backup:db:create
Dumping database ...
Dumping PostgreSQL database gitlab ... [DONE]
done
** Invoke gitlab:backup:repo:create (first_time)
** Invoke environment
** Execute gitlab:backup:repo:create
Dumping repositories ...
 * scp/kernel ... [DONE]
 * scp/kernel.wiki ...  [SKIPPED]
 * scp/qihoo-lbaas-go ... [SKIPPED]
 * scp/qihoo-lbaas-go.wiki ...  [SKIPPED]
 * scp/kernel-build ... [DONE]
 * scp/kernel-build.wiki ...  [SKIPPED]
 * wuzhongyang/shell-terminal ... [DONE]
 * wuzhongyang/shell-terminal.wiki ...  [SKIPPED]
done
** Invoke gitlab:backup:uploads:create (first_time)
** Invoke environment
** Execute gitlab:backup:uploads:create
Dumping uploads ...
done
** Invoke gitlab:backup:builds:create (first_time)
** Invoke environment
** Execute gitlab:backup:builds:create
Dumping builds ...
done
** Invoke gitlab:backup:artifacts:create (first_time)
** Invoke environment
** Execute gitlab:backup:artifacts:create
Dumping artifacts ...
done
** Invoke gitlab:backup:pages:create (first_time)
** Invoke environment
** Execute gitlab:backup:pages:create
Dumping pages ...
done
** Invoke gitlab:backup:lfs:create (first_time)
** Invoke environment
** Execute gitlab:backup:lfs:create
Dumping lfs objects ...
done
** Invoke gitlab:backup:registry:create (first_time)
** Invoke environment
** Execute gitlab:backup:registry:create
Dumping container registry images ...
[DISABLED]
Creating backup archive: 1499312217_2017_07_06_9.2.7_gitlab_backup.tar ... done
Uploading backup archive to remote storage gitlab ... rake aborted!
Excon::Error::Socket: Connection refused - connect(2) for 180.163.251.87:80 (Errno::ECONNREFUSED)
/usr/lib/ruby/2.3.0/socket.rb:1207:in `__connect_nonblock'
/usr/lib/ruby/2.3.0/socket.rb:1207:in `connect_nonblock'
/home/git/gitlab/vendor/bundle/ruby/2.3.0/gems/excon-0.55.0/lib/excon/socket.rb:133:in `rescue in block in connect'
/home/git/gitlab/vendor/bundle/ruby/2.3.0/gems/excon-0.55.0/lib/excon/socket.rb:112:in `block in connect'
/home/git/gitlab/vendor/bundle/ruby/2.3.0/gems/excon-0.55.0/lib/excon/socket.rb:103:in `each'
/home/git/gitlab/vendor/bundle/ruby/2.3.0/gems/excon-0.55.0/lib/excon/socket.rb:103:in `connect'
/home/git/gitlab/vendor/bundle/ruby/2.3.0/gems/excon-0.55.0/lib/excon/socket.rb:29:in `initialize'
/home/git/gitlab/vendor/bundle/ruby/2.3.0/gems/excon-0.55.0/lib/excon/connection.rb:405:in `new'
/home/git/gitlab/vendor/bundle/ruby/2.3.0/gems/excon-0.55.0/lib/excon/connection.rb:405:in `socket'
/home/git/gitlab/vendor/bundle/ruby/2.3.0/gems/excon-0.55.0/lib/excon/connection.rb:100:in `request_call'
/home/git/gitlab/vendor/bundle/ruby/2.3.0/gems/excon-0.55.0/lib/excon/middlewares/mock.rb:48:in `request_call'
/home/git/gitlab/vendor/bundle/ruby/2.3.0/gems/excon-0.55.0/lib/excon/middlewares/instrumentor.rb:26:in `request_call'
/home/git/gitlab/vendor/bundle/ruby/2.3.0/gems/excon-0.55.0/lib/excon/middlewares/base.rb:16:in `request_call'
/home/git/gitlab/vendor/bundle/ruby/2.3.0/gems/excon-0.55.0/lib/excon/middlewares/base.rb:16:in `request_call'
/home/git/gitlab/vendor/bundle/ruby/2.3.0/gems/excon-0.55.0/lib/excon/middlewares/base.rb:16:in `request_call'
/home/git/gitlab/vendor/bundle/ruby/2.3.0/gems/excon-0.55.0/lib/excon/connection.rb:249:in `request'
/home/git/gitlab/vendor/bundle/ruby/2.3.0/gems/excon-0.55.0/lib/excon/middlewares/idempotent.rb:27:in `error_call'
/home/git/gitlab/vendor/bundle/ruby/2.3.0/gems/excon-0.55.0/lib/excon/middlewares/base.rb:11:in `error_call'
/home/git/gitlab/vendor/bundle/ruby/2.3.0/gems/excon-0.55.0/lib/excon/middlewares/base.rb:11:in `error_call'
/home/git/gitlab/vendor/bundle/ruby/2.3.0/gems/excon-0.55.0/lib/excon/connection.rb:272:in `rescue in request'
/home/git/gitlab/vendor/bundle/ruby/2.3.0/gems/excon-0.55.0/lib/excon/connection.rb:215:in `request'
/home/git/gitlab/vendor/bundle/ruby/2.3.0/gems/excon-0.55.0/lib/excon/middlewares/idempotent.rb:27:in `error_call'
/home/git/gitlab/vendor/bundle/ruby/2.3.0/gems/excon-0.55.0/lib/excon/middlewares/base.rb:11:in `error_call'
/home/git/gitlab/vendor/bundle/ruby/2.3.0/gems/excon-0.55.0/lib/excon/middlewares/base.rb:11:in `error_call'
/home/git/gitlab/vendor/bundle/ruby/2.3.0/gems/excon-0.55.0/lib/excon/connection.rb:272:in `rescue in request'
/home/git/gitlab/vendor/bundle/ruby/2.3.0/gems/excon-0.55.0/lib/excon/connection.rb:215:in `request'
/home/git/gitlab/vendor/bundle/ruby/2.3.0/gems/excon-0.55.0/lib/excon/middlewares/idempotent.rb:27:in `error_call'
/home/git/gitlab/vendor/bundle/ruby/2.3.0/gems/excon-0.55.0/lib/excon/middlewares/base.rb:11:in `error_call'
/home/git/gitlab/vendor/bundle/ruby/2.3.0/gems/excon-0.55.0/lib/excon/middlewares/base.rb:11:in `error_call'
/home/git/gitlab/vendor/bundle/ruby/2.3.0/gems/excon-0.55.0/lib/excon/connection.rb:272:in `rescue in request'
/home/git/gitlab/vendor/bundle/ruby/2.3.0/gems/excon-0.55.0/lib/excon/connection.rb:215:in `request'
/home/git/gitlab/vendor/bundle/ruby/2.3.0/gems/fog-core-1.44.1/lib/fog/core/connection.rb:81:in `request'
/home/git/gitlab/vendor/bundle/ruby/2.3.0/gems/fog-xml-0.1.3/lib/fog/xml/connection.rb:9:in `request'
/home/git/gitlab/vendor/bundle/ruby/2.3.0/gems/fog-aws-0.13.0/lib/fog/aws/storage.rb:611:in `_request'
/home/git/gitlab/vendor/bundle/ruby/2.3.0/gems/fog-aws-0.13.0/lib/fog/aws/storage.rb:606:in `request'
/home/git/gitlab/vendor/bundle/ruby/2.3.0/gems/fog-aws-0.13.0/lib/fog/aws/requests/storage/put_object.rb:47:in `put_object'
/home/git/gitlab/vendor/bundle/ruby/2.3.0/gems/fog-aws-0.13.0/lib/fog/aws/models/storage/file.rb:219:in `save'
/home/git/gitlab/vendor/bundle/ruby/2.3.0/gems/fog-core-1.44.1/lib/fog/core/collection.rb:50:in `create'
/home/git/gitlab/lib/backup/manager.rb:51:in `upload'
/home/git/gitlab/lib/backup/manager.rb:36:in `block in pack'
/home/git/gitlab/lib/backup/manager.rb:20:in `chdir'
/home/git/gitlab/lib/backup/manager.rb:20:in `pack'
/home/git/gitlab/lib/tasks/gitlab/backup.rake:21:in `block (3 levels) in <top (required)>'
/home/git/gitlab/vendor/bundle/ruby/2.3.0/gems/rake-10.5.0/lib/rake/task.rb:240:in `block in execute'
/home/git/gitlab/vendor/bundle/ruby/2.3.0/gems/rake-10.5.0/lib/rake/task.rb:235:in `each'
/home/git/gitlab/vendor/bundle/ruby/2.3.0/gems/rake-10.5.0/lib/rake/task.rb:235:in `execute'
/home/git/gitlab/vendor/bundle/ruby/2.3.0/gems/rake-10.5.0/lib/rake/task.rb:179:in `block in invoke_with_call_chain'
/usr/lib/ruby/2.3.0/monitor.rb:214:in `mon_synchronize'
/home/git/gitlab/vendor/bundle/ruby/2.3.0/gems/rake-10.5.0/lib/rake/task.rb:172:in `invoke_with_call_chain'
/home/git/gitlab/vendor/bundle/ruby/2.3.0/gems/rake-10.5.0/lib/rake/task.rb:165:in `invoke'
/home/git/gitlab/vendor/bundle/ruby/2.3.0/gems/rake-10.5.0/lib/rake/application.rb:150:in `invoke_task'
/home/git/gitlab/vendor/bundle/ruby/2.3.0/gems/rake-10.5.0/lib/rake/application.rb:106:in `block (2 levels) in top_level'
/home/git/gitlab/vendor/bundle/ruby/2.3.0/gems/rake-10.5.0/lib/rake/application.rb:106:in `each'
/home/git/gitlab/vendor/bundle/ruby/2.3.0/gems/rake-10.5.0/lib/rake/application.rb:106:in `block in top_level'
/home/git/gitlab/vendor/bundle/ruby/2.3.0/gems/rake-10.5.0/lib/rake/application.rb:115:in `run_with_threads'
/home/git/gitlab/vendor/bundle/ruby/2.3.0/gems/rake-10.5.0/lib/rake/application.rb:100:in `top_level'
/home/git/gitlab/vendor/bundle/ruby/2.3.0/gems/rake-10.5.0/lib/rake/application.rb:78:in `block in run'
/home/git/gitlab/vendor/bundle/ruby/2.3.0/gems/rake-10.5.0/lib/rake/application.rb:176:in `standard_exception_handling'
/home/git/gitlab/vendor/bundle/ruby/2.3.0/gems/rake-10.5.0/lib/rake/application.rb:75:in `run'
bin/rake:9:in `<main>'
Errno::ECONNREFUSED: Connection refused - connect(2) for 180.163.251.87:80
/usr/lib/ruby/2.3.0/socket.rb:1207:in `__connect_nonblock'
/usr/lib/ruby/2.3.0/socket.rb:1207:in `connect_nonblock'
/home/git/gitlab/vendor/bundle/ruby/2.3.0/gems/excon-0.55.0/lib/excon/socket.rb:133:in `rescue in block in connect'
/home/git/gitlab/vendor/bundle/ruby/2.3.0/gems/excon-0.55.0/lib/excon/socket.rb:112:in `block in connect'
/home/git/gitlab/vendor/bundle/ruby/2.3.0/gems/excon-0.55.0/lib/excon/socket.rb:103:in `each'
/home/git/gitlab/vendor/bundle/ruby/2.3.0/gems/excon-0.55.0/lib/excon/socket.rb:103:in `connect'
/home/git/gitlab/vendor/bundle/ruby/2.3.0/gems/excon-0.55.0/lib/excon/socket.rb:29:in `initialize'
/home/git/gitlab/vendor/bundle/ruby/2.3.0/gems/excon-0.55.0/lib/excon/connection.rb:405:in `new'
/home/git/gitlab/vendor/bundle/ruby/2.3.0/gems/excon-0.55.0/lib/excon/connection.rb:405:in `socket'
/home/git/gitlab/vendor/bundle/ruby/2.3.0/gems/excon-0.55.0/lib/excon/connection.rb:100:in `request_call'
/home/git/gitlab/vendor/bundle/ruby/2.3.0/gems/excon-0.55.0/lib/excon/middlewares/mock.rb:48:in `request_call'
/home/git/gitlab/vendor/bundle/ruby/2.3.0/gems/excon-0.55.0/lib/excon/middlewares/instrumentor.rb:26:in `request_call'
/home/git/gitlab/vendor/bundle/ruby/2.3.0/gems/excon-0.55.0/lib/excon/middlewares/base.rb:16:in `request_call'
/home/git/gitlab/vendor/bundle/ruby/2.3.0/gems/excon-0.55.0/lib/excon/middlewares/base.rb:16:in `request_call'
/home/git/gitlab/vendor/bundle/ruby/2.3.0/gems/excon-0.55.0/lib/excon/middlewares/base.rb:16:in `request_call'
/home/git/gitlab/vendor/bundle/ruby/2.3.0/gems/excon-0.55.0/lib/excon/connection.rb:249:in `request'
/home/git/gitlab/vendor/bundle/ruby/2.3.0/gems/excon-0.55.0/lib/excon/middlewares/idempotent.rb:27:in `error_call'
/home/git/gitlab/vendor/bundle/ruby/2.3.0/gems/excon-0.55.0/lib/excon/middlewares/base.rb:11:in `error_call'
/home/git/gitlab/vendor/bundle/ruby/2.3.0/gems/excon-0.55.0/lib/excon/middlewares/base.rb:11:in `error_call'
/home/git/gitlab/vendor/bundle/ruby/2.3.0/gems/excon-0.55.0/lib/excon/connection.rb:272:in `rescue in request'
/home/git/gitlab/vendor/bundle/ruby/2.3.0/gems/excon-0.55.0/lib/excon/connection.rb:215:in `request'
/home/git/gitlab/vendor/bundle/ruby/2.3.0/gems/excon-0.55.0/lib/excon/middlewares/idempotent.rb:27:in `error_call'
/home/git/gitlab/vendor/bundle/ruby/2.3.0/gems/excon-0.55.0/lib/excon/middlewares/base.rb:11:in `error_call'
/home/git/gitlab/vendor/bundle/ruby/2.3.0/gems/excon-0.55.0/lib/excon/middlewares/base.rb:11:in `error_call'
/home/git/gitlab/vendor/bundle/ruby/2.3.0/gems/excon-0.55.0/lib/excon/connection.rb:272:in `rescue in request'
/home/git/gitlab/vendor/bundle/ruby/2.3.0/gems/excon-0.55.0/lib/excon/connection.rb:215:in `request'
/home/git/gitlab/vendor/bundle/ruby/2.3.0/gems/excon-0.55.0/lib/excon/middlewares/idempotent.rb:27:in `error_call'
/home/git/gitlab/vendor/bundle/ruby/2.3.0/gems/excon-0.55.0/lib/excon/middlewares/base.rb:11:in `error_call'
/home/git/gitlab/vendor/bundle/ruby/2.3.0/gems/excon-0.55.0/lib/excon/middlewares/base.rb:11:in `error_call'
/home/git/gitlab/vendor/bundle/ruby/2.3.0/gems/excon-0.55.0/lib/excon/connection.rb:272:in `rescue in request'
/home/git/gitlab/vendor/bundle/ruby/2.3.0/gems/excon-0.55.0/lib/excon/connection.rb:215:in `request'
/home/git/gitlab/vendor/bundle/ruby/2.3.0/gems/fog-core-1.44.1/lib/fog/core/connection.rb:81:in `request'
/home/git/gitlab/vendor/bundle/ruby/2.3.0/gems/fog-xml-0.1.3/lib/fog/xml/connection.rb:9:in `request'
/home/git/gitlab/vendor/bundle/ruby/2.3.0/gems/fog-aws-0.13.0/lib/fog/aws/storage.rb:611:in `_request'
/home/git/gitlab/vendor/bundle/ruby/2.3.0/gems/fog-aws-0.13.0/lib/fog/aws/storage.rb:606:in `request'
/home/git/gitlab/vendor/bundle/ruby/2.3.0/gems/fog-aws-0.13.0/lib/fog/aws/requests/storage/put_object.rb:47:in `put_object'
/home/git/gitlab/vendor/bundle/ruby/2.3.0/gems/fog-aws-0.13.0/lib/fog/aws/models/storage/file.rb:219:in `save'
/home/git/gitlab/vendor/bundle/ruby/2.3.0/gems/fog-core-1.44.1/lib/fog/core/collection.rb:50:in `create'
/home/git/gitlab/lib/backup/manager.rb:51:in `upload'
/home/git/gitlab/lib/backup/manager.rb:36:in `block in pack'
/home/git/gitlab/lib/backup/manager.rb:20:in `chdir'
/home/git/gitlab/lib/backup/manager.rb:20:in `pack'
/home/git/gitlab/lib/tasks/gitlab/backup.rake:21:in `block (3 levels) in <top (required)>'
/home/git/gitlab/vendor/bundle/ruby/2.3.0/gems/rake-10.5.0/lib/rake/task.rb:240:in `block in execute'
/home/git/gitlab/vendor/bundle/ruby/2.3.0/gems/rake-10.5.0/lib/rake/task.rb:235:in `each'
/home/git/gitlab/vendor/bundle/ruby/2.3.0/gems/rake-10.5.0/lib/rake/task.rb:235:in `execute'
/home/git/gitlab/vendor/bundle/ruby/2.3.0/gems/rake-10.5.0/lib/rake/task.rb:179:in `block in invoke_with_call_chain'
/usr/lib/ruby/2.3.0/monitor.rb:214:in `mon_synchronize'
/home/git/gitlab/vendor/bundle/ruby/2.3.0/gems/rake-10.5.0/lib/rake/task.rb:172:in `invoke_with_call_chain'
/home/git/gitlab/vendor/bundle/ruby/2.3.0/gems/rake-10.5.0/lib/rake/task.rb:165:in `invoke'
/home/git/gitlab/vendor/bundle/ruby/2.3.0/gems/rake-10.5.0/lib/rake/application.rb:150:in `invoke_task'
/home/git/gitlab/vendor/bundle/ruby/2.3.0/gems/rake-10.5.0/lib/rake/application.rb:106:in `block (2 levels) in top_level'
/home/git/gitlab/vendor/bundle/ruby/2.3.0/gems/rake-10.5.0/lib/rake/application.rb:106:in `each'
/home/git/gitlab/vendor/bundle/ruby/2.3.0/gems/rake-10.5.0/lib/rake/application.rb:106:in `block in top_level'
/home/git/gitlab/vendor/bundle/ruby/2.3.0/gems/rake-10.5.0/lib/rake/application.rb:115:in `run_with_threads'
/home/git/gitlab/vendor/bundle/ruby/2.3.0/gems/rake-10.5.0/lib/rake/application.rb:100:in `top_level'
/home/git/gitlab/vendor/bundle/ruby/2.3.0/gems/rake-10.5.0/lib/rake/application.rb:78:in `block in run'
/home/git/gitlab/vendor/bundle/ruby/2.3.0/gems/rake-10.5.0/lib/rake/application.rb:176:in `standard_exception_handling'
/home/git/gitlab/vendor/bundle/ruby/2.3.0/gems/rake-10.5.0/lib/rake/application.rb:75:in `run'
bin/rake:9:in `<main>'
IO::EINPROGRESSWaitWritable: Operation now in progress - connect(2) would block
/usr/lib/ruby/2.3.0/socket.rb:1207:in `__connect_nonblock'
/usr/lib/ruby/2.3.0/socket.rb:1207:in `connect_nonblock'
/home/git/gitlab/vendor/bundle/ruby/2.3.0/gems/excon-0.55.0/lib/excon/socket.rb:125:in `block in connect'
/home/git/gitlab/vendor/bundle/ruby/2.3.0/gems/excon-0.55.0/lib/excon/socket.rb:103:in `each'
/home/git/gitlab/vendor/bundle/ruby/2.3.0/gems/excon-0.55.0/lib/excon/socket.rb:103:in `connect'
/home/git/gitlab/vendor/bundle/ruby/2.3.0/gems/excon-0.55.0/lib/excon/socket.rb:29:in `initialize'
/home/git/gitlab/vendor/bundle/ruby/2.3.0/gems/excon-0.55.0/lib/excon/connection.rb:405:in `new'
/home/git/gitlab/vendor/bundle/ruby/2.3.0/gems/excon-0.55.0/lib/excon/connection.rb:405:in `socket'
/home/git/gitlab/vendor/bundle/ruby/2.3.0/gems/excon-0.55.0/lib/excon/connection.rb:100:in `request_call'
/home/git/gitlab/vendor/bundle/ruby/2.3.0/gems/excon-0.55.0/lib/excon/middlewares/mock.rb:48:in `request_call'
/home/git/gitlab/vendor/bundle/ruby/2.3.0/gems/excon-0.55.0/lib/excon/middlewares/instrumentor.rb:26:in `request_call'
/home/git/gitlab/vendor/bundle/ruby/2.3.0/gems/excon-0.55.0/lib/excon/middlewares/base.rb:16:in `request_call'
/home/git/gitlab/vendor/bundle/ruby/2.3.0/gems/excon-0.55.0/lib/excon/middlewares/base.rb:16:in `request_call'
/home/git/gitlab/vendor/bundle/ruby/2.3.0/gems/excon-0.55.0/lib/excon/middlewares/base.rb:16:in `request_call'
/home/git/gitlab/vendor/bundle/ruby/2.3.0/gems/excon-0.55.0/lib/excon/connection.rb:249:in `request'
/home/git/gitlab/vendor/bundle/ruby/2.3.0/gems/excon-0.55.0/lib/excon/middlewares/idempotent.rb:27:in `error_call'
/home/git/gitlab/vendor/bundle/ruby/2.3.0/gems/excon-0.55.0/lib/excon/middlewares/base.rb:11:in `error_call'
/home/git/gitlab/vendor/bundle/ruby/2.3.0/gems/excon-0.55.0/lib/excon/middlewares/base.rb:11:in `error_call'
/home/git/gitlab/vendor/bundle/ruby/2.3.0/gems/excon-0.55.0/lib/excon/connection.rb:272:in `rescue in request'
/home/git/gitlab/vendor/bundle/ruby/2.3.0/gems/excon-0.55.0/lib/excon/connection.rb:215:in `request'
/home/git/gitlab/vendor/bundle/ruby/2.3.0/gems/excon-0.55.0/lib/excon/middlewares/idempotent.rb:27:in `error_call'
/home/git/gitlab/vendor/bundle/ruby/2.3.0/gems/excon-0.55.0/lib/excon/middlewares/base.rb:11:in `error_call'
/home/git/gitlab/vendor/bundle/ruby/2.3.0/gems/excon-0.55.0/lib/excon/middlewares/base.rb:11:in `error_call'
/home/git/gitlab/vendor/bundle/ruby/2.3.0/gems/excon-0.55.0/lib/excon/connection.rb:272:in `rescue in request'
/home/git/gitlab/vendor/bundle/ruby/2.3.0/gems/excon-0.55.0/lib/excon/connection.rb:215:in `request'
/home/git/gitlab/vendor/bundle/ruby/2.3.0/gems/excon-0.55.0/lib/excon/middlewares/idempotent.rb:27:in `error_call'
/home/git/gitlab/vendor/bundle/ruby/2.3.0/gems/excon-0.55.0/lib/excon/middlewares/base.rb:11:in `error_call'
/home/git/gitlab/vendor/bundle/ruby/2.3.0/gems/excon-0.55.0/lib/excon/middlewares/base.rb:11:in `error_call'
/home/git/gitlab/vendor/bundle/ruby/2.3.0/gems/excon-0.55.0/lib/excon/connection.rb:272:in `rescue in request'
/home/git/gitlab/vendor/bundle/ruby/2.3.0/gems/excon-0.55.0/lib/excon/connection.rb:215:in `request'
/home/git/gitlab/vendor/bundle/ruby/2.3.0/gems/fog-core-1.44.1/lib/fog/core/connection.rb:81:in `request'
/home/git/gitlab/vendor/bundle/ruby/2.3.0/gems/fog-xml-0.1.3/lib/fog/xml/connection.rb:9:in `request'
/home/git/gitlab/vendor/bundle/ruby/2.3.0/gems/fog-aws-0.13.0/lib/fog/aws/storage.rb:611:in `_request'
/home/git/gitlab/vendor/bundle/ruby/2.3.0/gems/fog-aws-0.13.0/lib/fog/aws/storage.rb:606:in `request'
/home/git/gitlab/vendor/bundle/ruby/2.3.0/gems/fog-aws-0.13.0/lib/fog/aws/requests/storage/put_object.rb:47:in `put_object'
/home/git/gitlab/vendor/bundle/ruby/2.3.0/gems/fog-aws-0.13.0/lib/fog/aws/models/storage/file.rb:219:in `save'
/home/git/gitlab/vendor/bundle/ruby/2.3.0/gems/fog-core-1.44.1/lib/fog/core/collection.rb:50:in `create'
/home/git/gitlab/lib/backup/manager.rb:51:in `upload'
/home/git/gitlab/lib/backup/manager.rb:36:in `block in pack'
/home/git/gitlab/lib/backup/manager.rb:20:in `chdir'
/home/git/gitlab/lib/backup/manager.rb:20:in `pack'
/home/git/gitlab/lib/tasks/gitlab/backup.rake:21:in `block (3 levels) in <top (required)>'
/home/git/gitlab/vendor/bundle/ruby/2.3.0/gems/rake-10.5.0/lib/rake/task.rb:240:in `block in execute'
/home/git/gitlab/vendor/bundle/ruby/2.3.0/gems/rake-10.5.0/lib/rake/task.rb:235:in `each'
/home/git/gitlab/vendor/bundle/ruby/2.3.0/gems/rake-10.5.0/lib/rake/task.rb:235:in `execute'
/home/git/gitlab/vendor/bundle/ruby/2.3.0/gems/rake-10.5.0/lib/rake/task.rb:179:in `block in invoke_with_call_chain'
/usr/lib/ruby/2.3.0/monitor.rb:214:in `mon_synchronize'
/home/git/gitlab/vendor/bundle/ruby/2.3.0/gems/rake-10.5.0/lib/rake/task.rb:172:in `invoke_with_call_chain'
/home/git/gitlab/vendor/bundle/ruby/2.3.0/gems/rake-10.5.0/lib/rake/task.rb:165:in `invoke'
/home/git/gitlab/vendor/bundle/ruby/2.3.0/gems/rake-10.5.0/lib/rake/application.rb:150:in `invoke_task'
/home/git/gitlab/vendor/bundle/ruby/2.3.0/gems/rake-10.5.0/lib/rake/application.rb:106:in `block (2 levels) in top_level'
/home/git/gitlab/vendor/bundle/ruby/2.3.0/gems/rake-10.5.0/lib/rake/application.rb:106:in `each'
/home/git/gitlab/vendor/bundle/ruby/2.3.0/gems/rake-10.5.0/lib/rake/application.rb:106:in `block in top_level'
/home/git/gitlab/vendor/bundle/ruby/2.3.0/gems/rake-10.5.0/lib/rake/application.rb:115:in `run_with_threads'
/home/git/gitlab/vendor/bundle/ruby/2.3.0/gems/rake-10.5.0/lib/rake/application.rb:100:in `top_level'
/home/git/gitlab/vendor/bundle/ruby/2.3.0/gems/rake-10.5.0/lib/rake/application.rb:78:in `block in run'
/home/git/gitlab/vendor/bundle/ruby/2.3.0/gems/rake-10.5.0/lib/rake/application.rb:176:in `standard_exception_handling'
/home/git/gitlab/vendor/bundle/ruby/2.3.0/gems/rake-10.5.0/lib/rake/application.rb:75:in `run'
bin/rake:9:in `<main>'
Excon::Error::Socket: Connection reset by peer (Errno::ECONNRESET)
<internal:prelude>:134:in `__write_nonblock'
<internal:prelude>:134:in `write_nonblock'
/home/git/gitlab/vendor/bundle/ruby/2.3.0/gems/excon-0.55.0/lib/excon/socket.rb:218:in `block in write_nonblock'
/home/git/gitlab/vendor/bundle/ruby/2.3.0/gems/excon-0.55.0/lib/excon/socket.rb:213:in `loop'
/home/git/gitlab/vendor/bundle/ruby/2.3.0/gems/excon-0.55.0/lib/excon/socket.rb:213:in `write_nonblock'
/home/git/gitlab/vendor/bundle/ruby/2.3.0/gems/excon-0.55.0/lib/excon/socket.rb:71:in `write'
/home/git/gitlab/vendor/bundle/ruby/2.3.0/gems/excon-0.55.0/lib/excon/connection.rb:146:in `request_call'
/home/git/gitlab/vendor/bundle/ruby/2.3.0/gems/excon-0.55.0/lib/excon/middlewares/mock.rb:48:in `request_call'
/home/git/gitlab/vendor/bundle/ruby/2.3.0/gems/excon-0.55.0/lib/excon/middlewares/instrumentor.rb:26:in `request_call'
/home/git/gitlab/vendor/bundle/ruby/2.3.0/gems/excon-0.55.0/lib/excon/middlewares/base.rb:16:in `request_call'
/home/git/gitlab/vendor/bundle/ruby/2.3.0/gems/excon-0.55.0/lib/excon/middlewares/base.rb:16:in `request_call'
/home/git/gitlab/vendor/bundle/ruby/2.3.0/gems/excon-0.55.0/lib/excon/middlewares/base.rb:16:in `request_call'
/home/git/gitlab/vendor/bundle/ruby/2.3.0/gems/excon-0.55.0/lib/excon/connection.rb:249:in `request'
/home/git/gitlab/vendor/bundle/ruby/2.3.0/gems/excon-0.55.0/lib/excon/middlewares/idempotent.rb:27:in `error_call'
/home/git/gitlab/vendor/bundle/ruby/2.3.0/gems/excon-0.55.0/lib/excon/middlewares/base.rb:11:in `error_call'
/home/git/gitlab/vendor/bundle/ruby/2.3.0/gems/excon-0.55.0/lib/excon/middlewares/base.rb:11:in `error_call'
/home/git/gitlab/vendor/bundle/ruby/2.3.0/gems/excon-0.55.0/lib/excon/connection.rb:272:in `rescue in request'
/home/git/gitlab/vendor/bundle/ruby/2.3.0/gems/excon-0.55.0/lib/excon/connection.rb:215:in `request'
/home/git/gitlab/vendor/bundle/ruby/2.3.0/gems/excon-0.55.0/lib/excon/middlewares/idempotent.rb:27:in `error_call'
/home/git/gitlab/vendor/bundle/ruby/2.3.0/gems/excon-0.55.0/lib/excon/middlewares/base.rb:11:in `error_call'
/home/git/gitlab/vendor/bundle/ruby/2.3.0/gems/excon-0.55.0/lib/excon/middlewares/base.rb:11:in `error_call'
/home/git/gitlab/vendor/bundle/ruby/2.3.0/gems/excon-0.55.0/lib/excon/connection.rb:272:in `rescue in request'
/home/git/gitlab/vendor/bundle/ruby/2.3.0/gems/excon-0.55.0/lib/excon/connection.rb:215:in `request'
/home/git/gitlab/vendor/bundle/ruby/2.3.0/gems/fog-core-1.44.1/lib/fog/core/connection.rb:81:in `request'
/home/git/gitlab/vendor/bundle/ruby/2.3.0/gems/fog-xml-0.1.3/lib/fog/xml/connection.rb:9:in `request'
/home/git/gitlab/vendor/bundle/ruby/2.3.0/gems/fog-aws-0.13.0/lib/fog/aws/storage.rb:611:in `_request'
/home/git/gitlab/vendor/bundle/ruby/2.3.0/gems/fog-aws-0.13.0/lib/fog/aws/storage.rb:606:in `request'
/home/git/gitlab/vendor/bundle/ruby/2.3.0/gems/fog-aws-0.13.0/lib/fog/aws/requests/storage/put_object.rb:47:in `put_object'
/home/git/gitlab/vendor/bundle/ruby/2.3.0/gems/fog-aws-0.13.0/lib/fog/aws/models/storage/file.rb:219:in `save'
/home/git/gitlab/vendor/bundle/ruby/2.3.0/gems/fog-core-1.44.1/lib/fog/core/collection.rb:50:in `create'
/home/git/gitlab/lib/backup/manager.rb:51:in `upload'
/home/git/gitlab/lib/backup/manager.rb:36:in `block in pack'
/home/git/gitlab/lib/backup/manager.rb:20:in `chdir'
/home/git/gitlab/lib/backup/manager.rb:20:in `pack'
/home/git/gitlab/lib/tasks/gitlab/backup.rake:21:in `block (3 levels) in <top (required)>'
/home/git/gitlab/vendor/bundle/ruby/2.3.0/gems/rake-10.5.0/lib/rake/task.rb:240:in `block in execute'
/home/git/gitlab/vendor/bundle/ruby/2.3.0/gems/rake-10.5.0/lib/rake/task.rb:235:in `each'
/home/git/gitlab/vendor/bundle/ruby/2.3.0/gems/rake-10.5.0/lib/rake/task.rb:235:in `execute'
/home/git/gitlab/vendor/bundle/ruby/2.3.0/gems/rake-10.5.0/lib/rake/task.rb:179:in `block in invoke_with_call_chain'
/usr/lib/ruby/2.3.0/monitor.rb:214:in `mon_synchronize'
/home/git/gitlab/vendor/bundle/ruby/2.3.0/gems/rake-10.5.0/lib/rake/task.rb:172:in `invoke_with_call_chain'
/home/git/gitlab/vendor/bundle/ruby/2.3.0/gems/rake-10.5.0/lib/rake/task.rb:165:in `invoke'
/home/git/gitlab/vendor/bundle/ruby/2.3.0/gems/rake-10.5.0/lib/rake/application.rb:150:in `invoke_task'
/home/git/gitlab/vendor/bundle/ruby/2.3.0/gems/rake-10.5.0/lib/rake/application.rb:106:in `block (2 levels) in top_level'
/home/git/gitlab/vendor/bundle/ruby/2.3.0/gems/rake-10.5.0/lib/rake/application.rb:106:in `each'
/home/git/gitlab/vendor/bundle/ruby/2.3.0/gems/rake-10.5.0/lib/rake/application.rb:106:in `block in top_level'
/home/git/gitlab/vendor/bundle/ruby/2.3.0/gems/rake-10.5.0/lib/rake/application.rb:115:in `run_with_threads'
/home/git/gitlab/vendor/bundle/ruby/2.3.0/gems/rake-10.5.0/lib/rake/application.rb:100:in `top_level'
/home/git/gitlab/vendor/bundle/ruby/2.3.0/gems/rake-10.5.0/lib/rake/application.rb:78:in `block in run'
/home/git/gitlab/vendor/bundle/ruby/2.3.0/gems/rake-10.5.0/lib/rake/application.rb:176:in `standard_exception_handling'
/home/git/gitlab/vendor/bundle/ruby/2.3.0/gems/rake-10.5.0/lib/rake/application.rb:75:in `run'
bin/rake:9:in `<main>'
Errno::ECONNRESET: Connection reset by peer
<internal:prelude>:134:in `__write_nonblock'
<internal:prelude>:134:in `write_nonblock'
/home/git/gitlab/vendor/bundle/ruby/2.3.0/gems/excon-0.55.0/lib/excon/socket.rb:218:in `block in write_nonblock'
/home/git/gitlab/vendor/bundle/ruby/2.3.0/gems/excon-0.55.0/lib/excon/socket.rb:213:in `loop'
/home/git/gitlab/vendor/bundle/ruby/2.3.0/gems/excon-0.55.0/lib/excon/socket.rb:213:in `write_nonblock'
/home/git/gitlab/vendor/bundle/ruby/2.3.0/gems/excon-0.55.0/lib/excon/socket.rb:71:in `write'
/home/git/gitlab/vendor/bundle/ruby/2.3.0/gems/excon-0.55.0/lib/excon/connection.rb:146:in `request_call'
/home/git/gitlab/vendor/bundle/ruby/2.3.0/gems/excon-0.55.0/lib/excon/middlewares/mock.rb:48:in `request_call'
/home/git/gitlab/vendor/bundle/ruby/2.3.0/gems/excon-0.55.0/lib/excon/middlewares/instrumentor.rb:26:in `request_call'
/home/git/gitlab/vendor/bundle/ruby/2.3.0/gems/excon-0.55.0/lib/excon/middlewares/base.rb:16:in `request_call'
/home/git/gitlab/vendor/bundle/ruby/2.3.0/gems/excon-0.55.0/lib/excon/middlewares/base.rb:16:in `request_call'
/home/git/gitlab/vendor/bundle/ruby/2.3.0/gems/excon-0.55.0/lib/excon/middlewares/base.rb:16:in `request_call'
/home/git/gitlab/vendor/bundle/ruby/2.3.0/gems/excon-0.55.0/lib/excon/connection.rb:249:in `request'
/home/git/gitlab/vendor/bundle/ruby/2.3.0/gems/excon-0.55.0/lib/excon/middlewares/idempotent.rb:27:in `error_call'
/home/git/gitlab/vendor/bundle/ruby/2.3.0/gems/excon-0.55.0/lib/excon/middlewares/base.rb:11:in `error_call'
/home/git/gitlab/vendor/bundle/ruby/2.3.0/gems/excon-0.55.0/lib/excon/middlewares/base.rb:11:in `error_call'
/home/git/gitlab/vendor/bundle/ruby/2.3.0/gems/excon-0.55.0/lib/excon/connection.rb:272:in `rescue in request'
/home/git/gitlab/vendor/bundle/ruby/2.3.0/gems/excon-0.55.0/lib/excon/connection.rb:215:in `request'
/home/git/gitlab/vendor/bundle/ruby/2.3.0/gems/excon-0.55.0/lib/excon/middlewares/idempotent.rb:27:in `error_call'
/home/git/gitlab/vendor/bundle/ruby/2.3.0/gems/excon-0.55.0/lib/excon/middlewares/base.rb:11:in `error_call'
/home/git/gitlab/vendor/bundle/ruby/2.3.0/gems/excon-0.55.0/lib/excon/middlewares/base.rb:11:in `error_call'
/home/git/gitlab/vendor/bundle/ruby/2.3.0/gems/excon-0.55.0/lib/excon/connection.rb:272:in `rescue in request'
/home/git/gitlab/vendor/bundle/ruby/2.3.0/gems/excon-0.55.0/lib/excon/connection.rb:215:in `request'
/home/git/gitlab/vendor/bundle/ruby/2.3.0/gems/fog-core-1.44.1/lib/fog/core/connection.rb:81:in `request'
/home/git/gitlab/vendor/bundle/ruby/2.3.0/gems/fog-xml-0.1.3/lib/fog/xml/connection.rb:9:in `request'
/home/git/gitlab/vendor/bundle/ruby/2.3.0/gems/fog-aws-0.13.0/lib/fog/aws/storage.rb:611:in `_request'
/home/git/gitlab/vendor/bundle/ruby/2.3.0/gems/fog-aws-0.13.0/lib/fog/aws/storage.rb:606:in `request'
/home/git/gitlab/vendor/bundle/ruby/2.3.0/gems/fog-aws-0.13.0/lib/fog/aws/requests/storage/put_object.rb:47:in `put_object'
/home/git/gitlab/vendor/bundle/ruby/2.3.0/gems/fog-aws-0.13.0/lib/fog/aws/models/storage/file.rb:219:in `save'
/home/git/gitlab/vendor/bundle/ruby/2.3.0/gems/fog-core-1.44.1/lib/fog/core/collection.rb:50:in `create'
/home/git/gitlab/lib/backup/manager.rb:51:in `upload'
/home/git/gitlab/lib/backup/manager.rb:36:in `block in pack'
/home/git/gitlab/lib/backup/manager.rb:20:in `chdir'
/home/git/gitlab/lib/backup/manager.rb:20:in `pack'
/home/git/gitlab/lib/tasks/gitlab/backup.rake:21:in `block (3 levels) in <top (required)>'
/home/git/gitlab/vendor/bundle/ruby/2.3.0/gems/rake-10.5.0/lib/rake/task.rb:240:in `block in execute'
/home/git/gitlab/vendor/bundle/ruby/2.3.0/gems/rake-10.5.0/lib/rake/task.rb:235:in `each'
/home/git/gitlab/vendor/bundle/ruby/2.3.0/gems/rake-10.5.0/lib/rake/task.rb:235:in `execute'
/home/git/gitlab/vendor/bundle/ruby/2.3.0/gems/rake-10.5.0/lib/rake/task.rb:179:in `block in invoke_with_call_chain'
/usr/lib/ruby/2.3.0/monitor.rb:214:in `mon_synchronize'
/home/git/gitlab/vendor/bundle/ruby/2.3.0/gems/rake-10.5.0/lib/rake/task.rb:172:in `invoke_with_call_chain'
/home/git/gitlab/vendor/bundle/ruby/2.3.0/gems/rake-10.5.0/lib/rake/task.rb:165:in `invoke'
/home/git/gitlab/vendor/bundle/ruby/2.3.0/gems/rake-10.5.0/lib/rake/application.rb:150:in `invoke_task'
/home/git/gitlab/vendor/bundle/ruby/2.3.0/gems/rake-10.5.0/lib/rake/application.rb:106:in `block (2 levels) in top_level'
/home/git/gitlab/vendor/bundle/ruby/2.3.0/gems/rake-10.5.0/lib/rake/application.rb:106:in `each'
/home/git/gitlab/vendor/bundle/ruby/2.3.0/gems/rake-10.5.0/lib/rake/application.rb:106:in `block in top_level'
/home/git/gitlab/vendor/bundle/ruby/2.3.0/gems/rake-10.5.0/lib/rake/application.rb:115:in `run_with_threads'
/home/git/gitlab/vendor/bundle/ruby/2.3.0/gems/rake-10.5.0/lib/rake/application.rb:100:in `top_level'
/home/git/gitlab/vendor/bundle/ruby/2.3.0/gems/rake-10.5.0/lib/rake/application.rb:78:in `block in run'
/home/git/gitlab/vendor/bundle/ruby/2.3.0/gems/rake-10.5.0/lib/rake/application.rb:176:in `standard_exception_handling'
/home/git/gitlab/vendor/bundle/ruby/2.3.0/gems/rake-10.5.0/lib/rake/application.rb:75:in `run'
bin/rake:9:in `<main>'
Excon::Error::Socket: Connection reset by peer (Errno::ECONNRESET)
<internal:prelude>:134:in `__write_nonblock'
<internal:prelude>:134:in `write_nonblock'
/home/git/gitlab/vendor/bundle/ruby/2.3.0/gems/excon-0.55.0/lib/excon/socket.rb:218:in `block in write_nonblock'
/home/git/gitlab/vendor/bundle/ruby/2.3.0/gems/excon-0.55.0/lib/excon/socket.rb:213:in `loop'
/home/git/gitlab/vendor/bundle/ruby/2.3.0/gems/excon-0.55.0/lib/excon/socket.rb:213:in `write_nonblock'
/home/git/gitlab/vendor/bundle/ruby/2.3.0/gems/excon-0.55.0/lib/excon/socket.rb:71:in `write'
/home/git/gitlab/vendor/bundle/ruby/2.3.0/gems/excon-0.55.0/lib/excon/connection.rb:146:in `request_call'
/home/git/gitlab/vendor/bundle/ruby/2.3.0/gems/excon-0.55.0/lib/excon/middlewares/mock.rb:48:in `request_call'
/home/git/gitlab/vendor/bundle/ruby/2.3.0/gems/excon-0.55.0/lib/excon/middlewares/instrumentor.rb:26:in `request_call'
/home/git/gitlab/vendor/bundle/ruby/2.3.0/gems/excon-0.55.0/lib/excon/middlewares/base.rb:16:in `request_call'
/home/git/gitlab/vendor/bundle/ruby/2.3.0/gems/excon-0.55.0/lib/excon/middlewares/base.rb:16:in `request_call'
/home/git/gitlab/vendor/bundle/ruby/2.3.0/gems/excon-0.55.0/lib/excon/middlewares/base.rb:16:in `request_call'
/home/git/gitlab/vendor/bundle/ruby/2.3.0/gems/excon-0.55.0/lib/excon/connection.rb:249:in `request'
/home/git/gitlab/vendor/bundle/ruby/2.3.0/gems/excon-0.55.0/lib/excon/middlewares/idempotent.rb:27:in `error_call'
/home/git/gitlab/vendor/bundle/ruby/2.3.0/gems/excon-0.55.0/lib/excon/middlewares/base.rb:11:in `error_call'
/home/git/gitlab/vendor/bundle/ruby/2.3.0/gems/excon-0.55.0/lib/excon/middlewares/base.rb:11:in `error_call'
/home/git/gitlab/vendor/bundle/ruby/2.3.0/gems/excon-0.55.0/lib/excon/connection.rb:272:in `rescue in request'
/home/git/gitlab/vendor/bundle/ruby/2.3.0/gems/excon-0.55.0/lib/excon/connection.rb:215:in `request'
/home/git/gitlab/vendor/bundle/ruby/2.3.0/gems/fog-core-1.44.1/lib/fog/core/connection.rb:81:in `request'
/home/git/gitlab/vendor/bundle/ruby/2.3.0/gems/fog-xml-0.1.3/lib/fog/xml/connection.rb:9:in `request'
/home/git/gitlab/vendor/bundle/ruby/2.3.0/gems/fog-aws-0.13.0/lib/fog/aws/storage.rb:611:in `_request'
/home/git/gitlab/vendor/bundle/ruby/2.3.0/gems/fog-aws-0.13.0/lib/fog/aws/storage.rb:606:in `request'
/home/git/gitlab/vendor/bundle/ruby/2.3.0/gems/fog-aws-0.13.0/lib/fog/aws/requests/storage/put_object.rb:47:in `put_object'
/home/git/gitlab/vendor/bundle/ruby/2.3.0/gems/fog-aws-0.13.0/lib/fog/aws/models/storage/file.rb:219:in `save'
/home/git/gitlab/vendor/bundle/ruby/2.3.0/gems/fog-core-1.44.1/lib/fog/core/collection.rb:50:in `create'
/home/git/gitlab/lib/backup/manager.rb:51:in `upload'
/home/git/gitlab/lib/backup/manager.rb:36:in `block in pack'
/home/git/gitlab/lib/backup/manager.rb:20:in `chdir'
/home/git/gitlab/lib/backup/manager.rb:20:in `pack'
/home/git/gitlab/lib/tasks/gitlab/backup.rake:21:in `block (3 levels) in <top (required)>'
/home/git/gitlab/vendor/bundle/ruby/2.3.0/gems/rake-10.5.0/lib/rake/task.rb:240:in `block in execute'
/home/git/gitlab/vendor/bundle/ruby/2.3.0/gems/rake-10.5.0/lib/rake/task.rb:235:in `each'
/home/git/gitlab/vendor/bundle/ruby/2.3.0/gems/rake-10.5.0/lib/rake/task.rb:235:in `execute'
/home/git/gitlab/vendor/bundle/ruby/2.3.0/gems/rake-10.5.0/lib/rake/task.rb:179:in `block in invoke_with_call_chain'
/usr/lib/ruby/2.3.0/monitor.rb:214:in `mon_synchronize'
/home/git/gitlab/vendor/bundle/ruby/2.3.0/gems/rake-10.5.0/lib/rake/task.rb:172:in `invoke_with_call_chain'
/home/git/gitlab/vendor/bundle/ruby/2.3.0/gems/rake-10.5.0/lib/rake/task.rb:165:in `invoke'
/home/git/gitlab/vendor/bundle/ruby/2.3.0/gems/rake-10.5.0/lib/rake/application.rb:150:in `invoke_task'
/home/git/gitlab/vendor/bundle/ruby/2.3.0/gems/rake-10.5.0/lib/rake/application.rb:106:in `block (2 levels) in top_level'
/home/git/gitlab/vendor/bundle/ruby/2.3.0/gems/rake-10.5.0/lib/rake/application.rb:106:in `each'
/home/git/gitlab/vendor/bundle/ruby/2.3.0/gems/rake-10.5.0/lib/rake/application.rb:106:in `block in top_level'
/home/git/gitlab/vendor/bundle/ruby/2.3.0/gems/rake-10.5.0/lib/rake/application.rb:115:in `run_with_threads'
/home/git/gitlab/vendor/bundle/ruby/2.3.0/gems/rake-10.5.0/lib/rake/application.rb:100:in `top_level'
/home/git/gitlab/vendor/bundle/ruby/2.3.0/gems/rake-10.5.0/lib/rake/application.rb:78:in `block in run'
/home/git/gitlab/vendor/bundle/ruby/2.3.0/gems/rake-10.5.0/lib/rake/application.rb:176:in `standard_exception_handling'
/home/git/gitlab/vendor/bundle/ruby/2.3.0/gems/rake-10.5.0/lib/rake/application.rb:75:in `run'
bin/rake:9:in `<main>'
Errno::ECONNRESET: Connection reset by peer
<internal:prelude>:134:in `__write_nonblock'
<internal:prelude>:134:in `write_nonblock'
/home/git/gitlab/vendor/bundle/ruby/2.3.0/gems/excon-0.55.0/lib/excon/socket.rb:218:in `block in write_nonblock'
/home/git/gitlab/vendor/bundle/ruby/2.3.0/gems/excon-0.55.0/lib/excon/socket.rb:213:in `loop'
/home/git/gitlab/vendor/bundle/ruby/2.3.0/gems/excon-0.55.0/lib/excon/socket.rb:213:in `write_nonblock'
/home/git/gitlab/vendor/bundle/ruby/2.3.0/gems/excon-0.55.0/lib/excon/socket.rb:71:in `write'
/home/git/gitlab/vendor/bundle/ruby/2.3.0/gems/excon-0.55.0/lib/excon/connection.rb:146:in `request_call'
/home/git/gitlab/vendor/bundle/ruby/2.3.0/gems/excon-0.55.0/lib/excon/middlewares/mock.rb:48:in `request_call'
/home/git/gitlab/vendor/bundle/ruby/2.3.0/gems/excon-0.55.0/lib/excon/middlewares/instrumentor.rb:26:in `request_call'
/home/git/gitlab/vendor/bundle/ruby/2.3.0/gems/excon-0.55.0/lib/excon/middlewares/base.rb:16:in `request_call'
/home/git/gitlab/vendor/bundle/ruby/2.3.0/gems/excon-0.55.0/lib/excon/middlewares/base.rb:16:in `request_call'
/home/git/gitlab/vendor/bundle/ruby/2.3.0/gems/excon-0.55.0/lib/excon/middlewares/base.rb:16:in `request_call'
/home/git/gitlab/vendor/bundle/ruby/2.3.0/gems/excon-0.55.0/lib/excon/connection.rb:249:in `request'
/home/git/gitlab/vendor/bundle/ruby/2.3.0/gems/excon-0.55.0/lib/excon/middlewares/idempotent.rb:27:in `error_call'
/home/git/gitlab/vendor/bundle/ruby/2.3.0/gems/excon-0.55.0/lib/excon/middlewares/base.rb:11:in `error_call'
/home/git/gitlab/vendor/bundle/ruby/2.3.0/gems/excon-0.55.0/lib/excon/middlewares/base.rb:11:in `error_call'
/home/git/gitlab/vendor/bundle/ruby/2.3.0/gems/excon-0.55.0/lib/excon/connection.rb:272:in `rescue in request'
/home/git/gitlab/vendor/bundle/ruby/2.3.0/gems/excon-0.55.0/lib/excon/connection.rb:215:in `request'
/home/git/gitlab/vendor/bundle/ruby/2.3.0/gems/fog-core-1.44.1/lib/fog/core/connection.rb:81:in `request'
/home/git/gitlab/vendor/bundle/ruby/2.3.0/gems/fog-xml-0.1.3/lib/fog/xml/connection.rb:9:in `request'
/home/git/gitlab/vendor/bundle/ruby/2.3.0/gems/fog-aws-0.13.0/lib/fog/aws/storage.rb:611:in `_request'
/home/git/gitlab/vendor/bundle/ruby/2.3.0/gems/fog-aws-0.13.0/lib/fog/aws/storage.rb:606:in `request'
/home/git/gitlab/vendor/bundle/ruby/2.3.0/gems/fog-aws-0.13.0/lib/fog/aws/requests/storage/put_object.rb:47:in `put_object'
/home/git/gitlab/vendor/bundle/ruby/2.3.0/gems/fog-aws-0.13.0/lib/fog/aws/models/storage/file.rb:219:in `save'
/home/git/gitlab/vendor/bundle/ruby/2.3.0/gems/fog-core-1.44.1/lib/fog/core/collection.rb:50:in `create'
/home/git/gitlab/lib/backup/manager.rb:51:in `upload'
/home/git/gitlab/lib/backup/manager.rb:36:in `block in pack'
/home/git/gitlab/lib/backup/manager.rb:20:in `chdir'
/home/git/gitlab/lib/backup/manager.rb:20:in `pack'
/home/git/gitlab/lib/tasks/gitlab/backup.rake:21:in `block (3 levels) in <top (required)>'
/home/git/gitlab/vendor/bundle/ruby/2.3.0/gems/rake-10.5.0/lib/rake/task.rb:240:in `block in execute'
/home/git/gitlab/vendor/bundle/ruby/2.3.0/gems/rake-10.5.0/lib/rake/task.rb:235:in `each'
/home/git/gitlab/vendor/bundle/ruby/2.3.0/gems/rake-10.5.0/lib/rake/task.rb:235:in `execute'
/home/git/gitlab/vendor/bundle/ruby/2.3.0/gems/rake-10.5.0/lib/rake/task.rb:179:in `block in invoke_with_call_chain'
/usr/lib/ruby/2.3.0/monitor.rb:214:in `mon_synchronize'
/home/git/gitlab/vendor/bundle/ruby/2.3.0/gems/rake-10.5.0/lib/rake/task.rb:172:in `invoke_with_call_chain'
/home/git/gitlab/vendor/bundle/ruby/2.3.0/gems/rake-10.5.0/lib/rake/task.rb:165:in `invoke'
/home/git/gitlab/vendor/bundle/ruby/2.3.0/gems/rake-10.5.0/lib/rake/application.rb:150:in `invoke_task'
/home/git/gitlab/vendor/bundle/ruby/2.3.0/gems/rake-10.5.0/lib/rake/application.rb:106:in `block (2 levels) in top_level'
/home/git/gitlab/vendor/bundle/ruby/2.3.0/gems/rake-10.5.0/lib/rake/application.rb:106:in `each'
/home/git/gitlab/vendor/bundle/ruby/2.3.0/gems/rake-10.5.0/lib/rake/application.rb:106:in `block in top_level'
/home/git/gitlab/vendor/bundle/ruby/2.3.0/gems/rake-10.5.0/lib/rake/application.rb:115:in `run_with_threads'
/home/git/gitlab/vendor/bundle/ruby/2.3.0/gems/rake-10.5.0/lib/rake/application.rb:100:in `top_level'
/home/git/gitlab/vendor/bundle/ruby/2.3.0/gems/rake-10.5.0/lib/rake/application.rb:78:in `block in run'
/home/git/gitlab/vendor/bundle/ruby/2.3.0/gems/rake-10.5.0/lib/rake/application.rb:176:in `standard_exception_handling'
/home/git/gitlab/vendor/bundle/ruby/2.3.0/gems/rake-10.5.0/lib/rake/application.rb:75:in `run'
bin/rake:9:in `<main>'
Excon::Error::Socket: Connection reset by peer (Errno::ECONNRESET)
<internal:prelude>:134:in `__write_nonblock'
<internal:prelude>:134:in `write_nonblock'
/home/git/gitlab/vendor/bundle/ruby/2.3.0/gems/excon-0.55.0/lib/excon/socket.rb:218:in `block in write_nonblock'
/home/git/gitlab/vendor/bundle/ruby/2.3.0/gems/excon-0.55.0/lib/excon/socket.rb:213:in `loop'
/home/git/gitlab/vendor/bundle/ruby/2.3.0/gems/excon-0.55.0/lib/excon/socket.rb:213:in `write_nonblock'
/home/git/gitlab/vendor/bundle/ruby/2.3.0/gems/excon-0.55.0/lib/excon/socket.rb:71:in `write'
/home/git/gitlab/vendor/bundle/ruby/2.3.0/gems/excon-0.55.0/lib/excon/connection.rb:146:in `request_call'
/home/git/gitlab/vendor/bundle/ruby/2.3.0/gems/excon-0.55.0/lib/excon/middlewares/mock.rb:48:in `request_call'
/home/git/gitlab/vendor/bundle/ruby/2.3.0/gems/excon-0.55.0/lib/excon/middlewares/instrumentor.rb:26:in `request_call'
/home/git/gitlab/vendor/bundle/ruby/2.3.0/gems/excon-0.55.0/lib/excon/middlewares/base.rb:16:in `request_call'
/home/git/gitlab/vendor/bundle/ruby/2.3.0/gems/excon-0.55.0/lib/excon/middlewares/base.rb:16:in `request_call'
/home/git/gitlab/vendor/bundle/ruby/2.3.0/gems/excon-0.55.0/lib/excon/middlewares/base.rb:16:in `request_call'
/home/git/gitlab/vendor/bundle/ruby/2.3.0/gems/excon-0.55.0/lib/excon/connection.rb:249:in `request'
/home/git/gitlab/vendor/bundle/ruby/2.3.0/gems/fog-core-1.44.1/lib/fog/core/connection.rb:81:in `request'
/home/git/gitlab/vendor/bundle/ruby/2.3.0/gems/fog-xml-0.1.3/lib/fog/xml/connection.rb:9:in `request'
/home/git/gitlab/vendor/bundle/ruby/2.3.0/gems/fog-aws-0.13.0/lib/fog/aws/storage.rb:611:in `_request'
/home/git/gitlab/vendor/bundle/ruby/2.3.0/gems/fog-aws-0.13.0/lib/fog/aws/storage.rb:606:in `request'
/home/git/gitlab/vendor/bundle/ruby/2.3.0/gems/fog-aws-0.13.0/lib/fog/aws/requests/storage/put_object.rb:47:in `put_object'
/home/git/gitlab/vendor/bundle/ruby/2.3.0/gems/fog-aws-0.13.0/lib/fog/aws/models/storage/file.rb:219:in `save'
/home/git/gitlab/vendor/bundle/ruby/2.3.0/gems/fog-core-1.44.1/lib/fog/core/collection.rb:50:in `create'
/home/git/gitlab/lib/backup/manager.rb:51:in `upload'
/home/git/gitlab/lib/backup/manager.rb:36:in `block in pack'
/home/git/gitlab/lib/backup/manager.rb:20:in `chdir'
/home/git/gitlab/lib/backup/manager.rb:20:in `pack'
/home/git/gitlab/lib/tasks/gitlab/backup.rake:21:in `block (3 levels) in <top (required)>'
/home/git/gitlab/vendor/bundle/ruby/2.3.0/gems/rake-10.5.0/lib/rake/task.rb:240:in `block in execute'
/home/git/gitlab/vendor/bundle/ruby/2.3.0/gems/rake-10.5.0/lib/rake/task.rb:235:in `each'
/home/git/gitlab/vendor/bundle/ruby/2.3.0/gems/rake-10.5.0/lib/rake/task.rb:235:in `execute'
/home/git/gitlab/vendor/bundle/ruby/2.3.0/gems/rake-10.5.0/lib/rake/task.rb:179:in `block in invoke_with_call_chain'
/usr/lib/ruby/2.3.0/monitor.rb:214:in `mon_synchronize'
/home/git/gitlab/vendor/bundle/ruby/2.3.0/gems/rake-10.5.0/lib/rake/task.rb:172:in `invoke_with_call_chain'
/home/git/gitlab/vendor/bundle/ruby/2.3.0/gems/rake-10.5.0/lib/rake/task.rb:165:in `invoke'
/home/git/gitlab/vendor/bundle/ruby/2.3.0/gems/rake-10.5.0/lib/rake/application.rb:150:in `invoke_task'
/home/git/gitlab/vendor/bundle/ruby/2.3.0/gems/rake-10.5.0/lib/rake/application.rb:106:in `block (2 levels) in top_level'
/home/git/gitlab/vendor/bundle/ruby/2.3.0/gems/rake-10.5.0/lib/rake/application.rb:106:in `each'
/home/git/gitlab/vendor/bundle/ruby/2.3.0/gems/rake-10.5.0/lib/rake/application.rb:106:in `block in top_level'
/home/git/gitlab/vendor/bundle/ruby/2.3.0/gems/rake-10.5.0/lib/rake/application.rb:115:in `run_with_threads'
/home/git/gitlab/vendor/bundle/ruby/2.3.0/gems/rake-10.5.0/lib/rake/application.rb:100:in `top_level'
/home/git/gitlab/vendor/bundle/ruby/2.3.0/gems/rake-10.5.0/lib/rake/application.rb:78:in `block in run'
/home/git/gitlab/vendor/bundle/ruby/2.3.0/gems/rake-10.5.0/lib/rake/application.rb:176:in `standard_exception_handling'
/home/git/gitlab/vendor/bundle/ruby/2.3.0/gems/rake-10.5.0/lib/rake/application.rb:75:in `run'
bin/rake:9:in `<main>'
Errno::ECONNRESET: Connection reset by peer
<internal:prelude>:134:in `__write_nonblock'
<internal:prelude>:134:in `write_nonblock'
/home/git/gitlab/vendor/bundle/ruby/2.3.0/gems/excon-0.55.0/lib/excon/socket.rb:218:in `block in write_nonblock'
/home/git/gitlab/vendor/bundle/ruby/2.3.0/gems/excon-0.55.0/lib/excon/socket.rb:213:in `loop'
/home/git/gitlab/vendor/bundle/ruby/2.3.0/gems/excon-0.55.0/lib/excon/socket.rb:213:in `write_nonblock'
/home/git/gitlab/vendor/bundle/ruby/2.3.0/gems/excon-0.55.0/lib/excon/socket.rb:71:in `write'
/home/git/gitlab/vendor/bundle/ruby/2.3.0/gems/excon-0.55.0/lib/excon/connection.rb:146:in `request_call'
/home/git/gitlab/vendor/bundle/ruby/2.3.0/gems/excon-0.55.0/lib/excon/middlewares/mock.rb:48:in `request_call'
/home/git/gitlab/vendor/bundle/ruby/2.3.0/gems/excon-0.55.0/lib/excon/middlewares/instrumentor.rb:26:in `request_call'
/home/git/gitlab/vendor/bundle/ruby/2.3.0/gems/excon-0.55.0/lib/excon/middlewares/base.rb:16:in `request_call'
/home/git/gitlab/vendor/bundle/ruby/2.3.0/gems/excon-0.55.0/lib/excon/middlewares/base.rb:16:in `request_call'
/home/git/gitlab/vendor/bundle/ruby/2.3.0/gems/excon-0.55.0/lib/excon/middlewares/base.rb:16:in `request_call'
/home/git/gitlab/vendor/bundle/ruby/2.3.0/gems/excon-0.55.0/lib/excon/connection.rb:249:in `request'
/home/git/gitlab/vendor/bundle/ruby/2.3.0/gems/fog-core-1.44.1/lib/fog/core/connection.rb:81:in `request'
/home/git/gitlab/vendor/bundle/ruby/2.3.0/gems/fog-xml-0.1.3/lib/fog/xml/connection.rb:9:in `request'
/home/git/gitlab/vendor/bundle/ruby/2.3.0/gems/fog-aws-0.13.0/lib/fog/aws/storage.rb:611:in `_request'
/home/git/gitlab/vendor/bundle/ruby/2.3.0/gems/fog-aws-0.13.0/lib/fog/aws/storage.rb:606:in `request'
/home/git/gitlab/vendor/bundle/ruby/2.3.0/gems/fog-aws-0.13.0/lib/fog/aws/requests/storage/put_object.rb:47:in `put_object'
/home/git/gitlab/vendor/bundle/ruby/2.3.0/gems/fog-aws-0.13.0/lib/fog/aws/models/storage/file.rb:219:in `save'
/home/git/gitlab/vendor/bundle/ruby/2.3.0/gems/fog-core-1.44.1/lib/fog/core/collection.rb:50:in `create'
/home/git/gitlab/lib/backup/manager.rb:51:in `upload'
/home/git/gitlab/lib/backup/manager.rb:36:in `block in pack'
/home/git/gitlab/lib/backup/manager.rb:20:in `chdir'
/home/git/gitlab/lib/backup/manager.rb:20:in `pack'
/home/git/gitlab/lib/tasks/gitlab/backup.rake:21:in `block (3 levels) in <top (required)>'
/home/git/gitlab/vendor/bundle/ruby/2.3.0/gems/rake-10.5.0/lib/rake/task.rb:240:in `block in execute'
/home/git/gitlab/vendor/bundle/ruby/2.3.0/gems/rake-10.5.0/lib/rake/task.rb:235:in `each'
/home/git/gitlab/vendor/bundle/ruby/2.3.0/gems/rake-10.5.0/lib/rake/task.rb:235:in `execute'
/home/git/gitlab/vendor/bundle/ruby/2.3.0/gems/rake-10.5.0/lib/rake/task.rb:179:in `block in invoke_with_call_chain'
/usr/lib/ruby/2.3.0/monitor.rb:214:in `mon_synchronize'
/home/git/gitlab/vendor/bundle/ruby/2.3.0/gems/rake-10.5.0/lib/rake/task.rb:172:in `invoke_with_call_chain'
/home/git/gitlab/vendor/bundle/ruby/2.3.0/gems/rake-10.5.0/lib/rake/task.rb:165:in `invoke'
/home/git/gitlab/vendor/bundle/ruby/2.3.0/gems/rake-10.5.0/lib/rake/application.rb:150:in `invoke_task'
/home/git/gitlab/vendor/bundle/ruby/2.3.0/gems/rake-10.5.0/lib/rake/application.rb:106:in `block (2 levels) in top_level'
/home/git/gitlab/vendor/bundle/ruby/2.3.0/gems/rake-10.5.0/lib/rake/application.rb:106:in `each'
/home/git/gitlab/vendor/bundle/ruby/2.3.0/gems/rake-10.5.0/lib/rake/application.rb:106:in `block in top_level'
/home/git/gitlab/vendor/bundle/ruby/2.3.0/gems/rake-10.5.0/lib/rake/application.rb:115:in `run_with_threads'
/home/git/gitlab/vendor/bundle/ruby/2.3.0/gems/rake-10.5.0/lib/rake/application.rb:100:in `top_level'
/home/git/gitlab/vendor/bundle/ruby/2.3.0/gems/rake-10.5.0/lib/rake/application.rb:78:in `block in run'
/home/git/gitlab/vendor/bundle/ruby/2.3.0/gems/rake-10.5.0/lib/rake/application.rb:176:in `standard_exception_handling'
/home/git/gitlab/vendor/bundle/ruby/2.3.0/gems/rake-10.5.0/lib/rake/application.rb:75:in `run'
bin/rake:9:in `<main>'
Tasks: TOP => gitlab:backup:create

but when i curl the endpoint, it's working.

root@gitlab-2924716172-bzhls:/home/git/gitlab# curl 180.163.251.87:80
<?xml version='1.0' encoding='utf-8' ?>
<Error xmlns="http://s3.amazonaws.com/doc/2006-03-01/">
    <Code>InvalidRequest</Code>
    <Message>Please use AWS4-HMAC-SHA256.</Message>
    <RequestId>501129a0a9ab83f5ecc7621f48d97243</RequestId>
    <HostId>9515f96186ca66a922546bc5bc61caf1</HostId>
</Error>
solidnerd commented 7 years ago

Hey @haoyixin, it seems that your permissions for bucket aren't correct. Here is an example for the policy json for the AMI User.

{
    "Version": "2012-10-17",
    "Statement": [
        {
            "Sid": "Stmt0000000000000",
            "Effect": "Allow",
            "Action": [
                "s3:GetBucketLocation",
                "s3:ListAllMyBuckets"
            ],
            "Resource": [
                "*"
            ]
        },
        {
            "Sid": "Stmt0000000000000",
            "Effect": "Allow",
            "Action": [
                "s3:ListBucket"
            ],
            "Resource": [
                "arn:aws:s3::example-bucket"
            ]
        },
        {
            "Sid": "Stmt0000000000000",
            "Effect": "Allow",
            "Action": [
                "s3:AbortMultipartUpload",
                "s3:GetBucketAcl",
                "s3:GetBucketLocation",
                "s3:GetObject",
                "s3:GetObjectAcl",
                "s3:ListBucketMultipartUploads",
                "s3:PutObject",
                "s3:PutObjectAcl"
            ],
            "Resource": [
                "arn:aws:s3:::example-bucket/*"
            ]
        }
    ]
}
stale[bot] commented 4 years ago

This issue has been automatically marked as stale because it has not had any activity for the last 60 days. It will be closed if no further activity occurs during the next 7 days. Thank you for your contributions.