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

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

      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 Unassigned
            Reporter:
            dmitry.ryabtsev@mongodb.com Dmitry Ryabtsev
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: