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


(Carey B) #1

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


(Vinoth Kannan) #2

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


(Carey B) #3

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


(Vinoth Kannan) #4

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


(cpradio) #5

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.


(Carey B) #6

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


(Carey B) #7

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


(Carey B) #8

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


(cpradio) #9

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


(Vinoth Kannan) #10

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


(Carey B) #11

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.


(Carey B) #12

Thanks @cpradio and @vinothkannans!


(cpradio) #13

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)

Discourse.disable_readonly_mode(user_enabled: true)

(Alan Tan) #14

That is correct :slight_smile: 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.