1 Answer
It indicates that MongoDB is terminating because there is an old lock file.
Step 1: Remove lock file.
sudo rm /var/lib/mongodb/mongod.lock
Step 2: Repair mongodb.
sudo mongod --repair
Step 3: start mongodb.
sudo start mongodb
Step 4: Check status of mongodb.
sudo status mongodb
It will release the locks and repair the mongoDB.
Your Answer
x