# 当 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:** 6

<div class="post-metadata">

作者： ![TonyG](https://avatars.discourse-cdn.com/v4/letter/t/f14d63/32.png) [@TonyG](https://meta.discourse.org/u/TonyG)\
发布日期： [2024 年3 月 30 日 02:31 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/6 "2024-03-30T02:31:09Z")

</div>

抱歉这么久才回来……

磁盘使用率低于 50%。  
RAM 倾向于保持在 80-90 范围内，Swap 低于 40%。我猜问题出在这里。  
日志位于 /var/discourse/shared/standalone/log/rails。  
production.log 和相关的 gzipped 文件包含大量事务详细信息。我应该查找什么？  
production\_error.log 条目完全没有。  
“经常”？不。但足够频繁，足以让人有点烦恼并在此发帖。 🙂  
我查看了 syslog，没有发现任何内容——我不确定如果问题仅限于容器，那里是否会有任何内容，因为它应该是。

我是 Docker 新手，所以很抱歉我没有容器的信息，但很乐意按指示进行操作。

谢谢！

---

_[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)._
