[clamav-users] Error (Cannot connect to unix socket '/var/lib/clamav/clamd.socket': connect: No such file or directory)

Chris cpollock at embarqmail.com
Sat Aug 6 22:49:29 EDT 2016

I upgraded to Ubuntu 16.04LTS earlier this week and it installed ClamAV
0.99. I previously had 98.7 installed and running perfectly. I have it
being called by Spamassassin. When an incoming message is checked the
line in the subject appears. Permissions for the directory

drwxr-xr-x 3 clamav        clamav        4096 Aug  6 20:36 clamav

Owner and group of each file in /var/lib/clamav is clamav  clamav.

The clamd.ctl file exist as shown in my /etc/clamav/clamd.conf:

# This option allows you to save a process identifier of the listening
# daemon (main thread).
# Default: disabled
PidFile /var/run/clamav/clamd.pid

I have the /tmp location set:

# Optional path to the global temporary directory.
# Default: system specific (usually /tmp or /var/tmp).
TemporaryDirectory /var/tmp

I have this set for the socket file:

# Path to a local socket file the daemon will listen on.
# Default: disabled (must be specified by a user)
LocalSocket /var/lib/clamav/clamd.socket

It's not getting created no matter what I do. It used to be created in
fact it was there before I did the system upgrade.

Any assistance would be appreciated.


KeyID 0xE372A7DA98E6705C
31.11972; -97.90167 (Elev. 1092 ft)
20:49:27 up 14 min, 1 user, load average: 0.34, 1.74, 1.93
Ubuntu 16.04.1 LTS, kernel 4.4.0-31-generic #50-Ubuntu SMP Wed Jul 13 00:07:12 UTC 2016

More information about the clamav-users mailing list