I should have mentioned my socket snippets.

7of9 var # grep clamd /etc/amavisd.conf 
 ['ClamAV-clamd',
   \&ask_daemon, ["CONTSCAN {}\n", "/var/run/clamav/clamd.sock"],

and:
7of9 var # grep clamd /etc/clamd.conf  
LocalSocket /var/run/clamav/clamd.sock


Also, as I mentioned, freshclam can't notify clamd either with the same
permission denied error so it's not really an amavisd or socket name
error, as freshclam uses the name from /etc/clamd.conf?


Thanks in advance for any pointers :)

Oliver

On 09/02/10 18:40, Oliver Schinagl wrote:
>  Hello all,
>
> I've been stuffed with the old and known "(!!)ClamAV-clamd av-scanner
> FAILED: run_av error: Too many retries to talk to
> /var/run/clamav/clamd.sock (Can't connect to UNIX socket
> /var/run/clamav/clamd.sock: Permission denied) at (eval 99) line 326.\n"
> error.
>
> I have 2 mail servers running with near identical configs, so I did
> cross-check them. Also, I googled and verified my permissions and the
> like, but I can't seem to get amavis to talk to clamav.
>
> The socket is world read/write-able, so how this is an issue is beyond me:
> 7of9 var # ls -laF /var/run/clamav/clamd.sock
> srw-rw-rw- 1 clamav clamav 0 Sep  2 18:22 /var/run/clamav/clamd.sock=
>
> And supplementary groups are enabled:
> 7of9 var # grep Supp /etc/clamd.conf
> AllowSupplementaryGroups yes
>
> Amavis and clamav aren in each others groups:
> clamav:x:10024:amavis
> amavis:x:10021:clamav
>
> and when I 'cat' as user amavis, I do get access to the socket (I think?)
> cat: /var/run/clamav/clamd.sock: No such device or address
>   File: `/var/run/clamav/clamd.sock'
>   Size: 0               Blocks: 0          IO Block: 4096   socket
> Device: 903h/2307d      Inode: 7921        Links: 1
> Access: (0666/srw-rw-rw-)  Uid: (  116/  clamav)   Gid: (10024/  clamav)
> Access: 2010-09-02 18:22:43.000000000 +0200
> Modify: 2010-09-02 18:22:43.000000000 +0200
> Change: 2010-09-02 18:22:43.000000000 +0200
>
> Which I think is what is supposed to happen?
>
> The thing that is strangest though, is that freshclam can't even connect
> to the socket:
> Received signal: wake up
> ClamAV update process started at Thu Sep  2 09:30:35 2010
> main.cvd is up to date (version: 52, sigs: 704727, f-level: 44, builder:
> sven)
> Downloading daily-11776.cdiff [100%]
> daily.cld updated (version: 11776, sigs: 118691, f-level: 53, builder:
> arnaud)
> bytecode.cld is up to date (version: 40, sigs: 9, f-level: 53, builder:
> edwin)
> Database updated (823427 signatures) from database.clamav.net (IP:
> xx.xx.xx.xx)
> WARNING: Clamd was NOT notified: Can't connect to clamd through
> /var/run/clamav/clamd.sock
>
> I checked/tried all obvious answers but that's just not it I think.
>
> Any other pointers?
>
> Oliver
> _______________________________________________
> 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

Reply via email to