# Failed to handle exception in exception app middleware : PG::UndefinedTable: ERROR: relation "themes" does not exist

**URL:** <https://meta.discourse.org/t/failed-to-handle-exception-in-exception-app-middleware-pg-error-relation-themes-does-not-exist/108594>\
**Category:** Support\
**Created:** [February 7, 2019, 12:32pm UTC](https://meta.discourse.org/t/failed-to-handle-exception-in-exception-app-middleware-pg-error-relation-themes-does-not-exist/108594 "2019-02-07T12:32:12Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![kaspers](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/kaspers/32/120148_2.png) [@kaspers](https://meta.discourse.org/u/kaspers)\
**Post date:** [February 7, 2019, 11:04pm UTC](https://meta.discourse.org/t/failed-to-handle-exception-in-exception-app-middleware-pg-error-relation-themes-does-not-exist/108594/3 "2019-02-07T23:04:03Z")

</div>

Thank. Tried this. It ends here:

```
FAILED
--------------------
Pups::ExecError: cd /var/www/discourse && su discourse -c 'bundle exec rake db:migrate' failed with return #<Process::Status: pid 17046 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'"]}
c030fefce019f920d63d1a20f305939551dc33d46a5fb1623bea4c544b79ac34
**FAILED TO BOOTSTRAP** please scroll up and look for earlier error messages, there may be more than one

```

---

_[View the full topic](https://meta.discourse.org/t/failed-to-handle-exception-in-exception-app-middleware-pg-error-relation-themes-does-not-exist/108594)._
