Bug #4026
closedThe logrotate configuration file from Debian/Ubuntu rudder-server-root is duplicate between the old (rudder-server-root) and the new one (rudder)
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 [...]
Updated by Nicolas PERRON about 11 years ago
The solution seems 'easy': http://raphaelhertzog.com/2010/10/14/correctly-renaming-a-conffile-in-debian-package-maintainer-scripts/
Updated by Nicolas PERRON about 11 years ago
logrotate does not return an error:
root@server:~# echo $? 0
Updated by Nicolas PERRON about 11 years ago
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
Updated by Nicolas PERRON about 11 years ago
- Status changed from New to Pending technical review
- Assignee changed from Nicolas PERRON to Jonathan CLARKE
- % Done changed from 0 to 100
Pull Request URL added: https://github.com/Normation/rudder-packages/pull/152
Jon, could you review it please ?
Updated by Jonathan CLARKE about 11 years ago
- Status changed from Pending technical review to Discussion
- Assignee changed from Jonathan CLARKE to Nicolas PERRON
Updated by Nicolas PERRON about 11 years ago
- Status changed from Discussion to Pending release
Applied in changeset commit:533fd6535545bb8c35334a137e4bfa2c0459adb2.
Updated by Nicolas PERRON about 11 years ago
Applied in changeset commit:1ef6731d3cbd2c2668ae4fb489c6d5a93d418ff2.
Updated by Nicolas PERRON about 11 years ago
- 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
Updated by Nicolas PERRON about 11 years ago
- 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)
Updated by Nicolas PERRON about 11 years ago
- Status changed from Pending technical review to Pending release
Updated by Nicolas PERRON about 11 years ago
- Status changed from Pending release to Released
This bug has been fixed in Rudder 2.4.11, which was released today.
Check out:
- The release announcement: http://www.rudder-project.org/pipermail/rudder-announce/2013-October/000052.html
- The full ChangeLog: http://www.rudder-project.org/foswiki/bin/view/System/Documentation:ChangeLog24
- Download information: http://www.rudder-project.org/foswiki/Download/
Updated by Benoît PECCATTE over 9 years ago
- Project changed from 34 to Rudder
- Category set to Packaging