linux - 尝试在 ceph-cluster 上创建 testbucket 后 s3cmd 失败
问题描述
您好,我正在尝试在 Ceph Raspberry Pi 集群(本地)上创建一个 testbucket,但收到以下错误消息:
操作系统:Debian Jessie Ceph:v12.2.12 Luminous s3cmd:2.0.2
[ceph_deploy.rgw][INFO ] The Ceph Object Gateway (RGW) is now running on host admin and default port 7480
./s3cmd --debug mb s3://testbucket
调试消息:
DEBUG: Unicodising 'mb' using UTF-8
DEBUG: Unicodising 's3://testbucket' using UTF-8
DEBUG: Command: mb
DEBUG: CreateRequest: resource[uri]=/
DEBUG: Using signature v2
DEBUG: SignHeaders: u'PUT\n\n\n\nx-amz-date:Wed, 15 Jan 2020 02:28:25 +0000\n/testbucket/'
DEBUG: Processing request, please wait...
DEBUG: get_hostname(testbucket): 192.168.178.50:7480
DEBUG: ConnMan.get(): creating new connection: http://192.168.178.50:7480
DEBUG: non-proxied HTTPConnection(192.168.178.50, 7480)
DEBUG: Response:
DEBUG: Unicodising './s3cmd' using UTF-8
DEBUG: Unicodising '--debug' using UTF-8
DEBUG: Unicodising 'mb' using UTF-8
DEBUG: Unicodising 's3://testbucket' using UTF-8
Invoked as: ./s3cmd --debug mb s3://testbucket
Problem: error: [Errno 111] Connection refused
S3cmd: 2.0.2
python: 2.7.17 (default, Oct 19 2019, 23:36:22)
[GCC 9.2.1 20190909]
environment LANG=en_GB.UTF-8
Traceback (most recent call last):
File "./s3cmd", line 3092, in <module>
rc = main()
File "./s3cmd", line 3001, in main
rc = cmd_func(args)
File "./s3cmd", line 237, in cmd_bucket_create
response = s3.bucket_create(uri.bucket(), cfg.bucket_location)
File "/home/cephuser/s3cmd-2.0.2/S3/S3.py", line 398, in bucket_create
response = self.send_request(request)
File "/home/cephuser/s3cmd-2.0.2/S3/S3.py", line 1258, in send_request
conn = ConnMan.get(self.get_hostname(resource['bucket']))
File "/home/cephuser/s3cmd-2.0.2/S3/ConnMan.py", line 253, in get
conn.c.connect()
File "/usr/lib/python2.7/httplib.py", line 831, in connect
self.timeout, self.source_address)
File "/usr/lib/python2.7/socket.py", line 575, in create_connection
raise err
error: [Errno 111] Connection refused
有谁知道这个错误?
解决方案
解决方法: 安装后ceph-rgw服务自动停止
在我的网关永久可用后,我可以使用 s3cmd 创建一个测试桶
推荐阅读
- docker - docker容器内的dbus和gesettings错误
- powershell - 如何使用 Powershell 中的选项自动化脚本?
- javascript - 如何在允许脚本设置为 true 的 iframe 中使用画布
- javascript - 动态创建html页面
- import - 从 Excel 更新 Access 数据库中的记录
- mysql - SQL - 手动获取给定格式的下一个可用 ID
- python - 与 OneDrive 的 Python 连接 - 未经授权的访问
- python - 如何在保持子列表结构完整的同时从元组列表中去除第二个值?
- entity-framework-core - 在 Entity Framework Core 中,如果 IsDeleted 字段设置为 true,是否可以阻止更新保存
- node.js - 续集得到承诺