# Digital Ocean forum locked in read only mode after upgrade this morning

**URL:** https://meta.discourse.org/t/digital-ocean-forum-locked-in-read-only-mode-after-upgrade-this-morning/49276
**Category:** Support
**Tags:** read-only
**Created:** [August 26, 2016, 1:14pm UTC](https://meta.discourse.org/t/digital-ocean-forum-locked-in-read-only-mode-after-upgrade-this-morning/49276 "2016-08-26T13:14:02Z")
**Posts on this page:** 15
**Page:** 1

<div class="post-metadata">

### Author: ![Bernstein](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/bernstein/32/304070_2.png) [@Bernstein](https://meta.discourse.org/u/Bernstein)
#### Post date: [August 26, 2016, 1:14pm UTC](https://meta.discourse.org/t/digital-ocean-forum-locked-in-read-only-mode-after-upgrade-this-morning/49276/1 "2016-08-26T13:14:02Z")

</div>

Can someone offer some urgent help/illumination? We’ve tried just about everything, including rebuilding, but the forum remains in read only mode. The upgrade completed successfully about an hour ago. I’m working with @vinothkannans to try and repair it but so far no luck. [http://forum.basecamp33.com](http://forum.basecamp33.com)

---

<div class="post-metadata">

### Author: ![vinothkannans](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/vinothkannans/32/86465_2.png) [@vinothkannans](https://meta.discourse.org/u/vinothkannans)
#### Post date: [August 26, 2016, 1:22pm UTC](https://meta.discourse.org/t/digital-ocean-forum-locked-in-read-only-mode-after-upgrade-this-morning/49276/2 "2016-08-26T13:22:14Z")

</div>

> [@How can Admin login while Read-only mode is enabled on multisite?](https://meta.discourse.org/t/how-can-admin-login-while-read-only-mode-is-enabled-on-multisite/23976/2):
>
> you could try the following
> 
> ./launcher enter app  
> rails c  
> Discourse.disable\_readonly\_mode

I already tried in command line too. Above commands running successfully and disabling read-only mode for few seconds. After that it again going back to read-only mode

---

<div class="post-metadata">

### Author: ![Bernstein](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/bernstein/32/304070_2.png) [@Bernstein](https://meta.discourse.org/u/Bernstein)
#### Post date: [August 26, 2016, 1:55pm UTC](https://meta.discourse.org/t/digital-ocean-forum-locked-in-read-only-mode-after-upgrade-this-morning/49276/3 "2016-08-26T13:55:39Z")

</div>

Any other ideas, @vinothkannans? If I knew this could happen, I never would’ve upgraded.

---

<div class="post-metadata">

### Author: ![vinothkannans](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/vinothkannans/32/86465_2.png) [@vinothkannans](https://meta.discourse.org/u/vinothkannans)
#### Post date: [August 26, 2016, 1:59pm UTC](https://meta.discourse.org/t/digital-ocean-forum-locked-in-read-only-mode-after-upgrade-this-morning/49276/4 "2016-08-26T13:59:14Z")

</div>

No. It will not happen frequently. I did upgrade many times and I didn’t faced any issues like this. It’s strange. I think somehow upgrade is broken

---

<div class="post-metadata">

### Author: ![cpradio](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/cpradio/32/4970_2.png) [@cpradio](https://meta.discourse.org/u/cpradio)
#### Post date: [August 26, 2016, 2:01pm UTC](https://meta.discourse.org/t/digital-ocean-forum-locked-in-read-only-mode-after-upgrade-this-morning/49276/5 "2016-08-26T14:01:12Z")

</div>

Actually, this is purely a guess, but when when this happened to me, it was because I used the “Read Only Mode” button on the Admin \> Backups area. That button actually did nothing, and has since been fixed. When the fix was applied, it put the Discourse instance into Read Only mode. I had to go back to Admin \> Backups to disable Read Only mode.

---

<div class="post-metadata">

### Author: ![Bernstein](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/bernstein/32/304070_2.png) [@Bernstein](https://meta.discourse.org/u/Bernstein)
#### Post date: [August 26, 2016, 2:04pm UTC](https://meta.discourse.org/t/digital-ocean-forum-locked-in-read-only-mode-after-upgrade-this-morning/49276/6 "2016-08-26T14:04:01Z")

</div>

Thanks for the suggestion @cpradio, I tried disabling that this morning but it said I can’t make changes during read only mode.

---

<div class="post-metadata">

### Author: ![Bernstein](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/bernstein/32/304070_2.png) [@Bernstein](https://meta.discourse.org/u/Bernstein)
#### Post date: [August 26, 2016, 2:07pm UTC](https://meta.discourse.org/t/digital-ocean-forum-locked-in-read-only-mode-after-upgrade-this-morning/49276/7 "2016-08-26T14:07:47Z")

</div>

Sorry @cpradio, that WAS the fix, I was in Settings\>Backup but just found the setting you mentioned under Admin\>Backup. Thanks so much!

---

<div class="post-metadata">

### Author: ![Bernstein](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/bernstein/32/304070_2.png) [@Bernstein](https://meta.discourse.org/u/Bernstein)
#### Post date: [August 26, 2016, 2:09pm UTC](https://meta.discourse.org/t/digital-ocean-forum-locked-in-read-only-mode-after-upgrade-this-morning/49276/8 "2016-08-26T14:09:44Z")

</div>

No. Same thing is happening. It keeps reverting back to read only mode.

---

<div class="post-metadata">

### Author: ![cpradio](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/cpradio/32/4970_2.png) [@cpradio](https://meta.discourse.org/u/cpradio)
#### Post date: [August 26, 2016, 2:11pm UTC](https://meta.discourse.org/t/digital-ocean-forum-locked-in-read-only-mode-after-upgrade-this-morning/49276/9 "2016-08-26T14:11:17Z")

</div>

Okay, if it is kicking itself into read-only mode, then something else is going on. Are you running low on Disk Space?

---

<div class="post-metadata">

### Author: ![vinothkannans](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/vinothkannans/32/86465_2.png) [@vinothkannans](https://meta.discourse.org/u/vinothkannans)
#### Post date: [August 26, 2016, 2:13pm UTC](https://meta.discourse.org/t/digital-ocean-forum-locked-in-read-only-mode-after-upgrade-this-morning/49276/10 "2016-08-26T14:13:13Z")

</div>

Wow great 👌. Since am unable to login as admin I didn’t tried it myself. But why am unable to override this action in console mode 😕. Anyway thanks @cpradio

---

<div class="post-metadata">

### Author: ![Bernstein](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/bernstein/32/304070_2.png) [@Bernstein](https://meta.discourse.org/u/Bernstein)
#### Post date: [August 26, 2016, 2:13pm UTC](https://meta.discourse.org/t/digital-ocean-forum-locked-in-read-only-mode-after-upgrade-this-morning/49276/11 "2016-08-26T14:13:15Z")

</div>

I ran through the same sequence again, also disabled read only during backups, and reloaded all instances (I have a desktop logged in as a user and my phone is logged in under an admin account) So far, it’s sticking.

---

<div class="post-metadata">

### Author: ![Bernstein](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/bernstein/32/304070_2.png) [@Bernstein](https://meta.discourse.org/u/Bernstein)
#### Post date: [August 26, 2016, 2:13pm UTC](https://meta.discourse.org/t/digital-ocean-forum-locked-in-read-only-mode-after-upgrade-this-morning/49276/12 "2016-08-26T14:13:45Z")

</div>

Thanks @cpradio and @vinothkannans!

---

<div class="post-metadata">

### Author: ![cpradio](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/cpradio/32/4970_2.png) [@cpradio](https://meta.discourse.org/u/cpradio)
#### Post date: [August 26, 2016, 2:16pm UTC](https://meta.discourse.org/t/digital-ocean-forum-locked-in-read-only-mode-after-upgrade-this-morning/49276/13 "2016-08-26T14:16:09Z")

</div>

Probably because your command would have to be a bit different than the post you linked to.

You would have had to run (I think)

```plaintext
Discourse.disable_readonly_mode(user_enabled: true)

```

---

<div class="post-metadata">

### Author: ![tgxworld](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/tgxworld/32/106117_2.png) [@tgxworld](https://meta.discourse.org/u/tgxworld)
#### Post date: [August 26, 2016, 2:35pm UTC](https://meta.discourse.org/t/digital-ocean-forum-locked-in-read-only-mode-after-upgrade-this-morning/49276/14 "2016-08-26T14:35:43Z")

</div>

That is correct 🙂 I introduced the `user_enabled` option which will add a non expiring key into Redis instead of an expiring key which is kept alive by a thread that renews it every 30 seconds. However, the downside is that the key will expire once we do a rebuild.

---

<div class="post-metadata">

### Author: ![JammyDodger](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jammydodger/32/254611_2.png) [@JammyDodger](https://meta.discourse.org/u/JammyDodger)
#### Post date: [June 8, 2024, 12:45pm UTC](https://meta.discourse.org/t/digital-ocean-forum-locked-in-read-only-mode-after-upgrade-this-morning/49276/15 "2024-06-08T12:45:19Z")

</div>

This topic was automatically closed after 2842 days. New replies are no longer allowed.
