【问题标题】:mongodb mongorestore assertion failuremongodb mongorestore 断言失败
【发布时间】:2012-10-16 18:36:27
【问题描述】:

我在生产环境中运行 mongodb 版本 1.8.2,为此运行一个 cron 作业以进行数据库转储。我刚刚将我的 ubuntu 升级到 12.04。现在我无法恢复任何数据库/集合。 这是给的

db.system.indexes 断言失败_filename.empty() util/mmap.cpp 167

我搜索了它,但找不到任何合适的答案。

【问题讨论】:

  • 你也升级了mongodb吗?你现在有什么版本?
  • 我已经用 mongo 2.2.0 和 1.8.2 试过这个东西。 2.2.0 在创建 system.indexes 时磁盘空间不足,而 1.8.2 则出现此错误
  • 2.2.0 给出的确切错误是什么? mongodump 的运行情况如何-您可以使用命令语法更新票证吗? 1.8.2 非常旧,我建议使用 2.0.7 或 2.2.0。您还可以将df -h 附加到问题中吗?

标签: mongodb mongorestore database


【解决方案1】:

尝试在启动脚本中设置ulimit -n 64000,通常为/etc/init.d/mongodb。这对我有用。

https://groups.google.com/forum/#!msg/mongodb-user/RNwc6j6oiSg/PspURcJUxMIJ

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2011-05-27
    • 2011-05-27
    • 2021-03-16
    • 2010-09-26
    • 2018-11-09
    相关资源
    最近更新 更多