# 2.0.0.beta5 からのバックアップ復元で Discourse が無効化される

**URL:** <https://meta.discourse.org/t/restoring-backup-from-2-0-0-beta5-disables-discourse/84505>\
**Category:** Bug\
**Created:** [2018 年 4 月 3 日午後 10:38 UTC](https://meta.discourse.org/t/restoring-backup-from-2-0-0-beta5-disables-discourse/84505 "2018-04-03T22:38:06Z")\
**Posts on this page:** 1\
**Showing post:** 1

<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:** [2018 年 4 月 3 日午後 10:38 UTC](https://meta.discourse.org/t/restoring-backup-from-2-0-0-beta5-disables-discourse/84505/1 "2018-04-03T22:38:06Z")

</div>

I’m trying to restore a backup from a hosted site running `"Discourse 2.0.0.beta5 - https://github.com/discourse/discourse version 6f32de186aa1d9e0814183f354bb01f5b66d1c0e`.

When I restore on a clean build, or one that’s gone through the setup wizard, it fails and leaves the database in such a state that Discourse doesn’t run anymore.

This is `(PostgreSQL) 9.5.10` in the container.

```plaintext
Starting restore: discourse-2018-04-03-183844-v20180328180317.tar.gz
[STARTED]
'system' has started the restore!
Marking restore as running...
Making sure /var/www/discourse/tmp/restores/default/2018-04-03-222730 exists...
Copying archive to tmp directory...
Unzipping archive, this may take a while...
tar: meta.json: Not found in archive
tar: Exiting with failure status due to previous errors
No metadata file to extract.
Validating metadata...
  Current version: 20180328180317
  Restored version: 20180328180317
tar: dump.sql: Not found in archive
tar: Exiting with failure status due to previous errors
Extracting dump file...
Cannot restore into different schema, restoring in-place
Enabling readonly mode...
Pausing sidekiq...
Waiting for sidekiq to finish running jobs...
Restoring dump file... (can be quite long)

```

Here’s the whole log: [Restoring from Discourse 2.0.0.beta5 - https://github.com/discourse/discourse version 6f32de186aa1d9e0814183f354bb01f5b66d1c0e · GitHub](https://gist.github.com/pfaffman/af61e1ae43b3e193232cdeb9b477ab13)

And then, when it’s done, Discourse says:

> [@](#):
>
> # Oops
> 
> The software powering this discussion forum encountered an unexpected problem. We apologize for the inconvenience.
> 
> Detailed information about the error was logged, and an automatic notification generated. We’ll take a look at it.
> 
> No further action is necessary. However, if the error condition persists, you can provide additional detail, including steps to reproduce the error, by posting a discussion topic in the site’s feedback category.

---

_[View the full topic](https://meta.discourse.org/t/restoring-backup-from-2-0-0-beta5-disables-discourse/84505)._
