MongoDB unclean shutdown error

[nodemon] Internal watch failed: ENOSPC: System limit for number of file watchers reached
July 18, 2019
How to resolve MongoDB error errno:111 Connection refused or “exit-code”
August 17, 2019

MongoDB unclean shutdown error

Due to a power cut or improper shutdown of your machine, sometimes MongoDB gives you an error, like this

Detected unclean shutdown – C:datadbmongod.lock is not empty.

To repair this run command


C:Program Files/MongoDB/Server/3.2/bin>mongod --repair

After the repair is finished, stop this one and launch it normally.

Leave a Reply