2011-08-09 3 views
0

Lorsque j'exécute un script donné pour les services Web Amazon pour s3. Cela me donne ces erreurs. Qu'est-ce que je suis absent ici mais j'ai utilisé Access et sKey IdNuméro de service Web Amazon

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. 

J'ai besoin de vos suggestions.

Répondre

5

Assez clair, ou? Spécifiez un autre nom de seau ...

[BucketAlreadyExists] The requested bucket name is not available 

donc vous ne pouvez pas télécharger sur ce seau, car un seau avec ce nom existe déjà dans la même région (l'espace de noms est global entre les comptes), et il ne vous appartient pas et vous obtenez cette erreur:

[AccessDenied] 
+0

Comment puis-je créer un nouveau seau et utiliser ici. – user264341

+0

@user Quelle langue etc .... – Skomski

+0

J'utilise PHP ici – user264341

0

S'il vous plaît se référer à la 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

Bienvenue sur Stack Overflow! Bien que cela puisse théoriquement répondre à la question, [il serait préférable] (http://meta.stackexchange.com/q/8259) d'inclure ici les parties essentielles de la réponse et de fournir le lien pour référence. – user13500

2

noms S3 Bucket doivent être uniques. Le message que vous avez reçu signifie que quelqu'un d'autre utilise déjà ce nom de compartiment et, pour cette raison, vous ne pouvez plus l'utiliser.

Voir AWS documentation pour plus de détails:

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.

Questions connexes