Description of problem: The lograte utility enters inconsistent state if /var is full prior to run. It creates a 0 byte file at "/var/lib/logrotate.status". On subsequent runs (even once there is space available on /var) it aborts with the error "error: error reading top line of /var/lib/logrotate.status" This causes any new logs to not be archived and potentially be lost entirely. Version-Release number of selected component (if applicable): # /usr/sbin/logrotate -v logrotate 3.5.9 - Copyright (C) 1995-2001 Red Hat, Inc. # rpm -qa | grep logr logrotate-3.5.9-1 How reproducible: Always Steps to Reproduce: 1. fill /var 2. run logrotate or 1. rm /var/lib/logrotate.status 2. touch /var/lib/logrotate.status 3. /usr/sbin/logrotate /etc/logrotate.conf Actual Results: logrotate aborts with error Expected Results: logrotate rotates logs
This appears to have been fixed in 3.6.1 of logrotate, meaning that RedHat 7.3 includes this updated version. We're running RedHat 7.2, for which the latest version is logrotate-3.5.9-1