Red Hat Bugzilla – Bug 100546
logrotate incorrectly handles delaycompress + mailfirst
Last modified: 2015-01-07 19:05:57 EST
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.0.2)
Description of problem:
When logrotate is configured to 'delaycompress' and also
to 'mailfirst', it tries to find and send off a file ending
in .gz instead of the still uncompressed file.
Example: we want handle the HTTPD error logs:
create 640 root mpfyrun
# there will be some activity on the saved log, so
# don't compress
# if you want to compress, sleep for 600 or use delaycompress
# echo "Rotated httpd error_log"
When this is run, logrotate gives an error:
sh: /var/log/httpd/error_dir/error_log.1.gz: No such file or directory
Failed to mail /var/log/httpd/error_dir/error_log.1.gz to firstname.lastname@example.org!
The still uncompressed file should be sent out. I expect the actual
code handling 'mailfirst' should not care about whether there is a compressed or
uncompressed file at place 1 in the logfile sequence.
Please test the package in ftp://people.redhat.com/sopwith/logrotate-3.6.10-1.i386.rpm
and let me know if it fixes the problem.
on RedHat 7.3
--> Problem is fixed, all right!
*** Bug 113764 has been marked as a duplicate of this bug. ***