# 2.7.0.beta2 升级失败，出现 ERROR: duplicate key

**URL:** <https://meta.discourse.org/t/2-7-0-beta2-upgrade-failed-with-error-duplicate-key/176980>\
**Category:** Self-hosting\
**Created:** [2021年一月22日 20:25 UTC](https://meta.discourse.org/t/2-7-0-beta2-upgrade-failed-with-error-duplicate-key/176980 "2021-01-22T20:25:45Z")\
**Posts on this page:** 1\
**Showing post:** 21

<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:** [2021年一月25日 17:26 UTC](https://meta.discourse.org/t/2-7-0-beta2-upgrade-failed-with-error-duplicate-key/176980/21 "2021-01-25T17:26:53Z")

</div>

我认为我过去就是这样[解决类似问题的](https://meta.discourse.org/t/cant-restore-due-to-corrupt-indexes-with-some-clues-on-how-to-deal-with-corrupt-indexes/137400/14?u=pfaffman)。重建索引，当它失败时，会提示你哪个是重复项，然后你修复它，再试一次。重复此过程。

---

_[View the full topic](https://meta.discourse.org/t/2-7-0-beta2-upgrade-failed-with-error-duplicate-key/176980)._
