# Unassigned shards and api call error

**URL:** <https://discuss.elastic.co/t/unassigned-shards-and-api-call-error/156128>\
**Category:** Elasticsearch\
**Created:** [November 10, 2018, 8:01am UTC](https://discuss.elastic.co/t/unassigned-shards-and-api-call-error/156128 "2018-11-10T08:01:32Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![matthew\_maclean](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/matthew_maclean/32/20161_2.png) [@matthew\_maclean](https://discuss.elastic.co/u/matthew_maclean)\
**Post date:** [November 10, 2018, 8:01am UTC](https://discuss.elastic.co/t/unassigned-shards-and-api-call-error/156128/1 "2018-11-10T08:01:32Z")

</div>

Hi there,  
I'm having some problems with unnasigned shards...  
I've got a lot of shards but some replicas arent being assigned and not sure why as others are.

I tried the explain API but I get:

[root@alpha matt]# curl [http://192.168.167.50:9200/\_\_cluster/allocation/explain?pretty](http://192.168.167.50:9200/__cluster/allocation/explain?pretty)  
{  
"error" : {  
"root\_cause" : [  
{  
"type" : "index\_not\_found\_exception",  
"reason" : "no such index",  
"resource.type" : "index\_expression",  
"resource.id" : "\_\_cluster",  
"index\_uuid" : "_na_",  
"index" : "\_\_cluster"  
}  
],  
"type" : "index\_not\_found\_exception",  
"reason" : "no such index",  
"resource.type" : "index\_expression",  
"resource.id" : "\_\_cluster",  
"index\_uuid" : "_na_",  
"index" : "\_\_cluster"  
},  
"status" : 404  
}

any ideas as I'm a bit stumped ?

Any help is much appreciated thanks!

---

<div class="post-metadata">

**Author:** ![matthew\_maclean](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/matthew_maclean/32/20161_2.png) [@matthew\_maclean](https://discuss.elastic.co/u/matthew_maclean)\
**Post date:** [November 10, 2018, 8:57am UTC](https://discuss.elastic.co/t/unassigned-shards-and-api-call-error/156128/2 "2018-11-10T08:57:44Z")

</div>

solved it... was my bad

---

<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 8, 2018, 8:57am UTC](https://discuss.elastic.co/t/unassigned-shards-and-api-call-error/156128/3 "2018-12-08T08:57:50Z")

</div>

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