Hi All!
We use Elasticsearch 6.8.0
as a search engine for our application logs.
Unfortunately our cluster crashed and some indices were unrecoverable.
Since the cluster was in red
state we spun up a new cluster so that logs could start again.
We've setup the new cluster with the reindex.remote.whitelist:
setting.
Initially we were able to migrate around 4-5k indices from the Old cluster.
However we need to migrate a few more but we've started getting the error -
No route to host
Full error -
{
"error": {
"root_cause": [
{
"type": "no_route_to_host_exception",
"reason": "No route to host"
}
],
"type": "no_route_to_host_exception",
"reason": "No route to host"
},
"status": 500
}
Reindex request -
POST _reindex?wait_for_completion=true&refresh
{
"source": {
"remote": {
"host": "http://old-cluster:80",
"socket_timeout": "1m",
"connect_timeout": "1m"
},
"index": "index"
},
"dest": {
"index": "index"
}
}
These are all the logs I could find -
[2024-08-01T05:40:18,597][WARN ][r.suppressed ] [titanNew-01] path: /_reindex, params: {wait_for_completion=true}
java.net.NoRouteToHostException: No route to host
at sun.nio.ch.SocketChannelImpl.checkConnect(Native Method) ~[?:?]
at sun.nio.ch.SocketChannelImpl.finishConnect(SocketChannelImpl.java:716) ~[?:?]
at org.apache.http.impl.nio.reactor.DefaultConnectingIOReactor.processEvent(DefaultConnectingIOReactor.java:171) ~[?:?]
at org.apache.http.impl.nio.reactor.DefaultConnectingIOReactor.processEvents(DefaultConnectingIOReactor.java:145) ~[?:?]
at org.apache.http.impl.nio.reactor.AbstractMultiworkerIOReactor.execute(AbstractMultiworkerIOReactor.java:348) ~[?:?]
at org.apache.http.impl.nio.conn.PoolingNHttpClientConnectionManager.execute(PoolingNHttpClientConnectionManager.java:192) ~[?:?]
at org.apache.http.impl.nio.client.CloseableHttpAsyncClientBase$1.run(CloseableHttpAsyncClientBase.java:64) ~[?:?]
at java.lang.Thread.run(Thread.java:750) [?:1.8.0_412]
Someone please help with this.