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

XMLWordPrintableJSON

    • Type: Question
    • Resolution: Done
    • Priority: Major - P3
    • None
    • Affects Version/s: 3.0.15
    • Component/s: None
    • None
    • Environment:
      Debian linux
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      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.

            Assignee:
            Mark Agarunov (Inactive)
            Reporter:
            Karen J. Allen [X]
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved: