Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Can't start mongodb service

I just instaled mongo 3. And tried to run it as windows server but receive error

The MongoDB 3.0 service terminated with the following service-specific error:  Cannot create another system semaphore. 

Can't find any info about that error and mongodb.

like image 272
Radislav Avatar asked May 09 '15 18:05

Radislav


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.


2 Answers

Check mongodb logs. In my case mongodb could not find directory from mongod.cfg

like image 154
razon Avatar answered Sep 22 '22 03:09

razon


In my case it appered to be mongod.lock issue after unexpected shutdown.

Detected unclean shutdown - E:\MongoDb\Databases\mongod.lock is not empty. 

I deleted E:\MongoDb\Databases\mongod.lock and mongo successfuly started.

like image 35
Alexander Selishchev Avatar answered Sep 24 '22 03:09

Alexander Selishchev