# Exception during restore: EXCEPTION: undefined method \`\[\]' for nil:NilClass

**URL:** <https://meta.discourse.org/t/exception-during-restore-exception-undefined-method-for-nil-nilclass/34019>\
**Category:** Product Support\
**Created:** [2015 年 10 月 1 日午後 10:47 UTC](https://meta.discourse.org/t/exception-during-restore-exception-undefined-method-for-nil-nilclass/34019 "2015-10-01T22:47:18Z")\
**Posts on this page:** 1\
**Showing post:** 1

<div class="post-metadata">

**Author:** ![ckamps](https://avatars.discourse-cdn.com/v4/letter/c/e95f7d/32.png) [@ckamps](https://meta.discourse.org/u/ckamps)\
**Post date:** [2015 年 10 月 1 日午後 10:47 UTC](https://meta.discourse.org/t/exception-during-restore-exception-undefined-method-for-nil-nilclass/34019/1 "2015-10-01T22:47:18Z")

</div>

Although I saw a topic with the same symptom, the resulting posts didn’t appear to align with our circumstances. When restoring a backup tar.gz from one Discourse instance to another, we received this error:

 ![](https://global.discourse-cdn.com/meta/original/3X/8/f/8f931396bb9a4c82d2006e880a1e263149e93959.png)

As part of troubleshooting, I entered the container and executed the following command to verify that what the `restorer` is doing to extract the `meta.json` file is working.

```
# tar --extract --file ./shared/backups/default/discussion-forums-pilot-meta-2015-10-01-215138.tar.gz meta.json

```

The file appears to be extracted cleanly:

# cat meta.json

{“source”:“discourse”,“version”:20150924022040}

---

_[View the full topic](https://meta.discourse.org/t/exception-during-restore-exception-undefined-method-for-nil-nilclass/34019)._
