Page MenuHomePhabricator

Logrotate complains about world-writable permissions
Closed, ResolvedPublic

Description

Possibly introduced by this changeset.

May 28 20:06:35 thanos-fe1001 systemd[1]: Starting Rotate log files...
May 28 20:06:35 thanos-fe1001 logrotate[16971]: error: skipping "/srv/log/swift/proxy-access.log" because parent directory has insecure permissions (It's world writable or writable by group which is not "root") Set "su" directive in confi
May 28 20:06:35 thanos-fe1001 logrotate[16971]: error: skipping "/srv/log/swift/proxy.log" because parent directory has insecure permissions (It's world writable or writable by group which is not "root") Set "su" directive in config file 
May 28 20:06:35 thanos-fe1001 logrotate[16971]: error: skipping "/srv/log/swift/server.log" because parent directory has insecure permissions (It's world writable or writable by group which is not "root") Set "su" directive in config file
May 28 20:06:35 thanos-fe1001 systemd[1]: logrotate.service: Main process exited, code=exited, status=1/FAILURE
May 28 20:06:35 thanos-fe1001 systemd[1]: logrotate.service: Failed with result 'exit-code'.

Appears to affect thanos-(fe|be) and ms-(fe|be) in cron emails.

Event Timeline

colewhite updated the task description. (Show Details)

Thank you for the followup and my apologies for the spam! This problem is indeed due to https://gerrit.wikimedia.org/r/c/operations/puppet/+/696013 which I'm going to revert now

Change 697573 had a related patch set uploaded (by Filippo Giunchedi; author: Filippo Giunchedi):

[operations/puppet@production] Revert "swift: group-writable log directory"

https://gerrit.wikimedia.org/r/697573

Change 697573 merged by Filippo Giunchedi:

[operations/puppet@production] Revert "swift: group-writable log directory"

https://gerrit.wikimedia.org/r/697573

fgiunchedi claimed this task.

We're back! Resolving