Hi Mike -

I don't think the files get saved to an intermediate folder. It seems most
likely that there is an issue retrieving the files from S3. Are you able to
see the files on S3?

Thanks,

Cyrus

On Tue, Sep 10, 2019 at 3:18 AM Mike Fisher <[email protected]>
wrote:

> Hi Cyrus,
>
> Unfortunately, it's hard to say--we were going through a lot of rapid dev
> solutions that may have overlapped with one another, but there is no clear
> thing that sticks out.
>
> Might it be that there's a temp folder I'm not finding to which the image
> files get downloaded from the S3 bucket? And then I'd just have to adjust
> the permissions to that folder.
>
> Thanks,
> -Mike
>
> On Monday, September 9, 2019 at 10:23:47 PM UTC+1, Cyrus Hiatt wrote:
>>
>> Hi Mike -
>>
>> I haven't run into that issue before. Any ideas regarding what might have
>> changed a month ago?
>>
>> Thanks,
>>
>> Cyrus
>>
>> On Fri, Sep 6, 2019 at 10:50 AM Mike Fisher <[email protected]> wrote:
>>
>>> All S3 permissions and settings seem to be in order, and everything
>>> worked fine until about a month ago when we started getting IOErrors on
>>> resource saves whenever that resource was related to an InfoResource with
>>> an attached media file. Then the original resource is removed from the
>>> index, creating a cascade of errors.
>>>
>>> Any ideas?
>>>
>>> IOError at
>>> /resources/INFORMATION_RESOURCE.E73/related-resources/<arches-id>
>>>
>>> [Errno 13] Permission denied: 'thumb_<filename>.jpg'
>>>
>>>
>>> Traceback:
>>> File 
>>> "/opt/au-app/env-app/lib/python2.7/site-packages/django/core/handlers/base.py"
>>>  in get_response
>>>   114.                     response = wrapped_callback(request, 
>>> *callback_args, **callback_kwargs)
>>> File 
>>> "/opt/au-app/env-app/lib/python2.7/site-packages/django/contrib/auth/decorators.py"
>>>  in _wrapped_view
>>>   22.                 return view_func(request, *args, **kwargs)
>>> File 
>>> "/opt/au-app/env-app/lib/python2.7/site-packages/django/contrib/auth/decorators.py"
>>>  in _wrapped_view
>>>   22.                 return view_func(request, *args, **kwargs)
>>> File 
>>> "/opt/au-app/env-app/lib/python2.7/site-packages/django/views/decorators/csrf.py"
>>>  in wrapped_view
>>>   57.         return view_func(*args, **kwargs)
>>> File "/opt/au-app/eamena_dev/arches/app/views/resources.py" in 
>>> resource_manager
>>>   76.             resource.save(user=request.user)
>>> File "/opt/au-app/eamena_dev/arches/app/models/resource.py" in save
>>>   85.         self._save()
>>> File "/opt/au-app/eamena_dev/arches/app/models/entity.py" in _save
>>>   278.             child = child_entity._save()
>>> File "/opt/au-app/eamena_dev/arches/app/models/entity.py" in _save
>>>   266.                     urllib.urlretrieve(self.value, tempfile_name)
>>> File "/usr/lib/python2.7/urllib.py" in urlretrieve
>>>   98.     return opener.retrieve(url, filename, reporthook, data)
>>> File "/usr/lib/python2.7/urllib.py" in retrieve
>>>   249.                 tfp = open(filename, 'wb')
>>>
>>> --
>>> -- 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].
>>> To view this discussion on the web visit
>>> https://groups.google.com/d/msgid/archesproject/dabd40d0-bd53-4863-8a0f-8ca6fb1a4501%40googlegroups.com
>>> <https://groups.google.com/d/msgid/archesproject/dabd40d0-bd53-4863-8a0f-8ca6fb1a4501%40googlegroups.com?utm_medium=email&utm_source=footer>
>>> .
>>>
>> --
> -- 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].
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/archesproject/ceea4fc7-0174-4d03-977b-64f2fa0b3c36%40googlegroups.com
> <https://groups.google.com/d/msgid/archesproject/ceea4fc7-0174-4d03-977b-64f2fa0b3c36%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
>

-- 
-- 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].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/archesproject/CAHVjc3WUwydMds2_184A5zwgCm%2BWtShrHFYmuNiUEnJ4CQ7VcA%40mail.gmail.com.

Reply via email to