# Обновление Discourse не дожидается остановки базы данных Postgress

**URL:** https://meta.discourse.org/t/discourse-update-doesnt-wait-for-postgress-db-to-shut-down/212961
**Category:** Self-hosting
**Created:** [23.Декабрь.2021 13:35:24 UTC](https://meta.discourse.org/t/discourse-update-doesnt-wait-for-postgress-db-to-shut-down/212961 "2021-12-23T13:35:24Z")
**Posts on this page:** 1
**Showing post:** 4

<div class="post-metadata">

### Author: ![blattersturm](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/blattersturm/32/76134_2.png) [@blattersturm](https://meta.discourse.org/u/blattersturm)
#### Post date: [24.Декабрь.2021 17:34:43 UTC](https://meta.discourse.org/t/discourse-update-doesnt-wait-for-postgress-db-to-shut-down/212961/4 "2021-12-24T17:34:43Z")

</div>

Когда это происходит, мы обычно (временно, иначе Git запутается при следующем обновлении) заменяем `sleep 5` на несколько дополнительных секунд, чтобы у Postgres было больше времени на стабилизацию/восстановление.

> <https://github.com/discourse/discourse_docker/blob/4cd6a5d96ab1efee9b6893d781c8af9d3d2f56e2/templates/postgres.template.yml#L207-L208>

Если вы используете другой файл postgres.template.yml, конечно, редактируйте его.

---

_[View the full topic](https://meta.discourse.org/t/discourse-update-doesnt-wait-for-postgress-db-to-shut-down/212961)._
