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

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Duplicate
    • Priority: Major - P3
    • None
    • Affects Version/s: 3.0.6
    • Component/s: Logging
    • None
    • ALL
    • None
    • 3
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      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" : "" }
      

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

                Created:
                Updated:
                Resolved: