(!)connect to /var/run/clamav/clamd.ctl failed,

Discussion in 'Server Operation' started by forbin1234, Jun 16, 2016.

  1. forbin1234

    forbin1234 New Member

    Hello,

    I have search the forums and have tried all the remedies that I have been able to find but still having this issue. I am running Debian Jessie with Postfix, amavis, clamav, courier. I started getting this error after the last clamav debian update a few weeks ago. I have tried restarting the clamav-daemon but when I do a ps -ef |grep clam all _ get is:

    [email protected]:/var/run/clamav# ps -ef |grep clam
    amavis 23382 18347 99 09:55 ? 00:00:02 /usr/bin/clamscan --stdout --no-summary -r --tempdir=/var/lib/amavis/tmp /var/lib/amavis/tmp/amavis-20160616T084504-18347-F4vFTosA/parts
    root 23385 23055 0 09:55 pts/4 00:00:00 grep clam
    clamav 26135 1 0 Jun15 ? 00:00:07 /usr/bin/freshclam -d --foreground=true

    Any help would be greatly appreciated.


    Jun 16 09:56:37 c3p0 amavis[18371]: (18371-13) (!)connect to /var/run/clamav/clamd.ctl failed, attempt #1: Can't connect to a UNIX socket /var/run/clamav/clamd.ctl: No such file or directory
    Jun 16 09:56:38 c3p0 amavis[18371]: (18371-13) (!)connect to /var/run/clamav/clamd.ctl failed, attempt #1: Can't connect to a UNIX socket /var/run/clamav/clamd.ctl: No such file or directory
    Jun 16 09:56:38 c3p0 amavis[18371]: (18371-13) (!)ClamAV-clamd: All attempts (1) failed connecting to /var/run/clamav/clamd.ctl, retrying (2)
    Jun 16 09:56:44 c3p0 amavis[18371]: (18371-13) (!)connect to /var/run/clamav/clamd.ctl failed, attempt #1: Can't connect to a UNIX socket /var/run/clamav/clamd.ctl: No such file or directory
    Jun 16 09:56:44 c3p0 amavis[18371]: (18371-13) (!)ClamAV-clamd av-scanner FAILED: run_av error: Too many retries to talk to /var/run/clamav/clamd.ctl (All attempts (1) failed connecting to /var/run/clamav/clamd.ctl) at (eval 99) line 613.\n
    Jun 16 09:56:44 c3p0 amavis[18371]: (18371-13) (!)WARN: all primary virus scanners failed, considering backups
     
  2. florian030

    florian030 ISPConfig Developer ISPConfig Developer

    Did you update clamav with apt-get in the last days? Comment AllowSuplementaryGroups in /etc/clamav/clamd.conf and restart clamav.
     
    WildcatLeeds and ChuckSC like this.
  3. forbin1234

    forbin1234 New Member

    Thanks. I thought I did that but must have not saved the file properly. Working now.
     
  4. calbasi

    calbasi New Member

  5. calbasi

    calbasi New Member

    By the way, it takes me some minutes figure how can restart clamav in Debian Jessie:
    service clamav-daemon restart
    To check status:
    /etc/init.d/clamav-daemon status
     

Share This Page