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

10

8

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

Kai answered 8/11, 2017 at 8:21 Comment(3)
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.Antiproton
log folder is emptyKai
Did you find any solution for this?As
W
19

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.

Wines answered 27/9, 2018 at 10:21 Comment(3)
for me, the line after #snmp: was op: and commenting that out made it work.Limnology
I recommend commenting and not deleting it. Use # at the beginning of the line.Lacreshalacrimal
in addition to duplicate #snmp entries, mine somehow had an empty line with just a colon ":" deleted that line and the windows service went greenIluminadailwain
V
4

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
Vicinal answered 3/3, 2019 at 13:12 Comment(0)
A
1

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.

Aile answered 17/12, 2020 at 9:59 Comment(0)
B
1

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.

Brant answered 17/1, 2022 at 13:40 Comment(1)
The # sign is used to comment out lines, so you have disabled authorization on your MongoDb server, which may not be what you intended. To enable authorization you need these lines: security: authorization: enabledGondola
U
0

In my case, this failed:

security:
  authorization: 
    enabled

And this worked fine:

security:
  authorization: enabled
Unequal answered 9/4, 2019 at 16:18 Comment(0)
Q
0

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
Quintana answered 27/12, 2021 at 11:54 Comment(0)
O
0

In my case it was a missing space [ ] . Re-added it and the service started fine.

net:

port: 00000

bindIp:[ ] 000:00:000:0

Odell answered 10/1 at 23:34 Comment(0)
L
0

I was facing the error 1053 when I try to start mongo db server in services option, services option mongodb server just search services and go to this by scrolling down and you will find this option , just right click and click on start. in case its not working then clear browsing history cache images and files, and then click on start option of mongo db server in services, and it worked so you can also try it. You are facing the error 1053, fixing of this error is very easy, just clear your cache images and files in browsing history option of Google Chrome and you will be fine.

Luciennelucier answered 26/2 at 9:37 Comment(1)
Your answer could be improved with additional supporting information. Please edit to add further details, such as citations or documentation, so that others can confirm that your answer is correct. You can find more information on how to write good answers in the help center.Vasta
L
0

In my case the error happened because of this ## Enterprise-Only Options: I removed one hashtag then it worked.

Ludly answered 28/2 at 18:13 Comment(2)
Your answer could be improved with additional supporting information. Please edit to add further details, such as citations or documentation, so that others can confirm that your answer is correct. You can find more information on how to write good answers in the help center.Vasta
This does not really answer the question. If you have a different question, you can ask it by clicking Ask Question. To get notified when this question gets new answers, you can follow this question. Once you have enough reputation, you can also add a bounty to draw more attention to this question. - From ReviewHaro
T
0

In my case, the enabled was inside double quotations

Wrong:

#security: security: authorization: "enabled" this is wrong

Correct:

#security: security: authorization: enabled

Tardif answered 9/8 at 11:47 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.