# Can't rebuild app 'bundle exec rake db:migrate' failed

**URL:** <https://meta.discourse.org/t/cant-rebuild-app-bundle-exec-rake-db-migrate-failed/93181>\
**Category:** Self-hosting\
**Created:** [July 26, 2018, 7:26am UTC](https://meta.discourse.org/t/cant-rebuild-app-bundle-exec-rake-db-migrate-failed/93181 "2018-07-26T07:26:41Z")\
**Posts on this page:** 1\
**Showing post:** 10

<div class="post-metadata">

**Author:** ![60d9eb1b376343f4e7b4](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/60d9eb1b376343f4e7b4/32/169628_2.png) [@60d9eb1b376343f4e7b4](https://meta.discourse.org/u/60d9eb1b376343f4e7b4)\
**Post date:** [July 27, 2018, 8:54am UTC](https://meta.discourse.org/t/cant-rebuild-app-bundle-exec-rake-db-migrate-failed/93181/10 "2018-07-27T08:54:27Z")

</div>

During the great effort, I realized that the project needs a PG version 10, and the version that it installs is version 9.5.  
The following report is from the PG inside the container

```
2018-07-27 08:49:27.569 UTC [2144] HINT: You might need to initdb.
2018-07-27 08:49:28.583 UTC [2146] FATAL: "/shared/postgres_data" is not a valid data directory
2018-07-27 08:49:28.583 UTC [2146] DETAIL: File "/shared/postgres_data/PG_VERSION" does not contain valid data.
2018-07-27 08:49:28.583 UTC [2146] HINT: You might need to initdb.

```

How can I run the project inside the container manually?  
thanks

---

_[View the full topic](https://meta.discourse.org/t/cant-rebuild-app-bundle-exec-rake-db-migrate-failed/93181)._
