# Status: yellow / unassigned\_shards

**URL:** <https://discuss.elastic.co/t/status-yellow-unassigned-shards/116279>\
**Category:** Elasticsearch\
**Created:** [January 19, 2018, 4:45pm UTC](https://discuss.elastic.co/t/status-yellow-unassigned-shards/116279 "2018-01-19T16:45:18Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![alexus](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/alexus/32/12696_2.png) [@alexus](https://discuss.elastic.co/u/alexus)\
**Post date:** [January 19, 2018, 4:45pm UTC](https://discuss.elastic.co/t/status-yellow-unassigned-shards/116279/1 "2018-01-19T16:45:19Z")

</div>

I'm trying to upgrade my elasticsearch cluster from 6.1.1 to 6.1.2 and even though there are no _pending\_tasks_ anymore (after I switched that node to 6.1.2):

```
# curl --silent --request GET $ELASTICSEARCH_URI/_cluster/pending_tasks?pretty
{
  "tasks" : []
}
# 

```

it looks like there are some _unassigned\_shards_ and that's probably my cluster's status is yellow:

```
# curl --silent --request GET $ELASTICSEARCH_URI/_cluster/health?pretty | egrep '\"(status|unassigned_shards)\"'
  "status" : "yellow",
  "unassigned_shards" : 4,
# 

```

How does one deal with this scenario?

Please advise.

---

<div class="post-metadata">

**Author:** ![alexus](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/alexus/32/12696_2.png) [@alexus](https://discuss.elastic.co/u/alexus)\
**Post date:** [January 19, 2018, 8:25pm UTC](https://discuss.elastic.co/t/status-yellow-unassigned-shards/116279/2 "2018-01-19T20:25:30Z")

</div>

I've tried: [Cluster Allocation Explain API | Elasticsearch Reference [6.1] | Elastic](https://www.elastic.co/guide/en/elasticsearch/reference/current/cluster-allocation-explain.html#_explain_api_request) and got following output:

```
# curl --silent --request GET $ELASTICSEARCH_URI/_cluster/allocation/explain?pretty | grep explanation | tail -1
          "explanation" : "target node version [6.1.1] is older than the source node version [6.1.2] and may not support codecs or postings formats for a newer Lucene version"
#
```

---

<div class="post-metadata">

**Author:** ![loren](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/loren/32/44942_2.png) [@loren](https://discuss.elastic.co/u/loren)\
**Post date:** [January 19, 2018, 8:35pm UTC](https://discuss.elastic.co/t/status-yellow-unassigned-shards/116279/3 "2018-01-19T20:35:30Z")

</div>

As @Clinton_Gormley [once said](https://github.com/elastic/elasticsearch/issues/7363), "you've got mixed versions of ES by the looks of it. You need to upgrade all of your nodes to the same version"

---

<div class="post-metadata">

**Author:** ![alexus](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/alexus/32/12696_2.png) [@alexus](https://discuss.elastic.co/u/alexus)\
**Post date:** [January 19, 2018, 9:07pm UTC](https://discuss.elastic.co/t/status-yellow-unassigned-shards/116279/4 "2018-01-19T21:07:32Z")

</div>

I figure it out based on explanation from previous reply) Thanks anyways!

---

<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 16, 2018, 9:07pm UTC](https://discuss.elastic.co/t/status-yellow-unassigned-shards/116279/5 "2018-02-16T21:07:39Z")

</div>

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