# Bootstrap failed with exit code 1

**URL:** https://meta.discourse.org/t/bootstrap-failed-with-exit-code-1/237270
**Category:** Support
**Tags:** post-voting
**Created:** [August 26, 2022, 4:21pm UTC](https://meta.discourse.org/t/bootstrap-failed-with-exit-code-1/237270 "2022-08-26T16:21:10Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![Hifihedgehog](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/hifihedgehog/32/140207_2.png) [@Hifihedgehog](https://meta.discourse.org/u/Hifihedgehog)
#### Post date: [August 26, 2022, 4:21pm UTC](https://meta.discourse.org/t/bootstrap-failed-with-exit-code-1/237270/1 "2022-08-26T16:21:10Z")

</div>

I am trying to rebuild one ([forum.techandtiny.com](http://forum.techandtiny.com)) of three Discourse instances that I run on my server. The crazy part is the plugins used are identical to the two other instances (forum.tabletpc.review and [forum.farfarawaynews.com](http://forum.farfarawaynews.com)) that I run on my server. However, in updating all three instances today, only this one fails to spin up after rebuilding. Attached is the terminal output.

> <https://pastebin.com/MtfCz4pY>

---

<div class="post-metadata">

### Author: ![JammyDodger](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jammydodger/32/254611_2.png) [@JammyDodger](https://meta.discourse.org/u/JammyDodger)
#### Post date: [August 26, 2022, 4:29pm UTC](https://meta.discourse.org/t/bootstrap-failed-with-exit-code-1/237270/2 "2022-08-26T16:29:32Z")

</div>

It looks like it could be some kind of conflict in your `vote_history` that’s throwing it off

```plaintext
discourse@discourse STATEMENT: INSERT INTO question_answer_votes (post_id, user_id, created_at)
        SELECT
          X.post_id AS post_id,
          (X.value->>'user_id')::int AS user_id,
          (X.value->>'created_at')::timestamp AS created_at
        FROM (
          SELECT
            post_id,
            jsonb_array_elements(value::jsonb) AS value

FROM post_custom_fields WHERE name = 'vote_history'
        ) AS X
        WHERE (X.value->>'action') != 'destroy'
        ORDER BY (X.value->>'created_at')::timestamp DESC
        ON CONFLICT DO NOTHING
 
rake aborted!
StandardError: An error has occurred, this and all later migrations canceled:

```
