Datastax OpsCenter 5.2.0无法备份到Amazon S3

时间:2015-07-31 12:03:57

标签: amazon-s3 cassandra datastax datastax-enterprise opscenter

当我使用Opscenter甚至创建Amazon S3备份作业时,它会在日志和浏览器中失败并显示以下消息。它在创建步骤期间失败。我已尝试使用所有键空间和单个键空间... DSE版本4.7.1 .. Opscenter版本5.2.0。我刚刚创建了这个集群..并且是第一次创建备份作业。

请告知。

2015-07-31 11:41:35 + 0000 []错误:调用decorator时出现问题(LibcloudError):'此存储桶位于不同的区域。请使用正确的驱动程序。'>           在_inlineCallbacks中输入文件“/usr/share/opscenter/lib/py-redhat/2.6/shared/amd64/twisted/internet/defer.py”,第1018行             result = result.throwExceptionIntoGenerator(g)

      File "/usr/share/opscenter/lib/py-redhat/2.6/shared/amd64/twisted/python/failure.py", line 349, in throwExceptionIntoGenerator
        return g.throw(self.type, self.value, self.tb)

      File "/usr/lib/python2.6/site-packages/opscenterd/WebServer.py", line 2119, in DestinationsValidateController

      File "/usr/share/opscenter/lib/py-redhat/2.6/shared/amd64/twisted/internet/defer.py", line 1018, in _inlineCallbacks
        result = result.throwExceptionIntoGenerator(g)

      File "/usr/share/opscenter/lib/py-redhat/2.6/shared/amd64/twisted/python/failure.py", line 349, in throwExceptionIntoGenerator
        return g.throw(self.type, self.value, self.tb)

      File "/usr/lib/python2.6/site-packages/opscenterd/backups/Destinations.py", line 488, in validate

      File "/usr/share/opscenter/lib/py-redhat/2.6/shared/amd64/twisted/internet/defer.py", line 1018, in _inlineCallbacks
        result = result.throwExceptionIntoGenerator(g)

      File "/usr/share/opscenter/lib/py-redhat/2.6/shared/amd64/twisted/python/failure.py", line 349, in throwExceptionIntoGenerator
        return g.throw(self.type, self.value, self.tb)

      File "/usr/lib/python2.6/site-packages/opscenterd/backups/Destinations.py", line 422, in validate

      File "/usr/share/opscenter/lib/py-redhat/2.6/shared/amd64/twisted/internet/defer.py", line 1018, in _inlineCallbacks
        result = result.throwExceptionIntoGenerator(g)

      File "/usr/share/opscenter/lib/py-redhat/2.6/shared/amd64/twisted/python/failure.py", line 349, in throwExceptionIntoGenerator
        return g.throw(self.type, self.value, self.tb)

      File "/usr/lib/python2.6/site-packages/opscenterd/backups/Destinations.py", line 408, in validate_connection

      File "/usr/share/opscenter/lib/py-redhat/2.6/shared/amd64/twisted/python/threadpool.py", line 207, in _worker
        result = context.call(ctx, function, *args, **kwargs)

      File "/usr/share/opscenter/lib/py-redhat/2.6/shared/amd64/twisted/python/context.py", line 59, in callWithContext
        return self.currentContext().callWithContext(ctx, func, *args, **kw)

      File "/usr/share/opscenter/lib/py-redhat/2.6/shared/amd64/twisted/python/context.py", line 37, in callWithContext
        return func(*args,**kw)

      File "/usr/lib/python2.6/site-packages/opscenterd/backups/Destinations.py", line 400, in run_validate_connection

      File "/usr/share/opscenter/lib/py/libcloud/storage/drivers/s3.py", line 304, in get_container
        method='HEAD')

      File "/usr/share/opscenter/lib/py/libcloud/common/base.py", line 736, in request
        response = responseCls(**kwargs)

      File "/usr/share/opscenter/lib/py/libcloud/common/base.py", line 117, in __init__
        raise Exception(self.parse_error())

      File "/usr/share/opscenter/lib/py/libcloud/storage/drivers/s3.py", line 85, in parse_error
        driver=S3StorageDriver)

1 个答案:

答案 0 :(得分:3)

转到 cluter_name .conf文件。在代理标题下(我想在你的情况下它是空白的),并添加以下行:

remote_backup_region = <region S3 bucket is in>

区域的适当值是:

us-standard 
us-west-1 
us-west-2 
eu-west-1
eu-central-1 
ap-northeast-1 
ap-southeast-1
ap-southeast-2
sa-east-1

保存该设置后,重新启动OpsCenter并再次尝试备份。

相关问题