# Problem upgrading 6.5.3 -\> 6.6.2

**URL:** <https://discuss.elastic.co/t/problem-upgrading-6-5-3-6-6-2/172927>\
**Category:** Elasticsearch\
**Created:** [March 19, 2019, 9:36am UTC](https://discuss.elastic.co/t/problem-upgrading-6-5-3-6-6-2/172927 "2019-03-19T09:36:57Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Pedro\_Cabral](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/pedro_cabral/32/103308_2.png) [@Pedro\_Cabral](https://discuss.elastic.co/u/Pedro_Cabral)\
**Post date:** [March 19, 2019, 9:36am UTC](https://discuss.elastic.co/t/problem-upgrading-6-5-3-6-6-2/172927/1 "2019-03-19T09:36:58Z")

</div>

Hello all,

I had some problems with the upgrade of Elasticsearch 6.5.3 to 6.6.2.  
After the update the connection between kibana and elasticsearch was lost.  
I was prompted with error 500 (internal server error).

Was forced to do a rollback to 6.5.3.  
Now I can't allocate today's shards, i got the following error on elasticasearch:  
` "allocate_explanation" : "cannot allocate because allocation is not permitted to any of the nodes that hold an in-sync shard copy"`

On the logstash instance the error is:  
`[logstash.outputs.elasticsearch] retrying failed action with response code: 503 ({"type"=>"unavailable_shards_exception", "reason"=>"[####-2019.03.19][0] primary shard is not active Timeout: [1m], request: [BulkShardRequest [[####-2019.03.19][0]] containing [12] requests]"})`

Besides the data shards all the monitoring ones are unassigned.

I disabled the allocation before the update and enabled after.  
Also stopped the non-essential indexing and performed a synced flush

Some more information:

> GET \_cluster/health  
> {  
> "cluster\_name" : "elasticsearch",  
> "status" : "red",  
> "timed\_out" : false,  
> "number\_of\_nodes" : 1,  
> "number\_of\_data\_nodes" : 1,  
> "active\_primary\_shards" : 352,  
> "active\_shards" : 352,  
> "relocating\_shards" : 0,  
> "initializing\_shards" : 0,  
> "unassigned\_shards" : 10,  
> "delayed\_unassigned\_shards" : 0,  
> "number\_of\_pending\_tasks" : 0,  
> "number\_of\_in\_flight\_fetch" : 0,  
> "task\_max\_waiting\_in\_queue\_millis" : 0,  
> "active\_shards\_percent\_as\_number" : 97.23756906077348  
> }

Any idea on how to sort this?

---

<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 16, 2019, 9:37am UTC](https://discuss.elastic.co/t/problem-upgrading-6-5-3-6-6-2/172927/2 "2019-04-16T09:37:00Z")

</div>

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