Unable to login as admin after enabling read only mode

(Ultra Noob) #1

My site says “Login is disabled while the site is in read only mode?” so I cannot log in:

(Bhanu Sharma) #2

Visit yoursite.com/u/admin-login i.e. help.gulshankumar.net/u/admin-login and then try to log in if that works?

(Ultra Noob) #3


Thanks for the response. I tried, it says -

{"errors":["The site is in read only mode. Interactions are disabled."],"error_type":"read_only"}

(Bhanu Sharma) #4

Depending upon how you enabled the read only mode, here is some help:


(Ultra Noob) #5

I had enabled read-only mode from admin area from where we do backup.

(Bhanu Sharma) #6

Second option I suggested above should work for you. Please do not log out the next time you put your forum into read only mode.

Ps: Try searching before posting a new query, You may find your solution into a similar question asked by someone else.

(Ultra Noob) #7

Sorry, I couldn’t understand above written steps. Do I need to edit any code? :thinking:

(Bhanu Sharma) #8

You don’t have to edit anything. Just ssh into your discourse server and do the following:

cd /var/discourse
./launcher enter app
rails c

(Ultra Noob) #9

I hope everything is fine.

(Bhanu Sharma) #10

Try again, You may have entered the commands incorrectly. It should return like this:

(Ultra Noob) #11

I replicated above steps. Still, site is showing in the read-only mode.


(Ultra Noob) #12

Not working.


Thanks a lot. Now I am able to login.