# Upgrade failed due to unclean database shutdown

**URL:** <https://meta.discourse.org/t/upgrade-failed-due-to-unclean-database-shutdown/54414>\
**Category:** Self-hosting\
**Created:** [17. Dezember 2016 um 09:21 UTC](https://meta.discourse.org/t/upgrade-failed-due-to-unclean-database-shutdown/54414 "2016-12-17T09:21:23Z")\
**Posts on this page:** 1\
**Showing post:** 13

<div class="post-metadata">

**Author:** ![Falco](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/falco/32/179432_2.png) [@Falco](https://meta.discourse.org/u/Falco)\
**Post date:** [29. Dezember 2016 um 03:43 UTC](https://meta.discourse.org/t/upgrade-failed-due-to-unclean-database-shutdown/54414/13 "2016-12-29T03:43:27Z")

</div>

[https://github.com/discourse/discourse\_docker/pull/324](https://github.com/discourse/discourse_docker/pull/324)

looks like `pg_ctl -w` does all the magic for us.

@ljpp said scaleway is slow, can you repro the problem consistently? I would like to test if this PR solves running in slow hardware

---

_[View the full topic](https://meta.discourse.org/t/upgrade-failed-due-to-unclean-database-shutdown/54414)._
