Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Cannot start MongoDB: System error 1067 in Windows

Tags:

After setting up MongoDB service on Windows Server 2008 R2 this error was raised.

C:\mongodb\bin>net start MongoDB The Mongo DB service is starting. The Mongo DB service could not be started.  A system error has occurred.  System error 1067 has occurred.  The process terminated unexpectedly. 
like image 977
user2601995 Avatar asked Sep 07 '13 05:09

user2601995


People also ask

Why MongoDB server is not starting?

We found that the reason for this error was the dbpath variable in /etc/mongodb. conf. Previously, the default value for dbpath was /data/db. The upstart job mongodb(which comes with mongodb-10gen package) invokes the mongod with –config /etc/mongodb.


1 Answers

The error came from an unclean shutdown detected.

Please visit http://dochub.mongodb.org/core/repair for recovery instructions.

a few steps will fix it (as it's written in the link above):

1) remove the file /data/db/mongod.lock

2) run mongod.exe --repair

3) start the mongod service net start MongoDB

like image 162
user2601995 Avatar answered Sep 22 '22 14:09

user2601995