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

Logrotate fails with no error message if the log dir ownership/permissions are incorrect

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Duplicate
    • Affects Version/s: 3.0.6
    • Fix Version/s: None
    • Component/s: Logging
    • Labels:
      None
    • Operating System:
      ALL

      Description

      Steps to reproduce:
      1) Start a mongod or mongos with "logAppend==true" and "logRotate==reopen".
      2) Go to the log dir
      3) (assuming mongod is not running as root)

      sudo chown root:root .
      sudo chmod 755 .
      

      4) connect with mongo shell and run:

      > use admin
      switched to db admin
      > db.runCommand( { logRotate : 1 } )
      { "ok" : 0, "errmsg" : "" }
      

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              Unassigned
              Reporter:
              dmitry.ryabtsev Dmitry Ryabtsev
              Participants:
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: