Reputation: 15
I am getting an error every time I try to run mongod over my system. I even tried killing the mongod process and then starting. Doesnt work. Following is the error: https://i.sstatic.net/NtPeS.png
Upvotes: 0
Views: 1205
Reputation: 1808
That happens when the mongo didn't have a clean shutdown, so it is simply a forced shutdown + repair.
If you are using linux, just follow this instructions:
systemctl mongod stop
rm /data/db/mongod.lock
mongod --repair
systemctl mongod start
Upvotes: 1