# 2.7.0.beta2 upgrade failed with ERROR: duplicate key

**URL:** <https://meta.discourse.org/t/2-7-0-beta2-upgrade-failed-with-error-duplicate-key/176980>\
**Category:** Self-hosting\
**Created:** [January 22, 2021, 8:25pm 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:** 22

<div class="post-metadata">

**Author:** ![Gunnar](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/gunnar/32/119647_2.png) [@Gunnar](https://meta.discourse.org/u/Gunnar)\
**Post date:** [January 25, 2021, 6:36pm UTC](https://meta.discourse.org/t/2-7-0-beta2-upgrade-failed-with-error-duplicate-key/176980/22 "2021-01-25T18:36:59Z")

</div>

> [@pfaffman](#):
>
> Rebuild the index, when it fails

Thanks. When it fails, how do I find and get rid of the incomplete new index? Is it as simple as adding “`_ccnew`” to the name of the table that failed?

I.e., when it crashes on “`users`” because of a duplicate, do I first fix the duplicate, then:

DROP index ‘users\_ccnew’;

Then rinse, repeat? Is it as simple as that?

Thanks,  
Gunnar

---

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