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

If keyFile parameter is quoted in config file, mongod will not find it on startup

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Gone away
    • Affects Version/s: 2.0.7, 2.0.8, 2.4.0-rc2
    • Fix Version/s: None
    • Component/s: Admin
    • Labels:
      None
    • Backwards Compatibility:
      Fully Compatible
    • Operating System:
      ALL

      Description

      There is a subtle regression in the configuration parsing between 2.0.6 and subsequent versions tested (2.0.7, 2.0.8, and 2.4.0-rc2).

      If you quote your keyFile parameter in a mongodb.conf this works fine in 2.0.6:

      keyFile="/etc/mongodb/keyfile"

      In 2.0.7 and later versions tested, the identical config produces an error suggesting the keyfile does not exist:

      error getting file "/etc/mongodb/keyfile": No such file or directory

      The solution is to remove the double quotes:

      keyFile=/etc/mongodb/keyfile

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              spencer.jackson Spencer Jackson
              Reporter:
              stennie Stennie Steneker
              Participants:
              Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: