服务器崩溃后,mongod服务无法启动。 操作系统:Windows Server 2008 R2启动 mongo版本:3.0.0 修复选项没有帮助,journal目录为空 崩溃后更新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
请。帮助!
答案 0 :(得分:2)
我也遇到了类似的错误
检测到不干净关机 - c:\ Program Files \ MongoDB \ Data \ mongod.lock不为空。
虽然我的日志文件的内部步骤与您的不同,但实际原因似乎相同。
就我而言,我
C:\Program Files\MongoDB\Server\3.0\data\mongod.lock
)它开始没有任何数据丢失!