So clamd is listening to /var/run/clamav/clamd.sock, but amavisd claims
the file doesn't exist. Does the file exist? And does amavisd have
permissions to it?
What do you get from these commands?
# ls -ld /var/run/clamav
# ls -l /var/run/clamav/clamd.sock
--
Bowie
Sasa wrote:
> Hi, I have this situation:
>
> [r...@mail ~]# ps -ef | grep clamd
> clamav 1911 1 0 14:32 ? 00:00:02 /usr/local/sbin/clamd
>
> [r...@mail ~]# netstat -lnp | grep clamd
> unix 2 [ ACC ] STREAM LISTENING 4217 1911/clamd
> /var/run/clamav/clamd.sock
>
>
> ------
>
> Salvatore.
>
>
>
> ----- Original Message ----- From: "Bowie Bailey" <[email protected]>
> To: <[email protected]>
> Sent: Friday, April 16, 2010 3:55 PM
> Subject: Re: [Clamav-users] File size limit exceeded
>
>
>> Sasa wrote:
>>> yes, I have restart the machine !
>>> On log file I have this error:
>>>
>>> Apr 16 15:45:43 mail amavis[9710]: (09710-01-3) ClamAV-clamd: Can't
>>> connect to UNIX socket /var/run/clamav/clamd.sock: No such file or
>>> directory, retrying (2)
>>
>> So the error changed. That's the kind of thing we need to know in order
>> to help! :)
>>
>> That file should have been created by clamd when you started it. Make
>> sure clamd is running and then see if the file actually exists. If not,
>> check to see what file clamd is actually using.
>>
>> # ps -ef | grep clamd
>> clamav 3677 1 0 Apr15 ? 00:03:09 /usr/local/sbin/clamd
>>
>> # netstat -lnp | grep clamd
>> unix 2 [ ACC ] STREAM LISTENING 9010
>> 3677/clamd /var/run/clamav/clamd
>>
>> The 'ps' command shows that the daemon is running and the 'netstat'
>> shows that it is listening to the socket /var/run/clamav/clamd on my
>> system.
>>
>> --
>> Bowie
>>
>> _______________________________________________
>> Help us build a comprehensive ClamAV guide: visit http://wiki.clamav.net
>> http://www.clamav.net/support/ml
>>
>
> _______________________________________________
> Help us build a comprehensive ClamAV guide: visit http://wiki.clamav.net
> http://www.clamav.net/support/ml
_______________________________________________
Help us build a comprehensive ClamAV guide: visit http://wiki.clamav.net
http://www.clamav.net/support/ml