No error message produced if log file can't be created

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Fixed
    • Priority: Major - P3
    • 4.7.0, 4.4.2
    • Affects Version/s: 4.4.0-rc11
    • Component/s: Logging
    • None
    • Fully Compatible
    • ALL
    • v4.4
    • None
    • 3
    • None
    • None
    • None
    • None
    • None
    • None

      In 4.2 if you specify a log file that can't be created an error message is written to stderr before mongod exits:

      > mongod --dbpath /tmp --logpath /nonexistent/directory
      2020-07-05T09:51:55.287-0400 F  CONTROL  [main] Failed global initialization: FileNotOpen: Failed to open "/nonexistent/directory"
      

      In 4.4 mongod just silently exits, giving the user no clue what the problem is.

            Assignee:
            Gabriel Russell (Inactive)
            Reporter:
            Bruce Lucas (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved: