# Discourse upgrade error "FAILED TO BOOTSTRAP"

**URL:** https://meta.discourse.org/t/discourse-upgrade-error-failed-to-bootstrap/202060
**Category:** Support
**Created:** [August 29, 2021, 8:45pm UTC](https://meta.discourse.org/t/discourse-upgrade-error-failed-to-bootstrap/202060 "2021-08-29T20:45:00Z")
**Posts on this page:** 1
**Showing post:** 9

<div class="post-metadata">

### Author: ![IAmGav](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/iamgav/32/235598_2.png) [@IAmGav](https://meta.discourse.org/u/IAmGav)
#### Post date: [August 29, 2021, 9:38pm UTC](https://meta.discourse.org/t/discourse-upgrade-error-failed-to-bootstrap/202060/9 "2021-08-29T21:38:27Z")

</div>

> [@troygrady](#):
>
> duplicate key value violates unique constraint “data\_explorer\_queries\_pkey”

try this

> [@Duplicate data explorer key blocking rebuild](https://meta.discourse.org/t/duplicate-data-explorer-key-blocking-rebuild/162375):
>
> Hey all, Rare I ask for help, but I’m puzzled about how to resolve this. Just rebuilt my site and getting this: discourse-data-explorer is already at latest compatible version I, [2020-08-28T17:53:57.578920 #1] INFO -- : \> cd /var/www/discourse && su discourse -c 'bundle exec rake db:migrate' 2020-08-28 17:54:07.380 UTC [3060] discourse@discourse ERROR: duplicate key value violates unique constraint "data\_explorer\_queries\_pkey" 2020-08-28 17:54:07.380 UTC [3060] discourse@discourse DETAIL:…

---

_[View the full topic](https://meta.discourse.org/t/discourse-upgrade-error-failed-to-bootstrap/202060)._
