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개 답변
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
답변함 일 년 전

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인

관련 콘텐츠