Hello
I have configured the setting to use a digital ocean storage.
Here are the main settings:
AWS_ACCESS_KEY_ID = 'xxx'
AWS_SECRET_ACCESS_KEY = 'xx/PrLAEkM8'
AWS_STORAGE_BUCKET_NAME = 'myname'
AWS_S3_ENDPOINT_URL = 'https://fra1.digitaloceanspaces.com'
AWS_S3_OBJECT_PARAMETERS = {
'CacheControl': 'max-age=86400',
}
AWS_LOCATION = 'staticescaping'
AWS_DEFAULT_ACL = 'public-read'
STATIC_URL = '{}/{}/'.format(AWS_S3_ENDPOINT_URL, AWS_LOCATION)
STATICFILES_STORAGE = 'storages.backends.s3boto3.S3Boto3Storage'
Then I run collectstatic, and several statics files appear in the server but then an error appear:
botocore.exceptions.ClientError: An error occurred () when calling the PutObject operation:
I think that is an internal error of storage. Could be?
Thanks
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.
I have the same exact issue. Anyone at DigitalOcean able to shed some light on this?
@chugharyan816 I was talking with support and the error seams to be the upload cadence that is to high.
I used only for media images. Another options is to use another cloud provider like S3. That works perfectly.
If not you could make a custom script to upload the images to storage.
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Scale up as you grow — whether you're running one virtual machine or ten thousand.

From GPU-powered inference and Kubernetes to managed databases and storage, get everything you need to build, scale, and deploy intelligent applications.
