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 Antwort
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
beantwortet vor einem Jahr

Du bist nicht angemeldet. Anmelden um eine Antwort zu veröffentlichen.

Eine gute Antwort beantwortet die Frage klar, gibt konstruktives Feedback und fördert die berufliche Weiterentwicklung des Fragenstellers.

Richtlinien für die Beantwortung von Fragen