# Reindexing fails because missing shards

**URL:** <https://discuss.elastic.co/t/reindexing-fails-because-missing-shards/323773>\
**Category:** Elasticsearch\
**Tags:** reindex\
**Created:** [January 23, 2023, 11:15pm UTC](https://discuss.elastic.co/t/reindexing-fails-because-missing-shards/323773 "2023-01-23T23:15:20Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![EthanJ1999](https://avatars.discourse-cdn.com/v4/letter/e/ac8455/32.png) [@EthanJ1999](https://discuss.elastic.co/u/EthanJ1999)\
**Post date:** [January 23, 2023, 11:15pm UTC](https://discuss.elastic.co/t/reindexing-fails-because-missing-shards/323773/1 "2023-01-23T23:15:20Z")

</div>

Hi everyone hope you doing ok.  
We are trying to reindex data from an index with one missing shard, but we get this error:

```auto
{
   "completed":true,
   "task":{
      "node":"node",
      "id":7297895,
      "type":"transport",
      "action":"indices:data/write/reindex",
      "status":{
         "total":0,
         "updated":0,
         "created":0,
         "deleted":0,
         "batches":0,
         "version_conflicts":0,
         "noops":0,
         "retries":{
            "bulk":0,
            "search":0
         },
         "throttled_millis":0,
         "requests_per_second":-1.0,
         "throttled_until_millis":0
      },
      "description":"reindex from [index_name] to [index_name2][_doc]",
      "start_time_in_millis":1674514332924,
      "running_time_in_nanos":960232,
      "cancellable":true,
      "headers":{
         
      }
   },
   "error":{
      "type":"search_phase_execution_exception",
      "reason":"",
      "phase":"can_match",
      "grouped":true,
      "failed_shards":[
         
      ],
      "caused_by":{
         "type":"search_phase_execution_exception",
         "reason":"Search rejected due to missing shards [[index_name][4]]. Consider using allow_partial_search_results setting to bypass this error.",
         "phase":"can_match",
         "grouped":true,
         "failed_shards":[
            
         ]
      }
   }
}

```

specific error:

```auto
Search rejected due to missing shards [[index_name][4]]. Consider using allow_partial_search_results setting to bypass this error.

```

we also tried to update setting allow\_partial\_search\_results, here is our cluster setting:

```auto
{
  "persistent" : {
    "cluster" : {
      "routing" : {
        "allocation" : {
          "cluster_concurrent_rebalance" : "10",
          "node_concurrent_recoveries" : "10",
          "disk" : {
            "watermark" : {
              "low" : "90%",
              "high" : "95%"
            }
          },
          "node_initial_primaries_recoveries" : "10"
        }
      }
    },
    "search" : {
      "default_allow_partial_results" : "true",
      "max_open_scroll_context" : "2048"
    },
    "xpack" : {
      "monitoring" : {
        "collection" : {
          "enabled" : "true"
        }
      }
    }
  },
  "transient" : {
    "cluster" : {
      "routing" : {
        "allocation" : {
          "exclude" : {
            "_ip" : "172.20.20.28"
          }
        }
      }
    },
    "search" : {
      "default_allow_partial_results" : "true",
      "max_open_scroll_context" : "2048"
    }
  }
}

```

as you see default\_allow\_partial\_results is set to true, but we still cant reindex.  
do you know what shoud we do?

---

<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:** [February 20, 2023, 11:15pm UTC](https://discuss.elastic.co/t/reindexing-fails-because-missing-shards/323773/2 "2023-02-20T23:15:25Z")

</div>

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