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

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

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

      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@mongodb.com Gabriel Russell (Inactive)
            Reporter:
            bruce.lucas@mongodb.com Bruce Lucas (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved: