Description of problem: The logrotate file shipped in the RHEL 6.2 rsyslog package was modified. This modification caused file conflicts with the EPEL6 syslog-ng package. Version-Release number of selected component (if applicable): syslog-ng-3.2.5-1.el6 rsyslog-4.6.2-12.el How reproducible: Always Steps to Reproduce: 1. Upgrade a RHEL 6.1 system with syslog-ng as the default syslog daemon (and with the rsyslog daemon installed but disabled). Actual results: Yum message: ---------- ... Transaction Check Error: file /etc/logrotate.d/syslog from install of rsyslog-4.6.2-12.el6.x86_64 conflicts with file from package syslog-ng-3.2.5-1.el6.x86_64 ... ---------- Additional info: rsyslog logrotate file changes: ---------- $ diff -u ./rsyslog-4.6.2-3.el6_1.4.src/rsyslog.log ./rsyslog-4.6.2-12.el6.src/rsyslog.log --- ./rsyslog-4.6.2-3.el6_1.4.src/rsyslog.log 2009-05-20 11:49:33.000000000 +0100 +++ ./rsyslog-4.6.2-12.el6.src/rsyslog.log 2011-08-02 17:28:08.000000000 +0100 @@ -1,4 +1,9 @@ -/var/log/messages /var/log/secure /var/log/maillog /var/log/spooler /var/log/boot.log /var/log/cron { +/var/log/cron +/var/log/maillog +/var/log/messages +/var/log/secure +/var/log/spooler +{ sharedscripts postrotate /bin/kill -HUP `cat /var/run/syslogd.pid 2> /dev/null` 2> /dev/null || true ----------
rsyslog change that caused the file conflict: * Bug 683537 - [RFE] Do not use log rotation for /var/log/boot.log https://bugzilla.redhat.com/show_bug.cgi?id=683537
syslog-ng-3.2.5-2.el6 has been submitted as an update for Fedora EPEL 6. https://admin.fedoraproject.org/updates/syslog-ng-3.2.5-2.el6
Package syslog-ng-3.2.5-2.el6: * should fix your issue, * was pushed to the Fedora EPEL 6 testing repository, * should be available at your local mirror within two days. Update it with: # su -c 'yum update --enablerepo=epel-testing syslog-ng-3.2.5-2.el6' as soon as you are able to. Please go to the following url: https://admin.fedoraproject.org/updates/FEDORA-EPEL-2011-5246/syslog-ng-3.2.5-2.el6 then log in and leave karma (feedback).
syslog-ng-3.2.5-2.el6 has been pushed to the Fedora EPEL 6 stable repository. If problems still persist, please make note of it in this bug report.
*** Bug 782867 has been marked as a duplicate of this bug. ***
Hrmph, I didn't see this bug when I searched. My apologies. I was installing syslog-ng-3.2.5-2.el6.i686 when I filed that other bug, so it looks like the issue persists. https://bugzilla.redhat.com/show_bug.cgi?id=782867 Although it looks like a complete fix is having both packages install a separately-named file in /etc/logrotate.d. ($0.02, but I'm not the one doing the work.)
(In reply to comment #6) > Hrmph, I didn't see this bug when I searched. My apologies. > > I was installing syslog-ng-3.2.5-2.el6.i686 when I filed that other bug, so it > looks like the issue persists. As we can only track one version of each major RHEL release, we follow the latest and at this moment the latest RHEL6 version is 6.2. The current syslog-ng version in EPEL6 can be installed in parallel with the rsyslog shipped in RHEL 6.2 (rsyslog-4.6.2-12). > https://bugzilla.redhat.com/show_bug.cgi?id=782867 > > Although it looks like a complete fix is having both packages install a > separately-named file in /etc/logrotate.d. ($0.02, but I'm not the one doing > the work.) Been there, done that ;) Unfortunately logrotate aborts its execution if it finds duplicated log filenames in the logrotate scripts (/etc/logrotate.d/*). [1] /jpo [1] - This logrotate behavior is known for more than 10 years ...
(In reply to comment #6) To correct this problem you have 2 solutions: 1) Just remove the rsyslog package (the far better solution), 2) Upgrade simultaneously rsyslog (get the RPM(s) from the CentOS 6.2 repositories) and syslog-ng (from the EPEL6 repositories) /jpo