Mailing List Archive

[clamav-users] clamonsacc not working on centos7
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 ?



_______________________________________________

clamav-users mailing list
clamav-users@lists.clamav.net
https://lists.clamav.net/mailman/listinfo/clamav-users


Help us build a comprehensive ClamAV guide:
https://github.com/vrtadmin/clamav-faq

http://www.clamav.net/contact.html#ml
Re: [clamav-users] clamonsacc not working on centos7 [ In reply to ]
Hi there,

On Tue, 27 Jul 2021, Joël Labby via clamav-users wrote:

> ...
> 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 ?

Are you running SELinux?

--

73,
Ged.

_______________________________________________

clamav-users mailing list
clamav-users@lists.clamav.net
https://lists.clamav.net/mailman/listinfo/clamav-users


Help us build a comprehensive ClamAV guide:
https://github.com/vrtadmin/clamav-faq

http://www.clamav.net/contact.html#ml
Re: [clamav-users] clamonsacc not working on centos7 [ In reply to ]
try running with strace

something like this

strace -s 255 -f -o /tmp/logfile command

ja upload logfile to pastebin or similar

Eero

On Tue 27. Jul 2021 at 21.09, G.W. Haywood via clamav-users <
clamav-users@lists.clamav.net> wrote:

> Hi there,
>
> On Tue, 27 Jul 2021, Joël Labby via clamav-users wrote:
>
> > ...
> > 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 ?
>
> Are you running SELinux?
>
> --
>
> 73,
> Ged.
>
> _______________________________________________
>
> clamav-users mailing list
> clamav-users@lists.clamav.net
> https://lists.clamav.net/mailman/listinfo/clamav-users
>
>
> Help us build a comprehensive ClamAV guide:
> https://github.com/vrtadmin/clamav-faq
>
> http://www.clamav.net/contact.html#ml
>
Re: [clamav-users] clamonsacc not working on centos7 [ In reply to ]
No Selinux is desactivated.

But I made a step into this problem...

I've commented the line

#LocalSocket /run/clamd.scan/clamd.sock

And Clanonacc can now run.

I just have another concern.

I've set it like this :

OnAccessIncludePath /home/afifd

but when I start the process I can see in the log :

ClamFanotif: recursively watching the mount point '/home/user'

and

ClamWorker: performing scanning on file
'/var/clamav/tmp/clamav-eee4bd3426e13922b0708f8cae552dfa.tmp'

So the path defined doesn't seem to work.

I've also tried to define

OnAccessExcludePath /var/clamav/tmp

If you have any idea.. You are welcome :-)

Thanks

joel

Le 27/07/21 à 20:06, G.W. Haywood via clamav-users a écrit :
> Hi there,
>
> On Tue, 27 Jul 2021, Joël Labby via clamav-users wrote:
>
>> ...
>> 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 ?
>
> Are you running SELinux?
>
--
<http://www.nwavedigital.com>
Re: [clamav-users] clamonsacc not working on centos7 [ In reply to ]
I've found the solution:

The OnAccessIncludePath has to be commented in my case.

everything seems to work like a charm :-)

Le 28/07/21 à 07:32, Joël Labby via clamav-users a écrit :
>
> No Selinux is desactivated.
>
> But I made a step into this problem...
>
> I've commented the line
>
> #LocalSocket /run/clamd.scan/clamd.sock
>
> And Clanonacc can now run.
>
> I just have another concern.
>
> I've set it like this :
>
> OnAccessIncludePath /home/afifd
>
> but when I start the process I can see in the log :
>
> ClamFanotif: recursively watching the mount point '/home/user'
>
> and
>
> ClamWorker: performing scanning on file
> '/var/clamav/tmp/clamav-eee4bd3426e13922b0708f8cae552dfa.tmp'
>
> So the path defined doesn't seem to work.
>
> I've also tried to define
>
> OnAccessExcludePath /var/clamav/tmp
>
> If you have any idea.. You are welcome :-)
>
> Thanks
>
> joel
>
> Le 27/07/21 à 20:06, G.W. Haywood via clamav-users a écrit :
>> Hi there,
>>
>> On Tue, 27 Jul 2021, Joël Labby via clamav-users wrote:
>>
>>> ...
>>> 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 ?
>>
>> Are you running SELinux?
>>
> --
> <http://www.nwavedigital.com>
>
> _______________________________________________
>
> clamav-users mailing list
> clamav-users@lists.clamav.net
> https://lists.clamav.net/mailman/listinfo/clamav-users
>
>
> Help us build a comprehensive ClamAV guide:
> https://github.com/vrtadmin/clamav-faq
>
> http://www.clamav.net/contact.html#ml
--
<http://www.nwavedigital.com>