Report this

What is the reason for this report?

botocore.exceptions.ClientError (InvalidAccessKeyId)

Posted on December 22, 2020

We are using the digital ocean spaces to offload our dev env static files. We need to run the collect static command manually to update the media and static files. The whole process was working fine for the last couple of months but I am recently facing this error. After some research, I updated the Access key id and AWS secret access key but this error remains the same. Any help would be appreciated.

Image

Code we used: docker exec -it crmbase python manage.py collectstatic --noinput



This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

If the error still persists even after updating your access key ID and AWS secret access key, there might be other factors causing this issue.

Here are a few items to check:

1. Permissions: Make sure that the keys you’re using have the required read and write permissions to Spaces. You might have to revise your IAM policies.

2. CORS Configuration: Ensure that your CORS configuration is set up correctly. Misconfigurations often lead to such issues.

3. Environment available inside Docker: In some cases, the environment variables may not be available inside Docker. Make sure the environment variables are accessible within your Docker container.

For more detailed assistance, it would help if I could see the specific error message you’re facing. If these suggestions don’t help, you might want to reach out to DigitalOcean’s support team for a more detailed analysis of your issue.

You can also explore the DigitalOcean Spaces documentation for further assistance with Spaces.

Hope that this helps!

The developer cloud

Scale up as you grow — whether you're running one virtual machine or ten thousand.

Get started for free

Sign up and get $200 in credit for your first 60 days with DigitalOcean.*

*This promotional offer applies to new accounts only.