# 사용자 메시지 받은편지함 오류 500

**URL:** https://meta.discourse.org/t/user-messages-inbox-error-500/165937
**Category:** Self-hosting
**Created:** [10월 1, 2020, 3:27오후 UTC](https://meta.discourse.org/t/user-messages-inbox-error-500/165937 "2020-10-01T15:27:38Z")
**Posts on this page:** 1
**Showing post:** 17

<div class="post-metadata">

### Author: ![Benjamin\_D](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/benjamin_d/32/277831_2.png) [@Benjamin\_D](https://meta.discourse.org/u/Benjamin_D)
#### Post date: [10월 17, 2020, 8:14오후 UTC](https://meta.discourse.org/t/user-messages-inbox-error-500/165937/17 "2020-10-17T20:14:08Z")

</div>

> [@v.stephan](#):
>
> 아니면 삭제해야 하나요?

Jay의 말에 따르면:

> [@pfaffman](#):
>
> 시스템 사용자나 discobot이 생성하지 않은 모든 개인 메시지를 삭제합니다. 관리자로부터 받은 개인 메시지 포함, 다른 모든 개인 메시지도 삭제됩니다.
> 
> 테스트는 되어 있지 않습니다. 좋은 아이디어라고 말하지는 않겠습니다. 나쁜 일이 일어나지 않을 것을 약속하지도 않습니다.
> 
> ```plaintext
> cd /var/discourse
> discourse backup
> ./launcher enter app
> rails s
> Topic.where(archetype: 'private_message').where("user_id > 0").destroy_all
> exit
> discourse enable_restore
> discourse restore
> 
> ```
> 
> 나쁜 일이 일어나지 않는다면 마지막 두 단계를 생략할 수 있습니다. 나쁜 일이 일어나면 `discourse restore` 명령이 출력한 최신 백업의 복사/붙여넣기를 통해 백업을 복원해야 합니다.

`where("user_id > 0")` 조건을 `where("user_id = your-user-id")` 같은 것으로 대체해 보는 것을 추천합니다.

왜 이런 일이 일어나는지에 대해서는 제 추측으로는 지역화(localization) 관련 문제인 것 같습니다. 저도 가끔 따옴표, 발음 기호 등에서 문제를 겪곤 하거든요. 😉

---

_[View the full topic](https://meta.discourse.org/t/user-messages-inbox-error-500/165937)._
