# 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:** 4

<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, 4:46am UTC](https://meta.discourse.org/t/cant-rebuild-app-bundle-exec-rake-db-migrate-failed/93181/4 "2018-07-27T04:46:27Z")

</div>

Trying to throw but still faces the error:

```
    FAILED
--------------------
Pups::ExecError: cd /var/www/discourse && su discourse -c 'bundle exec rake db:migrate' failed with return #<Process::Status: pid 520 exit 1>
Location of failure: /pups/lib/pups/exec_command.rb:112:in `spawn'
exec failed with the params {"cd"=>"$home", "hook"=>"bundle_exec", "cmd"=>["su discourse -c 'bundle install --deployment --verbose --without test --without development --retry 3 --jobs 4'", "su discourse -c 'bundle exec rake db:migrate'", "su discourse -c 'bundle exec rake assets:precompile'"]}
d7394631501352d1b02a5cef05b5fc5c3f7755636f9d89e2919648b22dfde6a8
**FAILED TO BOOTSTRAP** please scroll up and look for earlier error messages, there may be more than one
==================== END REBUILD LOG ====================

```

thanks

---

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