帮助!我的 Discourse 实例已离线

Docker 升级后出现“网关错误”。

我尝试了:

  • 重新安装 Docker 并重建
  • 检查了 IP 地址
  • 检查了服务器是否单独运行
  • 可以通过 Putty 连接服务器
  • 启用了 Docker Doctor

请建议我如何恢复在线 :slight_smile:

2 个赞

您可能只需要再等一两分钟,让服务器完成启动。

4 个赞

你说得对——谢谢你指明了正确的方向。

2 个赞

所以你又回来了,而且又能正常工作了?

3 个赞

抱歉,不行。

看起来 Discourse 实例在重建后有 75% 的可访问性……但之后,它又会返回 502 错误网关。

设置完成后(重建)——它又离线了。

3 个赞

重建期间预计会停机。

重建后需要一两分钟才能全部启动。

您的磁盘空间是否足够?

3 个赞

感谢您的评论。

是的,我熟悉重建后的时期。但我们还有 10 分钟的路程,网站仍然离线。

是的,我们有 160GB 的磁盘空间。

1 个赞

那么你很可能还有其他问题,也许是插件。你可以查看

  tail -f /var/discourse/shared/standalone/log/rails/production.log

或者非常类似的内容

1 个赞

Completed 200 OK in 43ms (Views: 0.2ms | ActiveRecord: 0.0ms | Allocations: 1349 9)
Started POST “/t/6242/notifications.json” for 172.71.102.181 at 2023-03-08 14:43 :49 +0000
Processing by TopicsController#set_notifications as JSON
Parameters: {“notification_level”=>3, “topic_id”=>“6242”, “topic”=>{}, “external_id”=>“19929.json”}
Can’t verify CSRF token authenticity.
Completed 200 OK in 10ms (Views: 0.1ms | ActiveRecord: 0.0ms | Allocations: 2675 )
Deprecation notice: SiteSetting.enable_personal_messages has been deprecated. Please use SiteSetting.personal_message_enabled_groups instead. (removal in Di scourse 3.0)
At /var/www/discourse/lib/site_setting_extension.rb:199:in public_send
Rendered layouts/email_template.html.erb (Duration: 2.2ms | Allocations: 775)

Thanks for helping me out @pfaffman.

Unfortunately, I am not able to fix it.

Can I hire you to fix this issue, please?

2 个赞

@pfaffman 帮了我!谢谢!

是我们的 app.yml 中的一个拼写错误。

4 个赞

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.