2011-08-09 17 views
0

s3のamazon Webサービス用のスクリプトを実行すると、それは私にこれらのエラーを与える。私はあなたの提案が必要 Amazon Webサービスの問題

Warning: S3::putBucket(yourbucket): [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. in /home/programm/public_html/consumers/aws/sources/S3.php on line 188 

Warning: S3::putObject(): [AccessDenied] Access Denied in /home/programm/public_html/consumers/aws/sources/S3.php on line 312 Something went wrong while uploading your file... sorry. 

アクセスを使用してのsKey Idを

しかし、私はここで行方不明です。

答えて

5

かなりクリアですか?別のバケット名を指定してください...この名前のバケットがすでに(名前空間は、口座間のグローバルで)同じ領域に存在し、それはあなたではありませんし、次にあなたが得るため

[BucketAlreadyExists] The requested bucket name is not available 

ですから、このバケットにアップロードカントこのエラー:あなたのAmazon S3のアカウントへのアクセス権を持っている場合、あなたは

[AccessDenied] 
+0

私は新しいバケットを作成して、ここで使用するにはどうすればよいです。 – user264341

+0

@userどの言語など.... – Skomski

+0

私はここでPHPを使用しています – user264341

0

Amazon S3 Bucket name restrictionsを参照してください:

DNS-compliant bucket names allow customers to benefit from new features and operational improvements, as well as providing support for virtual-host style access to buckets. While the US Standard region currently allows non-compliant DNS bucket naming, we are moving to the same DNS-compliant bucket naming convention for the US Standard region in the coming months. This will ensure a single, consistent naming approach for Amazon S3 buckets. The rules for DNS-compliant bucket names are:

  1. Bucket names must be at least 3 and no more than 63 characters long.

  2. Bucket names must be a series of one or more labels. Adjacent labels are separated by a single period (.). Bucket names can contain lowercase letters, numbers, and hyphens. Each label must start and end with a lowercase letter or a number.

  3. Bucket names must not be formatted as an IP address (e.g., 192.168.5.4).

The following examples are valid bucket names:

myawsbucket

my.aws.bucket

myawsbucket.1

The following examples are invalid bucket names:

Invalid Bucket Name Comment 
.myawsbucket Bucket name cannot start with a period (.). 
myawsbucket. Bucket name cannot end with a period (.). 
my..examplebucket There can be only one period between labels. 
+0

ようこそ!これは理論的に質問に答えるかもしれませんが、答えの本質的な部分をここに含め、参照用のリンクを提供することが望ましいでしょう(http://meta.stackexchange.com/q/8259)。 – user13500

2

S3バケット名はグローバルに一意でなければなりません。あなたが受け取ったメッセージは、誰かがすでにこのバケット名を使用していることを意味します。これにより、もう使用できなくなります。

は詳細についてAWS documentationを参照してください:

Amazon S3 bucket names are globally unique, regardless of the AWS Region in which you create the bucket. You specify the name at the time you create the bucket.