升级 discourse 到稳定版本后出现问题

大家好,今天我更新了 Discourse 到稳定版本 2.7.7,升级后在激活新账户时遇到了以下错误:

以下是日志尾部信息:

Failed to handle exception in exception app middleware : PG::UndefinedFunction: ERROR: function max(boolean) does not exist
LINE 1: …_rank, MAX(user_badges.created_at) AS created_at, MAX(user_b…
^
HINT: No function matches the given name and argument types. You might need to add explicit type casts.

Started GET “/users/activate-account/0f44cb2f759b85caecaf5ea26a1878e5” for 49.44.84.137 at 2021-08-04 11:54:11 +0000
Processing by UsersController#activate_account as HTML
Parameters: {“token”=>“0f44cb2f759b85caecaf5ea26a1878e5”}
Rendered users/activate_account.html.erb within layouts/no_ember (Duration: 2.0ms | Allocations: 471)
Rendered layout layouts/no_ember.html.erb (Duration: 20.5ms | Allocations: 5694)
Completed 200 OK in 29ms (Views: 21.8ms | ActiveRecord: 0.0ms | Allocations: 7981)

有人能帮我解决这个问题吗?

您是如何升级的?是否安装了任何非标准插件?

建议您移除所有非标准插件,并通过命令行重新构建。

你好,我通过 SSH 进行了升级,最新版本无法运行,因此我将其升级到了最新的稳定版本(2.7.7)。

这是我的 app.yml 文件:https://pastebin.com/L1uA68Z5

我想没有使用任何非标准插件。

你从 tests-passed 直接跳到了 stable?这行不通。你需要将 app.yml 中的 version 改回默认值,然后重新构建。

你需要找出升级失败的原因。切换到稳定版本并不能解决该问题。

请切换回 tests-passed 分支,重新构建,然后报告问题。

好的,我已经移除了“稳定版本”那一行并重新构建,但再次失败,我的网站也宕机了。

这是完整的错误日志 https://pastebin.com/kdhc563R

尝试移除 GitHub - discourse/discourse-tagging: Tagging functionality for Discourse Forums · GitHub

标签功能于 2016 年 4 月被引入核心代码。如果您使用的是 Discourse 1.6.0.beta2 或更高版本,则不需要此插件。

谢谢,现在可以用了!