# 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:** 1
**Showing post:** 44

<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?

---

_[View the full topic](https://meta.discourse.org/t/building-bootstrap-error/246175)._
