MongoDB: special error occurred: 100

I just installed "mongodb" on Windows at startup, the following error appears

A Special Service Error: 100

Any suggestions?

+6
source share
4 answers

The reason for this error message is that you already have a different process installed. In my case, it was the mongod.exe file that I opened in CMD, when I closed it and restarted the MongoDB launch command, it successfully connected. BTW I am using the current build of Windows 10 as of July 2017 with MongoDB 3.4

+10
source

Check your Mongo log in the / data / log folder (which you should have created during installation), there might be a solution.

I had this problem, I checked the system event log, which gave me the following:

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

When I checked the log I found this:

 Unable to create/open lock file: c:\data\db\mongod.lock The process cannot access the file because it is being used by another process.. Is a mongod instance already running? 

It turns out that I started the process manually in another command window so that it could not start it again. You may have another problem, but the journal should tell you what is happening!

+2
source

For me, some directories that I specified for the db and log configuration file were not created automatically.

 dbpath=\data\db logpath=\data\log\mongo.log 

so I created them manually and then ran the command again and the service started.

I am using v3.4.9 om Windows 10

+2
source

Try the following commands as an administrator at the comment prompt.

  • mongod --repair

  • mongod --remove

then, like @Yahya, specify the path to the log,

  1. mongod --install --logpath C:\data\db\log\mongo.log

  2. net start mongodb

Hope this helps.

+2
source

All Articles