[Resolved] Unclean shutdown detected Mongodb

[Resolved] Unclean shutdown detected Mongodb



2016-12-21T10:15:12.400+0530 I CONTROL [main]
2016-12-21T10:15:12.402+0530 W CONTROL [main] 32-bit servers don’t have journaling enabled by default. Please use –journal if you want durability.
2016-12-21T10:15:12.403+0530 I CONTROL [main]
2016-12-21T10:15:12.414+0530 I CONTROL [main] Hotfix KB2731284 or later update is not installed, will zero-out data files
2016-12-21T10:15:12.420+0530 I CONTROL [initandlisten] MongoDB starting : pid=6620 port=27017 dbpath=c:\mongodb\data\db 32-bit host=Naveen-PC
2016-12-21T10:15:12.420+0530 I CONTROL [initandlisten] targetMinOS: Windows Vista/Windows Server 2008
2016-12-21T10:15:12.420+0530 I CONTROL [initandlisten] db version v3.2.11-36-g1ab8780
2016-12-21T10:15:12.420+0530 I CONTROL [initandlisten] git version: 1ab87806b9ad157bb205403f2c7e0226988af64f
2016-12-21T10:15:12.421+0530 I CONTROL [initandlisten] allocator: tcmalloc
2016-12-21T10:15:12.421+0530 I CONTROL [initandlisten] modules: none
2016-12-21T10:15:12.421+0530 I CONTROL [initandlisten] build environment:
2016-12-21T10:15:12.421+0530 I CONTROL [initandlisten] distarch: i386
2016-12-21T10:15:12.421+0530 I CONTROL [initandlisten] target_arch: i386
2016-12-21T10:15:12.422+0530 I CONTROL [initandlisten] options: { storage: { dbPath: “c:\mongodb\data\db”, engine: “mmapv1” } }
2016-12-21T10:15:12.424+0530 W – [initandlisten] Detected unclean shutdown – c:\mongodb\data\db\mongod.lock is not empty.
2016-12-21T10:15:12.436+0530 I STORAGE [initandlisten] **************
Unclean shutdown detected.
Please visit http://dochub.mongodb.org/core/repair for recovery instructions.
2016-12-21T10:15:12.440+0530 I STORAGE [initandlisten] exception in initAndListen: 12596 old lock file, terminating
2016-12-21T10:15:12.440+0530 I CONTROL [initandlisten] dbexit: rc: 100


Unclean shutdown detected Mongodb



How to fix “unclean shutdown detected issue”?

By running the below command you can repair the data store path of your local mongodb. In my case it is c:\mongodb\data\db, so I repaired to resolve “unclean shutdown detected issue” this folder like this,


mongod –dbpath c:\mongodb\data\db –repair


Unclean shutdown detected Mongodb





1,589 total views, 2 views today

About Mirthbees 681 Articles
Blogger, Innovator, Developer and Enterpreneur. Founder of GuruRecharge, Readymade online recharge script. Lead Developer in Bookrate.in

Be the first to comment

Leave a Reply

Your email address will not be published.


This site uses Akismet to reduce spam. Learn how your comment data is processed.