Hi Jason
Thank you for looking into this error
I upgraded S2 and got me the log file.
- Code: Select all
array (
'option_value' => '',
'option' => 'pro_recaptcha_private_key',
's3c' =>
array (
'bucket' => 'xxxxxxxxxxxxx',
'access_key' => 'xxxxxxxxxxxxxx',
'secret_key' => 'xxxxxxxxxxxxxxxxxxx',
),
'cfc' =>
array (
'distros_s3_access_id' => '455e7e83exxxxxxxxxxxxxx5cc617baf7ddc08xxxxxxxxxxxxxxxxxxxxxxxxxxx9876xxxxxxxxf6802f0',
),
's3_date' => 'Wed, 07 Dec 2011 09:17:47 GMT',
's3_location' => '/?policy',
's3_domain' => 'xxxxxxxxxxxxxxxxx.s3.amazonaws.com',
's3_signature' => 'gv+cxxxxxvtG5Rxxxxxxxxxxxxxxxxxx=',
's3_args' =>
array (
'method' => 'PUT',
'body' => '{"Version":"2008-10-17","Id":"xxxxxxxbb1xxxxxxxxxx65b2","Statement":[{"Sid":"s2Member/CloudFront","Effect":"Allow","Principal":{"CanonicalUser":"455e7exxxxxxxxxxx17baf7xxxxxxxx7ed841c724a861c129xxxxxxxxxxx4f6xxxxxxxxxxx2f0"},"Action":"s3:GetObject","Resource":"arn:aws:s3:::xxxxxxxx/*"}]}',
'headers' =>
array (
'Host' => 'xxxxxxxx.s3.amazonaws.com',
'Content-Type' => 'application/json',
'Date' => 'Wed, 07 Dec 2011 09:17:47 GMT',
'Authorization' => 'AWS AxxxxxxxxxxQQ:gvxxxxxxxxxFpCSwxxxxxxxxxx90i8s=',
),
),
's3_response' =>
array (
'code' => 200,
'message' => 'OK',
'headers' =>
array (
'x-amz-id-2' => 'sn2wClZ0xxxxxxxxxxxxxxCLxxxxxxxx99xxxxxxxxxxxxxxU6iXg',
'x-amz-request-id' => 'FA8xxxxxxx56676xxxxxxxDAC',
'date' => 'Wed, 07 Dec 2011 09:17:50 GMT',
'content-length' => '0',
'connection' => 'keep-alive',
'server' => 'AmazonS3',
),
'body' => '',
'response' =>
array (
'headers' =>
array (
'x-amz-id-2' => 'sn2wClZ06ExxxxxxxxxxfHvMWa5xxxxxxxxxxLSK29xxxxxxxxxxU6iXg',
'x-amz-request-id' => 'Fxxxxxxxx56676xxxxxxxxC',
'date' => 'Wed, 07 Dec 2011 09:17:50 GMT',
'content-length' => '0',
'connection' => 'keep-alive',
'server' => 'AmazonS3',
),
'body' => '',
'response' =>
array (
'code' => 200,
'message' => 'OK',
),
'cookies' =>
array (
),
'filename' => NULL,
),
),
's3_owner_tag' =>
array (
0 => '<Owner><ID>80d89cf4xxxxxxxxxxxxxxe718xxx2e3exxxxxxxxxxxxb145c200</ID><DisplayName>xxxxxxxxx</DisplayName></Owner>',
1 => '<ID>80d8xxxxxx7a748xxxxxxxxxx7xxxx3e2ecxxxxxxxxxxxx145c200</ID><DisplayName>xxxxxxxx</DisplayName>',
),
's3_owner_id_tag' =>
array (
0 => '<ID>80d8xxxx4790c57a7xxxxxxxxxxxc7296xxxxxxxxxxx5c200</ID>',
1 => '80dxxx4790c5xxxxxxxxxxx7xxxxx2e3e2xxxxxxxxxa2b145c200',
),
's3_owner_display_name_tag' =>
array (
0 => '<DisplayName>xxxxxxxxxx</DisplayName>',
1 => 'xxxxxxxxx',
),
's3_owner' =>
array (
'access_id' => '80xxxxxxxxcf4790c5xxxxxxxxxxxxxxxxe2ec7xxxxxxxxxxx145c200',
'display_name' => 'xxxxxxxxxxx',
),
's3_acls_xml' => '<AccessControlPolicy><Owner><ID>80d89cf4xxxxxxxxxxxxxxxx71xxx12exxxxxxxxxx6a2b145c200</ID><DisplayName>xxxxxxx</DisplayName></Owner><AccessControlList><Grant><Grantee xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="CanonicalUser"><ID>80d8xxxxxxxxxxxxxe718712e3e2xxxxxxxxxxxx45cxxxx00</ID><DisplayName>xxxxxxxxx</DisplayName></Grantee><Permission>FULL_CONTROL</Permission></Grant><Grant><Grantee xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="CanonicalUser"><ID>455exxxxxxxxxxx7e46bcf4667axxxxxxxxxxxxxxxxee22177dexxxxxxxxxxxxxxxf6802f0</ID><DisplayName>s2Member/CloudFront</DisplayName></Grantee><Permission>READ</Permission></Grant></AccessControlList></AccessControlPolicy>',
's3_policy_json' => '{"Version":"2008-10-17","Id":"7xxxxxxx56bxxxxxxxxxxxxxxxxxx6xxxxxx2","Statement":[{"Sid":"s2Member/CloudFront","Effect":"Allow","Principal":{"CanonicalUser":"455xxxxxxxxx667a5c36c617baf7xxxxxxxxxxxxxxx129ee2xxxxxxx2cxxxxxxxx02f0"},"Action":"s3:GetObject","Resource":"arn:aws:s3:::xxxxxxxxxxxxxx/*"}]}',
)
I wont be able to post the original file in here Jason. I has all my info (Scary)
Any way, I copied the policy above to the bucket policy and it seems OK. It's still creating the CloudFront distribution. Once it's done I will try and see if it's working
Thank You
UPDATES: I am still getting this error
Unable to auto-configure Amazon® CloudFront Distributions.
Error code: 400. Error Message: Unable to update existing Amazon® S3 ACLs. Unable to update existing Amazon® S3 Bucket Policy. Bad Request
The ClouldFront distribution was created but nothing else
One other problem I am facing Jason
Using S3/CloudFront/JWPlayer/Streaming/HTML5 fallback - NO Download
- Code: Select all
<div id="jw-container"></div>
<script type="text/javascript" src="/jwplayer/jwplayer.js"></script>
<?php
$cfg = array ("file_download" => get_post_meta(get_the_ID(), "movie", true), "url_to_storage_source" => true, "count_against_user" => true); ?>
<?php if (($mp4 = s2member_file_download_url ($cfg, "get-streamer-array"))) { ?>
<script type="text/javascript">
jwplayer("jw-container").setup({modes: /* JW Player. */
[
/* First try real-time streaming with Flash player. */
{type: "flash", provider: "rtmp", src: "/jwplayer/player.swf",
config: {streamer: "<?php echo $mp4["streamer"]; ?>", file: "<?php echo $mp4["file"]; ?>"}},
/* Else, try an HTML5 video tag. */
{type: "html5", provider: "video",
config: {file: "<?php echo $mp4["url"]; ?>"}},
],
autostart: true,
controlbar: "bottom",
skin: "http://www.site.com/glow.zip",
/* Set video dimensions. */ width:480, height: 320
});
</script>
Form the 1st to the 4th. I got about 600GB of AWS data transfer out. all what I was doing is changing my files from using Wowza to AWS. I was viewing the post for seconds of a time to check if the movie is playing correctly. But not more that 5 second at at time
But after taking this out form the code above
- Code: Select all
/* Else, try an HTML5 video tag. */
{type: "html5", provider: "video",
config: {file: "<?php echo $mp4["url"]; ?>"}},
The data out is barely moving
I contacted Amazon and they are looking into this now.
Here are some of the out log files
- Code: Select all
<OperationUsage>
<ServiceName>AmazonS3</ServiceName>
<OperationName>GetObject</OperationName>
<UsageType>DataTransfer-Out-Bytes</UsageType>
<Resource>xxxxxxxxxx</Resource>
<StartTime>12/04/11 04:00:00</StartTime>
<EndTime>12/04/11 05:00:00</EndTime>
<UsageValue>19750475516</UsageValue>
</OperationUsage>
That's 18.3940637074411 18GB of transfer
- Code: Select all
<OperationUsage>
<ServiceName>AmazonS3</ServiceName>
<OperationName>GetObject</OperationName>
<UsageType>DataTransfer-Out-Bytes</UsageType>
<Resource>xxxxxxxxx</Resource>
<StartTime>12/03/11 13:00:00</StartTime>
<EndTime>12/03/11 14:00:00</EndTime>
<UsageValue>57150542691</UsageValue>
</OperationUsage>
That's 57150542691 53GB of transfer ..Impossible
Last month was not even 20% of that. The only diffrence is that I was not updating my posts.
Total posts being updated from the 1st to the 4th..I would say about 800 of them
I did not have many user log ins during those days too. Most of the post views where mine
I got this form amazon now:
At this moment we are unable to ascertain the reason for the large volume of transfer on your S3 Bucket. We have requested the relevant team to investigate your matter and we hope get back to you as soon as possible.
Sam