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

<div class="post-metadata">

**Author:** ![Steven](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/steven/32/187890_2.png) [@Steven](https://meta.discourse.org/u/Steven)\
**Post date:** [November 27, 2021, 12:13pm UTC](https://meta.discourse.org/t/error-when-discourse-rebuild-app-due-to-theme-error/210207/4 "2021-11-27T12:13:17Z")

</div>

Sorry the first version of my post was useless since you can’t enter the app.

The solution seems to be a fresh reinstall and restore a backup if you have one.

If it’s too old, I would try a few things first

```plaintext
service docker restart
systemctl restart docker

```

```plaintext
cd /var/discourse
./launcher destroy app
./launcher start app

```

But the rare times I had docker issue, I chose to reinstall, it can be tricky

---

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