# Site automatically exits read-only mode when enabled by 'discourse enable\_readonly'

**URL:** <https://meta.discourse.org/t/site-automatically-exits-read-only-mode-when-enabled-by-discourse-enable-readonly/296844>\
**Category:** Development\
**Tags:** read-only\
**Created:** [February 27, 2024, 5:27am UTC](https://meta.discourse.org/t/site-automatically-exits-read-only-mode-when-enabled-by-discourse-enable-readonly/296844 "2024-02-27T05:27:12Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![RhysGoodwin](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/rhysgoodwin/32/195363_2.png) [@RhysGoodwin](https://meta.discourse.org/u/RhysGoodwin)\
**Post date:** [February 27, 2024, 6:56am UTC](https://meta.discourse.org/t/site-automatically-exits-read-only-mode-when-enabled-by-discourse-enable-readonly/296844/3 "2024-02-27T06:56:39Z")

</div>

Hi Lilly,

Thanks for your response. This is a fresh default install and I’ve not installed any plugins or created any jobs. Which logs am I best to look at? Sorry I’m a bit of a noob.

I’ve tried `tail -f` on:

```plaintext
/var/discourse/shared/standalone/log/rails/unicorn.stdout.log
/var/discourse/shared/standalone/log/rails/unicorn.stderr.log
/var/discourse/shared/standalone/log/rails/production_errors.log
/var/discourse/shared/standalone/log/rails/production.log
/var/discourse/shared/standalone/log/rails/sidekiq.log
/var/discourse/shared/standalone/log/var-log/redis/current

```

I waited for the event to occur while following the logs but I didn’t see anything that stood out.

It’s odd to me that it works perfectly when activated via the WebUI but not via cli.

---

_[View the full topic](https://meta.discourse.org/t/site-automatically-exits-read-only-mode-when-enabled-by-discourse-enable-readonly/296844)._
