# Can't log out of read-only mode

**URL:** <https://meta.discourse.org/t/cant-log-out-of-read-only-mode/39922>\
**Category:** Bug\
**Tags:** read-only\
**Created:** [2016年二月21日 10:35 UTC](https://meta.discourse.org/t/cant-log-out-of-read-only-mode/39922 "2016-02-21T10:35:40Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![dandv](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/dandv/32/169779_2.png) [@dandv](https://meta.discourse.org/u/dandv)\
**Post date:** [2016年二月21日 10:35 UTC](https://meta.discourse.org/t/cant-log-out-of-read-only-mode/39922/1 "2016-02-21T10:35:40Z")

</div>

I wanted to log out of read-only mode to test logging in with 3rd party services, but got this error:

> DELETE [https://forum.quantifiedself.com/session/Dan\_Dascalescu](https://forum.quantifiedself.com/session/Dan_Dascalescu) 405 (Method Not Allowed)

(followed by a bunch of Ember errors).

It makes sense to not be able to delete my session if the DB is read-only, but perhaps better handling is possible.

---

<div class="post-metadata">

**Author:** ![codinghorror](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/codinghorror/32/110067_2.png) [@codinghorror](https://meta.discourse.org/u/codinghorror)\
**Post date:** [2016年二月21日 18:41 UTC](https://meta.discourse.org/t/cant-log-out-of-read-only-mode/39922/2 "2016-02-21T18:41:49Z")

</div>

Sure @tgxworld can you add code to this path that skips the logout attempt when the site is read only?

---

<div class="post-metadata">

**Author:** ![tgxworld](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/tgxworld/32/106117_2.png) [@tgxworld](https://meta.discourse.org/u/tgxworld)\
**Post date:** [2016年三月1日 09:38 UTC](https://meta.discourse.org/t/cant-log-out-of-read-only-mode/39922/3 "2016-03-01T09:38:50Z")

</div>

Done 🙂

[https://github.com/discourse/discourse/commit/bfea842d324c9f62ac33da64e5ec356493cbd635](https://github.com/discourse/discourse/commit/bfea842d324c9f62ac33da64e5ec356493cbd635)

---

<div class="post-metadata">

**Author:** ![tgxworld](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/tgxworld/32/106117_2.png) [@tgxworld](https://meta.discourse.org/u/tgxworld)\
**Post date:** [2016年三月2日 09:38 UTC](https://meta.discourse.org/t/cant-log-out-of-read-only-mode/39922/4 "2016-03-02T09:38:57Z")

</div>

This topic was automatically closed after 24 hours. New replies are no longer allowed.
