ClamAV Error

Discussion in 'Server Operation' started by HyperAtom, Aug 7, 2011.

  1. HyperAtom

    HyperAtom New Member

    Hi all, I have recently been messing around with my sources.list and I think I've broke something to do with ClamAV.

    I am recieving the following errors:

    amavis[1354]: (01354-03) (!)ClamAV-clamd: Can't connect to UNIX socket /var/run/clamav/clamd.ctl: No such file or directory, retrying (2)
    Aug 6 23:01:06 amavis[1354]: (01354-03) (!)ClamAV-clamd av-scanner FAILED: run_av error: Too many retries to talk to /var/run/clamav/clamd.ctl (Can't connect to UNIX socket /var/run/clamav/clamd.ctl: No such file or directory) at (eval 105) line 373.\n
    Aug 6 23:01:06 amavis[1354]: (01354-03) (!!)WARN: all primary virus scanners failed, considering backups

    I can confirm that the /var/run/clamav/clamd.ctl file does not exist, I didn't remove it manually.

    Checking the ClamAV log I can see this line which is the last transmission:

    Tue Aug 2 12:51:58 2011 -> SelfCheck: Database status OK.
    Tue Aug 2 13:51:58 2011 -> SelfCheck: Database status OK.
    Tue Aug 2 14:51:58 2011 -> SelfCheck: Database status OK.
    Tue Aug 2 15:51:58 2011 -> SelfCheck: Database modification detected. Forcing reload.
    Tue Aug 2 15:51:59 2011 -> Reading databases from /var/lib/clamav
    Tue Aug 2 15:52:03 2011 -> Database correctly reloaded (1011807 signatures)
    Tue Aug 2 16:52:03 2011 -> SelfCheck: Database status OK.
    Tue Aug 2 17:30:27 2011 -> Pid file removed.
    Tue Aug 2 17:30:27 2011 -> --- Stopped at Tue Aug 2 17:30:27 2011
    Tue Aug 2 17:30:27 2011 -> Socket file removed.

    I have been looking at this thread for advice. On trying the ls -l /var/run command, I recieve:

    drwxr-xr-x 2 clamav root 4096 Aug 6 17:01 clamav
    (should this not be owned by clamav group instead?)

    Could anyone please help me with this issue?

    Thanks :)
     
  2. HyperAtom

    HyperAtom New Member

    Problem solved, I must have removed clamav-daemon by accident and not re-installed it, thinking by apt-get install clam-av it would automatically install the daemon. This was not the case so I fixed the issue by apt-get install clamav-daemon.
     

Share This Page