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

Christian Pernegger pernegger at gmail.com
Tue Mar 22 20:09:05 UTC 2016


Hi again,

sorry for the delay. TBH I was hoping againt hope that this'll just go
away. I've gotten two more error e-mails in the meantime:

21st:
/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

13th:
/etc/cron.daily/logrotate:
error: error running non-shared postrotate script for
/var/log/clamav/freshclam.log of '/var/log/clamav/freshclam.log '
run-parts: /etc/cron.daily/logrotate exited with return code 1

Question: Is this one error, definitely coming from clamav-freshclam, or
could it be that the gzip line comes from $otherpackage, i.e., would
multiple unrelated errors land in one e-mail?

Verbose output of a forced logrotate run is attached. Nothing about gzip,
just the postrotate script failing. I'm guessing that'd be:

if [ -d /run/systemd/system ]; then
         systemctl -q is-active clamav-freshclam && systemctl kill
--signal=SIGHUP clamav-freshclam
else
         /etc/init.d/clamav-freshclam reload-log > /dev/null
fi

Now "[ -d /run/systemd/system ]" obviously holds, "systemctl -q is-active
clamav-freshclam && echo test" prints nothing (as expected) so this should
be a no-op. $? is 3, though, maybe that's interpreted as failure?

Regards
Christian
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.alioth.debian.org/pipermail/pkg-clamav-devel/attachments/20160322/a6f0d7f6/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: logrotate.log
Type: application/octet-stream
Size: 32361 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/pkg-clamav-devel/attachments/20160322/a6f0d7f6/attachment-0001.obj>


More information about the Pkg-clamav-devel mailing list