# I have the error (503), No Shard Available Action Exception

**URL:** <https://discuss.elastic.co/t/i-have-the-error-503-no-shard-available-action-exception/157500>\
**Category:** Elasticsearch\
**Created:** [November 20, 2018, 8:48am UTC](https://discuss.elastic.co/t/i-have-the-error-503-no-shard-available-action-exception/157500 "2018-11-20T08:48:00Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![14b07852ef50bed9e66b](https://avatars.discourse-cdn.com/v4/letter/1/ed8c4c/32.png) [@14b07852ef50bed9e66b](https://discuss.elastic.co/u/14b07852ef50bed9e66b)\
**Post date:** [November 20, 2018, 8:48am UTC](https://discuss.elastic.co/t/i-have-the-error-503-no-shard-available-action-exception/157500/1 "2018-11-20T08:48:00Z")

</div>

```
"version" : {
    "number" : "2.3.0",
    "build_hash" : "8371be8d5fe5df7fb9c0516c474d77b9feddd888",
    "build_timestamp" : "2016-03-29T07:54:48Z",
    "build_snapshot" : false,
    "lucene_version" : "5.5.0"
  }

```

When I have opened some old closed index, I got error no\_shard\_available\_action\_exception.

```
curl -XGET localhost:9200/prd-2016.04/allocation/explain?pretty
{
  "error" : {
    "root_cause" : [ {
      "type" : "no_shard_available_action_exception",
      "reason" : "No shard available for [get [prd-2016.04][allocation][explain]: routing [null]]"
    } ],
    "type" : "no_shard_available_action_exception",
    "reason" : "No shard available for [get [prd-2016.04][allocation][explain]: routing [null]]"
  },
  "status" : 503
}

curl -XGET localhost:9200/_cat/shards?h=index,shard,prirep,state,unassigned.reason| grep UNASSIGNED    
prd-2016.04 1 p UNASSIGNED INDEX_REOPENED
prd-2016.04 1 r UNASSIGNED INDEX_REOPENED
prd-2016.04 2 p UNASSIGNED INDEX_REOPENED
prd-2016.04 2 r UNASSIGNED INDEX_REOPENED
prd-2016.04 4 p UNASSIGNED INDEX_REOPENED
prd-2016.04 4 r UNASSIGNED INDEX_REOPENED
prd-2016.04 3 p UNASSIGNED INDEX_REOPENED
prd-2016.04 3 r UNASSIGNED INDEX_REOPENED
prd-2016.04 0 p UNASSIGNED INDEX_REOPENED
prd-2016.04 0 r UNASSIGNED INDEX_REOPENED

```

Is it possible to restore a closed index?  
Thanks in advance.

---

<div class="post-metadata">

**Author:** ![dadoonet](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dadoonet/32/137187_2.png) [@dadoonet](https://discuss.elastic.co/u/dadoonet)\
**Post date:** [November 20, 2018, 9:47am UTC](https://discuss.elastic.co/t/i-have-the-error-503-no-shard-available-action-exception/157500/2 "2018-11-20T09:47:59Z")

</div>

May be you had nodes that have been killed in the meantime, including ones which had the primary shards?

If it's the case and you don't have those nodes again and no snapshot (backup), I'm afraid you won't be able to get your data back online.

---

<div class="post-metadata">

**Author:** ![14b07852ef50bed9e66b](https://avatars.discourse-cdn.com/v4/letter/1/ed8c4c/32.png) [@14b07852ef50bed9e66b](https://discuss.elastic.co/u/14b07852ef50bed9e66b)\
**Post date:** [November 21, 2018, 5:53am UTC](https://discuss.elastic.co/t/i-have-the-error-503-no-shard-available-action-exception/157500/3 "2018-11-21T05:53:06Z")

</div>

I guess your clusters have been unexpected shutdown one or two times.  
Thank you your reply.

---

<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 19, 2018, 5:53am UTC](https://discuss.elastic.co/t/i-have-the-error-503-no-shard-available-action-exception/157500/4 "2018-12-19T05:53:07Z")

</div>

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