MongoDB does not start with authorization enabled

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Done
    • Priority: Major - P3
    • None
    • Affects Version/s: None
    • Component/s: None
    • None
    • ALL
    • Hide

      add

      security:

      authorization: enabled to the config file, restart the service and try logging in.

      Show
      add security: authorization: enabled to the config file, restart the service and try logging in.
    • None
    • 3
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      Every time I enable "security: authorization: enabled", I get the following error -

      "connecting to: mongodb://127.0.0.1:27017/?authSource=admin&gssapiServiceName=mongodb
      2021-05-05T03:17:04.013+0000 E QUERY [js] Error: Authentication failed. :
      connect@src/mongo/shell/mongo.js:356:17
      @(connect):2:6
      exception: connect failed"

            Assignee:
            Edwin Zhou
            Reporter:
            Brian Rivera
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: