# 如何在论坛只读模式下登录我的论坛？

**URL:** <https://meta.discourse.org/t/how-to-log-in-my-forum-when-the-forum-is-in-read-only-mode/239159>\
**Category:** Support\
**Tags:** read-only\
**Created:** [2022年九月16日 03:01 UTC](https://meta.discourse.org/t/how-to-log-in-my-forum-when-the-forum-is-in-read-only-mode/239159 "2022-09-16T03:01:36Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![ChanTallyagora](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/chantallyagora/32/232817_2.png) [@ChanTallyagora](https://meta.discourse.org/u/ChanTallyagora)\
**Post date:** [2022年九月16日 03:01 UTC](https://meta.discourse.org/t/how-to-log-in-my-forum-when-the-forum-is-in-read-only-mode/239159/1 "2022-09-16T03:01:36Z")

</div>

我的论坛现在处于只读模式，作为管理员，如果我无法登录，就无法关闭只读模式。但是当我登录时，它显示：论坛现在处于只读模式，所以我无法登录。

---

<div class="post-metadata">

**Author:** ![Alexander](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/alexander/32/497634_2.png) [@Alexander](https://meta.discourse.org/u/Alexander)\
**Post date:** [2022年九月16日 03:28 UTC](https://meta.discourse.org/t/how-to-log-in-my-forum-when-the-forum-is-in-read-only-mode/239159/2 "2022-09-16T03:28:04Z")

</div>

我不确定，但 `/u/admin-login` 路径是否可以绕过只读模式？🤔

> [@Log back in as admin after locking yourself out with read-only mode or an invalid SSO configuration](https://meta.discourse.org/t/log-back-in-as-admin-after-locking-yourself-out-with-read-only-mode-or-an-invalid-sso-configuration/89605):
>
> bookmark This guide explains how to log back into Discourse as an admin when you have been locked out. person_raising_hand Required user level: Administrator If you’ve locked yourself out of your Discourse instance with an invalid SSO configuration, append /u/admin-login to the end of your forum’s root URL: https://discourse.example.com/u/admin-login This will take you to an admin login page: You’ll be sent an email with a login link that circumvents SSO and read-…

---

<div class="post-metadata">

**Author:** ![itsbhanusharma](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/itsbhanusharma/32/180717_2.png) [@itsbhanusharma](https://meta.discourse.org/u/itsbhanusharma)\
**Post date:** [2022年九月16日 03:38 UTC](https://meta.discourse.org/t/how-to-log-in-my-forum-when-the-forum-is-in-read-only-mode/239159/3 "2022-09-16T03:38:26Z")

</div>

您好，

如果您没有打开启用只读模式的浏览器窗口，您将需要通过命令行禁用只读模式。

以下是一些帮助：

> [@Cant disable read-only mode](https://meta.discourse.org/t/cant-disable-read-only-mode/72242/2?u=itsbhanusharma):
>
> It depends on how you trigger readonly mode. [https://github.com/discourse/discourse/blob/master/lib/discourse.rb#L291-L295](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](https://github.com/discourse/discourse/blob/master/lib/discourse.rb#L256-L259)

---

<div class="post-metadata">

**Author:** ![ChanTallyagora](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/chantallyagora/32/232817_2.png) [@ChanTallyagora](https://meta.discourse.org/u/ChanTallyagora)\
**Post date:** [2022年十一月28日 03:07 UTC](https://meta.discourse.org/t/how-to-log-in-my-forum-when-the-forum-is-in-read-only-mode/239159/4 "2022-11-28T03:07:22Z")

</div>

不行，它向我显示了这个

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

```
