Clamav and freshclam database update error

Started by cpanel_leaver, August 01, 2021, 11:53:34 AM

Previous topic - Next topic

cpanel_leaver

After updating to centos-release-7-9.2009.1.el7.centos.x86_64 and CWPpro version: 0.9.8.1078
I received mails with erros from this script: Cron <root@server> /usr/share/clamav/freshclam-sleep > /dev/null

ERROR: cdiff_apply: lseek(desc, -350, SEEK_END) failed
ERROR: downloadPatch: Can't apply patch
ERROR: cdiff_apply: lseek(desc, -350, SEEK_END) failed
ERROR: downloadPatch: Can't apply patch


It seems related to this issue from Clamav: https://blog.clamav.net/2021/07/psa-freshclam-database-download-issue.html

They suggest this solution:
If you are experiencing this same issue, the simplest solution is to delete your signature databases from /var/lib/clamav. Then, make sure your FreshClam configuration in /etc/clamav/freshclam.conf either has the ReceiveTimeout option set sufficiently high (E.g. 300 seconds). Alternatively, users can remove the ReceiveTimeout option entirely to disable the timeout.

After making these changes, you may re-enable your FreshClam service or run freshclam manually and you should find that it is working correctly again.

Just sharing this info