# 论坛更新卡住且丢失，PG 迁移问题

**URL:** https://meta.discourse.org/t/stuck-and-lost-updating-forum-problems-with-pg-migration/369694
**Category:** Self-hosting
**Created:** [2025年六月11日 09:08 UTC](https://meta.discourse.org/t/stuck-and-lost-updating-forum-problems-with-pg-migration/369694 "2025-06-11T09:08:58Z")
**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年六月11日 13:57 UTC](https://meta.discourse.org/t/stuck-and-lost-updating-forum-problems-with-pg-migration/369694/12 "2025-06-11T13:57:22Z")

</div>

叹气。您使用的是相同的hostname吗？（也许吧？）

> [@skozz](#):
>
> ```plaintext
> EXCEPTION: 903 posts are not remapped to new S3 upload URL.
> S3 migration failed for db 'default'.
> 
> ```

这就是您现在的问题。

您是在数据库中还是在yml文件中配置的S3？我猜是前者。最简单的方法是只恢复数据库，但这很难解释（提取sql文件，然后将其命名为与tar.gz文件相同的东西）。

您可以尝试这个

```plaintext
discourse restore --pause <backup_filename>

```

这将在尝试恢复S3内容之前暂停。然后，如果您知道该怎么做，就可以解决错误上传的问题。

请参阅 [Issues with restoring backup to discourse - #16 by gerhard](https://meta.discourse.org/t/issues-with-restoring-backup-to-discourse/357885/16?u=pfaffman)

另一种方法是在您的 `app.yml` 中将 DISCOURSE\_USE\_S3 设置为 false。您可能还需要设置其他S3内容，例如那些指示使用S3上传和/或S3存储桶的设置。

---

_[View the full topic](https://meta.discourse.org/t/stuck-and-lost-updating-forum-problems-with-pg-migration/369694)._
