# Backup to DigitalOcean Spaces fails if uploads and backup are both set to S3

**URL:** <https://meta.discourse.org/t/backup-to-digitalocean-spaces-fails-if-uploads-and-backup-are-both-set-to-s3/106916>\
**Category:** Product Support\
**Created:** [18.Январь.2019 15:21:11 UTC](https://meta.discourse.org/t/backup-to-digitalocean-spaces-fails-if-uploads-and-backup-are-both-set-to-s3/106916 "2019-01-18T15:21:11Z")\
**Posts on this page:** 1\
**Showing post:** 1

<div class="post-metadata">

**Author:** ![marcozambi](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/marcozambi/32/119505_2.png) [@marcozambi](https://meta.discourse.org/u/marcozambi)\
**Post date:** [18.Январь.2019 15:21:12 UTC](https://meta.discourse.org/t/backup-to-digitalocean-spaces-fails-if-uploads-and-backup-are-both-set-to-s3/106916/1 "2019-01-18T15:21:12Z")

</div>

Last week I finally completed the [full migration of my 120000+ upload files](https://meta.discourse.org/t/migrate-to-s3-task-fails-for-placing-too-many-requests/106305) and then realised that the backups were all failing to complete from that day on.  
Actually, entering the backup page in the Discourse setting is showing no backup at all, just the circling icon that keeps turning until it times out with an error 502 after about 30 seconds. See picture below.

 ![image](https://global.discourse-cdn.com/meta/original/3X/3/e/3e1be0cbd30d2d06f915b9476a6511fa45476596.png)

My hypothesis is that due to the large number of files stored in my DO Spaces bucket, in case the backup routine is performing a listing of the bucket content in order to check for something, then the waiting time for the response from the DO Spaces infrastructure is set too low, hence the backup process fails.

In the meantime I restored the setting for the backups to be stored locally, but still I’d assume that this is not nominal behavior, although it might be more a DO performance issue rather than a Discourse backup routine issue.

Long waiting time for DO infrastructure might have to be handled better, or maybe a listing of the content based on a aming convention shall be performed rather then trying to pull the entire listing of the file stored in the bucket (assuming this is what happens).

---

_[View the full topic](https://meta.discourse.org/t/backup-to-digitalocean-spaces-fails-if-uploads-and-backup-are-both-set-to-s3/106916)._
