# 업그레이드 중 오류: 중복 키 값이 고유 제약 조건을 위반합니다

**URL:** <https://meta.discourse.org/t/problem-in-upgrade-duplicate-key-value-violates-unique-constraint/256826>\
**Category:** Self-hosting\
**Created:** [3월 2, 2023, 2:32오후 UTC](https://meta.discourse.org/t/problem-in-upgrade-duplicate-key-value-violates-unique-constraint/256826 "2023-03-02T14:32:45Z")\
**Posts on this page:** 1\
**Showing post:** 1

<div class="post-metadata">

**Author:** ![Arta\_S](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/arta_s/32/537495_2.png) [@Arta\_S](https://meta.discourse.org/u/Arta_S)\
**Post date:** [3월 2, 2023, 2:32오후 UTC](https://meta.discourse.org/t/problem-in-upgrade-duplicate-key-value-violates-unique-constraint/256826/1 "2023-03-02T14:32:45Z")

</div>

안녕하세요,

방금 업그레이드 도구를 사용하여 Discourse 인스턴스를 업그레이드했습니다. 이상하게도 이제 포럼이 다운되어 있습니다. 커맨드 라인을 사용하여 재구성을 시도했을 때 다음 오류가 표시됩니다:

`duplicate key value violates unique constraint "index_tags_on_lower_name"`

이 오류가 로그에 여러 번 반복되므로 이것이 문제의 원인인 것 같습니다.

전체 로그는 다음과 같습니다:  
[https://paste.apps.7ho.st/dezomakasu.sql](https://paste.apps.7ho.st/dezomakasu.sql) (이것은 로그의 일부이며, [전체 로그는 여기](https://paste.apps.7ho.st/sadoqetohu.yaml) 있습니다)

도움을 주실 수 있으신가요? 또한 이 문제가 발생하기 훨씬 전인 7시간 전의 백업 파일을 복원했지만, 업그레이드 시에도 여전히 동일한 문제가 발생합니다.

감사합니다

---

_[View the full topic](https://meta.discourse.org/t/problem-in-upgrade-duplicate-key-value-violates-unique-constraint/256826)._
