# Unassigned shard out of nowhere - restarting the node makes everything green again

**URL:** <https://discuss.elastic.co/t/unassigned-shard-out-of-nowhere-restarting-the-node-makes-everything-green-again/11963>\
**Category:** Elasticsearch\
**Created:** [May 15, 2013, 3:18am UTC](https://discuss.elastic.co/t/unassigned-shard-out-of-nowhere-restarting-the-node-makes-everything-green-again/11963 "2013-05-15T03:18:57Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Chad\_Kouse](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/chad_kouse/32/2290_2.png) [@Chad\_Kouse](https://discuss.elastic.co/u/Chad_Kouse)\
**Post date:** [May 15, 2013, 3:18am UTC](https://discuss.elastic.co/t/unassigned-shard-out-of-nowhere-restarting-the-node-makes-everything-green-again/11963/1 "2013-05-15T03:18:57Z")

</div>

We are running a 2 node es cluster with 5 indexes, each with 5 shards and 1  
replica  
version 0.20.5

Everything is working fine, but twice now I have had a single shard become  
unassigned. The only thing I can do to get it back into the cluster is to  
restart the node that is now missing a shard.

All I see in the log that looks like it could be related is:

[2013-05-14 02:17:03,214][WARN][cluster.action.shard] [Caregiver]  
received shard failed for [shares\_20130510][2],  
node[EVw9ssCnQWm4u9qUgpln\_g], [R], s[STARTED], reason [Failed to perform  
[index] on replica, message [RemoteTransportException[Failed to deserialize  
exception response from stream]; nested:  
TransportSerializationException[Failed to deserialize exception response  
from stream]; nested: EOFException; ]]

but I don't really know what that means, and it's supposedly only a warning.

Is there a way to prevent this from happening and is there a way to get the  
cluster to assign the shard besides restarting the whole node and waiting  
for replcation / rebalance?

Thanks,  
--chad

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

---

<div class="post-metadata">

**Author:** ![Clinton\_Gormley](https://avatars.discourse-cdn.com/v4/letter/c/50afbb/32.png) [@Clinton\_Gormley](https://discuss.elastic.co/u/Clinton_Gormley)\
**Post date:** [May 15, 2013, 10:22am UTC](https://discuss.elastic.co/t/unassigned-shard-out-of-nowhere-restarting-the-node-makes-everything-green-again/11963/2 "2013-05-15T10:22:58Z")

</div>

This sounds like you have different versions of ES (node or client) running  
in the same cluster. If not that, check that you're using the same version  
of Java on all boxes

clint

On 15 May 2013 05:18, Chad Kouse [chad.kouse@gmail.com](mailto:chad.kouse@gmail.com) wrote:

> We are running a 2 node es cluster with 5 indexes, each with 5 shards and  
> 1 replica  
> version 0.20.5
> 
> Everything is working fine, but twice now I have had a single shard become  
> unassigned. The only thing I can do to get it back into the cluster is to  
> restart the node that is now missing a shard.
> 
> All I see in the log that looks like it could be related is:
> 
> [2013-05-14 02:17:03,214][WARN][cluster.action.shard] [Caregiver]  
> received shard failed for [shares\_20130510][2],  
> node[EVw9ssCnQWm4u9qUgpln\_g], [R], s[STARTED], reason [Failed to perform  
> [index] on replica, message [RemoteTransportException[Failed to deserialize  
> exception response from stream]; nested:  
> TransportSerializationException[Failed to deserialize exception response  
> from stream]; nested: EOFException; ]]
> 
> but I don't really know what that means, and it's supposedly only a  
> warning.
> 
> Is there a way to prevent this from happening and is there a way to get  
> the cluster to assign the shard besides restarting the whole node and  
> waiting for replcation / rebalance?
> 
> Thanks,  
> --chad
> 
> --  
> You received this message because you are subscribed to the Google Groups  
> "elasticsearch" group.  
> To unsubscribe from this group and stop receiving emails from it, send an  
> email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
> For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

---

<div class="post-metadata">

**Author:** ![Chad\_Kouse](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/chad_kouse/32/2290_2.png) [@Chad\_Kouse](https://discuss.elastic.co/u/Chad_Kouse)\
**Post date:** [May 15, 2013, 3:00pm UTC](https://discuss.elastic.co/t/unassigned-shard-out-of-nowhere-restarting-the-node-makes-everything-green-again/11963/3 "2013-05-15T15:00:10Z")

</div>

ES version is the same, however there is a difference in the java version:

node 1:  
java version "1.6.0\_20"  
OpenJDK Runtime Environment (IcedTea6 1.9.10) (6b20-1.9.10-0ubuntu1~10.04.3)  
OpenJDK 64-Bit Server VM (build 19.0-b09, mixed mode)

node 2:  
java version "1.6.0\_27"  
OpenJDK Runtime Environment (IcedTea6 1.12.3) (6b27-1.12.3-0ubuntu1~10.04.1)  
OpenJDK 64-Bit Server VM (build 20.0-b12, mixed mode)

I will get them updated to be the same and report back if I have any more trouble with this happening.

-- chad

On Wednesday, May 15, 2013 at 6:22 AM, Clinton Gormley wrote:

> This sounds like you have different versions of ES (node or client) running in the same cluster. If not that, check that you're using the same version of Java on all boxes
> 
> clint
> 
> On 15 May 2013 05:18, Chad Kouse \<[chad.kouse@gmail.com](mailto:chad.kouse@gmail.com) ([mailto:chad.kouse@gmail.com](mailto:chad.kouse@gmail.com))\> wrote:
> 
> > We are running a 2 node es cluster with 5 indexes, each with 5 shards and 1 replica  
> > version 0.20.5
> > 
> > Everything is working fine, but twice now I have had a single shard become unassigned. The only thing I can do to get it back into the cluster is to restart the node that is now missing a shard.
> > 
> > All I see in the log that looks like it could be related is:
> > 
> > [2013-05-14 02:17:03,214][WARN][cluster.action.shard] [Caregiver] received shard failed for [shares\_20130510][2], node[EVw9ssCnQWm4u9qUgpln\_g], [R], s[STARTED], reason [Failed to perform [index] on replica, message [RemoteTransportException[Failed to deserialize exception response from stream]; nested: TransportSerializationException[Failed to deserialize exception response from stream]; nested: EOFException; ]]
> > 
> > but I don't really know what that means, and it's supposedly only a warning.
> > 
> > Is there a way to prevent this from happening and is there a way to get the cluster to assign the shard besides restarting the whole node and waiting for replcation / rebalance?
> > 
> > Thanks,  
> > --chad
> > 
> > --  
> > You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
> > To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com) (mailto:elasticsearch%2Bunsubscribe@googlegroups.com).  
> > For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).
> 
> --  
> You received this message because you are subscribed to a topic in the Google Groups "elasticsearch" group.  
> To unsubscribe from this topic, visit [https://groups.google.com/d/topic/elasticsearch/ZfLg3ZRkZN8/unsubscribe?hl=en-US](https://groups.google.com/d/topic/elasticsearch/ZfLg3ZRkZN8/unsubscribe?hl=en-US).  
> To unsubscribe from this group and all its topics, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com) ([mailto:elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com)).  
> For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

---

<div class="post-metadata">

**Author:** ![Clinton\_Gormley](https://avatars.discourse-cdn.com/v4/letter/c/50afbb/32.png) [@Clinton\_Gormley](https://discuss.elastic.co/u/Clinton_Gormley)\
**Post date:** [May 15, 2013, 3:16pm UTC](https://discuss.elastic.co/t/unassigned-shard-out-of-nowhere-restarting-the-node-makes-everything-green-again/11963/4 "2013-05-15T15:16:01Z")

</div>

Those versions are pretty. You should look at upgrading them to a recent  
Java 7 from Oracle.

clint

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

---

<div class="post-metadata">

**Author:** ![Clinton\_Gormley](https://avatars.discourse-cdn.com/v4/letter/c/50afbb/32.png) [@Clinton\_Gormley](https://discuss.elastic.co/u/Clinton_Gormley)\
**Post date:** [May 15, 2013, 3:16pm UTC](https://discuss.elastic.co/t/unassigned-shard-out-of-nowhere-restarting-the-node-makes-everything-green-again/11963/5 "2013-05-15T15:16:27Z")

</div>

pretty _old_

On 15 May 2013 17:16, Clinton Gormley [clint@traveljury.com](mailto:clint@traveljury.com) wrote:

> Those versions are pretty. You should look at upgrading them to a recent  
> Java 7 from Oracle.
> 
> clint

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

---

<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 6, 2017, 2:36am UTC](https://discuss.elastic.co/t/unassigned-shard-out-of-nowhere-restarting-the-node-makes-everything-green-again/11963/6 "2017-07-06T02:36:29Z")

</div>


