Exception in initAndListen: 12596 old lock file, terminating, fileexception

Source: Internet
Author: User

Exception in initAndListen: 12596 old lock file, terminating, fileexception

# Mongd-f/etc/mongodb. conf error reported


Monogdb. log analysis

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

Prompt Error Analysis: There is a long history D. lock File

Root cause: the VM instance is shut down unexpectedly, and the database is not shut down normally.

Solution: Delete the mongod. lock file and restart the database again.

# Mv primary D. lock primary D. lock. bak

# Mongd-f/etc/mongodb. conf

Check for database exceptions

Subsequent job: We recommend that you execute the job if any exceptions exist.


> Db. repairDatabase ()

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.