# Remote Reindex is failing with connect\_exception

**URL:** <https://discuss.elastic.co/t/remote-reindex-is-failing-with-connect-exception/204471>\
**Category:** Elasticsearch\
**Created:** [October 21, 2019, 12:43pm UTC](https://discuss.elastic.co/t/remote-reindex-is-failing-with-connect-exception/204471 "2019-10-21T12:43:25Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![sree\_hari](https://avatars.discourse-cdn.com/v4/letter/s/e47774/32.png) [@sree\_hari](https://discuss.elastic.co/u/sree_hari)\
**Post date:** [October 21, 2019, 12:43pm UTC](https://discuss.elastic.co/t/remote-reindex-is-failing-with-connect-exception/204471/1 "2019-10-21T12:43:25Z")

</div>

I am trying to re-index from 6.7 to 7.3.

root@elk730 ~ $curl -X POST "localhost:9200/\_reindex?pretty" -H 'Content-Type: application/json' -d'  
{  
"source": {  
"remote": {  
"host": "[http://10.10.10.60:9200](http://10.10.10.60:9200)"  
},  
"index": "reindexed-v630-test"  
},  
"dest": {  
"index": "v730-test"  
}  
}'  
{  
"error" : {  
"root\_cause" : [  
{  
"type" : "connect\_exception",  
"reason" : "Connection refused"  
}  
],  
"type" : "connect\_exception",  
"reason" : "Connection refused"  
},  
"status" : 500  
}

From elasticsearch.log,  
[2019-10-21T12:35:25,535][WARN][r.suppressed] [elk730node1] path: /\_reindex, params: {pretty=}  
java.net.ConnectException: Connection refused  
at sun.nio.ch.SocketChannelImpl.checkConnect(Native Method) ~[?:?]  
at sun.nio.ch.SocketChannelImpl.finishConnect(SocketChannelImpl.java:779) ~[?:?]  
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: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.lang.Thread.run(Thread.java:835) [?:?]

elasticsearch.yml has this setting already.

reindex.remote.whitelist: "10.10.10.60:9200"

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [November 18, 2019, 12:43pm UTC](https://discuss.elastic.co/t/remote-reindex-is-failing-with-connect-exception/204471/2 "2019-11-18T12:43:38Z")

</div>

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