Error 1053 When Starting Windows XP Service Running Mongo DB 1.6.3 Error 1053 When Starting Windows XP Service Running Mongo DB 1.6.3 mongodb mongodb

Error 1053 When Starting Windows XP Service Running Mongo DB 1.6.3


If one of the directories in logpath or dbpath doesn't exist, it will fail to start. So make sure the paths point to existing directories.

If the paths do exist, check the log file for more information on what went wrong.

In response to your update

I have been able to reproduce the problem and noticed the error code 0xc0000417 when I tried to debug it with Visual Studio. This is a STATUS_INVALID_CRUNTIME_PARAMETER error, which means that an invalid parameter was passed to a C runtime function.

As you posted, the path to the executable is:

C:\Tools\mongodb-win32-i386-1.6.3\bin\mongod" --bind_ip 127.0.0.1 --logpath c:/mongodb/logs/mongodb.log --logappend --dbpath "c:/mongodb/data" --directoryperdbMongoDB--service

Now, when I tried to run the executable from a command prompt, it failed with the following message:

Invalid command: MongoDB

I have highlighted this faulty 'parameter' in the path above. It is the argument that is passed to the serviceName parameter, but the --serviceName directive itself was wrongly omitted. The correct path should be:

C:\Tools\mongodb-win32-i386-1.6.3\bin\mongod" --bind_ip 127.0.0.1 --logpath c:/mongodb/logs/mongodb.log --logappend --dbpath "c:/mongodb/data" --directoryperdb--serviceName MongoDB--service

Possible ways to fix it

You could edit the path to the executable in the registry, by changing the ImagePath in the following key:

HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\MongoDB

Another option is to simply omit the serviceName parameter during installation, because MongoDB's service support is still flawed.


I met the same issue and try some ways. Finally I got the solution for this issue.

1.please check the environment that system components involve C++ Redistributable for Visual Studio 2015

2.i just install that component that named for C++ Redistributable for Visual Studio 2015 again, at last resolve this issue.


I met the same issue.My solution :

change the mongod.cfg file :

comment the line nmp: