# Reindex from remote error: Could not resolve host

**URL:** <https://discuss.elastic.co/t/reindex-from-remote-error-could-not-resolve-host/157216>\
**Category:** Elasticsearch\
**Created:** [November 18, 2018, 9:24am UTC](https://discuss.elastic.co/t/reindex-from-remote-error-could-not-resolve-host/157216 "2018-11-18T09:24:07Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![pradla](https://avatars.discourse-cdn.com/v4/letter/p/cab0a1/32.png) [@pradla](https://discuss.elastic.co/u/pradla)\
**Post date:** [November 18, 2018, 9:24am UTC](https://discuss.elastic.co/t/reindex-from-remote-error-could-not-resolve-host/157216/1 "2018-11-18T09:24:07Z")

</div>

Hi,

I am trying to upgrade elasticsearch 1.4.4 to 6.5.0. Below are the steps I followed:

- Started a new 6.5.0 cluster in addition to existing 1.4.4
- configured it to run with logstash 6.5.0 and it is running well.

I am getting an error when trying to reindex from remote:

> curl -X POST “127.0.0.1:9201/\_reindex?pretty=true” -H 'Content-Type: application/json' -d'  
> {  
> "conflicts": "proceed",  
> "source": {  
> "remote": {  
> "host": “[http://localhost:9200](http://localhost:9200)"  
> },  
> "index": "my\_new\_twitter\_river"  
> },  
> "dest": {  
> "index": “twittertool2.0”  
> }  
> }'

For the above, I am getting the below error:

> curl: (6) Could not resolve host: “127.0.0.1; Name or service not known

Can anyone help please?

---

<div class="post-metadata">

**Author:** ![nik9000](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/nik9000/32/44947_2.png) [@nik9000](https://discuss.elastic.co/u/nik9000)\
**Post date:** [November 18, 2018, 10:12am UTC](https://discuss.elastic.co/t/reindex-from-remote-error-could-not-resolve-host/157216/2 "2018-11-18T10:12:30Z")

</div>

That error is from curl. It looks like it is trying to resolve the host icluding the quotation mark. Are you sending a standard quotation mark or some kind of fancy one? It looks like a left quote or a smart quote from here. Neither of those are good.

---

<div class="post-metadata">

**Author:** ![pradla](https://avatars.discourse-cdn.com/v4/letter/p/cab0a1/32.png) [@pradla](https://discuss.elastic.co/u/pradla)\
**Post date:** [November 18, 2018, 11:50am UTC](https://discuss.elastic.co/t/reindex-from-remote-error-could-not-resolve-host/157216/3 "2018-11-18T11:50:09Z")

</div>

@nik9000 Thanks a lot! That indeed was the problem! I typed in the quote this time and the curl error went. Now I have a new error!

> curl -X POST "127.0.0.1:9201/\_reindex?pretty=true" -H 'Content-Type: application/json' -d'  
> {  
> "conflicts": "proceed",  
> "source": {  
> "remote": {  
> "host": "[https://localhost:9200](https://localhost:9200)"  
> },  
> "index": "my\_new\_twitter\_river"  
> },  
> "dest": {  
> "index": "twittertool2"  
> }  
> }'

> {  
> "error" : {  
> "root\_cause" : [  
> {  
> "type" : "connection\_closed\_exception",  
> "reason" : "Connection closed"  
> }  
> ],  
> "type" : "connection\_closed\_exception",  
> "reason" : "Connection closed"  
> },  
> "status" : 500  
> }

Any advise on how to work this out?

---

<div class="post-metadata">

**Author:** ![pradla](https://avatars.discourse-cdn.com/v4/letter/p/cab0a1/32.png) [@pradla](https://discuss.elastic.co/u/pradla)\
**Post date:** [November 18, 2018, 11:55am UTC](https://discuss.elastic.co/t/reindex-from-remote-error-could-not-resolve-host/157216/4 "2018-11-18T11:55:14Z")

</div>

its working now!! just changed https to http!!! Thanks a lot!

---

<div class="post-metadata">

**Author:** ![pradla](https://avatars.discourse-cdn.com/v4/letter/p/cab0a1/32.png) [@pradla](https://discuss.elastic.co/u/pradla)\
**Post date:** [November 26, 2018, 5:12am UTC](https://discuss.elastic.co/t/reindex-from-remote-error-could-not-resolve-host/157216/5 "2018-11-26T05:12:13Z")

</div>

Facing another error while trying to reindex from remote:

my reindex code:

> curl -X POST "127.0.0.1:9201/\_reindex?pretty=true" -H 'Content-Type: application/json' -d'  
> {  
> "conflicts": "proceed",  
> "source": {  
> "remote": {  
> "host": "[http://localhost:9200](http://localhost:9200)"  
> },  
> "index": "my\_new\_twitter\_river"  
> },  
> "dest": {  
> "index": "twittertool2"  
> }  
> }'

Error I am getting:

> {  
> "error" : {  
> "root\_cause" : [  
> {  
> "type" : "circuit\_breaking\_exception",  
> "reason" : "[parent] Data too large, data for [\<http\_request\>] would be [7430139381/6.9gb], which is larger than the limit of [7345215897/6.8gb], usages [request=0/0b, fielddata=0/0b, in\_flight\_requests=190/190b, accounting=7430139191/6.9gb]",  
> "bytes\_wanted" : 7430139381,  
> "bytes\_limit" : 7345215897  
> }  
> ],  
> "type" : "circuit\_breaking\_exception",  
> "reason" : "[parent] Data too large, data for [\<http\_request\>] would be [7430139381/6.9gb], which is larger than the limit of [7345215897/6.8gb], usages [request=0/0b, fielddata=0/0b, in\_flight\_requests=190/190b, accounting=7430139191/6.9gb]",  
> "bytes\_wanted" : 7430139381,  
> "bytes\_limit" : 7345215897  
> },  
> "status" : 503  
> }

after some search I tried to increase the limit with this 🙂

> curl -XPUT localhost:9201/\_cluster/settings -H 'Content-Type: application/json' -d '{  
> "persistent" : {  
> "indices.breaker.fielddata.limit" : "75%"  
> }  
> }'

I got this acknowledgement:

> {"acknowledged":true,"persistent":{"indices":{"breaker":{"fielddata":{"limit":"75%"}}}},"transient":{}}

but the error is still not resolved. Can anyone please advise what is going wrong?

---

<div class="post-metadata">

**Author:** ![pradla](https://avatars.discourse-cdn.com/v4/letter/p/cab0a1/32.png) [@pradla](https://discuss.elastic.co/u/pradla)\
**Post date:** [November 26, 2018, 5:31am UTC](https://discuss.elastic.co/t/reindex-from-remote-error-could-not-resolve-host/157216/6 "2018-11-26T05:31:55Z")

</div>

just to add - any command I run, I am getting the same error!

---

<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:** [December 24, 2018, 5:31am UTC](https://discuss.elastic.co/t/reindex-from-remote-error-could-not-resolve-host/157216/7 "2018-12-24T05:31:57Z")

</div>

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