6
votes

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

5
Probably by looking at the actual error messages in that "sytemLog" you are telling us you know where it is. A lot more useful than "screenshots" with no information at all. Look at the log, and then post the "text" if you don't understand the error listed there. - Neil Lunn
log folder is empty - N15
Did you find any solution for this? - Setu Kumar Basak

5 Answers

19
votes

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.

2
votes

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
1
votes

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.

0
votes

In my case, this failed:

security:
  authorization: 
    enabled

And this worked fine:

security:
  authorization: enabled
0
votes

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