# How to fix Unassigned state for my indexes?

**URL:** <https://discuss.elastic.co/t/how-to-fix-unassigned-state-for-my-indexes/267560>\
**Category:** Elasticsearch\
**Created:** [March 17, 2021, 6:28pm UTC](https://discuss.elastic.co/t/how-to-fix-unassigned-state-for-my-indexes/267560 "2021-03-17T18:28:15Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![andy1122](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/andy1122/32/85707_2.png) [@andy1122](https://discuss.elastic.co/u/andy1122)\
**Post date:** [March 17, 2021, 6:28pm UTC](https://discuss.elastic.co/t/how-to-fix-unassigned-state-for-my-indexes/267560/1 "2021-03-17T18:28:15Z")

</div>

I have ElasticSearch configured in Docker and loading data from Magento into ES via indexer. When quering ES indexes I can see all the data is there but when I try to access it from my localhost:8080 where my connection to ES should lead to I get a 500 error ("index\_not\_found\_exception"). I can see the Unassigned state for all my indexes in ESHead and no shards allocated.  
{

```
* "state": "UNASSIGNED",
* "primary": false,
* "node": null,
* "relocating_node": null,
* "shard": 0,
* "index": "vue_storefront_catalog_taxrule_1616001644",
* "recovery_source": {
  * "type": "PEER"},
* "unassigned_info": {
  * "reason": "REPLICA_ADDED",
  * "at": "2021-03-17T17:20:44.846Z",
  * "delayed": false,
  * "allocation_status": "no_attempt"}

} 

```

When I made the query 'curl [http://localhost:9200/vue\_storefront\_catalog\_product/\_search](http://localhost:9200/vue_storefront_catalog_product/_search)'  
I get this back.  
c url: (6) Could not resolve host: rl  
HTTP/1.1 200 OK  
content-type: application/json; charset=UTF-8  
content-length: 14700

```
    {"took":33,"timed_out":false,"_shards":{"total":1,"successful":1,"skipped":0,"failed":0},"hits":{"total":{"value":2046,"relation":"eq"} ......

```

How can I fix this issue?

---

<div class="post-metadata">

**Author:** ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)\
**Post date:** [March 22, 2021, 1:54am UTC](https://discuss.elastic.co/t/how-to-fix-unassigned-state-for-my-indexes/267560/2 "2021-03-22T01:54:08Z")

</div>

Welcome to our community! 😃

What is the output from the `_cat/health?v` and `_cat/indices?v` APIs?

---

<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 19, 2021, 1:54am UTC](https://discuss.elastic.co/t/how-to-fix-unassigned-state-for-my-indexes/267560/3 "2021-04-19T01:54:31Z")

</div>

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