Bug #4026
closed
The logrotate configuration file from Debian/Ubuntu rudder-server-root is duplicate between the old (rudder-server-root) and the new one (rudder)
Added by Nicolas PERRON about 11 years ago.
Updated over 9 years ago.
Description
After an upgrade to Rudder 2.4.9, 2.6.6, 2.7.3 or later the configuration file (managed by Debian packaging) /etc/logrotate.d/rudder-server-root will continue to be managed even if the new one is installed /etc/logrotate.d/rudder-server-root. In fact, this is a renaming but the both of them still present.
An error will be display during the use of logrotate:
reading config file rudder
[...]
reading config file rudder-server-root
error: rudder-server-root:1 duplicate log entry for /var/log/rudder/apache2/access.log
error: found error in /var/log/rudder/apache2/*.log , skipping
removing last 1 log configs
error: rudder-server-root:20 duplicate log entry for /var/log/rudder/ldap/slapd.log
error: found error in /var/log/rudder/ldap/slapd.log , skipping
removing last 1 log configs
error: rudder-server-root:36 duplicate log entry for /var/log/rudder/reports/all.log
error: found error in /var/log/rudder/reports/*.log , skipping
removing last 1 log configs
error: rudder-server-root:53 duplicate log entry for /var/log/rudder/core/rudder-webapp.log
error: found error in /var/log/rudder/core/*.log , skipping
[...]
logrotate does not return an error:
root@server:~# echo $?
0
The packages does not manage the same filename:
root@server:/tmp# dpkg -c rudder-server-root_2.4.8-squeeze0_all.deb | grep logrotate
drwxr-xr-x root/root 0 2013-09-02 18:31 ./etc/logrotate.d/
-rw-r--r-- root/root 1386 2013-09-02 18:31 ./etc/logrotate.d/rudder-server-root
root@server:/tmp# dpkg -c rudder-server-root_2.6.8~rc1~git201310081553-squeeze0_all.deb | grep logrotate
drwxr-xr-x root/root 0 2013-10-08 16:12 ./etc/logrotate.d/
-rw-r--r-- root/root 1603 2013-10-08 16:12 ./etc/logrotate.d/rudder
- Status changed from New to Pending technical review
- Assignee changed from Nicolas PERRON to Jonathan CLARKE
- % Done changed from 0 to 100
- Status changed from Pending technical review to Discussion
- Assignee changed from Jonathan CLARKE to Nicolas PERRON
- Status changed from Discussion to Pending release
Applied in changeset commit:533fd6535545bb8c35334a137e4bfa2c0459adb2.
Applied in changeset commit:1ef6731d3cbd2c2668ae4fb489c6d5a93d418ff2.
- Status changed from Pending release to Pending technical review
- Assignee changed from Nicolas PERRON to Jonathan CLARKE
The fix does not work with Debian Lenny. A ticket has been created for this: #4031
- Subject changed from The logrotate configuration file from Debian rudder-server-root is duplicate between the old (rudder-server-root) and the new one (rudder) to The logrotate configuration file from Debian/Ubuntu rudder-server-root is duplicate between the old (rudder-server-root) and the new one (rudder)
- Status changed from Pending technical review to Pending release
- Status changed from Pending release to Released
This bug has been fixed in Rudder 2.4.11, which was released today.
Check out:
- Project changed from 34 to Rudder
- Category set to Packaging
Also available in: Atom
PDF