# שגיאת שדרוג Discourse "FAILED TO BOOTSTRAP"

**URL:** <https://meta.discourse.org/t/discourse-upgrade-error-failed-to-bootstrap/202060>\
**Category:** Product Support\
**Created:** [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:** 8

<div class="post-metadata">

**Author:** ![troygrady](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/troygrady/32/232574_2.png) [@troygrady](https://meta.discourse.org/u/troygrady)\
**Post date:** [29 באוגוסט,‏ 2021,‏ 9:34pm UTC](https://meta.discourse.org/t/discourse-upgrade-error-failed-to-bootstrap/202060/8 "2021-08-29T21:34:02Z")

</div>

Ah, sorry, I realize that output is somewhat less than explanatory. Here’s the detail around the “StandardError” message. Looks like an INSERT query failed because of a duplicate key. Query guts redacted for readbility, I can include those if necessary.

–

I, [2021-08-29T20:23:37.257772 #1] INFO – : \> cd /var/www/discourse && su discourse -c ‘bundle exec rake db:migrate’  
2021-08-29 20:23:42.937 UTC [3996] discourse@discourse ERROR: duplicate key value violates unique constraint “data\_explorer\_queries\_pkey”  
2021-08-29 20:23:42.937 UTC [3996] discourse@discourse DETAIL: Key (id)=(-2) already exists.  
2021-08-29 20:23:42.937 UTC [3996] discourse@discourse STATEMENT: INSERT INTO  
[…]  
FROM plugin\_store\_rows  
WHERE plugin\_name = ‘discourse-data-explorer’ AND type\_name = ‘JSON’

rake aborted!  
StandardError: An error has occurred, this and all later migrations canceled:

ERROR: duplicate key value violates unique constraint “data\_explorer\_queries\_pkey”  
DETAIL: Key (id)=(-2) already exists.

---

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