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

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

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Fixed
    • Affects Version/s: 4.4.0-rc11
    • Fix Version/s: 4.7.0, 4.4.2
    • Component/s: Logging
    • Labels:
      None
    • Backwards Compatibility:
      Fully Compatible
    • Operating System:
      ALL
    • Backport Requested:
      v4.4

      Description

      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.

        Attachments

          Activity

            People

            Assignee:
            gabriel.russell Gabriel Russell (Inactive)
            Reporter:
            bruce.lucas Bruce Lucas
            Participants:
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: