[clamav-users] clamonsacc not working on centos7

Joël Labby joel at nwavedigital.com
Tue Jul 27 15:12:38 UTC 2021


Hello !

I've tried to install clamav on our linux computers.

clamd is configured like this :

LocalSocket = "/run/clamd.scan/clamd.sock"
LocalSocketGroup = "clamscan"
LocalSocketMode = "666"
TCPSocket = "3310"
TCPAddr = "127.0.0.1", "192.9.203.205"

The socket file is there and accessible :

srw-rw-rw- 1 clamscan clamscan 0 27 jui 15:47 /run/clamd.scan/clamd.sock

The port 3310 is opened and listening :

netstat -anp | grep -E "(clam)"

tcp        0      0 192.9.203.205:3310 0.0.0.0:*               
LISTEN      1863/clamd
tcp        0      0 127.0.0.1:3310 0.0.0.0:*               LISTEN      
1863/clamd
unix  2      [ ACC ]     STREAM     LISTENING     40300 
1863/clamd           /run/clamd.scan/clamd.sock
unix  2      [ ]         DGRAM                    40294 1863/clamd

I can use clamscan to scan a file

but clamonacc return this error :

ERROR: ClamClient: Could not connect to clamd, Couldn't connect to server
ERROR: Clamonacc: daemon is local, but a connection could not be established

any idea ?




More information about the clamav-users mailing list