exception in initAndListen: 12596 old lock file, terminating
2015-04-01 13:27
274 查看
#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()
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()
相关文章推荐
- mongodb 错误代码 exception in initAndListen: 12596 old lock file, terminating
- mongodb exception in initAndListen: 12596 old lock file, terminating解决方法
- mongodb exception in initAndListen: 12596 old lock file, terminating解决方法
- mongodb exception in initAndListen: 12596 old lock file, terminating 解决方法
- exception in initAndListen: 12596 old lock file, terminating
- mongodb 没法启动 exception in initAndListen: 12596 old lock file, terminating
- exception in initAndListen: 12596 old lock file, terminating
- [mongoDB]exception in initAndListen: 20 Attempted to create a lock file on a read-only directory:
- exception in initAndListen: 29 Data directory /data/db not found., terminating
- mongo启动异常-mongodb exception in initAndListen: 7026old lock file, terminating
- [initandlisten] exception in initAndListen: 28663 Cannot start server
- [问题解决] initAndListen: 10309 Unable to create/open lock file: /data/db/mongod.lock
- mongo启动异常-mongodb exception in initAndListen
- linux32位mongodb启动报错【exception in initAndListen 】
- exception in thread "main" brut.androlib.AndrdolibException: Counld not decode arse file
- APK反编译解决Exception in thread "main" brut.androlib.AndrolibException: Could not decode ars c file问题
- apktool反编译:Exception in thread "main" brut.androlib.AndrolibException: Could not decode arsc file
- “System.IO.FileLoadException: Mixed mode assembly is built against version 'v2.0.50727' of the runtime and cannot be loaded in the 4.0 错误
- exception in initAndList en: 28663 Cannot start server.
- exception in thread "main" brut.androlib.AndrdolibException: Counld not decode arse file