S3-Assembly with s3/cache-control-header won't finish
I modified a so far working template so s3-headers would be
set:
[...]
"headers": {
"Content-Type": "${file.mime}",
"Cache-Control": "max-age=315360000",
"FileURL":"${file.url_name}"
},
[...]
The Assembly won't finish (after 5min with only one image, I canceled the job).
See Assembly 10e32568296fa620836d272f72628349
Comments are currently closed for this discussion. You can start a new one.
Support Staff 2 Posted by tim on 21 Feb, 2012 02:05 PM
Well if the assembly does not throw an error, you should not cancel it.
We sometimes have unpredicted high load which cause elevated queue times.
For images, you should give it at least 5 to 10minutes time.
3 Posted by rtl on 21 Feb, 2012 06:05 PM
I just got the same result:
Test 1: with s3/"header"
Objekt: 1 Image... not finishing after >10min (still running now)
Template 489d7412cbb1482eb6744547e5818216
Assembly 583b43dd837f9a8e5252bc07ef5fe0b1
Test 2: without s3/"header"
Objekt: Same Image... done in 3 seconds
Template a48e6d18a6504ebb8e9fd8cd37c94215
Assembly 1e30dcc1185ab9605322343c37c0383d
The only difference is the used template with/without the "header"-attributes.
4 Posted by rtl on 22 Feb, 2012 06:19 PM
The assembly failed after 12min with S3_STORE_CONFIRMATION_FAILURE
See Assembly 583b43dd837f9a8e5252bc07ef5fe0b1
Any clue what went wrong?
Support Staff 5 Posted by tim on 01 Mar, 2012 04:43 PM
Hey rtl,
sorry for the delayed response. It seems this was an amazon problem.
This is the error that was logged (coming from amazon ...):
"The stored file did not show up in the S3 bucket, even so multiple attempts have been made to store it. Amazon has a bad day : /".
I am sorry about this, but I have to ask you to replay the assembly. : /
Kind regards,
Tim
6 Posted by rtl on 02 Mar, 2012 11:01 AM
Thank you for getting back to me.
Current test with in both cases the same file - no change in behaviour:
Assembly 74a9463930a97d844174eb2e922fd0f1, still running
Assembly eb0746cc5ec70119c5d510eaee8220fa, completed after 3 sec
Am I doing anything wrong in my template? Maybe I choose max-age to big with 315360000?
At the moment your website isn't responding for me. So I have to test this later.
7 Posted by rtl on 02 Mar, 2012 12:09 PM
Doesn't work with lower max-age-values: e.g. "max-age=3153600"
see Assembly 89ed02b5f839b140b439eb0db0468695
Support Staff 8 Posted by Felix Geisendörfer on 05 Mar, 2012 07:50 AM
I just looked into this, but I'm not entirely sure what is going on yet. What's the
FileURLheader you are setting for? Does the problem occur when not specifying that header?--fg
9 Posted by rtl on 05 Mar, 2012 08:37 AM
That's it. In removing the FileURL header the problem disappeared. Thank you.
rtl closed this discussion on 05 Mar, 2012 09:07 AM.