Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-21984

MongoDB does not start with authorization enabled

    XMLWordPrintableJSON

Details

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major - P3 Major - P3
    • None
    • 3.2.0
    • 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

    Description

      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
      

      Attachments

        Activity

          People

            kelsey.schubert@mongodb.com Kelsey Schubert
            rafaelreuber@gmail.com Rafael Reuber
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: