. . .

Start Mongodb after System Crash

Published: March 3, 2016

Recently, I experienced that Mongodb was not starting after a system crash. When I ran

service mongod restart

mongodb crashed with error in log file. The error said "exception in initAndListen: 12596 old lock file, terminating"

If you ever encounter this issue, the solution is to start the mongod instance using the –repair option by using the following command

sudo -u mongodb mongod --repair --dbpath /var/lib/mongodb/

 

Don't forget to share this post

    Let's Build Digital Excellence Together


    • Cost Efficient Solutions.
    • Minimal Timelines.
    • Effective Communication.
    • High Quality Standards.
    • Lifetime Support.
    • Transparent Execution.
    • 24/7 Availability.
    • Scalable Teams.

    Join Our 200+ Happy Clients Across Globe


    Free Consultation.

      Do you need help in strategy, innovation or growth of your startup/business? Experts from our team will get in touch with you.

      Please do not post jobs/internships inquiries here.