# Building bootstrap error

**URL:** https://meta.discourse.org/t/building-bootstrap-error/246175
**Category:** Self-hosting
**Created:** [November 20, 2022, 8:14am UTC](https://meta.discourse.org/t/building-bootstrap-error/246175 "2022-11-20T08:14:22Z")
**Posts on this page:** 7
**Page:** 3

<div class="post-metadata">

### Author: ![pfaffman](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/pfaffman/32/120154_2.png) [@pfaffman](https://meta.discourse.org/u/pfaffman)
#### Post date: [November 20, 2022, 11:43am UTC](https://meta.discourse.org/t/building-bootstrap-error/246175/41 "2022-11-20T11:43:37Z")

</div>

You might try commenting out the templates other than postgres and then see if it’ll crank up and what those logs say.

---

<div class="post-metadata">

### Author: ![Headless](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/headless/32/183495_2.png) [@Headless](https://meta.discourse.org/u/Headless)
#### Post date: [November 20, 2022, 11:44am UTC](https://meta.discourse.org/t/building-bootstrap-error/246175/42 "2022-11-20T11:44:40Z")

</div>

Ill def try this once the copying of server → local files is completed. 🙂

---

<div class="post-metadata">

### Author: ![Headless](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/headless/32/183495_2.png) [@Headless](https://meta.discourse.org/u/Headless)
#### Post date: [November 20, 2022, 1:00pm UTC](https://meta.discourse.org/t/building-bootstrap-error/246175/43 "2022-11-20T13:00:16Z")

</div>

Sadly, disabling them all still results in the same error.

---

<div class="post-metadata">

### Author: ![Ed\_S](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/ed_s/32/134015_2.png) [@Ed\_S](https://meta.discourse.org/u/Ed_S)
#### Post date: [November 20, 2022, 1:44pm UTC](https://meta.discourse.org/t/building-bootstrap-error/246175/44 "2022-11-20T13:44:37Z")

</div>

> [@Headless](#):
>
> Seems like issues relating to the database?

I’m guessing, but it seems possible that the database was uncleanly shutdown, needs to do a recover, and isn’t quite being given enough time to finish that.

In fact, see this previous thread:

> [@Discourse update doesn't wait for Postgress DB to shut down](https://meta.discourse.org/t/discourse-update-doesnt-wait-for-postgress-db-to-shut-down/212961/4):
>
> Whenever this happens, we usually (temporarily, as otherwise Git gets confused when updating the next time) replace the `sleep 5` with a few more seconds so that Postgres has more time to settle/recover.
> 
> [discourse\_docker/templates/postgres.template.yml at 4cd6a5d96ab1efee9b6893d781c8af9d3d2f56e2 · discourse/discourse\_docker · GitHub](https://github.com/discourse/discourse_docker/blob/4cd6a5d96ab1efee9b6893d781c8af9d3d2f56e2/templates/postgres.template.yml#L207-L208)

and perhaps see also this much earlier thread:

> [@FATAL: the database system is starting up](https://meta.discourse.org/t/fatal-the-database-system-is-starting-up/52806/5):
>
> Try increasing the sleep in templates/postgres.template.yml locally. Is your server slow? Database too big?

---

<div class="post-metadata">

### Author: ![Headless](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/headless/32/183495_2.png) [@Headless](https://meta.discourse.org/u/Headless)
#### Post date: [November 20, 2022, 2:09pm UTC](https://meta.discourse.org/t/building-bootstrap-error/246175/45 "2022-11-20T14:09:38Z")

</div>

You sir are an actual godsend, this fixed it and I can’t thank you enough for it!!!

All I can do is praise you because god I was afraid I was going to have to restore from a backup a year ago and get the entire community mad at me.

---

<div class="post-metadata">

### Author: ![Ed\_S](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/ed_s/32/134015_2.png) [@Ed\_S](https://meta.discourse.org/u/Ed_S)
#### Post date: [November 20, 2022, 2:26pm UTC](https://meta.discourse.org/t/building-bootstrap-error/246175/46 "2022-11-20T14:26:47Z")

</div>

Glad to be able to help! Now please take a backup, and copy it to another place for safety! (I always feel a bit nervous about updates and upgrades, and my forums are a great deal smaller than yours - far fewer people to be anxious about.)

Best practice is to take a backup before any change, and copy it elsewhere in case the whole machine goes belly-up.

---

<div class="post-metadata">

### Author: ![system](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/system/32/443519_2.png) [@system](https://meta.discourse.org/u/system)
#### Post date: [December 20, 2022, 2:27pm UTC](https://meta.discourse.org/t/building-bootstrap-error/246175/47 "2022-12-20T14:27:22Z")

</div>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.

[Previous page](https://meta.discourse.org/t/building-bootstrap-error/246175.md?page=2)
