错误公告:升级后运行本讨论论坛的软件遇到意外问题

升级通过命令 .launcher rebuild app 后,我收到了此消息:

哎呀
为该讨论论坛提供支持的软件遇到了意外问题。我们对此造成的不便深表歉意。

有关错误的详细信息已记录,并生成了自动通知。我们会对其进行查看。

无需采取进一步措施。但是,如果错误状况持续存在,您可以通过在该站点的反馈类别中发布讨论主题来提供更多详细信息,包括重现错误的步骤。

我没有收到带有链接 Sitetor.com/logs 的日志。这是 404 错误页面,正常。
访问安全模式页面可以,但选择时没有操作:

  • 禁用主题和主题组件
  • 禁用非官方客户端插件自定义
  • 禁用所有客户端插件自定义

我在 app.yml 文件中每个插件行前面加上了 ##。仅用于回退 Docker manager 插件。

然后运行命令 launcher Rebuild app。
但没有效果。
我重启了我的 Vultr 服务器 1 小时后,但仍然收到相同的消息 OPS。

:frowning:

嗯。 :thinking: 这有点棘手。浏览器控制台中的错误信息不多。

我猜你之所以看不到 /logs,是因为你没有登录。或许可以尝试使用管理员登录页面 (/u/admin-login) 来绕过当前的问题并访问日志。

我输入了我的电子邮件管理员,并在电子邮件中收到了登录会话链接,但当我点击该链接时,我再次看到了这个消息:

糟糕

这有点异想天开。

注释掉插件没有帮助,这很不寻常。您之后重建时,重建成功了吗?

好的,成功了。
昨天我重建了应用程序,没问题,我的论坛也没问题。之后我在管理页面收到了升级通知,我通过网站进行了升级。之后我收到了“糟糕…………”的消息。
所以我再次通过命令行进行了重建。现在一直报错。

这是我的日志页面中的日志:

CSP 违规:'https://sitetor.com/assets/plugins/footnote-79e2a367b53b791240c3504826b87b2787c9d197d77cd422969d592aae9cf23b.js'
5 月 6 日 上午 8:27
CSP 违规:'https://sitetor.com/assets/plugins/discourse-lazy-videos-bdf1486acc96b228a2163490640a2bdc90f5e0a1bb1949335fd1fde2ad48795c.js'
5 月 6 日 上午 8:27
CSP 违规:'https://sitetor.com/theme-javascripts/a3636f1729d8c81989eb6665a5a33c82564fcec4.js?__ws=sitetor.com'
5 月 6 日 上午 8:27
CSP 违规:'https://sitetor.com/theme-javascripts/ca4f2222209109b7d767260935bb303d2b284516.js?__ws=sitetor.com'
5 月 6 日 上午 8:27
弃用通知:`SiteSetting.min_trust_level_to_allow_ignore` 已弃用。请使用 `SiteSetting.ignore_allowed_groups` 代替。(将在 Discourse 3.3 中移除)位于 /var/www/discourse/lib/gua
6 月 8 日 晚上 7:55
15
CSP 违规:'https://www.google-analytics.com'
6 月 10 日 晚上 9:32
2
CSP 违规:'https://sitetor.com/svg-sprite/sitetor.com/svg-93-10018d578f2d963b00e0465dc2060daae0e3a6cc.js'
6 月 16 日 下午 3:24
CSP 违规:'https://sitetor.com/javascripts/magnific-popup/1.1.0/jquery.magnific-popup.min.js'
6 月 16 日 下午 3:24
6
CSP 违规:'wasm-eval'
6 月 22 日 上午 10:05
ActiveRecord::RecordNotUnique (PG::UniqueViolation: ERROR: duplicate key value violates unique constraint \"index_topic_tags_on_topic_id_and_tag_id\" DETAIL: Key (topic_id, tag_id)=(65105, 601) alread
6 月 30 日 上午 11:47
Failed to handle exception in exception app middleware : ActiveRecord::RecordNotUnique : PG::UniqueViolation: ERROR: duplicate key value violates unique constraint \"index_topic_tags_on_topic_id_and_t
6 月 30 日 上午 11:47
10
NoMethodError (undefined method `scan' for {:one=>"Categories (%{count} more)…", :other=>"Categories (%{count} more)…"}:Hash) lib/i18n/i18n_interpolation_keys_finder.rb:6:in `find' app/controllers/adm
6 月 30 日 晚上 9:19
24
CSP 违规:'eval' () => { utils.preloadCache() }
7 月 1 日 晚上 11:34
21
NoMethodError (undefined method `slug_path' for nil:NilClass) app/models/category.rb:1103:in `slug_path' app/models/category.rb:945:in `block in url' lib/distributed_cache.rb:20:in `defer_get_set' app
7 月 4 日 上午 9:59
3
MaxMindDB (/var/www/discourse/vendor/data/GeoLite2-City.mmdb) could not be found: No such file or directory @ rb_sysopen - /var/www/discourse/vendor/data/GeoLite2-City.mmdb
7 月 4 日 下午 3:23
3
MaxMindDB (/var/www/discourse/vendor/data/GeoLite2-ASN.mmdb) could not be found: No such file or directory @ rb_sysopen - /var/www/discourse/vendor/data/GeoLite2-ASN.mmdb
7 月 4 日 下午 3:23
3
MaxMindDB (/var/www/discourse/vendor/data/GeoLite2-City.mmdb) could not be found: No such file or directory @ rb_sysopen - /var/www/discourse/vendor/data/GeoLite2-City.mmdb
7 月 5 日 下午 4:17
3
MaxMindDB (/var/www/discourse/vendor/data/GeoLite2-ASN.mmdb) could not be found: No such file or directory @ rb_sysopen - /var/www/discourse/vendor/data/GeoLite2-ASN.mmdb
7 月 5 日 下午 4:17
弃用通知:`AdminDashboardData#add_problem_check` 已弃用。请实现一个继承 `ProblemCheck` 的类。(将在 Discourse 3.3 中移除)位于 /var/www/discourse/plugins/discourse-si
7 月 6 日 上午 1:00
20
CSP 违规:'https://sitetor.com/assets/start-discourse-c524a8995f2f0cbcea43353efe8e8f269da821ea97c21ef0f04df5fcd916170a.js'
周日 下午 4:33
20
CSP 违规:'https://sitetor.com/assets/browser-update-9070f07226d022f68c06506e046ae33f8fe725302ff53955cd3d483f2fc47ff6.js'
周日 下午 4:33
CSP 违规:'https://sitetor.com/svg-sprite/sitetor.com/svg-87-ca7d0fff2c92f16b8b655f85bb0a36f4c6eb98df.js'
周日 下午 4:33
CSP 违规:'https://sitetor.com/uploads/default/original/2X/d/d8ce366bd7aad8f9fc7b26b08aecc855dd6d425c.js'
周日 下午 4:33
3
CSP 违规:'https://pagead2.googlesyndication.com'
周日 下午 4:33
23
ActionView::Template::Error (undefined method `slug_path' for nil:NilClass) app/models/category.rb:1103:in `slug_path' app/models/category.rb:945:in `block in url' lib/distributed_cache.rb:20:in `defe
周一 下午 6:50
69
RequestTracker.get_data failed : Encoding::UndefinedConversionError : "\xA3" from ASCII-8BIT to UTF-8
周二 上午 2:15
181
RequestTracker.get_data failed : Encoding::UndefinedConversionError : "\xA1" from ASCII-8BIT to UTF-8
周二 下午 3:52
8
弃用通知:`UsersController#modify_user_params` 方法已弃用。请使用 `users_controller_update_user_params` 修改器。(自 Discourse 3.1.0.beta4 起弃用)(removal
周二 晚上 11:18
弃用通知:`AdminDashboardData#add_problem_check` 已弃用。请实现一个继承 `ProblemCheck` 的类。(将在 Discourse 3.3 中移除)位于 /var/www/discourse/plugins/discourse-si
周三 下午 2:46
Corrupt cache... skipping entry for key _CACHE:sitemap/1/50000 : ArgumentError : dump format error (user class)
周三 晚上 6:39
MaxMindDB (/var/www/discourse/vendor/data/GeoLite2-City.mmdb) could not be found: No such file or directory @ rb_sysopen - /var/www/discourse/vendor/data/GeoLite2-City.mmdb
周三 晚上 10:51
MaxMindDB (/var/www/discourse/vendor/data/GeoLite2-ASN.mmdb) could not be found: No such file or directory @ rb_sysopen - /var/www/discourse/vendor/data/GeoLite2-ASN.mmdb
周三 晚上 10:51
弃用通知:`AdminDashboardData#add_problem_check` 已弃用。请实现一个继承 `ProblemCheck` 的类。(将在 Discourse 3.3 中移除)位于 /var/www/discourse/plugins/discourse-si
凌晨 5:40
ActionView::Template::Error ({:cause=>#<MiniRacer::RuntimeError: Error: The plural case one is not valid in this locale at line 4 col 15:>}) lib/js_locale_helper.rb:153:in `output_MF' app/controllers/
凌晨 5:57
Failed to handle exception in exception app middleware : ActionView::Template::Error : {:cause=>#<MiniRacer::RuntimeError: Error: The plural case one is not valid in this locale at line 4 col 15:>}
凌晨 5:57
弃用通知:`AdminDashboardData#add_problem_check` 已弃用。请实现一个继承 `ProblemCheck` 的类。(将在 Discourse 3.3 中移除)位于 /var/www/discourse/plugins/discourse-si
上午 8:49
ActionView::Template::Error ({:cause=>#<MiniRacer::RuntimeError: Error: The plural case one is not valid in this locale at line 4 col 15:>}) lib/js_locale_helper.rb:153:in `output_MF' app/controllers/
上午 9:03
ActionView::Template::Error ({:cause=>#<MiniRacer::RuntimeError: Error: The plural case one is not valid in this locale at line 4 col 15:>}) lib/js_locale_helper.rb:153:in `output_MF' app/controllers/
上午 9:18
弃用通知:`AdminDashboardData#add_problem_check` 已弃用。请实现一个继承 `ProblemCheck` 的类。(将在 Discourse 3.3 中移除)位于 /var/www/discourse/plugins/discourse-si
上午 10:11
ActionView::Template::Error ({:cause=>#<MiniRacer::RuntimeError: Error: The plural case one is not valid in this locale at line 4 col 15:>}) lib/js_locale_helper.rb:153:in `output_MF' app/controllers/
上午 10:48
3
NoMethodError (undefined method `slug_path' for nil) app/models/category.rb:1229:in `slug_path' app/models/category.rb:1069:in `block in url' lib/distributed_cache.rb:20:in `defer_get_set' app/models/
下午 12:26
ActionView::Template::Error ({:cause=>#<MiniRacer::RuntimeError: Error: The plural case one is not valid in this locale at line 4 col 15:>}) lib/js_locale_helper.rb:153:in `output_MF' app/controllers/
下午 1:21
10
ActionView::Template::Error ({:cause=>#<MiniRacer::RuntimeError: Error: The plural case one is not valid in this locale at line 4 col 15:>}) lib/js_locale_helper.rb:153:in `output_MF' app/controllers/
下午 1:46
16
ActionView::Template::Error ({:cause=>#<MiniRacer::RuntimeError: Error: The plural case one is not valid in this locale at line 4 col 15:>}) lib/js_locale_helper.rb:153:in `output_MF' app/controllers/
下午 1:48
59
ActionView::Template::Error ({:cause=>#<MiniRacer::RuntimeError: Error: The plural case one is not valid in this locale at line 4 col 15:>}) lib/js_locale_helper.rb:153:in `output_MF' app/controllers/
下午 1:52
47
ActionView::Template::Error ({:cause=>#<MiniRacer::RuntimeError: Error: The plural case one is not valid in this locale at line 4 col 15:>}) lib/js_locale_helper.rb:153:in `output_MF' app/controllers/
下午 2:10
ActionView::Template::Error ({:cause=>#<MiniRacer::RuntimeError: Error: The plural case one is not valid in this locale at line 4 col 15:>}) lib/js_locale_helper.rb:153:in `output_MF' app/controllers/
下午 2:23
16
ActionView::Template::Error ({:cause=>#<MiniRacer::RuntimeError: Error: The plural case one is not valid in this locale at line 4 col 15:>}) lib/js_locale_helper.rb:153:in `output_MF' app/controllers/
下午 2:24
ActionView::Template::Error ({:cause=>#<MiniRacer::RuntimeError: Error: The plural case one is not valid in this locale at line 4 col 15:>}) lib/js_locale_helper.rb:153:in `output_MF' app/controllers/
下午 2:25
17
Failed to handle exception in exception app middleware : ActionView::Template::Error : {:cause=>#<MiniRacer::RuntimeError: Error: The plural case one is not valid in this locale at line 4 col 15:>}
下午 2:25

“记录不唯一”错误表明您的索引已损坏。您需要找到有关如何修复该问题的相关主题(主要是删除重复的标签)。

您是否同时使用了大写和小写的标签?(例如 mytag 和 myTag)

我不记得了,
有什么SSH命令可以列出已创建的标签吗?
但是,尽管我无法在新标签页中访问主页,但幸运的是,我的浏览器仍然保留了升级前的旧标签页,并且我仍然可以在主页上加载许多新主题。

您能导航到标签页面吗?

但是您需要手动解决数据库问题。最简单的办法就是删除重复的条目。

我认为在其他一些情况下,有一些关于如何操作的主题。

我认为您尝试重建索引,找到导致它失败的原因,然后删除它,一直这样做直到它正常工作。

我尝试访问标签页,但它不起作用。升级时出现了此错误。为什么论坛在不升级的情况下仍然正常工作?如何手动解决您的数据库问题?我是一名普通用户,不是开发人员 :frowning:

我不知道。也许有什么东西改变了,现在标签不区分大小写了?或者这可能是一个 bug。

但这看起来与标签不唯一有关:

这不是一个普通用户需要处理的任务。

那这个错误呢?ActionView::Template::Error ({:cause=>#<MiniRacer::RuntimeError: Error: The plural case one is not valid in this locale at line 4 col 15:>}) lib/js_locale_helper.rb:153:in output_MF’ app/controllers/`

之前,我使用了 https://meta.discourse.org/t/remove-dashes-from-tag-names/285684。这是否导致了重复标签?

我成功访问了标签页面:

标签页面上显示了所有标签,我没有发现任何重复的标签对。

查看标签页面详情

标签

排序方式:计数 名称


地段

双面临街 x 70

三面临街 x 2

四面临街 x 1

领域

添加别墅 x 4

商业平面

提升建筑 x 2

项目

Vinhomes Central Park x 1

朝向

x 1

x 1

东北 x 1

东南 x 1

x 1

西 x 1

西北 x 1

商业

24小时 x 3

英语

咖啡馆 x 7

加油站 x 1

连锁 x 58

食品店 x 1

电话 x 2

游戏 x 1

娱乐 x 6

送货 x 1

洗衣 x 1

鞋类 x 3

健身房 x 1

酒窖 x 1

卡拉OK x 8

眼镜 x 1

餐厅 x 10

牙科 x 2

书店 x 2

药店 x 3

室内装饰 x 5

公证室

诊所 x 2

录音室 x 1

披萨 x 2

餐馆 x 2

酒馆 x 3

沙龙 x 1

转让 x 1

展厅 x 10

超市 x 8

水疗中心 x 3

时装 x 11

快餐 x 2

网吧 x 1

奶茶 x 1

水果 x 1

珠宝 x 1

学校 x 2

办公室 x 18

汽车 x 1

摩托车 x 2

雪茄 x 1

房地产类型

别墅 x 20

公寓 x 27

服务式公寓 x 1

公寓楼 x 23

土地 x 11

复式

仓库 x 1

路边商铺

商场

街铺 x 361

顶层公寓

出租房

屋顶 x 1

越南商铺 x 3

大楼 x 3

办公室 x 18

交易类型

出售 x 47

求购 x 32

求租 x 413

出租 x 12942

临街宽度(米)

宽10米 x 632

宽11米 x 539

宽12米 x 553

宽13米 x 396

宽14米 x 403

宽15米 x 504

宽16米 x 332

宽17米 x 158

宽18米 x 262

宽19米 x 38

宽20米 x 445

宽3米 x 988

宽4米 x 1562

宽5米 x 907

宽6米 x 977

宽7米 x 978

宽8米 x 959

宽9米 x 976

用途

投资 x 1

自住 x 5

商业 x 392

工单优先级

工单原因

工单状态

胡志明市

平政郡

平新郡 x 1

平盛郡 x 2

芹苴区 x 1

土龙木区 x 1

鹅贡郡 x 1

和门郡 x 1

仁德郡 x 1

第1郡 x 2

第10郡 x 1

第11郡 x 1

第12郡 x 2

第2郡 x 1

第3郡 x 1

第4郡 x 1

第5郡 x 1

第6郡 x 1

第7郡 x 1

第8郡 x 1

第9郡 x 1

富润郡 x 1

新平郡

新富郡 x 1

守德郡 x 1

交易状态

未确定 x 1

已交易 x 2

交易中 x 1

停止交易 x 1

位置

小巷 x 8

临街 x 12914

内部 x 1

其他标签

3卧室 x 2

4层 x 1

出售土地 x 2

出售房屋 x 1

平治东A x 1

机会 x 2

有视频 x 6

cv x 1

已更新红本 x 2

已定金 x 1

岘港 x 1

空地 x 1

面积10x24米 x 1

面积17x31米 x 1

面积4x16米 x 1

面积4x17米 x 1

面积4x18米 x 1

面积4x20米 x 1

面积5x15米 x 1

面积5x19米 x 1

面积6x28米 x 1

面积7x21米 x 1

面积8x15米 x 1

面积8x20米 x 1

面积8x22米 x 1

面积8x26米 x 1

面积9x41米 x 1

土地面积105平方米 x 1

面积:10x7米 x 1

面积:6x17米 x 1

总建筑面积120平方米

总建筑面积2880平方米 x 1

使用面积805平方米 x 1

项目 x 1

无人机 x 1

价格1000亿越盾 x 1

价格1080亿越盾 x 1

价格1100亿越盾 x 1

价格1300亿越盾 x 1

价格1500亿越盾 x 3

价格1800亿越盾 x 1

价格2000亿越盾 x 1

价格2180亿越盾 x 1

价格2200亿越盾 x 1

价格260亿越盾 x 1

价格270亿越盾 x 1

价格280亿越盾 x 3

价格310亿越盾 x 1

价格340亿越盾 x 1

价格350亿越盾 x 1

价格360亿越盾 x 1

价格430亿越盾 x 1

价格480亿越盾 x 1

价格530亿越盾 x 1

价格550亿越盾 x 1

价格600亿越盾 x 2

价格630亿越盾 x 1

价格70亿越盾 x 1

价格700亿越盾 x 1

价格740亿越盾 x 1

价格760亿越盾 x 1

价格790亿越盾 x 1

价格8000万越盾 x 1

价格800亿越盾 x 1

价格850亿越盾 x 1

土地价格3.5亿越盾/平方米 x 1

租金5000万越盾 x 1

月租金5000万越盾 x 1

价格:270亿越盾 x 1

价格:290亿越盾 x 1

价格:320亿越盾 x 1

价格:390亿越盾 x 1

结构7层 x 1

结构底层加7层 x 1

客户出售房屋 x 1

不出租 x 2

绿化区 x 1

房地产类型 x 2

平面 x 1

优质平面 x 69

临街17米

临街4米 x 1

宽26米 x 1

宽29米 x 1

停止出售 x 2

停止出租 x 1

房屋 x 5

本涅房屋 x 1

街屋 x 5

VT房屋 x 1

100-200亿越盾区间 x 3

部分100-200亿越盾区间 x 1

20-50亿越盾区间 x 1

200-300亿越盾区间 x 1

50-100亿越盾区间 x 3

低于100亿越盾区间 x 1

富润第13坊 x 1

第3郡第9坊

本涅坊 x 5

本城坊 x 174

桥库坊 x 1

桥翁领坊 x 1

多考坊 x 2

阮太平坊 x 2

草田坊 x 3

武氏六坊 x 2

城市住宅规划 x 1

转让 x 2

新定 x 1

总建筑面积62平方米

装饰设计 x 14

租赁 x 1

办公楼 x 2

胡志明市 x 417

底层加2层 x 1

工作 x 13

别墅 x 1

越南建筑 x 4

武文杰 x 1

办公室 x 1

降价 x 1

我看到有两个相同的标签「分」和「份」
100-200亿越盾区间 x 3
部分100-200亿越盾区间 x 1

我删除了这个标签:
部分100-200亿越盾区间 x 1
但依然无法访问首页: rowning:」
}

由于这是一个 Theme component,您可以在组件选项卡中禁用它。不确定它是否会导致问题,因为据我所知,这些是客户端修改。这个组件尤其只是改变标签的外观。不过,测试一下以排除它并没有坏处。

而您的数据库是服务器端的。

是的!@Heliosurge 我访问了设置页面,关闭了所有主题组件并选择了默认主题。然后访问主页,但没有效果。

如果安全模式运行无效,那么如果您不熟悉/不习惯手动重建,您可能需要考虑在 Marketplace 中发帖。

我知道根据 @pfaffman 的说法,在这种情况下我需要寻求帮助。

您好,我可以使用哪些管理批量操作来删除(topic_id, tag_id)=(65105, 601)?

谢谢

我创建了主题 需要手动解决数据库问题,升级论坛后标签不唯一的错误,并得到了 @itsbhanusharma 的支持,但仍然找不到原因。

我恢复了 Vultr 服务器,这是我在 2024 年 4 月备份的。然后我恢复了 Dashboard .tar.gz 文件中的备份数据。但仍然出现上述相同的错误。似乎这个备份(.tar.gz 文件)存在相同的错误,尽管已恢复,但网站仍然无法访问。

我重新使用了 Vultr 服务器版本 044/2024,并一直开发内容至今。

今天,我访问了 admin/customize/site_texts/js.topic.read_more_MF?locale=en_GB

翻译内容

剩余主题
或浏览其他主题
查看最新主题

{ HAS_UNREAD_AND_NEW, select,
  true {
    { UNREAD, plural,
         =0 {}
        one {There is <a># unread</a>}
      other {There are <a># unread</a>}
    }
    { NEW, plural,
         =0 {}
        one { and <a># new</a> topic remaining,}
      other { and <a># new</a> topics remaining,}
    }
  }
  false {
    { UNREAD, plural,
         =0 {}
        one {There is <a># unread</a> topic remaining,}
      other {There are <a># unread</a> topics remaining,}
    }
    { NEW, plural,
         =0 {}
        one {There is <a># new</a> topic remaining,}
      other {There are <a># new</a> topics remaining,}
    }
  }
  other {}
}
{ HAS_CATEGORY, select,
  true { or browse other topics in {categoryLink}}
  false { or <a>view latest topics</a>}
  other {}
}

使用英语可以成功,但使用越南语时,我在设置中保存时会收到错误消息:
Error: The plural case one is not valid in this locale at line 4 col 15:

并且我在页面日志中发现了这个错误:

有什么关联吗?

您是否阅读过关于这些字符串如何翻译的主题?

为什么要在您的论坛上自定义文本?是翻译有误还是您只是偏好不同的措辞?

非常感谢您的教程,我阅读并按如下方式进行了编辑,显示成功:

{ HAS_UNREAD_AND_NEW, select,
  true {
    { UNREAD, plural,
        =0 {}
        other {有 # 条未读消息}
      }
    { NEW, plural,
        =0 {}
        other { and # new unread messages,}
      }
  }
  false {
    { UNREAD, plural,
        =0 {}
        other {有 # 条未读消息,}
      }
    { NEW, plural,
        =0 {}
        other {有 # 条新消息未读,}
      }
  }
  other {}
}
{ HAS_CATEGORY, select,
  true { or view other news in {categoryLink}}
  false { or {basePath}/latest}
  other {}
}