Connection refused errror for python elasticsearch client 6.8.22

Hello Team,

I am facing issues related to python elasticsearch client, we have 3 VMs where elasticsearch is installed and we are using python to create elasticsearch client with host [ip1,ip2,ip3]. But connection refused error is happening when we create client for the same. 1. urllib3.exceptions.ConnectTimeoutError: (<urllib3.connection.HTTPConnection object at 0x3e44e2a85dd0>, 'Connection to <host_ip> timed out. (connect timeout=10)').

Also we are able to connect to the VMs and we are getting curl -X GET "localhost:9200" details. What could be the reason of connection refusal while creating python client ? we have added 'network.host: 0.0.0.0' and 'discovery.zen.ping.unicast.hosts: [vm_name1, vm_name2, vm_name3]'.

Can somebody give some hints to fix it?

We did elasticsearch upgrade from 6.7.0 to 6.8.22,

Welcome to our community! :smiley:

6.8 is EOL and no longer supported. You should really be looking to upgrade to a current version.

It'd be useful if you shared your Elasticsearch config and logs please.