# 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:** 1

<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, 5:27am UTC](https://meta.discourse.org/t/site-automatically-exits-read-only-mode-when-enabled-by-discourse-enable-readonly/296844/1 "2024-02-27T05:27:12Z")

</div>

Hi folks,

I’m setting up some automation for deployment and migration with Ansible but I’ve got an issue with read-only mode.

When I enabled read-only with:  
`docker exec app discourse enable_readonly`  
or

```plaintext
./launcher enter app
discourse enable_readonly

```

After ~1:20 the site exits read-only mode all by itself.

If I enable read-only mode via the WebUI (admin/backups section), it stays enabled until I disable it.

Any thoughts?

---

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