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

<div class="post-metadata">

作者： ![Firepup650](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/firepup650/32/465200_2.png) [@Firepup650](https://meta.discourse.org/u/Firepup650)\
发布日期： [2024 年1 月 23 日 18:24 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/2 "2024-01-23T18:24:17Z")

</div>

> [@TonyG](#):
>
> 有了这些信息，我们或许能学会如何防止将来出现此问题。

从阅读这里的大量帖子来看，_通常_论坛管理员不是导致 502 错误的元凶，而是插件/核心错误。因此，您也无法采取太多措施来避免这些问题。

> [@TonyG](#):
>
> 我们还能做些什么来查看日志并确切了解环境为何崩溃？

控制台日志总是有帮助的，它们很多时候都能查明有问题的插件。

---

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