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

<div class="post-metadata">

作者： ![Ed\_S](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/ed_s/32/134015_2.png) [@Ed\_S](https://meta.discourse.org/u/Ed_S)\
发布日期： [2024 年3 月 30 日 13:16 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/9 "2024-03-30T13:16:53Z")

</div>

> [@TonyG](#):
>
> “经常”？不。但足够频繁，足以引起轻微的烦恼并在此发帖。 🙂

我认为这里几乎所有关于 502 错误的帖子都是在 Discourse 升级后未能恢复正常的时候。升级失败了，或者管理员没有等待足够长的时间让服务启动。

您是说您的 Discourse 正在运行，您没有采取任何管理操作，但它却自发地开始返回 502 错误？

当这种情况发生时，它总是返回 502 直到重启，还是会间歇性地再次工作？

---

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