# 恢复到新安装时出错

**URL:** https://meta.discourse.org/t/error-when-restoring-from-backup-to-new-installation/173702
**Category:** Self-hosting
**Created:** [2020年十二月18日 12:42 UTC](https://meta.discourse.org/t/error-when-restoring-from-backup-to-new-installation/173702 "2020-12-18T12:42:13Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![h.vdheurik](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/h.vdheurik/32/78661_2.png) [@h.vdheurik](https://meta.discourse.org/u/h.vdheurik)
#### Post date: [2020年十二月18日 12:42 UTC](https://meta.discourse.org/t/error-when-restoring-from-backup-to-new-installation/173702/1 "2020-12-18T12:42:13Z")

</div>

我正在尝试从一个正常运行的 Discourse 实例恢复备份到一个新的（测试）Discourse 实例。它持续失败，并出现以下错误：

```
[2020-12-18 12:37:14] ERROR: 关系 "github_user_infos" 已存在
[2020-12-18 12:37:14] EXCEPTION: psql 失败：ERROR: 关系 "github_user_infos" 已存在

```

---

<div class="post-metadata">

### Author: ![paresy](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/paresy/32/96471_2.png) [@paresy](https://meta.discourse.org/u/paresy)
#### Post date: [2021年二月18日 15:12 UTC](https://meta.discourse.org/t/error-when-restoring-from-backup-to-new-installation/173702/2 "2021-02-18T15:12:58Z")

</div>

@h.vdheurik 您成功解决这个问题了吗？我的情况是退出时出现以下错误：

```plaintext
ERROR: relation "allowed_pm_users" already exists
EXCEPTION: psql failed: ERROR: relation "allowed_pm_users" already exists

```
