# Error when "./discourse rebuild app" due to theme error

**URL:** <https://meta.discourse.org/t/error-when-discourse-rebuild-app-due-to-theme-error/210207>\
**Category:** Self-hosting\
**Created:** [November 26, 2021, 6:56am UTC](https://meta.discourse.org/t/error-when-discourse-rebuild-app-due-to-theme-error/210207 "2021-11-26T06:56:20Z")\
**Posts on this page:** 1\
**Showing post:** 5

<div class="post-metadata">

**Author:** ![pfaffman](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/pfaffman/32/120154_2.png) [@pfaffman](https://meta.discourse.org/u/pfaffman)\
**Post date:** [November 27, 2021, 1:10pm UTC](https://meta.discourse.org/t/error-when-discourse-rebuild-app-due-to-theme-error/210207/5 "2021-11-27T13:10:54Z")

</div>

Hmm. Did you run a cleanup? (But it doesn’t much matter now why you can’t start the old container.)

There should be a way to disable broken themes on rebuild. I changed your subject to call attention to this issue.

It might be possible to build a container with only postgres, then remove the theme with sql, then put back the web template and rebuild then.

---

_[View the full topic](https://meta.discourse.org/t/error-when-discourse-rebuild-app-due-to-theme-error/210207)._
