MongoDB does not start with authorization enabled

XMLWordPrintableJSON

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

      Add the following lines on the file /etc/mongod.conf

      security:
      authorization: enable

      Restart the mongodb service:

      1. systemctl start mongod
      Show
      Add the following lines on the file /etc/mongod.conf security: authorization: enable Restart the mongodb service: systemctl start mongod
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      I'm using Red Hat Enterprise Linux 7 and I'm facing problems when try to enable security authorization on my MongoDB 3.2 configuration.

      When I start the service system shows following error:

      # systemctl start mongod
      Job for mongod.service failed. See 'systemctl status mongod.service' and 'journalctl -xn' for details.
      
      # cat mongod.conf
      systemLog:
        destination: file
        logAppend: true
        path: /var/log/mongodb/mongod.log
      
      
      storage:
        dbPath: /var/lib/mongo
        journal:
          enabled: true
        engine: wiredTiger
      
      processManagement:
        fork: true  # fork and run in background
        pidFilePath: /var/run/mongodb/mongod.pid  # location of pidfile
      
      net:
        port: 27017
      
      security:
        authorization: enable
      

            Assignee:
            Kelsey Schubert
            Reporter:
            Rafael Reuber
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: