SkyLin
(Sky Lin)
2021 年6 月 21 日 13:59
1
系统在今晨更新后变得非常缓慢。
帖子可以正常显示,但分类页面加载失败。
管理员后台的加载计时未显示。
我已通过 VPS 每日备份镜像恢复了整个系统。
恢复后,Discourse 显示 502 错误。
使用 PuTTY 登录并重建应用。
附注:我看到一条警告信息:
“MaxMind IP 数据库更新需要许可证
请将 DISCOURSE_MAXMIND_LICENSE_KEY 设置为您在 https://wwww.maxmind.com 生成的密钥”
(更新)检查了 app.yml,发现 DISCOURSE_MAXMIND_LICENSE_KEY 设置已被注释掉。
“自定义头部链接”的显示方式从水平变为垂直。即使输入正确的 ID 和密码也无法登录。
再次通过 VPS 每日备份镜像恢复系统,结果又出现 502 错误……
我该如何跳出这个循环,让 Discourse 重新正常运行?
请提供建议。提前非常感谢。
*更新列表
https://github.com/discourse/discourse/compare/c659e3e9...44aa46ca
https://github.com/discourse/discourse-calendar/compare/f5cb5a2...14a7649
https://github.com/discourse/discourse-solved/compare/fe4d0c0...ca0dbd6
请在 /var/discourse/shared/standalone/log/ 中查找错误。
您上一次更新是什么时候?
有时主题和主题组件会出现问题,请尝试按照 Using Safe Mode to troubleshoot issues with themes and plugins 进行操作,看看是否有帮助。
SkyLin
(Sky Lin)
2021 年6 月 21 日 15:56
3
Thanks for advice. Normally I update 2 to 3 times per week.
UPDATE : I did the same process mentioned above for the 3rd times and the problem 5(“Custom Header Links” and login error) won’t happen again. And the admin page loading time appear again as well. Weird, I just repeat the same process for the 3rd time.
However, the category page loading failure still exist.
Sample page: 尚未分類 - StudyCamp 台灣線上學習論壇
Meanwhile, the tag page loading works fine.
Sample page: 主題標籤 會議記錄
Please advice. Many thanks again.
看起来您的页面出现了 JavaScript 错误 TypeError: undefined is not an object (evaluating 'e[t]'),但我不确定具体原因。
建议您先在 app.yml 中禁用所有插件,然后逐个重新启用,直到找到导致问题的插件。此外,您还应该查看每个已使用插件的元讨论页面,确认是否有插件近期已知存在故障。
SkyLin
(Sky Lin)
2021 年6 月 21 日 16:13
6
明白了。我会先尝试“日历”和“已解决”插件,因为这是我今天更新的内容。再次感谢。
https://github.com/discourse/discourse/compare/c659e3e9...44aa46ca
https://github.com/discourse/discourse-calendar/compare/f5cb5a2...14a7649
https://github.com/discourse/discourse-solved/compare/fe4d0c0...ca0dbd6
SkyLin
(Sky Lin)
2021 年6 月 21 日 16:41
7
错误信息(图片附下):
send @ https://vip.studycamp.tw/assets/vendor-d0c9e6c505a84fa8f3e94def4d2b21ca24b3da8a8d3d2ae26f90b26f3ea9fa94.js:26
ajax @ https://vip.studycamp.tw/assets/vendor-d0c9e6c505a84fa8f3e94def4d2b21ca24b3da8a8d3d2ae26f90b26f3ea9fa94.js:26
window.onerror @ https://vip.studycamp.tw/assets/vendor-d0c9e6c505a84fa8f3e94def4d2b21ca24b3da8a8d3d2ae26f90b26f3ea9fa94.js:36
(anonymous) @ https://vip.studycamp.tw/assets/vendor-d0c9e6c505a84fa8f3e94def4d2b21ca24b3da8a8d3d2ae26f90b26f3ea9fa94.js:36
(anonymous) @ https://vip.studycamp.tw/assets/vendor-d0c9e6c505a84fa8f3e94def4d2b21ca24b3da8a8d3d2ae26f90b26f3ea9fa94.js:36
当我使用上述关键词在网络上搜索时,发现另一个 Discourse 站点有类似的问题:
Web Developers
Sys Admin, Backend, DB and Security
You were right @syl, Docuss isn’t working with the new version of Discourse. What skillset would you recommend for someone coming in to update it, and i’ll start looking for them? A real shame we weren’t able to help anyone during the pandemic...
Reading time: 4 mins 🕑
Likes: 11 ❤
SkyLin
(Sky Lin)
2021 年6 月 22 日 06:04
8
感谢 @ssvenn 的大力帮助。
一些进一步的测试:
启用 安全模式 ,随后运行正常。
编辑 app.yml,仅保留 Docker 管理器插件,然后重新构建应用。
结果 :运行正常
编辑 app.yml,仅移除 onebox 插件*,然后重新构建应用。
结果 :运行正常
*这是我安装的唯一一个非官方插件
编辑 app.yml,恢复为修改前的所有插件,然后重新构建应用。
结果 :运行正常
好吧,最终这个问题消失了。但我什么都没做,只是反复重新构建了应用。
昨天构建的所有应用在分类链接处都失败了。
今天早晨(台湾时间)构建的所有应用在分类链接处都运行正常。
我认为在此期间有代码更新修复了这个问题。但我仍然不知道具体原因。