# 今日升级 2.5.1 到 2.5.2 时出现 discourse-assign 错误

**URL:** <https://meta.discourse.org/t/today-error-when-upgrade-from-2-5-1-to-2-5-2-discourse-assign/166494>\
**Category:** Self-hosting\
**Created:** [2020年十月7日 06:48 UTC](https://meta.discourse.org/t/today-error-when-upgrade-from-2-5-1-to-2-5-2-discourse-assign/166494 "2020-10-07T06:48:05Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![IAmGav](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/iamgav/32/235598_2.png) [@IAmGav](https://meta.discourse.org/u/IAmGav)\
**Post date:** [2020年十月7日 07:30 UTC](https://meta.discourse.org/t/today-error-when-upgrade-from-2-5-1-to-2-5-2-discourse-assign/166494/2 "2020-10-07T07:30:27Z")

</div>

您可能也需要先更新系统软件，并确保您使用的是正确的 PostgreSQL 版本。

> apt-get update  
> apt-get upgrade

然后，请确认您正在使用 PostgreSQL 12。

> [@PostgreSQL 12 update](https://meta.discourse.org/t/postgresql-12-update/151236):
>
> warning WARNING! If your database is very large, you will need a lot of extra disk space (2x database size) and should be very careful with this upgrade! We just landed the long waited PostgreSQL major version upgrade. Any site admins rebuilding Discourse from the command line will be upgraded to PostgreSQL 12 from the old PostgreSQL 10. We are running this new version for a while on Meta, and everything is working fine. PostgreSQL 12 brings lots of improvements that will be automatical…

---

_[View the full topic](https://meta.discourse.org/t/today-error-when-upgrade-from-2-5-1-to-2-5-2-discourse-assign/166494)._
