[clamav-users] Unable to connect to clamd.sock

Richard B. Pyne rpyne at kinfolk.org
Sun Jan 24 16:06:59 EST 2016


I'm having an issue with maiad (amavisd-new variant) trying to connect 
to ClamAV by socket.

Any help will be greatly appreciated.

--Richard

 From the log:

Jan 24 13:30:53 mail maiad[29651]: (29651-06) ask_av (ClamAV-clamd): 
query template1: CONTSCAN {}\n

Jan 24 13:30:53 mail maiad[29651]: (29651-06) Using (ClamAV-clamd) on 
dir: CONTSCAN /var/lib/maia/tmp/maia-20160124T130046-29651/parts\n

Jan 24 13:30:53 mail maiad[29651]: (29651-06) ClamAV-clamd: Sending 
CONTSCAN /var/lib/maia/tmp/maia-20160124T130046-29651/parts\n to UNIX 
socket /var/run/clamd.scan/clamd.sock

Jan 24 13:30:53 mail maiad[29651]: (29651-06) ClamAV-clamd: Can't send 
to socket /var/run/clamd.scan/clamd.sock: Transport endpoint is not 
connected, retrying (1)

Jan 24 13:30:53 mail maiad[29651]: (29651-06) ClamAV-clamd: sleeping for 1 s

Jan 24 13:30:54 mail maiad[29651]: (29651-06) ClamAV-clamd: Connecting 
to socket  /var/run/clamd.scan/clamd.sock, retry #1

Jan 24 13:30:54 mail maiad[29651]: (29651-06) ClamAV-clamd: Can't 
connect to UNIX socket /var/run/clamd.scan/clamd.sock: Permission 
denied, retrying (2)

Jan 24 13:30:54 mail maiad[29651]: (29651-06) ClamAV-clamd: sleeping for 6 s
Jan 24 13:31:00 mail maiad[29651]: (29651-06) ClamAV-clamd: Connecting 
to socket  /var/run/clamd.scan/clamd.sock, retry #2

Jan 24 13:31:00 mail maiad[29651]: (29651-06) ClamAV-clamd av-scanner 
FAILED: Too many retries to talk to /var/run/clamd.scan/clamd.sock 
(Can't connect to UNIX socket /var/run/clamd.scan/clamd.sock: Permission 
denied) at (eval 76) line 257.

Jan 24 13:31:00 mail maiad[29651]: (29651-06) WARN: all primary virus 
scanners failed, considering backups

Jan 24 13:31:00 mail maiad[29651]: (29651-06) Using (ClamAV-clamscan): 
/usr/bin/clamscan --stdout --no-summary -r --tempdir=/var/lib/maia/tmp 
/var/lib/maia/tmp/maia-20160124T130046-29651/parts

Jan 24 13:31:00 mail maiad[29651]: (29651-06) run_command: [32319] 
/usr/bin/clamscan --stdout --no-summary -r --tempdir=/var/lib/maia/tmp 
/var/lib/maia/tmp/maia-20160124T130046-29651/parts </dev/null 2>&1


root at mail ~ # grep clam /etc/group
clamupdate:x:994:
clamilt:x:992:
clamscan:x:991:clamilt
maia:x:1001:apache,clamscan


root at mail ~ # ls -al /var/run/clamd.scan/
total 0
drwxrwxrw-  2 clamscan clamscan  60 Jan 23 21:11 .
drwxr-xr-x 30 root     root     800 Jan 24 13:33 ..
srw-rw-rw-  1 clamscan clamscan   0 Jan 23 21:11 clamd.sock





More information about the clamav-users mailing list