# 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 Diciembre, 2016 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:** 16

<div class="post-metadata">

**Author:** ![zsero](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/zsero/32/64016_2.png) [@zsero](https://meta.discourse.org/u/zsero)\
**Post date:** [30 Diciembre, 2016 15:07 UTC](https://meta.discourse.org/t/upgrade-failed-due-to-unclean-database-shutdown/54414/16 "2016-12-30T15:07:59Z")

</div>

Daniel, backup files were not corrupted in my case, just the postgres database was shut down uncleanly.

I don’t think your backups are corrupted, they just need to be run on the same major version of postgres as they were created on.

Do you by any chance use the Discourse **image** from Scaleway’s ImageHub? In which case I strongly recommend you not to but create a clean Ubuntu 16.04 VPS and follow the official readme. Also, don’t forget to choose the Docker kernel in advanced settings.

---

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