[clamav-users] ERROR: NotifyClamd: Can't connect to clamd on 127.0.0.1:3310: Connection refused
Dennis Peterson
dennispe at inetnw.com
Thu Feb 1 18:40:51 UTC 2018
If you can successfully run nc -l 3310 then clamd is not using the port. Check
lsof -i |grep clam and examine the clamd.conf file. Something you're sure of is
wrong.
dp
On 2/1/18 9:23 AM, Chris wrote:
> On Thu, 2018-02-01 at 07:51 -0800, Dennis Peterson wrote:
>> Use the nc tool to connect to that port. If you get a connection then
>> type PING.
>> It should return PONG and disconnect. If that doesn't happen you have
>> a config
>> misunderstanding.
>>
>> dp
> Thanks Dennis, I used nc -zv to try and connect to port 3310 with
> 127.0.0.1 as per my settings:
>
> nc -zv 127.0.0.1 3300-3400
> nc: connect to 127.0.0.1 port 3300 (tcp) failed: Connection refused
> nc: connect to 127.0.0.1 port 3301 (tcp) failed: Connection refused
> nc: connect to 127.0.0.1 port 3302 (tcp) failed: Connection refused
> nc: connect to 127.0.0.1 port 3303 (tcp) failed: Connection refused
> nc: connect to 127.0.0.1 port 3304 (tcp) failed: Connection refused
> nc: connect to 127.0.0.1 port 3305 (tcp) failed: Connection refused
> nc: connect to 127.0.0.1 port 3306 (tcp) failed: Connection refused
> nc: connect to 127.0.0.1 port 3307 (tcp) failed: Connection refused
> nc: connect to 127.0.0.1 port 3308 (tcp) failed: Connection refused
> nc: connect to 127.0.0.1 port 3309 (tcp) failed: Connection refused
> nc: connect to 127.0.0.1 port 3310 (tcp) failed: Connection refused
>
> Odd that in all the years I've run ClamAV with the same settings I've
> not had this problem.
>
> Using nc -l 3310 in one terminal and nc 127.0.0.1 3310 I get:
>
> nc -l 3310
> test
> this is a test
>
> nc 127.0.0.1 3310
> test
> this is a test
>
> So, IIUC I can talk to port 3310 with 127.0.0.1 or am I incorrect?
>
>> On 2/1/18 6:49 AM, Chris wrote:
>>> First of all regarding my previous post - "Cannot connect to unix
>>> socket '/var/lib/clamav/clamd.socket': connect: No such file or
>>> directory" on Tuesday, I at least have that working. However, now
>>> whenever an update is done to a database I'm seeing - ERROR:
>>> NotifyClamd: Can't connect to clamd on 127.0.0.1:3310: Connection
>>> refused. This is:
>>>
>> _______________________________________________
>> clamav-users mailing list
>> clamav-users at lists.clamav.net
>> http://lists.clamav.net/cgi-bin/mailman/listinfo/clamav-users
>>
>>
>> Help us build a comprehensive ClamAV guide:
>> https://github.com/vrtadmin/clamav-faq
>>
>> http://www.clamav.net/contact.html#ml
>>
>>
>> _______________________________________________
>> clamav-users mailing list
>> clamav-users at lists.clamav.net
>> http://lists.clamav.net/cgi-bin/mailman/listinfo/clamav-users
>>
>>
>> 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