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

<div class="post-metadata">

作者： ![pfaffman](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/pfaffman/32/120154_2.png) [@pfaffman](https://meta.discourse.org/u/pfaffman)\
发布日期： [2024 年3 月 30 日 12:46 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/8 "2024-03-30T12:46:40Z")

</div>

当 Rails 未返回响应时，会发生 502 错误，通常发生在系统启动或配置错误时。

您可以查看 nginx 日志。

---

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