# 升级后发帖出现500错误

**URL:** https://meta.discourse.org/t/getting-500-errors-when-posting-a-topic-after-an-upgrade/171725
**Category:** Support
**Created:** [2020年十一月30日 12:18 UTC](https://meta.discourse.org/t/getting-500-errors-when-posting-a-topic-after-an-upgrade/171725 "2020-11-30T12:18:42Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![yerttle](https://avatars.discourse-cdn.com/v4/letter/y/58f4c7/32.png) [@yerttle](https://meta.discourse.org/u/yerttle)
#### Post date: [2020年十一月30日 12:18 UTC](https://meta.discourse.org/t/getting-500-errors-when-posting-a-topic-after-an-upgrade/171725/1 "2020-11-30T12:18:42Z")

</div>

你好，我们刚刚将论坛从测试版升级到了稳定版，现在每次尝试发布新主题时都会出现 500 错误。

我在日志中看到了以下错误：

```
ActiveRecord::StatementInvalid (PG::InFailedSqlTransaction: ERROR: current transaction is aborted, commands ignored until end of transaction block

```

)  
/var/www/discourse/vendor/bundle/ruby/2.7.0/gems/rack-mini-profiler-2.0.2/lib/patches/db/pg.rb:69:in `exec\_params’

异常应用中间件处理异常失败：PG::InFailedSqlTransaction: ERROR: current transaction is aborted, commands ignored until end of transaction block

作业异常：PG::InFailedSqlTransaction: ERROR: current transaction is aborted, commands ignored until end of transaction block

谢谢，

Mark

---

<div class="post-metadata">

### Author: ![osioke](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/osioke/32/238946_2.png) [@osioke](https://meta.discourse.org/u/osioke)
#### Post date: [2020年十一月30日 12:37 UTC](https://meta.discourse.org/t/getting-500-errors-when-posting-a-topic-after-an-upgrade/171725/2 "2020-11-30T12:37:51Z")

</div>

> [@yerttle](#):
>
> 我刚刚将我们的论坛从测试版升级到了稳定版

你好 Mark，你之前使用的是哪个测试版？又升级到了哪个稳定版？

---

<div class="post-metadata">

### Author: ![yerttle](https://avatars.discourse-cdn.com/v4/letter/y/58f4c7/32.png) [@yerttle](https://meta.discourse.org/u/yerttle)
#### Post date: [2020年十一月30日 14:14 UTC](https://meta.discourse.org/t/getting-500-errors-when-posting-a-topic-after-an-upgrade/171725/3 "2020-11-30T14:14:27Z")

</div>

我们相信从 2.6.0.beta3 到 2.5.5 稳定版

---

<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: [2020年十一月30日 14:47 UTC](https://meta.discourse.org/t/getting-500-errors-when-posting-a-topic-after-an-upgrade/171725/4 "2020-11-30T14:47:54Z")

</div>

> [@yerttle](#):
>
> 2.6.0.beta3 到 2.5.5 稳定版

如果您正在使用测试版（beta）发布版本，您需要等到下一个稳定版发布才能切换到稳定版。无法降级。好消息是，稳定版很快就会发布。
