Monday, March 14, 2016

mongodb unclean shutdown detected

Are you having this error message : mongodb unclean shutdown detected ?
In my system I have my data/db under the bin folder
if you are using linux :

sudo rm /data/db/mongod.lock
sudo mongod --dbpath /data/db --repair
sudo mongod --storageEngine=mmapv1 --dbpath ./data/db
 
 
if you are using windows:
 
Go to your data/db directory:
1. delelte mongod.lock file
2. mongod --dbpath ./data/db --repair
3. mongod --storageEngine=mmapv1 --dbpath ./data/db 
 
More about the issue here 
 
 
 
 
 

No comments:

Post a Comment