2012-02-14 18:07:22 |
Frederik Grunta |
bug |
|
|
added bug |
2012-02-14 18:07:22 |
Frederik Grunta |
attachment added |
|
Proposed replacement for /etc/cron.daily/logrotate https://bugs.launchpad.net/bugs/932225/+attachment/2739165/+files/logrotate |
|
2012-02-14 18:08:58 |
Frederik Grunta |
attachment added |
|
logrotate https://bugs.launchpad.net/ubuntu/+source/logrotate/+bug/932225/+attachment/2739166/+files/logrotate |
|
2012-02-14 18:29:22 |
Frederik Grunta |
description |
/etc/cron.daily has a script called "logrotate" which will kick off logrotate. Before logrotate is executed, the script scans the logrotate status file, located in /var/lib/logrotate/status to search for non-existant files and remove them from the status file.
This script is written in a way which assumes all log files will not have spaces in their name, causing logrotate not to be passed these log files for rotation. The sequence of events is:
1) logrotate bash script starts, starting logrote, which looks into /etc/logrotate.d for logrotate configuration files. It inserts the relevant log file names into /var/lib/logrotate/status. On first detection of the log type, logrotate will not rotate the log.
2) One hour passed, and cron calls the logrotate bash script again. It scan /var/lib/logrotate/status for non-existant files. It is unable to parse a log file a space in the name, and assumes the log file does not exist. It then removes the log from the status file.
3) logrotate starts, and as it does not have an entry for the log, adds it back into the status file, but does not rotate (same as 1) )
Attached is a patch - a replacement logrotate cron script.
---------
Ubuntu Server 11.04 Natty x64
logrotate 3.7.8-6ubuntu3.1
cron 3.0pl1-116ubuntu1 |
/etc/cron.daily has a script called "logrotate" which will kick off logrotate. Before logrotate is executed, the script scans the logrotate status file, located in /var/lib/logrotate/status to search for non-existant files and remove them from the status file.
This script is written in a way which assumes all log files will not have spaces in their name, causing logrotate not to be passed these log files for rotation. The sequence of events is:
1) logrotate bash script starts, starting logrote, which looks into /etc/logrotate.d for logrotate configuration files. It inserts the relevant log file names into /var/lib/logrotate/status. On first detection of the log type, logrotate will not rotate the log.
2) One hour passed, and cron calls the logrotate bash script again. It scan /var/lib/logrotate/status for non-existant files. It is unable to parse a log file with a space in the name, and assumes the log file does not exist. It then removes the log from the status file.
3) logrotate starts, and as it does not have an entry for the log, adds it back into the status file, but does not rotate (same as 1) )
Attached is a patch - a replacement logrotate cron script.
---------
Ubuntu Server 11.04 Natty x64
logrotate 3.7.8-6ubuntu3.1
cron 3.0pl1-116ubuntu1 |
|
2012-02-14 18:30:38 |
Frederik Grunta |
description |
/etc/cron.daily has a script called "logrotate" which will kick off logrotate. Before logrotate is executed, the script scans the logrotate status file, located in /var/lib/logrotate/status to search for non-existant files and remove them from the status file.
This script is written in a way which assumes all log files will not have spaces in their name, causing logrotate not to be passed these log files for rotation. The sequence of events is:
1) logrotate bash script starts, starting logrote, which looks into /etc/logrotate.d for logrotate configuration files. It inserts the relevant log file names into /var/lib/logrotate/status. On first detection of the log type, logrotate will not rotate the log.
2) One hour passed, and cron calls the logrotate bash script again. It scan /var/lib/logrotate/status for non-existant files. It is unable to parse a log file with a space in the name, and assumes the log file does not exist. It then removes the log from the status file.
3) logrotate starts, and as it does not have an entry for the log, adds it back into the status file, but does not rotate (same as 1) )
Attached is a patch - a replacement logrotate cron script.
---------
Ubuntu Server 11.04 Natty x64
logrotate 3.7.8-6ubuntu3.1
cron 3.0pl1-116ubuntu1 |
/etc/cron.daily has a script called "logrotate" which will kick off logrotate. Before logrotate is executed, the script scans the logrotate status file, located in /var/lib/logrotate/status to search for non-existant files and remove them from the status file.
This script is written in a way which assumes all log files will not have spaces in their name, causing logrotate not to be passed these log files for rotation. The sequence of events is:
1) logrotate bash script starts, starting logrote, which looks into /etc/logrotate.d for logrotate configuration files. It inserts the relevant log file names into /var/lib/logrotate/status. On first detection of the log type, logrotate will not rotate the log.
2) Once one hour has passed, cron calls the logrotate bash script again. It scan /var/lib/logrotate/status for non-existant files. It is unable to parse a log file with a space in the name, and assumes the log file does not exist. It then removes the log from the status file.
3) logrotate starts, and as it does not have an entry for the log, adds it back into the status file, but does not rotate (same as 1) )
Attached is a patch - a replacement logrotate cron script.
---------
Ubuntu Server 11.04 Natty x64
logrotate 3.7.8-6ubuntu3.1
cron 3.0pl1-116ubuntu1 |
|
2012-02-14 18:30:48 |
Frederik Grunta |
description |
/etc/cron.daily has a script called "logrotate" which will kick off logrotate. Before logrotate is executed, the script scans the logrotate status file, located in /var/lib/logrotate/status to search for non-existant files and remove them from the status file.
This script is written in a way which assumes all log files will not have spaces in their name, causing logrotate not to be passed these log files for rotation. The sequence of events is:
1) logrotate bash script starts, starting logrote, which looks into /etc/logrotate.d for logrotate configuration files. It inserts the relevant log file names into /var/lib/logrotate/status. On first detection of the log type, logrotate will not rotate the log.
2) Once one hour has passed, cron calls the logrotate bash script again. It scan /var/lib/logrotate/status for non-existant files. It is unable to parse a log file with a space in the name, and assumes the log file does not exist. It then removes the log from the status file.
3) logrotate starts, and as it does not have an entry for the log, adds it back into the status file, but does not rotate (same as 1) )
Attached is a patch - a replacement logrotate cron script.
---------
Ubuntu Server 11.04 Natty x64
logrotate 3.7.8-6ubuntu3.1
cron 3.0pl1-116ubuntu1 |
/etc/cron.daily has a script called "logrotate" which will kick off logrotate. Before logrotate is executed, the script scans the logrotate status file, located in /var/lib/logrotate/status to search for non-existant files and remove them from the status file.
This script is written in a way which assumes all log files will not have spaces in their name, causing logrotate not to be passed these log files for rotation. The sequence of events is:
1) logrotate bash script starts, starting logrote, which looks into /etc/logrotate.d for logrotate configuration files. It inserts the relevant log file names into /var/lib/logrotate/status. On first detection of the log type, logrotate will not rotate the log.
2) Once one hour has passed, cron calls the logrotate bash script again. It scans /var/lib/logrotate/status for non-existant files. It is unable to parse a log file with a space in the name, and assumes the log file does not exist. It then removes the log from the status file.
3) logrotate starts, and as it does not have an entry for the log, adds it back into the status file, but does not rotate (same as 1) )
Attached is a patch - a replacement logrotate cron script.
---------
Ubuntu Server 11.04 Natty x64
logrotate 3.7.8-6ubuntu3.1
cron 3.0pl1-116ubuntu1 |
|
2012-02-14 20:15:31 |
Ubuntu Foundations Team Bug Bot |
tags |
cron logrotate |
cron logrotate patch |
|
2012-02-14 20:15:38 |
Ubuntu Foundations Team Bug Bot |
bug |
|
|
added subscriber Ubuntu Review Team |
2018-02-12 13:05:59 |
Launchpad Janitor |
logrotate (Ubuntu): status |
New |
Confirmed |
|