Timeout exception when connecting to the Elastic search deployed in K8s cluster

Error
'Exception in thread "main" java.net.ConnectException: Timeout connecting to [/IP:80]
at org.elasticsearch.client.RestClient.extractAndWrapCause(RestClient.java:823)
at org.elasticsearch.client.RestClient.performRequest(RestClient.java:248)
at org.elasticsearch.client.RestClient.performRequest(RestClient.java:235)
at org.elasticsearch.client.RestHighLevelClient.internalPerformRequest(RestHighLevelClient.java:1514)
at org.elasticsearch.client.RestHighLevelClient.performRequest(RestHighLevelClient.java:1499)
at org.elasticsearch.client.RestHighLevelClient.performRequestAndParseEntity(RestHighLevelClient.java:1466)
at org.elasticsearch.client.RestHighLevelClient.info(RestHighLevelClient.java:730)
at ElasticSearchClient.ElasticSearchUtility.createIndex(ElasticSearchUtility.java:182)
at ElasticSearchClient.ElasticSearchUtility.main(ElasticSearchUtility.java:81)
Caused by: java.net.ConnectException: Timeout connecting to [es.ext.qa.elk.cloudtrust.rocks/35.160.228.26:80]
at org.apache.http.nio.pool.RouteSpecificPool.timeout(RouteSpecificPool.java:169)
at org.apache.http.nio.pool.AbstractNIOConnPool.requestTimeout(AbstractNIOConnPool.java:628)
at org.apache.http.nio.pool.AbstractNIOConnPool$InternalSessionRequestCallback.timeout(AbstractNIOConnPool.java:894)
at org.apache.http.impl.nio.reactor.SessionRequestImpl.timeout(SessionRequestImpl.java:184)
at org.apache.http.impl.nio.reactor.DefaultConnectingIOReactor.processTimeouts(DefaultConnectingIOReactor.java:214)
at org.apache.http.impl.nio.reactor.DefaultConnectingIOReactor.processEvents(DefaultConnectingIOReactor.java:158)
at org.apache.http.impl.nio.reactor.AbstractMultiworkerIOReactor.execute(AbstractMultiworkerIOReactor.java:351)
at org.apache.http.impl.nio.conn.PoolingNHttpClientConnectionManager.execute(PoolingNHttpClientConnectionManager.java:221)
at org.apache.http.impl.nio.client.CloseableHttpAsyncClientBase$1.run(CloseableHttpAsyncClientBase.java:64)
at java.base/java.lang.Thread.run(Thread.java:834)'

Is Elasticsearch listening to port 80? What is the configuration of the cluster? Where and how is it deployed? Which Elasticsearch version are you using?

This forum is community based, so in order to increase the possibility of someone responding it often helps to describe the problem and provide some context around your setup rather than just post a stack trace. If you can not be bothered to spend the time fully describing the issue a lot of people will not be bothered to spend time asking a lot of questions to get the required information in order to be able to help.

i am using 7.8.0 elastic search. It is deployed in external elb.

That is still not enough detail.

{
"name": "",
"cluster_name": "",
"cluster_uuid": "612-8m9JTzmrvA5vGoc6QA",
"version": {
"number": "7.8.0",
"build_flavor": "default",
"build_type": "docker",
"build_hash": "757314695644ea9a1dc2fecd26d1a43856725e65",
"build_date": "2020-06-14T19: 35: 50.234439Z",
"build_snapshot": false,
"lucene_version": "8.5.1",
"minimum_wire_compatibility_version": "6.8.0",
"minimum_index_compatibility_version": "6.0.0-beta1"
},
"tagline": "You Know, for Search"
}

That adds virtually no additional information. I give up. I do not have the time or energy for this today.

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.