[Pkg-clamav-devel] Bug#816272: Bug#816272: clamav-freshclam: logrotate errors out with "gzip: stdin: file size changed while zipping"

Sebastian Andrzej Siewior sebastian at breakpoint.cc
Fri Mar 4 21:10:06 UTC 2016


On 2016-02-29 12:02:51 [+0100], Christian Pernegger wrote:
> > From: Cron Daemon <pernegger at gmail.com>
> > To: root at buddha.southpark.chp
> > Subject: Cron <root at buddha> test -x /usr/sbin/anacron || ( cd / && run-parts --report /etc/cron.daily )
> >
> > /etc/cron.daily/logrotate:
> > error: error running non-shared postrotate script for /var/log/clamav/freshclam.log of '/var/log/clamav/freshclam.log '
> > gzip: stdin: file size changed while zipping
> > run-parts: /etc/cron.daily/logrotate exited with return code 1
> 
> No configuration of clamav or freshclam has been done (yet), apart
> from the debconf settings at the bottom of this mail.

I copied your debconf and it seems to work here. Can you check your logs
if the freshclam log runs at the same time as your logrorate script?
I have no idea why but it seems to be the case. Adding `delaycompress'
to the cron script should fix it.

> Regards,
> Christian Pernegger

Sebastian



More information about the Pkg-clamav-devel mailing list