# 升级到最新版本后出现502 Bad Gateway

**URL:** https://meta.discourse.org/t/502-bad-gateway-after-updating-to-latest-version/364024
**Category:** Support
**Created:** [2025年四月29日 17:59 UTC](https://meta.discourse.org/t/502-bad-gateway-after-updating-to-latest-version/364024 "2025-04-29T17:59:54Z")
**Posts on this page:** 1
**Showing post:** 12

<div class="post-metadata">

### Author: ![pfaffman](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/pfaffman/32/120154_2.png) [@pfaffman](https://meta.discourse.org/u/pfaffman)
#### Post date: [2025年四月29日 19:56 UTC](https://meta.discourse.org/t/502-bad-gateway-after-updating-to-latest-version/364024/12 "2025-04-29T19:56:17Z")

</div>

您可以在 `/var/discourse/shared/standalone/postgres_data/PG_VERSION` 检查 Postgres 的版本 – 如果您进行了命令行升级，可能它已完成升级而您未注意到（但您必须运行过两次重建）。如果您是通过网页界面升级的，建议如果您的操作系统和 Docker 版本较新，可以直接进行命令行重建。

---

_[View the full topic](https://meta.discourse.org/t/502-bad-gateway-after-updating-to-latest-version/364024)._
