# Error trying reindex from remote host

**URL:** <https://discuss.elastic.co/t/error-trying-reindex-from-remote-host/174819>\
**Category:** Elasticsearch\
**Created:** [April 1, 2019, 4:07pm UTC](https://discuss.elastic.co/t/error-trying-reindex-from-remote-host/174819 "2019-04-01T16:07:06Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Turnover\_Dev](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/turnover_dev/32/43233_2.png) [@Turnover\_Dev](https://discuss.elastic.co/u/Turnover_Dev)\
**Post date:** [April 1, 2019, 4:07pm UTC](https://discuss.elastic.co/t/error-trying-reindex-from-remote-host/174819/1 "2019-04-01T16:07:06Z")

</div>

Hi, dear Community of elastic I got this problem trying to reindex from a remote host of my production environment to my development one in the elastic cloud

 ![Elastic%20Reindex%20Error](https://us1.discourse-cdn.com/elastic/original/3X/0/e/0e0b6d880362fc23e482bdec6f9f0bb47d32d5b1.png)

It may the error caused by the different versions of the hosts?  
I tried doing it by CURL in my terminal, same error in kibana as my console.  
The index has the same mapping settings  
I create the index prior run the code and both have the same mappings as I described above.

Production Environment: 6.3.0  
Development Environment: 6.7.0

---

<div class="post-metadata">

**Author:** ![DavidTurner](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/davidturner/32/22453_2.png) [@DavidTurner](https://discuss.elastic.co/u/DavidTurner)\
**Post date:** [April 1, 2019, 4:44pm UTC](https://discuss.elastic.co/t/error-trying-reindex-from-remote-host/174819/2 "2019-04-01T16:44:25Z")

</div>

Please don't post images of text, they're impossible to search and they cannot be read by those of us using a screenreader.

The error looks like a rejected execution exception: the write queue capacity is only 200 tasks but the reindex tried to submit a batch containing 210 items all for the same shard. You can limit the size of batches by setting the `source.size` parameter.

---

<div class="post-metadata">

**Author:** ![Turnover\_Dev](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/turnover_dev/32/43233_2.png) [@Turnover\_Dev](https://discuss.elastic.co/u/Turnover_Dev)\
**Post date:** [April 1, 2019, 5:52pm UTC](https://discuss.elastic.co/t/error-trying-reindex-from-remote-host/174819/3 "2019-04-01T17:52:47Z")

</div>

Thank you very much for your help David, I'm sorry that won't happen again, I'm going to edit the post, btw **I run the following command at dev tools** :

```
    POST _reindex
{
  "source": {
    "size": 1000,
    "remote": {
      "host": "https://c97a616987f58b3a2d7c1c48412d6674.us-central1.gcp.cloud.es.io:9243/",
      "username": "enyer.q",
      "password": "Eny3rQ"
    },
    "index": "social __instagram__ messi"
   
  },
  "dest": {
    "index": "social __instagram__ messi__dev"
  }
}

```

**and I got the same error:** `

```
        {
          "took": 59633,
          "timed_out": false,
          "total": 1672,
          "updated": 0,
          "created": 0,
          "deleted": 0,
          "batches": 1,
          "version_conflicts": 0,
          "noops": 0,
          "retries": {
            "bulk": 11,
            "search": 0
          },
          "throttled_millis": 0,
          "requests_per_second": -1,
          "throttled_until_millis": 0,
          "failures": [
            {
              "index": "social __instagram__ messi__dev",
              "type": "doc",
              "id": "WZTvymkBvul5dhct2pDE",
              "cause": {
                "type": "es_rejected_execution_exception",
                "reason": "rejected execution of processing of [2186383][indices:data/write/bulk[s][p]]: request: BulkShardRequest [[social __instagram__ messi__dev][0]] containing [201] requests, target allocation id: 4Q2kkMncSSySilsOquJB9g, primary term: 1 on EsThreadPoolExecutor[name = instance-0000000019/write, queue capacity = 200, org.elasticsearch.common.util.concurrent.EsThreadPoolExecutor@455a5c64[Running, pool size = 2, active threads = 2, queued tasks = 200, completed tasks = 115574]]"
              },
              "status": 429
```

---

<div class="post-metadata">

**Author:** ![DavidTurner](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/davidturner/32/22453_2.png) [@DavidTurner](https://discuss.elastic.co/u/DavidTurner)\
**Post date:** [April 1, 2019, 8:14pm UTC](https://discuss.elastic.co/t/error-trying-reindex-from-remote-host/174819/4 "2019-04-01T20:14:53Z")

</div>

It looks like you're still overflowing the write queue. There's only room in the queue for 200 tasks and you're asking for batches of 1000.

---

<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:** [April 29, 2019, 8:17pm UTC](https://discuss.elastic.co/t/error-trying-reindex-from-remote-host/174819/5 "2019-04-29T20:17:08Z")

</div>

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