# 게시물 수가 많은 카테고리를 이름 변경할 때 502 오류 발생

**URL:** https://meta.discourse.org/t/502-errors-when-renaming-large-by-topic-count-categories/164107
**Category:** Bug
**Created:** [9월 15, 2020, 4:32오후 UTC](https://meta.discourse.org/t/502-errors-when-renaming-large-by-topic-count-categories/164107 "2020-09-15T16:32:24Z")
**Posts on this page:** 13
**Page:** 2

<div class="post-metadata">

### Author: ![SimeonGriggs](https://avatars.discourse-cdn.com/v4/letter/s/f6c823/32.png) [@SimeonGriggs](https://meta.discourse.org/u/SimeonGriggs)
#### Post date: [11월 3, 2020, 10:46오후 UTC](https://meta.discourse.org/t/502-errors-when-renaming-large-by-topic-count-categories/164107/21 "2020-11-03T22:46:42Z")

</div>

고맙습니다 … 하지만 이 `tail`로 확인한 로그는 너무 빠르게 흘러가서, 아무것도 잡을 수 없을 것 같습니다 😃

방금 `/logs/`를 열어두고 다시 시도해 봤는데, 새로운 에러는 없고 경고만 새로 나타났습니다. 대부분은 다음과 같습니다:

- 여러 다른 토픽에서 “CSP Violation”
- ember\_jquery에서 “Uncaught [object Object]”

---

<div class="post-metadata">

### Author: ![pfaffman](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/pfaffman/32/120154_2.png) [@pfaffman](https://meta.discourse.org/u/pfaffman)
#### Post date: [11월 4, 2020, 12:05오후 UTC](https://meta.discourse.org/t/502-errors-when-renaming-large-by-topic-count-categories/164107/22 "2020-11-04T12:05:28Z")

</div>

로그에서 카테고리 이름을 검색해 보시는 건 어떨까요?

---

<div class="post-metadata">

### Author: ![lucasbasquerotto](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/lucasbasquerotto/32/133376_2.png) [@lucasbasquerotto](https://meta.discourse.org/u/lucasbasquerotto)
#### Post date: [11월 4, 2020, 12:12오후 UTC](https://meta.discourse.org/t/502-errors-when-renaming-large-by-topic-count-categories/164107/23 "2020-11-04T12:12:27Z")

</div>

> [@SimeonGriggs](#):
>
> **카테고리 하나만** 이름을 바꾸려 해도 매번 502 오류가 발생합니다.

모든 카테고리에서 이런 현상이 발생하나요, 아니면 특정 카테고리에서만 그런가요?

새 카테고리를 만들고 이름을 바꾸면 오류가 발생하나요?

---

<div class="post-metadata">

### Author: ![Canapin](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/canapin/32/119591_2.png) [@Canapin](https://meta.discourse.org/u/Canapin)
#### Post date: [11월 4, 2020, 12:16오후 UTC](https://meta.discourse.org/t/502-errors-when-renaming-large-by-topic-count-categories/164107/24 "2020-11-04T12:16:53Z")

</div>

> [@SimeonGriggs](#):
>
> **카테고리 하나만 이름 변경** 하려 해도 매번 502 오류가 발생합니다.

카테고리에 게시글이 많이 있나요?

---

<div class="post-metadata">

### Author: ![SimeonGriggs](https://avatars.discourse-cdn.com/v4/letter/s/f6c823/32.png) [@SimeonGriggs](https://meta.discourse.org/u/SimeonGriggs)
#### Post date: [11월 4, 2020, 9:09오후 UTC](https://meta.discourse.org/t/502-errors-when-renaming-large-by-topic-count-categories/164107/25 "2020-11-04T21:09:03Z")

</div>

> [@lucasbasquerotto](#):
>
> 모든 카테고리에서 발생하는 건가요, 아니면 특정 카테고리에서만 발생하는 건가요?
> 
> 새 카테고리를 만든 후 이름을 변경하면 에러가 발생하나요?

방금 더 작은 카테고리를 이름 변경해 봤는데 정상적으로 작동했습니다.

> [@Canapin](#):
>
> 카테고리에 게시물이 많이 있나요?

이름을 변경하려고 하는 카테고리는 게시물이 꽤 많았습니다.

> [@pfaffman](#):
>
> 로그에서 카테고리 이름을 검색해 보는 건 어떨까요?

거기에는 아무것도 없습니다 😕

---

<div class="post-metadata">

### Author: ![Canapin](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/canapin/32/119591_2.png) [@Canapin](https://meta.discourse.org/u/Canapin)
#### Post date: [11월 5, 2020, 10:33오전 UTC](https://meta.discourse.org/t/502-errors-when-renaming-large-by-topic-count-categories/164107/26 "2020-11-05T10:33:38Z")

</div>

> [@SimeonGriggs](#):
>
> 내가 이름을 바꾸려고 하는 그 항목은 실제로 그랬습니다.

그러면 나와 같은 문제인 것 같네요:

> [@게시물 수가 많은 카테고리를 이름 변경할 때 502 오류 발생](https://meta.discourse.org/t/502-errors-when-splitting-topic-moving-or-renaming-categories/164107/16?u=canapin):
>
> Just a correction about this: I think I previously did Category.where(id: 21).update(name: "General") for a category from which I moved the topics out or something like that, because I had to use this command multiple times on various categories right now, and it appears that the command duration is proportional to the number of posts in the target category. So basically, it’s the same issue as when I update the category from the interface, except that it won’t timeout in the command line. It…

---

<div class="post-metadata">

### Author: ![riking](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/riking/32/170938_2.png) [@riking](https://meta.discourse.org/u/riking)
#### Post date: [11월 6, 2020, 4:40오전 UTC](https://meta.discourse.org/t/502-errors-when-renaming-large-by-topic-count-categories/164107/27 "2020-11-06T04:40:09Z")

</div>

요약:

카테고리 이름 변경 과정에서 모든 주제나 모든 게시글이 수정되어 작업이 타임아웃되고 있습니다.

---

<div class="post-metadata">

### Author: ![Falco](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/falco/32/179432_2.png) [@Falco](https://meta.discourse.org/u/Falco)
#### Post date: [11월 6, 2020, 12:05오후 UTC](https://meta.discourse.org/t/502-errors-when-renaming-large-by-topic-count-categories/164107/28 "2020-11-06T12:05:57Z")

</div>

검색 관련 내용과 관련이 있는 것 같습니다. 실제로 매우 비용이 많이 들으므로 백그라운드 작업으로 이동해야 합니다.

---

<div class="post-metadata">

### Author: ![SimeonGriggs](https://avatars.discourse-cdn.com/v4/letter/s/f6c823/32.png) [@SimeonGriggs](https://meta.discourse.org/u/SimeonGriggs)
#### Post date: [11월 7, 2020, 4:34오후 UTC](https://meta.discourse.org/t/502-errors-when-renaming-large-by-topic-count-categories/164107/34 "2020-11-07T16:34:50Z")

</div>

그렇지 않기를 바라지만, 이미 그런 게 너무 많아서 걱정이에요.

서버 측 백업이 계속 실패하고 있어요. 대부분의 사용자에게 2시(현지 시간)에 실행되도록 설정해 두었는데, 디스크 활동량이 너무 많아 백업이 완료되지 않거든요.

…하지만 이 주제에서 벗어나고 싶진 않아요 😃

---

<div class="post-metadata">

### Author: ![sam](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/sam/32/102149_2.png) [@sam](https://meta.discourse.org/u/sam)
#### Post date: [11월 9, 2020, 1:59오전 UTC](https://meta.discourse.org/t/502-errors-when-renaming-large-by-topic-count-categories/164107/35 "2020-11-09T01:59:39Z")

</div>

이것입니다:

 ![image](https://global.discourse-cdn.com/meta/original/3X/c/f/cf8cc57bfb9139ba316a68db25a5ad65ad81bc4e.png)

@tgxworld 버전 0으로 설정하는 작업을 포함하여 모든 검색 작업을 백그라운드 작업으로 이동할 수 있나요?

---

<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: [11월 9, 2020, 5:46오전 UTC](https://meta.discourse.org/t/502-errors-when-renaming-large-by-topic-count-categories/164107/37 "2020-11-09T05:46:07Z")

</div>

PR이 [PERF: Update index for category in a background job. - Pull Request #11161%EC%97%90 - discourse/discourse - GitHub](https://github.com/discourse/discourse/pull/11161%EC%97%90) 올라갔습니다.

수정: 병합 완료 🙂

---

<div class="post-metadata">

### Author: ![SimeonGriggs](https://avatars.discourse-cdn.com/v4/letter/s/f6c823/32.png) [@SimeonGriggs](https://meta.discourse.org/u/SimeonGriggs)
#### Post date: [11월 26, 2020, 9:21오전 UTC](https://meta.discourse.org/t/502-errors-when-renaming-large-by-topic-count-categories/164107/38 "2020-11-26T09:21:18Z")

</div>

이 문제는 최신 업데이트에서 수정된 것으로 보입니다. 팀 여러분 감사합니다!

---

<div class="post-metadata">

### Author: ![sam](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/sam/32/102149_2.png) [@sam](https://meta.discourse.org/u/sam)
#### Post date: [11월 26, 2020, 11:06오후 UTC](https://meta.discourse.org/t/502-errors-when-renaming-large-by-topic-count-categories/164107/39 "2020-11-26T23:06:55Z")

</div>



[이전 페이지](https://meta.discourse.org/t/502-errors-when-renaming-large-by-topic-count-categories/164107.md?page=1)
