# FATAL: the database system is starting up

**URL:** <https://meta.discourse.org/t/fatal-the-database-system-is-starting-up/52806>\
**Category:** Self-hosting\
**Created:** [November 11, 2016, 6:23pm UTC](https://meta.discourse.org/t/fatal-the-database-system-is-starting-up/52806 "2016-11-11T18:23:37Z")\
**Posts on this page:** 1\
**Showing post:** 4

<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:** [November 14, 2016, 5:07pm UTC](https://meta.discourse.org/t/fatal-the-database-system-is-starting-up/52806/4 "2016-11-14T17:07:15Z")

</div>

OK, I found the following:

- I was using devicemapper, and there is a bug in the launcher code which would detect it
- Reinstalled on a new VPS. Using Ubuntu 16.04 LTS this time. Docker driver is aufs!
- Copied over the standalone folder.
- Run rebuild.
- Same error!

Full log here:  
[https://gist.github.com/hyperknot/90925e5201b00624f56610638b0a6275](https://gist.github.com/hyperknot/90925e5201b00624f56610638b0a6275)

I believe that `sleep 5` line might be very small, and need to be changed either to a higher value, or a while loop which detects if postgres is up.

---

_[View the full topic](https://meta.discourse.org/t/fatal-the-database-system-is-starting-up/52806)._
