Hello, my discourse server is stuck in maintenance mode.
I have left it in maintenance mode for several months on purpose, I’ve upgraded to many versions since initially setting it to maintenance mode.
My session has expired and I’ve been logged out, now I can’t log back in.
I can SSH to the discourse server.
I have tried the following steps:
SSH to discourse server
navigate to /var/discourse/
run: ./launcher enter app
run rails c
I have tried several things to disable maintenance mode here.
Nothing I did was able to get me out of the state.
After Discourse.disable_readonly_mode(Discourse::USER_READONLY_MODE_KEY) it goes to R/W for a second and reverts back to R/O just afterwards. Nothing discernible in logs. Even flushing Redis doesn’t help. Nor clearing the redis keys by hand.
This is very likely a bug as reverting 2.8.7 to 2.8.3 (which was my previous functional version) corrected the issue.
I tried going through the code to figure out where the bug was introduced, but couldn’t actually figure it out.