Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 583298 - net-analyzer/icinga2-2.4.4-r1: logrotate ALERT exited abnormally with [1]
Summary: net-analyzer/icinga2-2.4.4-r1: logrotate ALERT exited abnormally with [1]
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: x86 Linux
: Normal normal (vote)
Assignee: Matthew Thode ( prometheanfire )
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-05-17 14:19 UTC by WOLfgang Schricker
Modified: 2016-05-22 22:59 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
icinga2-logrotate-su.patch (icinga2-logrotate-su.patch,334 bytes, patch)
2016-05-17 14:20 UTC, WOLfgang Schricker
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description WOLfgang Schricker 2016-05-17 14:19:01 UTC
My fcron runs and /var/log/message brings:

2016-05-16T03:10:00+00:00 myhost run-crons[9575]: (root) CMD (/etc/cron.daily/logrotate)
2016-05-16T03:10:00+00:00 myhost logrotate[9578]: ALERT exited abnormally with [1]


Reproducible: Always

Steps to Reproduce:
Run as root:

# /etc/cron.daily/logrotate
error: skipping "/var/log/icinga2/icinga2.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 to tell logrotate which user/group should be used for rotation.
error: skipping "/var/log/icinga2/debug.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 to tell logrotate which user/group should be used for rotation.
error: skipping "/var/log/icinga2/error.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 to tell logrotate which user/group should be used for rotation.
Actual Results:  
I don't know the way from /var/tmp/portage/net-analyzer/icinga2-2.4.4-r1/work/icinga2-2.4.4/etc/logrotate.d/icinga2.cmake to /etc/logrotate.d/icinga2.


I attach a patch but >=logrotate-3.8.0 is required.
See the "su option" in https://svn.fedorahosted.org/svn/logrotate/tags/r3-8-0/CHANGES
Comment 1 WOLfgang Schricker 2016-05-17 14:20:41 UTC
Created attachment 434538 [details, diff]
icinga2-logrotate-su.patch

>=logrotate-3.8.0 required
Comment 2 Matthew Thode ( prometheanfire ) archtester Gentoo Infrastructure gentoo-dev Security 2016-05-22 22:59:30 UTC
fixed as 2.4.10-r1