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


I'm trying to set MongoDB 1.6.3 on my Windows XP SP3 machine.

I have followed the instructions since I can see the windows service installed but did not start.

The path of the executable looks like this:

  "c: \ tool \ 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" - DirectoroRep Mongo DB - Service  

When I try I get an error popup with the following message to start the service:

Error 1053: The service did not respond to the initial control or respond to the control request.

dbpath and logpath > to c: / data / db and c: / data / Log / Mongodb has been changed. The logs respectively, but the result was the same.

I have checked to ensure that all directories and files are actually present - there is no worry.

I just tried it again at 1:18 AM EDT, got the same error, and seen it in the log file:

  Sun Sep 26 13:18: 15 dbexit: Sun Sep 26 13:18: 15 Shutdown: Shutting off the auditory chairs ... Sun September 26 13:18:15 Shutdown: Flip Flops Opolog ... Sun September 26 13:18:15 Shutdown : Shutting off the sockets ... Sun 26 September 13:18:15 Shutdown: Waiting for FS Prelaoceter ... Sun September 26 13:18: 15 Shutdown: Closing all the files ... Sun Sep 26 13:18: 15 closeAllFiles () expired Sun Sep 26 13:18:15 dbexit: Really Exactly  

So I think the log file is set up properly and should be done correctly But the information I found is not useful.

Another useful bit: If I open a command shell and start it, without any problem MongoDB can run command line.

Any advice on which I was wrong or improvements would be appreciated.

if logpath or dbpath is not present , It will fail to begin, so make sure that the path indicates the current directories.

If the path exists, then check the log file for more information if it is incorrect.

In response to your update

I am able to reproduce the issue and see the error code 0xc0000417 when I debug it with Visual Studio Trying to do this is a STATUS_INVALID_CRUNTIME_PARAMETER error, which means that an invalid parameter of any parameter was passed.

As you have posted, the path to executable is:

C: \ tool \ 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 MongoDB

Invalid order: MongoDB

I highlighted this defective 'parameter' in the way above it is argued that serv The snowName parameter has passed, but the - serviceName command itself was omitted incorrectly. The correct path should be:

C: \ Tool \ mongodb-win32-i386-1.6.3 \ bin \ mongod "--bind_ip 127.0.0.1 --logpath c: /mongodb/logs/mongodb.log --logappend - -dbpath" c: / Mong odb / data " --directoryperdb - Savannam MongoDB - Service

Possible ways to decide

You can edit the path of executables in the registry by changing ImagePath in the following key:

  HKEY_L OCAL_MACHINE \ SYSTEM \ CurrentControlSet \ Services \ MongoDB  

Another option is to leave only serviceName parameters during installation, because.


Comments