# 恢复失败 - 可能是数据资源管理器问题

**URL:** https://meta.discourse.org/t/restore-failing-possible-data-explorer-issue/134734
**Category:** Self-hosting
**Created:** [2019 年11 月 30 日 03:02 UTC](https://meta.discourse.org/t/restore-failing-possible-data-explorer-issue/134734 "2019-11-30T03:02:51Z")
**Posts on this page:** 2
**Page:** 2

<div class="post-metadata">

### 作者： ![Mark\_Schmucker](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/mark_schmucker/32/124810_2.png) [@Mark\_Schmucker](https://meta.discourse.org/u/Mark_Schmucker)
#### 发布日期： [2019 年12 月 9 日 08:11 UTC](https://meta.discourse.org/t/restore-failing-possible-data-explorer-issue/134734/21 "2019-12-09T08:11:17Z")

</div>

> [@riking](#):
>
> 有没有可能是因为某种原因，开发数据库缺少该索引？

我认为生产环境和开发环境都包含该索引：

> [91] pry(main)\> PluginStoreRow.connection.indexes(“plugin\_store\_rows”)  
> =\> [#\<ActiveRecord::ConnectionAdapters::IndexDefinition:0x00005556a36241d0  
> @columns=[“plugin\_name”, “key”],  
> @comment=nil,  
> @lengths={},  
> @name=“index\_plugin\_store\_rows\_on\_plugin\_name\_and\_key”,  
> @opclasses={},  
> @orders={},  
> @table=“plugin\_store\_rows”,  
> @type=nil,  
> @unique=true,  
> @using=:btree,  
> @where=nil\>]

> [@Mark\_Schmucker](#):
>
> 我该如何删除这些重复的查询，因为它们属于系统所有？

我通过以下方式删除了它们：

> PluginStoreRow.find(\< id \>).destroy

删除重复项后，我进行了备份，并成功恢复到干净的安装状态。因此，我确定这是备份失败的原因。我明天会将此问题移至一个新的 [Data Explorer](https://meta.discourse.org/t/32566?silent=true) 缺陷主题。不过，我希望能复现这个问题。

---

<div class="post-metadata">

### 作者： ![Mark\_Schmucker](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/mark_schmucker/32/124810_2.png) [@Mark\_Schmucker](https://meta.discourse.org/u/Mark_Schmucker)
#### 发布日期： [2019 年12 月 9 日 08:38 UTC](https://meta.discourse.org/t/restore-failing-possible-data-explorer-issue/134734/22 "2019-12-09T08:38:49Z")

</div>

我不是数据库专家。那个“唯一”索引是否存在某些缺陷？

[上一页](https://meta.discourse.org/t/restore-failing-possible-data-explorer-issue/134734.md?page=1)
