Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

Tags:

mongodb

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?

like image 648
JavaSheriff Avatar asked Dec 05 '22 11:12

JavaSheriff


2 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
like image 164
marceloatg Avatar answered May 14 '23 07:05

marceloatg


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

change

#snmp:
mp:

to

#snmp:
#mp:

it works for me.

like image 21
CTD Avatar answered May 14 '23 05:05

CTD