exception in initAndListen: 12596 old lock file, terminating

#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()

时间: 2024-11-07 22:18:47

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 www.MyException.Cn,网友分享于:2013-01-24   浏览:124次 2 mongodb 无法启动 exception in initAndListen: 12596 old lock file, terminating 我当前的mongodb数据库保存目录  /home/soft/data/ 执行一下命令问题即可解决: rm

mongodb 没法启动 exception in initAndListen: 12596 old

mongodb 无法启动 exception in initAndListen: 12596 old lock file, terminating 我当前的mongodb数据库保存目录 /data/ 执行一下命令问题即可解决: rm -rf /data/mongod.lock bin/mongod --repair --dbpath data

EXCEPTION:FATAL: UNABLE TO CREATE ‘…GIT/INDEX.LOCK’ FILE EXISTS

FATAL: UNABLE TO CREATE ‘…GIT/INDEX.LOCK’ FILE EXISTS Hi, Today I will share you my other experience using git control system, it happened to me after I’ve created a branch, when adding my changes to remote or even committed my file I’ve started to s

python3 安装scrapy Exception: Traceback (most recent call last): File "/usr/lib/python3/dist-packages/pip/req/req_install.py", line 1006, in check_if_exists解决方法

错误代码: Exception: Traceback (most recent call last): File "/usr/lib/python3/dist-packages/pip/req/req_install.py", line 1006, in check_if_exists self.satisfied_by = pkg_resources.get_distribution(str(no_marker)) File "/usr/share/python-wheel

mysql 有报错  ERROR! MySQL is not running, but lock file (/var/lock/subsys/mysql) exists

sh-4.1# /etc/init.d/mysqld status ERROR! MySQL is not running, but lock file (/var/lock/subsys/mysql) exists sh-4.1# /etc/init.d/mysqld start Starting MySQL. ERROR! The server quit without updating PID file (/data1/mysql/mysql.pid). sh-4.1# rm mysql

『fedora奇葩问题集锦』Malformed lock file found: /var/cache/dnf/metadata_lock.pid.

Malformed lock file found: /var/cache/dnf/metadata_lock.pid.Ensure no other dnf process is running and remove the lock file manually or run systemd-tmpfiles --remove dnf.conf.[[email protected] ajaxGu]# systemd-tmpfiles --remove dnf.conf 英文不好看不懂的有木有,

[转]Git – fatal: Unable to create 'XXX/.git/index.lock’: File exists.的解决办法

参考资料: http://sheshui.me/articles/git-quickly-tutorial-20120517 http://stackoverflow.com/questions/9282632/git-index-lock-file-exists-when-i-try-to-commit-but-cannot-delete-the-file 我的说明: 我操作的是ubuntu环境.window远程 1 若在window下远程打开操作窗口(不是console),进入.git目录删

Unable to create ‘.git/index.lock‘: File exists

Unable to create '.git/index.lock': File exists 分类: Git&SVN |2014-03-03 14:10 |1231人阅读 Git – fatal: Unable to create '/.git/index.lock': File exists. fatal: Unable to create '/path/my_proj/.git/index.lock': File exists. If no other git process is cur

git提交代码出现错误fatal: Unable to create '项目路径/.git/index.lock': File exists.

git提交代码出现错误fatal: Unable to create '项目路径/.git/index.lock': File exists. 具体出错代码如下: 具体原因不详,在stackoverflow上查找了很久,也不清楚原因,但是stackoverflow给出了解决的方法. 解决方法: 在当前项目下打开git bash,运行如下命令: rm -f ./.Git/index.lock 只为成功找方法.大胆的尝试,下一个fun就是你的fun! git提交代码出现错误fatal: Unable