pdfxray_public
pdfxray_public copied to clipboard
MongoDB death lock
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.