1 (edited by tboud 2017-02-08 21:14:07)

Topic: ClamAV wont update, what I should try ?

======== Required information ====
- iRedMail version (check /etc/iredmail-release): 0.9.6
- Linux/BSD distribution name and version: Ubuntu Server 14.0¨4 LTS
- Store mail accounts in which backend (LDAP/MySQL/PGSQL): MySQL
- Web server (Apache or Nginx): NGINX
- Manage mail accounts with iRedAdmin-Pro? NO
- Related log if you're reporting an issue: I dont know how ?
====

Hello,
My server is fresh digitalocean (only iredadmin installed)
When I try to update ClamAV:

root@mail:~# sudo freshclam
ClamAV update process started at Wed Feb  8 13:08:56 2017
Downloading main.cvd [100%]
ERROR: Database load killed by signal 9
ERROR: Failed to load new database

ClamAV errors while sending (mail.log):

 
Feb  8 12:52:14 mail postfix/qmgr[2198]: 37A1AA0763: removed
Feb  8 12:52:14 mail amavis[16807]: (16807-02) (!)connect to /var/run/clamav/clamd.ctl failed, attempt #1: Can't connect to UNIX socket /var/run/clamav/clamd.ctl: No such file or directory
Feb  8 12:52:14 mail postfix/smtp[16698]: Untrusted TLS connection established to bever-uk.mail.protection.outlook.com[256.799.954.150]:25: TLSv1.2 with cipher ECDHE-RSA-AES256-SHA384 (256/256 bits)
Feb  8 12:52:15 mail amavis[16807]: (16807-02) (!)connect to /var/run/clamav/clamd.ctl failed, attempt #1: Can't connect to UNIX socket /var/run/clamav/clamd.ctl: No such file or directory
Feb  8 12:52:15 mail amavis[16807]: (16807-02) (!)ClamAV-clamd: All attempts (1) failed connecting to /var/run/clamav/clamd.ctl, retrying (2)

----

Spider Email Archiver: On-Premises, lightweight email archiving software developed by iRedMail team. Supports Amazon S3 compatible storage and custom branding.

2

Re: ClamAV wont update, what I should try ?

Seems ClamAV is not running, try to restart it:

/etc/init.d/clamav-daemon restart

And check log if there is something wrong after restarting it. Also is ClamAV up to date (I had problems with some buggy versions)?

3

Re: ClamAV wont update, what I should try ?

Try to delete all files under /var/lib/clamav/, then run "freshclam --debug" manually to see how it goes.