# All shards remain in unassigned state after upgrading elasticsearch

**URL:** <https://discuss.elastic.co/t/all-shards-remain-in-unassigned-state-after-upgrading-elasticsearch/26208>\
**Category:** Elasticsearch\
**Created:** [July 24, 2015, 5:49am UTC](https://discuss.elastic.co/t/all-shards-remain-in-unassigned-state-after-upgrading-elasticsearch/26208 "2015-07-24T05:49:26Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![sumeet\_dembra](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/sumeet_dembra/32/56190_2.png) [@sumeet\_dembra](https://discuss.elastic.co/u/sumeet_dembra)\
**Post date:** [July 24, 2015, 5:49am UTC](https://discuss.elastic.co/t/all-shards-remain-in-unassigned-state-after-upgrading-elasticsearch/26208/1 "2015-07-24T05:49:26Z")

</div>

Hi,

I upgraded my elasticsearch setup from elasticsearch-1.4.1-1 to elasticsearch-1.7.0

Before upgrade, the system health was green. After upgrade, all the shards have gone to unassigned state.  
So I again uninstalled elasticsearch1.7 and installed elasticsearch 1.4.1-1 again.

Still the health state is not changing to green.  
There is no indication of problem in the logs.

Following is the health status of elasticsearch.  
{  
"cluster\_name" : "ms2\_stage\_elk",  
"status" : "red",  
"timed\_out" : false,  
"number\_of\_nodes" : 1,  
"number\_of\_data\_nodes" : 1,  
"active\_primary\_shards" : 0,  
"active\_shards" : 0,  
"relocating\_shards" : 0,  
"initializing\_shards" : 0,  
"unassigned\_shards" : 269  
}

Please help.

---

<div class="post-metadata">

**Author:** ![magnusbaeck](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/magnusbaeck/32/44943_2.png) [@magnusbaeck](https://discuss.elastic.co/u/magnusbaeck)\
**Post date:** [July 25, 2015, 9:01am UTC](https://discuss.elastic.co/t/all-shards-remain-in-unassigned-state-after-upgrading-elasticsearch/26208/2 "2015-07-25T09:01:42Z")

</div>

Is there anything interesting in the ES log file?

---

<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:** [July 5, 2017, 11:59pm UTC](https://discuss.elastic.co/t/all-shards-remain-in-unassigned-state-after-upgrading-elasticsearch/26208/3 "2017-07-05T23:59:01Z")

</div>


