# Error restoring backup "key is duplicated"

**URL:** https://meta.discourse.org/t/error-restoring-backup-key-is-duplicated/68999
**Category:** Self-hosting
**Created:** [2017年八月29日 15:40 UTC](https://meta.discourse.org/t/error-restoring-backup-key-is-duplicated/68999 "2017-08-29T15:40:45Z")
**Posts on this page:** 1
**Showing post:** 5

<div class="post-metadata">

### Author: ![codinghorror](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/codinghorror/32/110067_2.png) [@codinghorror](https://meta.discourse.org/u/codinghorror)
#### Post date: [2017年八月30日 00:16 UTC](https://meta.discourse.org/t/error-restoring-backup-key-is-duplicated/68999/5 "2017-08-30T00:16:54Z")

</div>

That looks a lot like this one:

> [@Update failed due to primary key sequence error](https://meta.discourse.org/t/update-to-1-9-0-beta5-failed-due-to-primary-key-sequence-error/67852):
>
> I’ve tried to update from Version v1.9.0.beta4 +300 to 1.9.0.beta5 by pulling the latest changes (git pull) and try to rebuild the app (./launcher rebuild app), but the migration failed with the following message: Any fix? I, [2017-08-11T05:43:33.644343 #15] INFO -- : \> cd /var/www/discourse && su dis course -c 'bundle exec rake db:migrate' 2017-08-11 05:43:38.795 UTC [399] discourse@discourse ERROR: duplicate key valu …

---

_[View the full topic](https://meta.discourse.org/t/error-restoring-backup-key-is-duplicated/68999)._
