Cant disable read-only mode

I enabled read-only mode on my forums and im not able to disable it.

I cant disable read-only mode via the /admin/backups because i cant login.


entering the docker image and disabling it via rails does not work either.

rails c
Discourse.disable_readonly_mode

entering the docker image and running

discourse disable_readonly

does not work either.


Anything im missing?

sorry if the bug category is not the correct category. I think this might be a bug

It depends on how you trigger readonly mode.

There is a list of keys that you can pass to Postgres depending on how you trigger it

Thanks

This command in rails did the trick

Discourse.disable_readonly_mode(Discourse::USER_READONLY_MODE_KEY)

У меня та же проблема в последней версии Discourse.

  1. Изнутри контейнера web_only
root@forum:/var/www/discourse# discourse disable_readonly
Сайт теперь полностью работоспособен.
root@forum:/var/www/discourse#
  1. ./launcher enter web_only

  2. После этого на главной странице всё ещё отображается баннер «Только для чтения».

Таким образом, проблема ещё не решена…

… хорошо, я смог решить это сейчас с помощью информации командной строки rails c.
Но в любом случае, это следует улучшить: например, может быть специальный URL для входа с токеном, который позволит выполнять административные операции из интерфейса даже в режиме только для чтения.