# 更新后出现错误，论坛无法正常运行

**URL:** <https://meta.discourse.org/t/after-the-update-there-was-an-error-and-the-forum-is-not-functioning-properly/407539>\
**Category:** Self-hosting\
**Created:** [2026年七月14日 04:56 UTC](https://meta.discourse.org/t/after-the-update-there-was-an-error-and-the-forum-is-not-functioning-properly/407539 "2026-07-14T04:56:08Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![yuki\_sui](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/yuki_sui/32/550369_2.png) [@yuki\_sui](https://meta.discourse.org/u/yuki_sui)\
**Post date:** [2026年七月14日 04:56 UTC](https://meta.discourse.org/t/after-the-update-there-was-an-error-and-the-forum-is-not-functioning-properly/407539/1 "2026-07-14T04:56:08Z")

</div>

最新的日志如下：

**59**

ActionView::Template::Error (unknown attribute ‘external\_plugin\_imports’ for JavascriptCache.) app/models/theme.rb:225:in ‘Theme#update\_javascript\_cache!’ app/models/theme.rb:485:in 'block (2 levels)

下午 12:38

**252**

Job exception: ERROR: column “source” does not exist LINE 10: AND source = 1 ^ HINT: Perhaps you meant to reference the column “browser\_pageview\_events.score”.

下午 12:45

**209**

ActionView::Template::Error (unknown attribute ‘external\_plugin\_imports’ for JavascriptCache.) app/models/theme.rb:225:in ‘Theme#update\_javascript\_cache!’ app/models/theme.rb:485:in 'block (2 levels)

下午 12:50

```plaintext

```

论坛前端变成了这样：

 ![image](https://global.discourse-cdn.com/meta/original/4X/d/f/b/dfbd7e4799e5c6172fc666c8a74999561030f520.png)

---

<div class="post-metadata">

**Author:** ![NateDhaliwal](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/natedhaliwal/32/313494_2.png) [@NateDhaliwal](https://meta.discourse.org/u/NateDhaliwal)\
**Post date:** [2026年七月14日 06:23 UTC](https://meta.discourse.org/t/after-the-update-there-was-an-error-and-the-forum-is-not-functioning-properly/407539/2 "2026-07-14T06:23:01Z")

</div>

请再次在命令行中尝试运行 `./launcher rebuild app`。这样有帮助吗？

---

<div class="post-metadata">

**Author:** ![chapoi](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/chapoi/32/537252_2.png) [@chapoi](https://meta.discourse.org/u/chapoi)\
**Post date:** [2026年七月14日 07:23 UTC](https://meta.discourse.org/t/after-the-update-there-was-an-error-and-the-forum-is-not-functioning-properly/407539/3 "2026-07-14T07:23:03Z")

</div>

可能是缺少迁移文件，所以 Nate 的回答应该会有帮助。

或者为了更快，仅执行迁移：`./launcher run app bundle exec rake db:migrate`

然后仅重启：`./launcher restart app`

---

<div class="post-metadata">

**Author:** ![yuki\_sui](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/yuki_sui/32/550369_2.png) [@yuki\_sui](https://meta.discourse.org/u/yuki_sui)\
**Post date:** [2026年七月14日 08:13 UTC](https://meta.discourse.org/t/after-the-update-there-was-an-error-and-the-forum-is-not-functioning-properly/407539/4 "2026-07-14T08:13:56Z")

</div>

谢谢！我终于搞定了！

---

<div class="post-metadata">

**Author:** ![yuki\_sui](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/yuki_sui/32/550369_2.png) [@yuki\_sui](https://meta.discourse.org/u/yuki_sui)\
**Post date:** [2026年七月14日 08:15 UTC](https://meta.discourse.org/t/after-the-update-there-was-an-error-and-the-forum-is-not-functioning-properly/407539/5 "2026-07-14T08:15:29Z")

</div>

首先，我采纳了你的建议，然后将其与 Nate 的回复结合起来。非常感谢！！！
