Closed briancaffey closed 4 years ago
@briancaffey Did you manage to solve this? I'm having exactly the same problem from my AWS fargate django container :(
@mhoonjeon sorry, I think this was an issue with celery and I think it was resolved by upgrading celery packages. Are you still having the issue? Sorry for the late reply!
Thanks @briancaffey.
For me though, this was a problem with multiple rows in one of the django table sharing the same image . Specifically, my Event model was set to use a default image when a user does not upload one. This means thousands of event instances was referencing the same image in S3 bucket as their image.
Removing duplicate in DB rows solved this for me. Hope this helps someone else.
I'm trying to download a file from S3 during a celery task that is running on a container in a Fargate task. It is working, but fails sometimes with logs that are difficult for me to interpret.
I'm using django-storages, so the file is accessed like this:
The bucket and fargate task are both in
us-east-1
.The file does exist and has data; I can download it an verify this, even though some of the logs make it look like the file is empty.
The files I am working with are about 15MB in size, and most of them are able to be downloaded and processed just fine.
For some files this is failing with the following logs: