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

Error message for missing config file is misleading

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor - P4
    • Resolution: Fixed
    • Affects Version/s: 5.0 Desired
    • Fix Version/s: 4.9.0
    • Component/s: None
    • Labels:
    • Backwards Compatibility:
      Fully Compatible
    • Operating System:
      ALL
    • Steps To Reproduce:
      Hide

      Start mongod using a fictitious config file:

      1. /usr/local/bin/mongod -f /etc/not-the-correct-name.conf

      Expected:
      'File: /etc/not-the-correct-name.conf not found'

      Actual:
      Error opening config file: Is a directory
      try '/usr/local/bin/mongod --help' for more information

      Show
      Start mongod using a fictitious config file: /usr/local/bin/mongod -f /etc/not-the-correct-name.conf Expected: 'File: /etc/not-the-correct-name.conf not found' Actual: Error opening config file: Is a directory try '/usr/local/bin/mongod --help' for more information
    • Sprint:
      Repl 2020-11-30

      Description

      The error message when a user supplies the wrong path information for the configuration file is misleading. It should say something like 'File not found' instead it misidentifies the missing file as a directory and directs the user to --help for further information.

      1. /usr/local/bin/mongod -f /etc/not-the-correct-name.conf
        Error opening config file: Is a directory
        try '/usr/local/bin/mongod --help' for more information

        Attachments

          Activity

            People

            Assignee:
            varun.ravichandran Varun Ravichandran
            Reporter:
            dave.cuthbert Dave Cuthbert
            Participants:
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: