[clamav-users] Error (Cannot connect to unix socket '/var/lib/clamav/clamd.socket': connect: No such file or directory)
Tobi
tobisworld at gmail.com
Sun Aug 7 15:02:27 UTC 2016
Hi Chris
sorry I was not clear enough. I did not mean to start the service via systemd but to call like
sudo /usr/sbin/clamd -c /path/to/config
and see then if the socket has been created in expected location.
Cheers
tobi
----- Originale Nachricht -----
Von: Chris <cpollock at embarqmail.com>
Gesendet: 07.08.16 - 15:51
An: clamav-users at lists.clamav.net
Betreff: Re: [clamav-users] Error (Cannot connect to unix socket '/var/lib/clamav/clamd.socket': connect: No such file or directory)
> On Sun, 2016-08-07 at 10:49 +0200, Tobi wrote:
>> It might a systemd issue. Have you tried to start clamd by calling it
>> directly on cli? Does it create the socket then?
>>
>> Cheers
>>
>> tobi
>
> I've tried that lots of times Tobi, however, it still doesn't create
> it:
>
> chris at localhost:~$ sudo service clamav-daemon stop [ - ] clamav-
> daemon
>
> chris at localhost:~$ sudo service clamav-daemon start [ + ] clamav-
> daemon
>
> The 'clamd.socket' file should be between these two but it's not:
>
> -rw-r--r-- 1 clamav clamav 446464 Jun 23 11:40 bytecode.cld
> -rw-r--r-- 1 clamav clamav 82 Jul 13 14:44 crdfam.clamav.hdb
>
>
>
>> ----- Originale Nachricht -----
>> Von: Chris <cpollock at embarqmail.com>
>> Gesendet: 07.08.16 - 04:49
>> An: clamav-users at lists.clamav.net
>> Betreff: [clamav-users] Error (Cannot connect to unix socket
>> '/var/lib/clamav/clamd.socket': connect: No such file or directory)
>>
>> >
>> > 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
>> > /var/lib/clamav:
>> >
>> > 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.
>> >
>> > Chris
>> >
> --
> Chris
> KeyID 0xE372A7DA98E6705C
> 31.11972; -97.90167 (Elev. 1092 ft)
> 08:43:05 up 12:07, 1 user, load average: 0.77, 0.83, 0.74
> Ubuntu 16.04.1 LTS, kernel 4.4.0-31-generic #50-Ubuntu SMP Wed Jul 13 00:07:12 UTC 2016
>
> _______________________________________________
> Help us build a comprehensive ClamAV guide:
> https://github.com/vrtadmin/clamav-faq
>
> http://www.clamav.net/contact.html#ml
More information about the clamav-users
mailing list