Hi,

I just hit the same behaviour on Ubuntu but not in the same context.

I have two Ubuntu 16.10 instances with near exactly the same config but only 
encounter this bug on one instance.

logrotate       3.8.7-2ubuntu2

The logrotate conf who cause this behaviour is exactly the same on both 
instances :

/var/log/apache2/*.log {
        daily
        missingok
        rotate 365
        dateext
        dateformat -apache1-production-01-%Y-%m-%d-%s
        compress
        delaycompress
        notifempty
        create 640 root adm
        sharedscripts
        postrotate
                if /etc/init.d/apache2 status > /dev/null ; then \
                    /etc/init.d/apache2 reload > /dev/null; \
                fi;
        endscript
        prerotate
                if [ -d /etc/logrotate.d/httpd-prerotate ]; then \
                        run-parts /etc/logrotate.d/httpd-prerotate; \
                fi; \
        endscript
}

The only differences in packages are bellow : (left is the instance who crash)

sdiff -s <(ssh xxx@xxxx 'dpkg-query -f '\''${binary:Package}\t${Version}\n'\'' 
-W | sort ') <(ssh xxx@xxxx 'dpkg-query -f 
'\''${binary:Package}\t${Version}\n'\'' -W | sort')
                                                              > 
libapache2-mod-php7.0   7.0.13-0ubuntu0.16.10.1
linux-headers-4.8.0-22  4.8.0-22.24                           | 
linux-headers-4.8.0-37  4.8.0-37.39
linux-headers-4.8.0-22-generic  4.8.0-22.24                   | 
linux-headers-4.8.0-37-generic  4.8.0-37.39
linux-headers-4.8.0-38  4.8.0-38.41                           <
linux-headers-4.8.0-38-generic  4.8.0-38.41                   <
                                                              > 
linux-headers-4.8.0-40  4.8.0-40.43
                                                              > 
linux-headers-4.8.0-40-generic  4.8.0-40.43
                                                              > 
linux-image-4.8.0-40-generic    4.8.0-40.43
                                                              > mariadb-common  
10.0.29-0ubuntu0.16.10.1
                                                              > mysql-common    
5.7.17-0ubuntu0.16.10.1
                                                              > percona-release 
0.1-4.yakkety
php-cli 1:7.0+44                                              <

I've not finished my tests yet, but I have the same problem with the Kernel 
4.8.0-22.24 and 4.8.0-38.41
The kernel in use on the instance who don't crash is the 4.8.0-37.39

The number of logs to rotate in /var/log/apache2/ are the same and have the 
same names ( 5 logs ).

I hit the bug if i launch :

sudo logrotate -f /etc/logrotate.d/apache2

If i re-run quickly the command it is ok

If i wait a few seconds, the bug reappear

I don't find many informations on internet, only this bug

Best regards,

Reply via email to