# The upload of a backup seems to be allowed in read-only mode

**URL:** https://meta.discourse.org/t/the-upload-of-a-backup-seems-to-be-allowed-in-read-only-mode/79386
**Category:** Bug
**Tags:** read-only
**Created:** [January 30, 2018, 7:54pm UTC](https://meta.discourse.org/t/the-upload-of-a-backup-seems-to-be-allowed-in-read-only-mode/79386 "2018-01-30T19:54:57Z")
**Posts on this page:** 8
**Page:** 1

<div class="post-metadata">

### Author: ![dax](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/dax/32/244677_2.png) [@dax](https://meta.discourse.org/u/dax)
#### Post date: [January 30, 2018, 7:54pm UTC](https://meta.discourse.org/t/the-upload-of-a-backup-seems-to-be-allowed-in-read-only-mode/79386/1 "2018-01-30T19:54:57Z")

</div>

If you are in **read-only mode** and you try to upload a backup via gui, the site go ahead and seems to upload the backup even if this is not true.

When you are in read-only mode there should be an alert telling you that you can not load the backup before you disable that mode.

---

<div class="post-metadata">

### Author: ![codinghorror](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/codinghorror/32/110067_2.png) [@codinghorror](https://meta.discourse.org/u/codinghorror)
#### Post date: [January 30, 2018, 10:42pm UTC](https://meta.discourse.org/t/the-upload-of-a-backup-seems-to-be-allowed-in-read-only-mode/79386/2 "2018-01-30T22:42:09Z")

</div>

Hmm shouldn’t uploading a backup be OK in read only mode? I am not sure, @zogstrip?

---

<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: [January 30, 2018, 11:11pm UTC](https://meta.discourse.org/t/the-upload-of-a-backup-seems-to-be-allowed-in-read-only-mode/79386/6 "2018-01-30T23:11:30Z")

</div>

🤔 I just tested and uploading a backup while in **read-only** mode works as expected.

@dax do you have a repro?

---

<div class="post-metadata">

### Author: ![jomaxro](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jomaxro/32/126216_2.png) [@jomaxro](https://meta.discourse.org/u/jomaxro)
#### Post date: [January 30, 2018, 11:12pm UTC](https://meta.discourse.org/t/the-upload-of-a-backup-seems-to-be-allowed-in-read-only-mode/79386/7 "2018-01-30T23:12:43Z")

</div>

Did the backup show up? I was able to upload and get the “uploaded successfully” message, but the backup never appeared in the list.

---

<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: [January 30, 2018, 11:15pm UTC](https://meta.discourse.org/t/the-upload-of-a-backup-seems-to-be-allowed-in-read-only-mode/79386/8 "2018-01-30T23:15:31Z")

</div>

> [@jomaxro](#):
>
> but the backup never appeared in the list

They take a little while to appear since there is a background task that needs to run in sidekiq to merge the uploaded chunks. Waiting one minute is often enough.

PRO TIP: clicking Logs and then Backups will force a refresh of the backups list.

---

<div class="post-metadata">

### Author: ![codinghorror](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/codinghorror/32/110067_2.png) [@codinghorror](https://meta.discourse.org/u/codinghorror)
#### Post date: [January 30, 2018, 11:21pm UTC](https://meta.discourse.org/t/the-upload-of-a-backup-seems-to-be-allowed-in-read-only-mode/79386/9 "2018-01-30T23:21:30Z")

</div>



---

<div class="post-metadata">

### Author: ![codinghorror](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/codinghorror/32/110067_2.png) [@codinghorror](https://meta.discourse.org/u/codinghorror)
#### Post date: [January 30, 2018, 11:22pm UTC](https://meta.discourse.org/t/the-upload-of-a-backup-seems-to-be-allowed-in-read-only-mode/79386/10 "2018-01-30T23:22:01Z")

</div>

Closing this but clearly the UI message presented should warn about the refresh @zogstrip that’s the real “bug” here.. and should be fixed.

---

<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: [January 31, 2018, 11:05am UTC](https://meta.discourse.org/t/the-upload-of-a-backup-seems-to-be-allowed-in-read-only-mode/79386/11 "2018-01-31T11:05:24Z")

</div>

I’ve added some code to push the new list of backups once the file is merged so it automagically updates 🎆

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

Also, here’s the new message

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