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
The site is now fully operable.
root@forum:/var/www/discourse#
  1. ./launcher enter web_only

  2. 그 후에도 메인 페이지에 “읽기 전용” 배너가 여전히 표시됩니다.

즉, 문제는 아직 해결되지 않았습니다 …

… 네, 이제 rails c 커맨드라인 정보를 이용해 이 문제를 해결할 수 있게 되었습니다.
하지만 어쨌든 이 부분은 개선되어야 합니다. 예를 들어, 읽기 전용 모드에서도 UX를 통해 관리자 작업을 수행할 수 있도록 토큰이 포함된 특수한 로그인 URL을 제공하는 방안이 있을 수 있습니다.