# テーマエラーによる「./discourse rebuild app」のエラー

**URL:** https://meta.discourse.org/t/error-when-discourse-rebuild-app-due-to-theme-error/210207
**Category:** Self-hosting
**Created:** [2021 年 11 月 26 日午前 6:56 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:** 6

<div class="post-metadata">

### Author: ![Huey\_Le](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/huey_le/32/63362_2.png) [@Huey\_Le](https://meta.discourse.org/u/Huey_Le)
#### Post date: [2021 年 12 月 1 日午前 1:10 UTC](https://meta.discourse.org/t/error-when-discourse-rebuild-app-due-to-theme-error/210207/6 "2021-12-01T01:10:36Z")

</div>

以下の手順を実行することで、この問題を解決できました。

- `containers/app.yml` を編集し、`postgres` テンプレートサービス以外のすべてをコメントアウトします。
- `./launcher rebuild app` を実行し、次に `./launcher enter app` を実行します。
- コンテナに入ったら、`su - postgres` で postgres ユーザーになり、`psql` を実行します。
- postgres に入ったら、`\\c discourse` を実行し、次に `SELECT * FROM themes` を実行して、ID が 11 の問題のある `Alternative Logo` テーマを見つけます。次に、`DELETE FROM themes WHERE id=11` で削除し、`\\q` でコンソールを終了します。
- `exit` でコンテナを終了し、`containers/app.yaml` のすべてのテンプレートのコメントを解除して、再度再構築します。

---

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