# 恢复失败 异常：nil:NilClass 未定义方法 \`config\_filename'

**URL:** <https://meta.discourse.org/t/restore-fails-exception-undefined-method-config-filename-for-nil-nilclass/131768>\
**Category:** Product Support\
**Created:** [2019 年10 月 23 日 23:12 UTC](https://meta.discourse.org/t/restore-fails-exception-undefined-method-config-filename-for-nil-nilclass/131768 "2019-10-23T23:12:00Z")\
**Posts on this page:** 1\
**Showing post:** 1

<div class="post-metadata">

作者： ![JoshuaJoma](https://avatars.discourse-cdn.com/v4/letter/j/3da27b/32.png) [@JoshuaJoma](https://meta.discourse.org/u/JoshuaJoma)\
发布日期： [2019 年10 月 23 日 23:12 UTC](https://meta.discourse.org/t/restore-fails-exception-undefined-method-config-filename-for-nil-nilclass/131768/1 "2019-10-23T23:12:01Z")

</div>

你好，  
我安装了一个开发服务器，用于处理[邮件列表归档的导入](https://meta.discourse.org/t/importing-mailing-lists-mbox-listserv-google-groups-emails/79773/1)。  
为了将邮件列表导入生产环境，我对生产实例进行了备份，将其上传到开发服务器并尝试恢复。但恢复失败了。  
两个系统均为 2.4.0.beta6 版本。  
以下是恢复过程的日志：

```plaintext
[2019-10-23 23:01:26] [STARTED]
[2019-10-23 23:01:27] 'uwe_admin' 已启动恢复！
[2019-10-23 23:01:27] 标记恢复为运行中...
[2019-10-23 23:01:27] 确保 /var/www/discourse/tmp/restores/default/2019-10-23-230126 存在...
[2019-10-23 23:01:27] 将归档文件复制到临时目录...
[2019-10-23 23:01:27] 解压归档文件，这可能需要一段时间...
[2019-10-23 23:01:28] 没有要提取的元数据文件。
[2019-10-23 23:01:28] 验证元数据...
[2019-10-23 23:01:28] 当前版本：20191022161944
[2019-10-23 23:01:28] 恢复版本：20191017044811
[2019-10-23 23:01:28] 提取转储文件...
[2019-10-23 23:01:30] 在 discourse_functions 模式中创建缺失的函数
[2019-10-23 23:01:30] 无法恢复到不同的模式，正在原地恢复
[2019-10-23 23:01:30] 启用只读模式...
[2019-10-23 23:01:30] 暂停 sidekiq...
[2019-10-23 23:01:30] 等待 sidekiq 完成运行作业...
[2019-10-23 23:01:30] 恢复转储文件..
```

---

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