pdfxray_public icon indicating copy to clipboard operation
pdfxray_public copied to clipboard

MongoDB death lock

Open 9b opened this issue 12 years ago • 0 comments

MongoDB sometimes dies (likely on insert) while the write lock is present causing the database to become unavailable. This will result in your not allowing the database to start.

Temporary fix:

  • rm -r /var/lib/mongodb/mongod.lock

Suggested fix:

  • Monitor resource consumption and ensure that Mongo dies with grace. If this is not possible, run a daemon to check if the mongo process has died in an unclean manner and remove the lock.

9b avatar Sep 20 '11 08:09 9b