# Primary shard is not active Timeout: \[1m\] (reindex api)

**URL:** https://discuss.elastic.co/t/primary-shard-is-not-active-timeout-1m-reindex-api/147931
**Category:** Elasticsearch
**Created:** [September 10, 2018, 9:42am UTC](https://discuss.elastic.co/t/primary-shard-is-not-active-timeout-1m-reindex-api/147931 "2018-09-10T09:42:48Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![rkparkar](https://avatars.discourse-cdn.com/v4/letter/r/82dd89/32.png) [@rkparkar](https://discuss.elastic.co/u/rkparkar)
#### Post date: [September 10, 2018, 9:42am UTC](https://discuss.elastic.co/t/primary-shard-is-not-active-timeout-1m-reindex-api/147931/1 "2018-09-10T09:42:48Z")

</div>

Hi ,

i am trying to use the reindex api to copy data from one ES to another (both on 6.2.4). but i get the following error.  
"primary shard is not active Timeout: [1m] "  
detailed error : "cause":{"type":"unavailable\_shards\_exception","reason":"[example2][0] primary shard is not active Timeout: [1m], request: [BulkShardRequest [[example2][0]] containing [200] requests]"},"status":503}

Steps i have performed are :

1. added the following statement on ES-BOX2  
reindex.remote.whitelist: ES-BOX1:9090
2. Created an index "example2" with same mapping as that of the index i want to copy.
3. run the following reindex command on ES-BOX2  
curl -XPOST '[http://ES-BOX2:9090/\_reindex](http://ES-BOX2:9090/_reindex)' -H 'Content-Type: application/json' -d' {"source":{"remote": { "host": "[http://ES-BOX1:9090](http://ES-BOX1:9090)"}, "index": "system\_2018-09-10", "query": { "match\_all": {} } }, "dest": { "index": "example2" }}'

suggestions please

ps : this is just a poc of re-index api. i actually need to upgrade my system from ES 1.1 to ES 6.x

---

<div class="post-metadata">

### Author: ![rkparkar](https://avatars.discourse-cdn.com/v4/letter/r/82dd89/32.png) [@rkparkar](https://discuss.elastic.co/u/rkparkar)
#### Post date: [September 10, 2018, 4:11pm UTC](https://discuss.elastic.co/t/primary-shard-is-not-active-timeout-1m-reindex-api/147931/2 "2018-09-10T16:11:00Z")

</div>

seems to be a problem with the setup .

---

<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: [October 8, 2018, 4:12pm UTC](https://discuss.elastic.co/t/primary-shard-is-not-active-timeout-1m-reindex-api/147931/3 "2018-10-08T16:12:59Z")

</div>

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