[SERVER-20480] Logrotate fails with no error message if the log dir ownership/permissions are incorrect Created: 18/Sep/15  Updated: 18/Sep/15  Resolved: 18/Sep/15

Status: Closed
Project: Core Server
Component/s: Logging
Affects Version/s: 3.0.6
Fix Version/s: None

Type: Bug Priority: Major - P3
Reporter: Dmitry Ryabtsev Assignee: Unassigned
Resolution: Duplicate Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Duplicate
duplicates SERVER-5727 log rotate() is missing a lot of erro... Closed
Operating System: ALL
Participants:

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


Generated at Thu Feb 08 03:54:21 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.