# 当 Discourse 站点出现 502 Bad Gateway 错误时，是否有分步诊断？

**URL:** <https://meta.discourse.org/t/is-there-a-step-by-step-diagnostic-for-when-a-discourse-site-is-found-in-a-502-bad-gateway/292671>\
**Category:** Self-hosting\
**Created:** [2024 年1 月 23 日 18:15 UTC](https://meta.discourse.org/t/is-there-a-step-by-step-diagnostic-for-when-a-discourse-site-is-found-in-a-502-bad-gateway/292671 "2024-01-23T18:15:14Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

作者： ![TonyG](https://avatars.discourse-cdn.com/v4/letter/t/f14d63/32.png) [@TonyG](https://meta.discourse.org/u/TonyG)\
发布日期： [2024 年1 月 23 日 19:08 UTC](https://meta.discourse.org/t/is-there-a-step-by-step-diagnostic-for-when-a-discourse-site-is-found-in-a-502-bad-gateway/292671/3 "2024-01-23T19:08:12Z")

</div>

我可以在此 VPS 上打开控制台，但文本窗口是有限的。

是否有可以在容器或操作系统中检查的特定日志？  
主机操作系统或容器中是否已经有某种 ping 进程可以检测到进程何时停止运行？  
与完全重建相比，在容器内简单地重启服务器是否是一种很好的方法？

顺便说一下，我正在运行最新的测试版/开发版，所以最近的更新很可能导致服务器宕机，正如我们过去所见。我现在不记得是否有安装任何非默认插件。

我有自由帮助诊断这个问题，而不会让我们的社区感到不满，尽管在几个月内我们需要迁移到更稳定的版本，只是为了让我们的用户感到舒适。所以，如果这是构建中的问题，我很乐意帮忙找到它。

谢谢！

---

_[View the full topic](https://meta.discourse.org/t/is-there-a-step-by-step-diagnostic-for-when-a-discourse-site-is-found-in-a-502-bad-gateway/292671)._
