読み取り専用モードを無効にできません

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

「いいね!」 1

It depends on how you trigger readonly mode.

https://github.com/discourse/discourse/blob/master/lib/discourse.rb#L291-L295

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

https://github.com/discourse/discourse/blob/master/lib/discourse.rb#L256-L259

「いいね!」 3

Thanks

This command in rails did the trick

Discourse.disable_readonly_mode(Discourse::USER_READONLY_MODE_KEY)

「いいね!」 12

最新の Discourse バージョンでも同じ問題が発生しています。

  1. web_only コンテナ内から
root@forum:/var/www/discourse# discourse disable_readonly
The site is now fully operable.
root@forum:/var/www/discourse#
  1. ./launcher enter web_only

  2. その後、メインページに「読み取り専用」バナーが表示されたままです。

したがって、問題はまだ解決していません…

…わかりました。これでレールcコマンドライン情報で解決できました。
しかし、いずれにしても、これは改善されるべきです。たとえば、読み取り専用モードでもUXから管理操作を許可するトークン付きの特別なログインURLを用意するなどです。

このトピックは2426日後に自動的に閉じられました。新しい返信は許可されなくなりました。