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

Getting : conflicts with current storage engine option for directoryPerDB

    XMLWordPrintableJSON

Details

    • Icon: Question Question
    • Resolution: Done
    • Icon: Major - P3 Major - P3
    • None
    • 3.0.4
    • Admin
    • None

    Description

      I am trying to start mongod but getting below error:

      ===================================
      config file :

      systemLog:
         destination: file
         path: "/var/log/mongodb/mongod.log"
         quiet: true
         logAppend: true
      storage:
         dbPath: "/data/db"
         directoryPerDB: true
         journal:
            enabled: true
         smallFiles: true
      processManagement:
         fork: true
         pidFilePath: "/usr/lib/mongodb/mongod.pid"
      net:
         #bindIp: 127.0.0.1
         port: XXXX
         http:
            enabled: false
      replication:
       replSetName: "rs1"
       oplogSizeMB: 100
      security:
        keyFile: "/usr/lib/mongodb/keyFile/secretKey.key"
        authorization: enabled
      

      When i run I am getting error.

      mongod --config /usr/lib/mongodb/conf/rs_member.conf
      2016-01-06T04:59:49.227-0600 W CONTROL  Option: storage.smallFiles is deprecated. Please use storage.mmapv1.smallFiles instead.
      about to fork child process, waiting until server is ready for connections.
      forked process: 27368
      ERROR: child process failed, exited with error number 100
      

      Mongod.log says...

      2016-01-06T04:59:49.270-0600 I STORAGE  [initandlisten] exception in initAndListen: 72 Requested option conflicts with current storage engine option for directoryPerDB; you requested true but the current server storage is already set to false and cannot be changed, terminating
      2016-01-06T04:59:49.270-0600 I CONTROL  [initandlisten] dbexit:  rc: 100
      2016-01-06T05:08:22.011-0600 I CONTROL  ***** SERVER RESTARTED *****
      

      Attachments

        1. image-2018-08-08-20-47-39-525.png
          image-2018-08-08-20-47-39-525.png
          128 kB
        2. image-2018-08-08-20-50-32-671.png
          image-2018-08-08-20-50-32-671.png
          127 kB
        3. image-2018-08-08-20-50-52-053.png
          image-2018-08-08-20-50-52-053.png
          140 kB

        Activity

          People

            kelsey.schubert@mongodb.com Kelsey Schubert
            afran ASHISH FRANCIS
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: