MongoDB- Error1053: the service did not respond to the start or control request in a timely fashion

Viewed 7284

When I try to connect mongdb service i am getting error: **

Windows could not start the MongoDB service on Local Computer

**

Error1053: the service did not respond to the start or control request in a timely fashion

enter image description here

Mongodb installed path: C:\MongoDB //mongod.cfg file inside the MongodB folder not in bin folder

mongod.cfg file:


systemLog:

    destination: file

    path: c:\data\log\mongod.log

storage:

    dbPath: c:\data\db***

how do I resolve this error and run a mongodb service

7 Answers

I had a similar problem with MongoDB 4. In auto generated config file, there is an extra configuration, that caused the problem.

#snmp:
mp:

When i deleted "mp:", i can finally start the server.

For me , this error was about mongod.cfg file , which I add security; authorization enabled. But it should be colon after security not semicolon.

security:
  authorization: enabled

In my case the error was caused by the server running out of space in the hard disk drive.

Clearing some space solved the problem for me.

In my case, this failed:

security:
  authorization: 
    enabled

And this worked fine:

security:
  authorization: enabled

Check if mongod.cfg is corrupted, If you changed this confiuration file recently, try to undo the latest changes to see if this is the cause for the failure

I wonder why a simple error message cannot be printed in such a common failure

For me the same error occurred when I edited the "mongod.cfg" file and added

#security:
  authorization: enabled

to #security

but the correct syntax is the following:

#security:
# authorization: enabled

I leave it here in case someone faces the same related issue.

I had same problem, below steps fixed it for me:

Search "services.msc"

Locate "MongoDB Server", right-click and select "Properties"

Access "LogOn" tab

Select "Local System account" radio button

Select Apply and then, OK

Related