Jul 16, 2012

[Amazon] Amazon S3 で "Please re-send this request to the specified temporary endpoint. "

Amazon S3 の Tokyo Region に作成した Bucket へファイルを PUT しようとした時に

<?xml version="1.0" encoding="UTF-8"?>
<soapenv:Envelope xmlns:soapenv="http://www.w3.org/2003/05/soap-envelope" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
  <soapenv:Body>
    <soapenv:Fault>
      <soapenv:Code xmlns:ns1="http://schemas.xmlsoap.org/soap/envelope/">
        <soapenv:Value>ns1:Client.TemporaryRedirect</soapenv:Value>
      </soapenv:Code>
      <soapenv:Reason>
        <soapenv:Text xml:lang="en">Please re-send this request to the specified temporary endpoint. Continue to use the original request endpoint for future requests.</soapenv:Text>
      </soapenv:Reason>
      <soapenv:Detail>
        <Bucket>mybucket</Bucket>
        <Endpoint>mybucket.s3-ap-northeast-1.amazonaws.com</Endpoint>
      </soapenv:Detail>
    </soapenv:Fault>
  </soapenv:Body>
</soapenv:Envelope>
というエラーが発生した。

調べてみたところ以下がヒットした。多分これが原因なんだろう。
https://forums.aws.amazon.com/message.jspa?messageID=155181

When a EU bucket is created, it takes a while (usually no more than 30 minutes) for the DNS entry to be created (your-eu-bucket.s3.amazonaws.com). Until that time, DNS will resolve as our catch-all wildcard that points to the US instance of S3. (SNIP) The best thing to do would be to create the bucket, then wait a half-hour before starting your PUTs. If your PUTs still fail in this same way after that time, then I would check with your proxy administrator as it's likely that your proxy isn't respecting DNS TTLs and is caching entries longer than it should.

Posted in Amazon | このエントリーをはてなブックマークに追加 | この記事をクリップ! livedoor クリップ |