Bug 771483

Summary: double logrotate entry
Product: [Fedora] Fedora EPEL Reporter: Peter Meier <peter.meier>
Component: clamavAssignee: Steven Pritchard <steve>
Status: CLOSED CURRENTRELEASE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: high Docs Contact:
Priority: unspecified    
Version: el5CC: ianforde, janfrode, nb, redhat-bugzilla, steve
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2012-01-20 01:12:33 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

Description Peter Meier 2012-01-03 20:58:36 UTC
Description of problem:

Since the update to clamav-db-0.97.3-2 logrotate reports:

/etc/cron.daily/logrotate:

error: freshclam:6 duplicate log entry for /var/log/clamav/freshclam.log
error: found error in /var/log/clamav/freshclam.log , skipping

indeed:

# cat /etc/logrotate.d/freshclam
/var/log/clamav/freshclam.log {
        missingok
        notifempty
        create 644 clam clam
}
/var/log/clamav/freshclam.log {
        missingok
        notifempty
        create 644 clam clam
}
#  rpm -Vf /etc/logrotate.d/freshclam
missing   c /var/lib/clamav/daily.cvd
# rpm -V clamav-db 
missing   c /var/lib/clamav/daily.cvd

Version-Release number of selected component (if applicable):

# rpm -qf /etc/logrotate.d/freshclam
clamav-db-0.97.3-2.el5

# rpm -qi clamav-db
Name        : clamav-db                    Relocations: (not relocatable)
Version     : 0.97.3                            Vendor: Fedora Project
Release     : 2.el5                         Build Date: Wed 14 Dec 2011 01:02:24 AM CET
Install Date: Sun 01 Jan 2012 01:51:03 AM CET      Build Host: x86-10.phx2.fedoraproject.org
Group       : Applications/Databases        Source RPM: clamav-0.97.3-2.el5.src.rpm
Size        : 31044251                         License: GPLv2
Signature   : DSA/SHA1, Wed 14 Dec 2011 07:37:30 PM CET, Key ID 119cc036217521f6
Packager    : Fedora Project
URL         : http://www.clamav.net/
Summary     : Virus database for clamav
Description :
The actual virus database for clamav


Fix is trivial: Just remove the double entry.

This should be treated as urgent, as logrotate does currently not work with that.

Comment 1 Ian Forde 2012-01-09 20:43:08 UTC
The file /etc/cron.daily/freshclam is also doubled in this release.  Removing the double entry cleans it up also.

Comment 2 Nick Bebout 2012-01-20 01:12:33 UTC
This should be fixed in clamav-0.97.3-3