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

Fail Global Init - Failed to open /var/log/mongodb/mongod.log

    XMLWordPrintableJSON

Details

    • Icon: Question Question
    • Resolution: Done
    • Icon: Major - P3 Major - P3
    • None
    • 3.0.15
    • None
    • None
    • Debian linux

    Description

      I am getting errors starting Mongod v3.0.15 in Debian linux. I had changed the /etc/mongod.conf file to use smallFiles by addingmmapv1: smallFiles: true to the storage options.

      I now get the following error when I execute $mongod --config /etc/mongod.conf:

      ib1:/ 514 $ mongod --config /etc/mongod.conf

      2017-10-03T12:14:21.183-0500 F CONTROL Failed global initialization: FileNotOpen Failed to open "/var/log/mongodb/mongod.log"

      The mongod.log file exists, and it is also defined in the mongod.conf file as in that directory.

      I am able to open the /var/log/mongodb/mongod.log file myself in the shell. It hasn't been written to in a long time (months) curiously.

      Thanks very much.

      Attachments

        Activity

          People

            mark.agarunov Mark Agarunov
            KarenJA Karen J. Allen [X]
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: