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

Missing data directory is not indicated as error

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • Minor - P4
    • Resolution: Won't Fix
    • 4.2.9
    • None
    • None
    • None
    • ALL

    Description

      When I start mongod and data directory is missing, I have the following log entry:

      2020-09-26T15:17:12.078-0400 I  STORAGE  [initandlisten] exception in initAndListen: NonExistentPath: Data directory /data/db not found. Create the missing directory or specify another path using (1) the --dbpath command line option, or (2) by adding the 'storage.dbPath' option in the configuration file., terminating
      

      The entry is logged with informational severity (I) but it is an error.

      As a user of the server I expect error entries to be logged with error severity.

      This issue does not exist in 4.4 - the severity there is error.

      Attachments

        Activity

          People

            backlog-server-execution Backlog - Storage Execution Team
            oleg.pudeyev@mongodb.com Oleg Pudeyev (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: