Discourse 升级后损坏

各位朋友好,

我的 Discourse 安装在从 2.5.0-beta3 升级到 2.8.0-beta1 后出现了问题。

问题如下:

  1. 点击汉堡菜单无法打开任何菜单。
    因此我无法执行任何管理任务。

  2. JS 控制台中存在重复出现的错误:

popper.js:25 Uncaught Error: There is no route named admin
    at RouteRecognizer.handlersFor (popper.js:25)
    at NamedTransitionIntent.applyToState (popper.js:25)
    at PrivateRouter.generate (popper.js:25)
    at CustomWidget.href (application-fe9ee991da6504fca90ed9af1944975a34f8edf0ff952663df073d0806920bef.js:81306)
    at CustomWidget.buildAttributes (application-fe9ee991da6504fca90ed9af1944975a34f8edf0ff952663df073d0806920bef.js:81324)
    at CustomWidget.draw (application-fe9ee991da6504fca90ed9af1944975a34f8edf0ff952663df073d0806920bef.js:88387)
    at CustomWidget.render (application-fe9ee991da6504fca90ed9af1944975a34f8edf0ff952663df073d0806920bef.js:88162)
    at renderThunk (popper.js:25)
    at handleThunk (popper.js:25)
    at createElement (popper.js:25)
...

请问有什么修复方法吗?

您是否使用了任何第三方插件?如果是,建议您在 app.yml 中注释掉它们,并通过 SSH 重新构建。

您是否执行了完整的命令行重建并升级了 PostgreSQL?PostgreSQL 13 更新

您是否尝试过 如何使用 Discourse 安全模式

2 个赞

问题已通过完整重建解决:

cd /var/discourse
git pull
./launcher rebuild app

并为 Discourse 增加了更多磁盘空间。

感谢大家!

2 个赞

您也可以尝试

./launcher cleanup

以清理磁盘空间。您的数据库中很可能存在多余的副本。

2 个赞