码迷,mamicode.com
首页 > 其他好文 > 详细

exception in initAndListen: 12596 old lock file, terminating

时间:2015-04-01 15:33:51      阅读:151      评论:0      收藏:0      [点我收藏+]

标签:mongodb异常关闭   12596 old lock file   old lock file   

#mongd -f /etc/mongodb.conf时报错

技术分享

monogdb.log日志分析

Unclean shutdown detected.

Please visit http://dochub.mongodb.org/core/repair for recovery instructions.*************

Wed Nov  5 04:14:35.951 [initandlisten] exception in initAndListen: 12596 old lock file, terminating

Wed Nov  5 04:14:35.951 dbexit: 

Wed Nov  5 04:14:35.951 [initandlisten] shutdown: going to close listening sockets...

Wed Nov  5 04:14:35.951 [initandlisten] shutdown: going to flush diaglog...

Wed Nov  5 04:14:35.951 [initandlisten] shutdown: going to close sockets...

Wed Nov  5 04:14:35.951 [initandlisten] shutdown: waiting for fs preallocator...

Wed Nov  5 04:14:35.951 [initandlisten] shutdown: closing all files...

Wed Nov  5 04:14:35.951 [initandlisten] closeAllFiles() finishe

Wed Apr  1 04:14:35.951 dbexit: really exiting now

提示错误分析:存在一个久的mongod.lock文件

根本原因:云主机意外关机,导致数据库未正常关闭

解决办法:删除mongod.lock文件,再次重启数据库

#mv mongod.lock mongod.lock.bak

#mongd -f /etc/mongodb.conf

检查数据库有无异常

后续作业:如果有异常建议执行

技术分享

>db.repairDatabase()

exception in initAndListen: 12596 old lock file, terminating

标签:mongodb异常关闭   12596 old lock file   old lock file   

原文地址:http://blog.csdn.net/jacson_bai/article/details/44805469

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!