# Incorrect combination of Site Settings (related to s3) can bring the site down

**URL:** <https://meta.discourse.org/t/incorrect-combination-of-site-settings-related-to-s3-can-bring-the-site-down/33353>\
**Category:** Bug\
**Created:** [16 Septiembre, 2015 13:36 UTC](https://meta.discourse.org/t/incorrect-combination-of-site-settings-related-to-s3-can-bring-the-site-down/33353 "2015-09-16T13:36:18Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![mc0e](https://avatars.discourse-cdn.com/v4/letter/m/c77e96/32.png) [@mc0e](https://meta.discourse.org/u/mc0e)\
**Post date:** [16 Septiembre, 2015 13:36 UTC](https://meta.discourse.org/t/incorrect-combination-of-site-settings-related-to-s3-can-bring-the-site-down/33353/1 "2015-09-16T13:36:18Z")

</div>

Continuing the discussion from [500 error in AWS s3 code](https://meta.discourse.org/t/500-error-in-aws-s3-code/33333/8):

> [@500 error in AWS s3 code](https://meta.discourse.org/t/500-error-in-aws-s3-code/33333/8):
>
> Looks like I had `SiteSetting.enable_s3_uploads` set, which is quite understandably incompatible with not setting `SiteSetting.s3_upload_bucket`, but it should be handled more gracefully.

My support request has quite reasonably been closed, but it appears that it’s possible to lock oneself out of the admin interface and the entire web site through an incorrect combination of settings, which should be treated as a bug.

---

<div class="post-metadata">

**Author:** ![zogstrip](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/zogstrip/32/512781_2.png) [@zogstrip](https://meta.discourse.org/u/zogstrip)\
**Post date:** [16 Septiembre, 2015 13:56 UTC](https://meta.discourse.org/t/incorrect-combination-of-site-settings-related-to-s3-can-bring-the-site-down/33353/2 "2015-09-16T13:56:27Z")

</div>

I just added a fix that will make sure we have set a bucket before enabling backups to S3 🪲

[https://github.com/discourse/discourse/commit/5277ec1ac07fcddbfb240fb700dcf89b1c0992cb](https://github.com/discourse/discourse/commit/5277ec1ac07fcddbfb240fb700dcf89b1c0992cb)

---

<div class="post-metadata">

**Author:** ![zogstrip](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/zogstrip/32/512781_2.png) [@zogstrip](https://meta.discourse.org/u/zogstrip)\
**Post date:** [16 Septiembre, 2015 13:56 UTC](https://meta.discourse.org/t/incorrect-combination-of-site-settings-related-to-s3-can-bring-the-site-down/33353/3 "2015-09-16T13:56:29Z")

</div>


