PERL Net :: Amazon :: S3 BucketAlreadyExists:请求的存储桶名称不可用 [英] PERL Net::Amazon::S3 BucketAlreadyExists: The requested bucket name is not available

查看:394
本文介绍了PERL Net :: Amazon :: S3 BucketAlreadyExists:请求的存储桶名称不可用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

my $bucketname = "test";
my $bucket = $s3->add_bucket( { bucket => "$bucketname" } )
    or die $s3->err . ": " . $s3->errstr;

运行此代码会给我这个错误.

Running this code gives me this error.

BucketAlreadyExists:请求的存储桶名称不可用.这 存储桶名称空间由系统的所有用户共享.请选择一个 不同的名称,然后重试.

BucketAlreadyExists: The requested bucket name is not available. The bucket namespace is shared by all users of the system. Please select a different name and try again.

该存储桶不存在.我不知道怎么了.

The bucket does not exist. I am not sure what's wrong.

谢谢

推荐答案

S3存储桶是一个全局名称空间,因此其他人很有可能在获得它之前就已经使用了相同的存储桶.由于内部复制延迟或其他此类问题,以前删除的存储桶可能还无法重用.

S3 buckets are a global namespace, and so it's very possible that someone else took the same bucket before you could get it. It's also possible that due to internal replication delays or other such issues, a previously-deleted bucket is not yet available for re-use.

在这种情况下,"test"是一个非常通用的存储桶名称.我确定每个人和他们的狗都在尝试使用它-当我尝试将其列出时,出现AllAccessDisabled错误.似乎S3团队已禁用"test"存储桶,具体是因为有太多人试图将其用作存储桶名称.

In this particular case, "test" is a VERY generic bucket name. I'm sure everyone and their dog is trying to use it - and when I try LISTing it, I get a AllAccessDisabled error. It looks like the S3 team has disabled the "test" bucket specifically because too many people try to use it as their bucket name.

因此,简而言之,您需要选择一个唯一存储桶名称-其他人没有使用的存储桶名称.

So, in short, you need to pick a unique bucket name - one that NOBODY else is using.

这篇关于PERL Net :: Amazon :: S3 BucketAlreadyExists:请求的存储桶名称不可用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆