# Unable to login as admin after enabling read only mode

**URL:** <https://meta.discourse.org/t/unable-to-login-as-admin-after-enabling-read-only-mode/85362>\
**Category:** Product Support\
**Tags:** read-only\
**Created:** [15 april 2018 om 08:08 UTC](https://meta.discourse.org/t/unable-to-login-as-admin-after-enabling-read-only-mode/85362 "2018-04-15T08:08:07Z")\
**Posts on this page:** 1\
**Showing post:** 8

<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:** [15 april 2018 om 08:34 UTC](https://meta.discourse.org/t/unable-to-login-as-admin-after-enabling-read-only-mode/85362/8 "2018-04-15T08:34:37Z")

</div>

You don’t have to edit anything. Just ssh into your discourse server and do the following:

> cd /var/discourse  
> ./launcher enter app  
> rails c  
> Discourse.disable\_readonly\_mode(Discourse::USER\_READONLY\_MODE\_KEY)

---

_[View the full topic](https://meta.discourse.org/t/unable-to-login-as-admin-after-enabling-read-only-mode/85362)._
