On 2019-09-17 15:32:10 +0200, Vincent Lefevre wrote: > OK, I understand the reason with the upstream discussion. I think > that the best thing is to try to reproduce the issue under the > usual conditions (i.e. via cron and without trying to change the > status file). So, on some machine, I've set in /var/log/apache2 > > touch -d 19040101 error.log error.log.1 > > so that I now have > > -rw-r----- 1 root adm 306 1904-01-01 00:00:00 error.log > -rw-r----- 1 root adm 440 1904-01-01 00:00:00 error.log.1 > -rw-r----- 1 root adm 271 2019-09-16 00:00:02 error.log.2.gz > -rw-r----- 1 root adm 269 2019-09-15 00:00:02 error.log.3.gz > -rw-r----- 1 root adm 271 2019-09-14 00:00:02 error.log.4.gz > -rw-r----- 1 root adm 271 2019-09-13 00:00:01 error.log.5.gz > [...] > > and let's see what happens. If I understand correctly, I should > get an error each time cron.daily scripts will run, in particular > tomorrow and the day after tomorrow. After confirming that, I can > fix the timestamps manually.
It seems really broken, worse than expected. First, I did not get any error via cron, and the error logs did not change: -rw-r----- 1 root adm 306 1904-01-01 00:00:00 error.log -rw-r----- 1 root adm 440 1904-01-01 00:00:00 error.log.1 -rw-r----- 1 root adm 271 2019-09-16 00:00:02 error.log.2.gz -rw-r----- 1 root adm 269 2019-09-15 00:00:02 error.log.3.gz -rw-r----- 1 root adm 271 2019-09-14 00:00:02 error.log.4.gz -rw-r----- 1 root adm 271 2019-09-13 00:00:01 error.log.5.gz [...] Worse, this seemed to have interrupted the rotation of the access logs (or is this a different bug?): -rw-r----- 1 root adm 308 2019-09-17 16:39:00 access.log -rw-r----- 1 root adm 156 2019-09-16 16:31:06 access.log.2.gz -rw-r----- 1 root adm 157 2019-09-13 12:36:03 access.log.3.gz -rw-r----- 1 root adm 155 2019-09-12 12:25:14 access.log.4.gz -rw-r----- 1 root adm 156 2019-09-10 10:33:38 access.log.5.gz [...] Notice the lack of "access.log.1". As a comparison, on another machine, I currently have: -rw-r----- 1 root adm 0 2019-09-18 00:00:01 access.log -rw-r----- 1 root adm 751 2019-09-17 18:06:56 access.log.1 -rw-r----- 1 root adm 164 2019-09-16 01:09:27 access.log.2.gz -rw-r----- 1 root adm 202 2019-09-15 02:47:33 access.log.3.gz -rw-r----- 1 root adm 204 2019-09-10 09:41:04 access.log.4.gz -rw-r----- 1 root adm 196 2019-09-06 09:51:57 access.log.5.gz [...] -- Vincent Lefèvre <vinc...@vinc17.net> - Web: <https://www.vinc17.net/> 100% accessible validated (X)HTML - Blog: <https://www.vinc17.net/blog/> Work: CR INRIA - computer arithmetic / AriC project (LIP, ENS-Lyon)