# 由于键 (plugin\_name, key)=(discourse-data-explorer, q:-1) 重复，还原失败

**URL:** <https://meta.discourse.org/t/restore-failed-due-to-key-plugin-name-key-discourse-data-explorer-q-1-is-duplicated/157535>\
**Category:** Self-hosting\
**Created:** [2020 年7 月 13 日 02:00 UTC](https://meta.discourse.org/t/restore-failed-due-to-key-plugin-name-key-discourse-data-explorer-q-1-is-duplicated/157535 "2020-07-13T02:00:22Z")\
**Posts on this page:** 1\
**Showing post:** 7

<div class="post-metadata">

作者： ![xiasummer](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/xiasummer/32/82790_2.png) [@xiasummer](https://meta.discourse.org/u/xiasummer)\
发布日期： [2020 年7 月 14 日 11:32 UTC](https://meta.discourse.org/t/restore-failed-due-to-key-plugin-name-key-discourse-data-explorer-q-1-is-duplicated/157535/7 "2020-07-14T11:32:26Z")

</div>

如何查看日志？

如果您指的是重建过程的日志，那么这是重建时出现的错误信息（所有红色文字均在此处）。

```plaintext

2020/07/14 11:33:39 socat[26] E connect(6, AF=1 "/shared/postgres_run/.s.PGSQL.5432", 36): No such file or directory

#------

2020-07-14 11:33:42.023 UTC [49] LOG: database system is ready to accept connections
I, [2020-07-14T11:33:46.972466 #1] INFO -- :
I, [2020-07-14T11:33:46.972792 #1] INFO -- : > su postgres -c 'createdb discourse' || true
2020-07-14 11:33:47.025 UTC [62] postgres@postgres ERROR: database "discourse" already exists
2020-07-14 11:33:47.025 UTC [62] postgres@postgres STATEMENT: CREATE DATABASE discourse;
createdb: error: database creation failed: ERROR: database "discourse" already exists
I, [2020-07-14T11:33:47.026573 #1] INFO -- :
I, [2020-07-14T11:33:47.026936 #1] INFO -- : > su postgres -c 'psql discourse -c "create user discourse;"' || true
2020-07-14 11:33:47.083 UTC [73] postgres@discourse ERROR: role "discourse" already exists
2020-07-14 11:33:47.083 UTC [73] postgres@discourse STATEMENT: create user discourse;
ERROR: role "discourse" already exists

```

---

_[View the full topic](https://meta.discourse.org/t/restore-failed-due-to-key-plugin-name-key-discourse-data-explorer-q-1-is-duplicated/157535)._
