Mongodb 4 service will not start after setting auth - Error 1053

Viewed 1909

I have MongoDb 4 running fine as Service on win 10. as soon as I set authorization: enabled
in the mongo config file:

C:\MongoDB4.0\bin\mongod.cfg

It was

#security:

I have set it to:

security:
    authorization: enabled

The service will not start, and displaying Error 1053 Error 1053

I dont see anything in the server log or mongodb log
Any idea what I did wrong?

4 Answers

I had the same problem, but in my case what solved was replacing the tab for two spaces in the authorization: enabled line, like this:

# Configuration using TAB not working
security:
    authorization: enabled


# Configuration using two spaces working
security:
  authorization: enabled
C:\MongoDB4.0\bin\mongod.cfg

change

#snmp:
mp:

to

#snmp:
#mp:

it works for me.

In my case I first commented it, it caused 1053 error, so I had to remove comment and set -

security:
  authorization: disabled

For me MongoDB 4.2, this thing works to run the service on Windows 10.

security:
    authorization: enabled

Not sure exactly but I think there is issue related to space and colon.

Related