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

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Done
    • Priority: Major - P3
    • None
    • Affects Version/s: 2.0.7, 2.0.8, 2.4.0-rc2
    • Component/s: Admin
    • None
    • Fully Compatible
    • ALL
    • None
    • 3
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      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

              Assignee:
              Spencer Jackson
              Reporter:
              Stennie Steneker (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

                Created:
                Updated:
                Resolved: