Error: "Unclean shutdown detected. Please visit http://dochub.mopngodb.org/core/repair for recovery instructions." in mongo db

When i run my mongo db from below command



C:\mongodb\bin\mongod 
Then i shown an error "Deleted data files in C:\data\db\ crated by the 'mmapv1' storage engine, so setting the active storage engine to 'mmapv1' Unclean shutdown detected. Please visit http://dochub.mopngodb.org/core/repair for recovery instructions." . See the below screen shot -


Error: "Unclean shutdown detected"

Solution : After googling some time finally i find out the solution of this problem which i want to share with all of my blog readers. 
I run the mongod command with --repair and then again i run mongod command and my mongo db is started successfully like below -

Step 1Run the mongod command with repair like below



C:\mongodb\bin\mongod\mongod --repair

Step 2: Now run again the mongod command like this



C:\mongodb\bin\mongod\mongod

Don't forget to leave a comment if you like this post.

Chears
Happy Coding :)

Post a Comment

Previous Post Next Post