I typed mongod
on in my mac terminal and got the following error:
2015-04-27T22:11:46.471-0400 W - [initandlisten] Detected unclean shutdown - /data/db/mongod.lock is not empty.
2015-04-27T22:11:46.479-0400 I STORAGE [initandlisten] **************
old lock file: /data/db/mongod.lock. probably means unclean shutdown,
but there are no journal files to recover.
this is likely human error or filesystem corruption.
please make sure that your journal directory is mounted.
found 4 dbs.
see: http://dochub.mongodb.org/core/repair for more information
How do I make sure my journal directory is mounted? Will that solve the problem?
You have an unclean shutdown. You should start mongod with --repair
option.
mongod --repair
Note that after repair you will need to restart mongod
1.delete mongo.lock
2.Mongod --dbpath path --repair
3.mongod --dbpath path
Run command with Admin accesss.I had sloved in Windows machine.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With