Adam,
Thanks for you help and suggestions.  I tried a variety of different things 
but what seems to work (at this point at least) was covered in this link:

http://stackoverflow.com/questions/15853928/django-compressor-heroku-s3-request-has-expired

I added AWS_QUERYSTRING_AUTH = False  to my settings.py in our application 
and then reinstalled the application.  I am tentatively optimistic as it 
has now been over 3 hours and the media seem to be showing up just fine.

This is frustrating as I still don't know what the issue was and don't 
fully understand how this solved the problem.  Not sure why the photos were 
expiring in the reports but not in the editing forms, seems as if that 
should be consistent.  

Anyway, if things change I'll update this post.  Thanks again for your help.

Andy

On Wednesday, October 14, 2015 at 12:36:57 PM UTC-7, Adam Cox wrote:
>
> Hi Andy, this is an interested problem.  After checking around, it seems 
> like the time/time zone of your server may be out of sync, or perhaps it's 
> an issue with time on the S3 end of things.  As you can see in the error 
> you posted, the request time was actually 28 min, 58 sec after the 
> expiration time.
>
> I haven't had this problem before, but hopefully these resources will get 
> you on your on way...
>
> http://stackoverflow.com/questions/15853928/django-compressor-heroku-s3-request-has-expired
> https://devot-ee.com/add-ons/support/link-vault/viewthread/11174
>
> Be sure to respond with what you find out, it may be worth adding a note 
> in the documentation.
>
> On Wednesday, October 14, 2015 at 1:09:46 PM UTC-5, Andy Graham wrote:
>>
>> Hello,
>> We have been working on developing our own Arches application with 
>> Farallon and I am running into an issue with our Media.
>>
>> We have things set up so that photos and other scanned documents show up 
>> in their own reports.  We are running Arches on AWS EC2 along with storing 
>> our media files on S3.  We followed the S3 setup based on the HIP read the 
>> docs which was very helpful.
>>
>> The issue is when I load Media (either through a .arches file or manually 
>> through the forms) I can see the media in the reports and in the editing 
>> forms, however, after about an hour after upload the media disappear from 
>> the reports and are replaced with a "Photo Not Available" sign.  If I click 
>> on the edit button and go to the editing forms for the media, the media 
>> appear in the forms just fine.  If I change one of the options on the forms 
>> and save the media again it shows up in the report no problem (I am 
>> currently waiting to see if it will disappear again after an hour).  If I 
>> turn on the "developer tools" for the browser when I go to the report for 
>> the media an error shows up that says "Failed to load resource: the server 
>> responded with a status of 403 (Forbidden)" and it shows a link to media on 
>> S3.  Clicking on that link results in the following message:
>>
>>  <Error>
>> <Code>AccessDenied</Code>
>> <Message>Request has expired</Message>
>> <Expires>2015-10-14T17:36:11Z</Expires>
>> <ServerTime>2015-10-14T18:05:09Z</ServerTime>
>> <RequestId>2E34A2EC33077671</RequestId>
>> <HostId>
>>
>> yDXfLxjgWdFAXxfuzJgJEbbvtgiqqvRLj4Uivd08krNFJKUY+zrztDb8zxv6aBw0x7zOGglgwuM=
>> </HostId>
>> </Error>
>>
>> This is definitely not my area of expertise, I am learning a lot of this 
>> stuff on the fly.  It appears as though the issue may have something to do 
>> with S3 and the request timing out?  Any addition information or 
>> suggestions are appreciated.  Thanks.
>>
>> Andy
>>
>

-- 
-- To post, send email to [email protected]. To unsubscribe, send 
email to [email protected]. For more information, 
visit https://groups.google.com/d/forum/archesproject?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"Arches Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to