Elasticsearch AbstractElasticsearchRepository. e:Request processing failed; nested exception is org.springframework.dao.DataAccessResourceFailureException: Timeout connecting to [elasticsearch. Timeout connecting to Springboot Application Error

Version Spring Data Elasticsearch: 4.0.0.RELEASE
Version Elasticsearch Client in build: 7.6.2
Version Elasticsearch Client used: 7.6.2
e:Request processing failed; nested exception is org.springframework.dao.DataAccessResourceFailureException: Timeout connecting to [elasticsearch.

I am trying connecting springboot application with elasticsearch
Timeout connecting to [url/ip]

Welcome!

You need to use the same major version for both client and server.

Still same problem, I have updated the post for more understanding. Please look into it now

Please don't post images of text as they are hard to read, may not display correctly for everyone, and are not searchable.

Instead, paste the text and format it with </> icon or pairs of triple backticks (```), and check the preview window to make sure it's properly formatted before posting it. This makes it more likely that your question will receive a useful answer.

It would be great if you could update your post to solve this and share also the full logs and may be your code.

at org.apache.http.nio.pool. RouteSpecificPool. timeout (RouteSpecificPool.java:169)
at org.apache.http.nio.pool. AbstractNIOConnPool.requestTimeout(AbstractNIOConnPool.java:632)
at org.apache.http.nio.pool. AbstractNIOConnPool$Internal SessionRequestCallback. timeout(AbstractNIOConnPool.java:898)
at org.apache.http.impl.nio.reactor. SessionRequest Impl. timeout (SessionRequest Impl.java:198)
at org.apache.http.impl.nio.reactor. DefaultConnectingIOReactor.processTimeouts (DefaultConnectingIOReactor.java: 213)
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(PoolingNHttpClientConnection Manager.java:221)
at org.apache.http.impl.nio.client.CloseableHttpAsyncClientBase$1.run(CloseableHttpAsyncClientBase.java:64)
at
java.base/java.lang.Thread.run(Thread.java:829)

There's nothing related to Elasticsearch here. And it's not formatted. Not sure someone can help.

nested exception is ElasticsearchException[java.util.concurrent.ExecutionException: java.net.ConnectException: Timeout connecting to

Caused by: org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.springframework.data.elasticsearch.repository.support.SimpleElasticsearchRepository]: Constructor threw exception; nested exception is org.springframework.data.elasticsearch.UncategorizedElasticsearchException: java.util.concurrent.ExecutionException: java.net.ConnectException: Timeout connecting to

It's all coming from Spring Data (org.springframework.data.elasticsearch). Nothing related to org.elasticsearch or co.elastic).

And the logs are still not well formatted. Repeating myself here:

And this:

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