Ubuntu 16.04.1; ClamAV 0.99 clamd.socket not created on start
Chris
cpollock at embarqmail.com
Sun Aug 21 01:19:38 UTC 2016
Prior to my upgrade to 16.04.1LTS from 14.04.4LTS ClamAV was working
perfectly perfectly. Now when FreshClam is run the following error is
shown:
WARNING: Clamd was NOT notified: Can't connect to clamd through
/var/lib/clamav/clamd.socket: No such file or directory
Fortunately the databases do get reloaded the next time clamd runs a
selfcheck.
My clamd.conf file is located at /etc/clamav/clamd.conf. In the .conf
file I have the placement for the clamd.socket file as
# Path to a local socket file the daemon will listen on.
# Default: disabled (must be specified by a user)
LocalSocket /var/run/clamav/clamd.socket
However looking at message headers it shows
Cannot connect to unix socket '/var/lib/clamav/clamd.socket': connect:
No such file or directory)
No where that I can see do I have /var/lib/clamav/clamd.socket as the
location for it.
Starting the daemon by running sudo /etc/init.d/clamav-daemon start
does not create the socket file.
Running sudo service clamav-daemon start does not create the socket.
Running sudo /usr/sbin/clamd -c /etc/clamav/clamd.conf creates the
socket
srw-rw-rw- 1 clamav clamav 0 Aug 20 17:58 clamd.socket
But also gives me this as errors
ERROR: TCP: Cannot bind to [127.0.0.1]:3310: Address already in use
ERROR: LOCAL: Socket file /var/run/clamav/clamd.socket is in use by
another process.
Closing the main socket.
Bottom line no matter which of the three ways of starting the daemon I
still get
X-spam-virus: Error (Cannot connect to unix socket
'/var/lib/clamav/clamd.socket': connect: No such file or directory)
Since I have Spamassassin calling clamd I thought there may be an issue
with the clamav.pm however that's not the case. Attached are my
/etc/clamav/clamd.conf and my /etc/mail/spamassassin/clamav.pm files.
Maybe someone can see something I'm missing.
Chris
--
Chris
KeyID 0xE372A7DA98E6705C
31.11972; -97.90167 (Elev. 1092 ft)
08:34:52 up 1 day, 16:49, 1 user, load average: 0.37, 0.31, 0.32
Ubuntu 16.04.1 LTS, kernel 4.4.0-34-generic #53-Ubuntu SMP Wed Jul 27 16:06:39 UTC 2016
-------------- next part --------------
A non-text attachment was scrubbed...
Name: clamav.pm
Type: application/x-perl
Size: 1606 bytes
Desc: not available
URL: <https://lists.ubuntu.com/archives/ubuntu-users/attachments/20160820/760789aa/attachment.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: clamd.conf.xz
Type: application/x-xz
Size: 6248 bytes
Desc: not available
URL: <https://lists.ubuntu.com/archives/ubuntu-users/attachments/20160820/760789aa/attachment.xz>
More information about the ubuntu-users
mailing list