# 显示热门推荐主题时出错

**URL:** https://meta.discourse.org/t/error-displaying-top-referred-topics/349603
**Category:** Data & reporting
**Created:** [2025年一月29日 17:13 UTC](https://meta.discourse.org/t/error-displaying-top-referred-topics/349603 "2025-01-29T17:13:12Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![serkhelesheyi](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/serkhelesheyi/32/497726_2.png) [@serkhelesheyi](https://meta.discourse.org/u/serkhelesheyi)
#### Post date: [2025年一月29日 17:13 UTC](https://meta.discourse.org/t/error-displaying-top-referred-topics/349603/1 "2025-01-29T17:13:12Z")

</div>

更新 Discourse 后，在“ **仪表盘** ”的“ **热门推荐主题** ”部分出现以下错误：  
**抱歉，执行查询时出错**

日志中也对该错误进行了说明：  
**计算报告 `top_referred_topics` 时出错：PG::ReadOnlySqlTransaction: ERROR: cannot execute UPDATE in a read-only transaction /var/www/discourse/vendor/bundle/ruby/3.3.0/gems/rack-mini-pro**

---

<div class="post-metadata">

### Author: ![Arkshine](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/arkshine/32/298682_2.png) [@Arkshine](https://meta.discourse.org/u/Arkshine)
#### Post date: [2025年一月29日 18:13 UTC](https://meta.discourse.org/t/error-displaying-top-referred-topics/349603/2 "2025-01-29T18:13:21Z")

</div>

您是从管理员面板升级的吗？

如果是，我建议尝试通过控制台重新构建；这可以解决大多数问题。  
我升级了一个实例，但无法重现它。 🤔

可能与 [DEV: Convert `AdminReport` component to gjs by martin-brennan · Pull Request #31011 · discourse/discourse · GitHub](https://github.com/discourse/discourse/pull/31011/) 有关。

---

<div class="post-metadata">

### Author: ![serkhelesheyi](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/serkhelesheyi/32/497726_2.png) [@serkhelesheyi](https://meta.discourse.org/u/serkhelesheyi)
#### Post date: [2025年一月29日 22:39 UTC](https://meta.discourse.org/t/error-displaying-top-referred-topics/349603/3 "2025-01-29T22:39:19Z")

</div>

您好 @Arkshine  
我从管理面板进行了升级，然后运行了 `./launcher rebuild app`，但问题仍然存在。
