【问题标题】:mongod don't start after server crash服务器崩溃后mongod不启动
【发布时间】:2015-07-07 01:18:17
【问题描述】:

服务器崩溃后,mongod 服务无法启动。 操作系统:Windows Server 2008 R2 启动 蒙戈版本:3.0.0 修复选项没有帮助,日志目录为空 崩溃更新 mongo 到 3.0.2 后, 这都在日志文件中:

2015-04-28T14:56:45.154+0600 I CONTROL  Hotfix KB2731284 or later update is     installed, no need to zero-out data files
2015-04-28T14:56:45.154+0600 W -        [initandlisten] Detected unclean shutdown - C:\Program Files\MongoDB\Server\3.0\data\mongod.lock is not empty.
2015-04-28T14:56:45.154+0600 W STORAGE  [initandlisten] Recovering data from the last clean checkpoint.
2015-04-28T14:56:45.154+0600 I STORAGE  [initandlisten] wiredtiger_open config: create,cache_size=3G,session_max=20000,eviction=(threads_max=4),statistics=(fast),log=(enabled=true,archive=true,path=journal,compressor=snappy),checkpoint=(wait=60,log_size=2GB),statistics_log=(wait=0),
2015-04-28T14:56:45.154+0600 I -        [initandlisten] Assertion: 28595:2: No such file or directory
2015-04-28T14:56:45.154+0600 I STORAGE  [initandlisten] exception in initAndListen: 28595 2: No such file or directory, terminating
2015-04-28T14:56:45.154+0600 I CONTROL  [initandlisten] dbexit:  rc: 100

请。救命!!!

【问题讨论】:

    标签: mongodb exception crash


    【解决方案1】:

    我也遇到过类似的错误

    检测到非正常关机 - c:\Program Files\MongoDB\Data\mongod.lock 不为​​空。

    虽然我的日志文件的内部步骤和你的不一样,但实际原因似乎是一样的。

    就我而言,我

    1. 打开了锁文件(在你的情况下它位于C:\Program Files\MongoDB\Server\3.0\data\mongod.lock
    2. 删除了文件的所有内容
    3. 已保存文件
    4. 使用 windows 服务启动 MongoDB 服务器 (How to run MongoDB as Windows service?)

    它开始时没有任何数据丢失!

    【讨论】:

      猜你喜欢
      • 2020-02-10
      • 1970-01-01
      • 1970-01-01
      • 2012-11-21
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多