Error deploying Django application that serves static files from an S3 Bucket

0

So the deployment process was going smoothly and well for a long time, with no errors, no failures, no nothing.
However, suddenly the following error starts to appear:

botocore.exceptions.ClientError: An error occurred (AccessDenied) when calling the DeleteObject operation: Access Denied  
Error while running '$ python manage.py collectstatic --noinput'.

I changed literally nothing to my AWS S3 configuration, and never experienced such a problem, any help??

1 Answer
0

The error points to be not having access to delete some thing from the s3 bucket. There can be two things:-

  • The application is trying to delete some object from the bucket, but it cant because there is no permission to do so, you can update the role policy and add permissions.
  • The policy was changed and delete permission was removed, which will again require adding back the permission.
AWS
Rishi
answered a year ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions