# Unassigned shards

**URL:** <https://discuss.elastic.co/t/unassigned-shards/15894>\
**Category:** Elasticsearch\
**Created:** [February 19, 2014, 12:22pm UTC](https://discuss.elastic.co/t/unassigned-shards/15894 "2014-02-19T12:22:53Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Tal\_Shemesh](https://avatars.discourse-cdn.com/v4/letter/t/7cd45c/32.png) [@Tal\_Shemesh](https://discuss.elastic.co/u/Tal_Shemesh)\
**Post date:** [February 19, 2014, 12:22pm UTC](https://discuss.elastic.co/t/unassigned-shards/15894/1 "2014-02-19T12:22:53Z")

</div>

Hi,  
i am using elasticsearch for a while and one morning i have noticed i have  
an unassigned shard.  
i started to play with the cluster (restart some nodes, add more nodes, try  
to move allocate the shards) and got some more unassigned  
i realized all the shards which are primary in one of the nodes has their  
replicas unassigned.  
also, i tired to allocate or move those shards, and all i get is:

org.elasticsearch.transport.RemoteTransportException:  
[foa02][inet[/192.168.2.2:9300]][cluster/reroute]  
Caused by: org.elasticsearch.ElasticSearchIllegalArgumentException:  
[allocate] allocation of [logstash-2014.02.18][0] on node  
[foa8][Rhmt4uF6Rf2\_8WAw-WieZA][inet[192.168.2.8/192.168.2.8:9300]]{master=false}  
is not allowed, reason: NO()  
at  
org.elasticsearch.cluster.routing.allocation.command.AllocateAllocationCommand.execute(AllocateAllocationCommand.java:188)  
at  
org.elasticsearch.cluster.routing.allocation.command.AllocationCommands.execute(AllocationCommands.java:116)  
at  
org.elasticsearch.cluster.routing.allocation.AllocationService.reroute(AllocationService.java:125)  
at  
org.elasticsearch.action.admin.cluster.reroute.TransportClusterRerouteAction$1.execute(TransportClusterRerouteAction.java:112)  
at  
org.elasticsearch.cluster.service.InternalClusterService$UpdateTask.run(InternalClusterService.java:300)  
at  
org.elasticsearch.common.util.concurrent.PrioritizedEsThreadPoolExecutor$TieBreakingPrioritizedRunnable.run(PrioritizedEsThreadPoolExecutor.java:135)  
at  
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)  
at  
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)  
at java.lang.Thread.run(Thread.java:724)  
i attached an image from the "head" plugin

[https://lh4.googleusercontent.com/-lQxXqu8G1jc/UwSh5GyXkuI/AAAAAAAAGV0/ZfnsveGeA30/s1600/head.jpg](https://lh4.googleusercontent.com/-lQxXqu8G1jc/UwSh5GyXkuI/AAAAAAAAGV0/ZfnsveGeA30/s1600/head.jpg)

any idea what is wrong?

--  
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).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/c2a5ba79-3bfd-41c5-981f-6e535c6c0052%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/c2a5ba79-3bfd-41c5-981f-6e535c6c0052%40googlegroups.com).  
For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

---

<div class="post-metadata">

**Author:** ![Itamar\_Syn\_Hershko](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/itamar_syn_hershko/32/725_2.png) [@Itamar\_Syn\_Hershko](https://discuss.elastic.co/u/Itamar_Syn_Hershko)\
**Post date:** [February 19, 2014, 12:29pm UTC](https://discuss.elastic.co/t/unassigned-shards/15894/2 "2014-02-19T12:29:06Z")

</div>

There's a lot of info missing: how many servers, indexes, shards and  
replicas do you have? have you made sure to set all the configurations  
correctly (quorum size, expected number of nodes etc)?

You may be experiencing a split-brain situation (if your cluster state is  
red) or just a temporary hiccup (if it's yellow). But without more info its  
hard to tell. Either way, restarting the entire cluster usually helps  
immediately, if this is an option.

With regards to the response "is not allowed, reason: NO()" you are  
getting, there is an open issue on this for getting more feedback in the  
response, that I _think_ was made it to v1 and maybe even 0.90.11.

--

Itamar Syn-Hershko  
[http://code972.com](http://code972.com) | @synhershko [https://twitter.com/synhershko](https://twitter.com/synhershko)  
Freelance Developer & Consultant  
Author of RavenDB in Action [http://manning.com/synhershko/](http://manning.com/synhershko/)

On Wed, Feb 19, 2014 at 2:22 PM, Tal Shemesh [tal.shemesh@gmail.com](mailto:tal.shemesh@gmail.com) wrote:

> Hi,  
> i am using elasticsearch for a while and one morning i have noticed i have  
> an unassigned shard.  
> i started to play with the cluster (restart some nodes, add more nodes,  
> try to move allocate the shards) and got some more unassigned  
> i realized all the shards which are primary in one of the nodes has their  
> replicas unassigned.  
> also, i tired to allocate or move those shards, and all i get is:
> 
> org.elasticsearch.transport.RemoteTransportException:  
> [foa02][inet[/192.168.2.2:9300]][cluster/reroute]  
> Caused by: org.elasticsearch.ElasticSearchIllegalArgumentException:  
> [allocate] allocation of [logstash-2014.02.18][0] on node  
> [foa8][Rhmt4uF6Rf2\_8WAw-WieZA][inet[  
> 192.168.2.8/192.168.2.8:9300]]{master=false}[http://192.168.2.8/192.168.2.8:9300]]{master=false}](http://192.168.2.8/192.168.2.8:9300%5D%5D%7Bmaster=false%7D)is not allowed, reason: NO()  
> at  
> org.elasticsearch.cluster.routing.allocation.command.AllocateAllocationCommand.execute(AllocateAllocationCommand.java:188)  
> at  
> org.elasticsearch.cluster.routing.allocation.command.AllocationCommands.execute(AllocationCommands.java:116)  
> at  
> org.elasticsearch.cluster.routing.allocation.AllocationService.reroute(AllocationService.java:125)  
> at  
> org.elasticsearch.action.admin.cluster.reroute.TransportClusterRerouteAction$1.execute(TransportClusterRerouteAction.java:112)  
> at  
> org.elasticsearch.cluster.service.InternalClusterService$UpdateTask.run(InternalClusterService.java:300)  
> at  
> org.elasticsearch.common.util.concurrent.PrioritizedEsThreadPoolExecutor$TieBreakingPrioritizedRunnable.run(PrioritizedEsThreadPoolExecutor.java:135)  
> at  
> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)  
> at  
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)  
> at java.lang.Thread.run(Thread.java:724)  
> i attached an image from the "head" plugin
> 
> [https://lh4.googleusercontent.com/-lQxXqu8G1jc/UwSh5GyXkuI/AAAAAAAAGV0/ZfnsveGeA30/s1600/head.jpg](https://lh4.googleusercontent.com/-lQxXqu8G1jc/UwSh5GyXkuI/AAAAAAAAGV0/ZfnsveGeA30/s1600/head.jpg)
> 
> any idea what is wrong?
> 
> --  
> 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).  
> To view this discussion on the web visit  
> [https://groups.google.com/d/msgid/elasticsearch/c2a5ba79-3bfd-41c5-981f-6e535c6c0052%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/c2a5ba79-3bfd-41c5-981f-6e535c6c0052%40googlegroups.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).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/CAHTr4Ztk7J1tQMnxCD851L--i6%2BL20vVU47svmu%2B11d9Y\_a5sw%40mail.gmail.com](https://groups.google.com/d/msgid/elasticsearch/CAHTr4Ztk7J1tQMnxCD851L--i6%2BL20vVU47svmu%2B11d9Y_a5sw%40mail.gmail.com).  
For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

---

<div class="post-metadata">

**Author:** ![Tal\_Shemesh](https://avatars.discourse-cdn.com/v4/letter/t/7cd45c/32.png) [@Tal\_Shemesh](https://discuss.elastic.co/u/Tal_Shemesh)\
**Post date:** [February 19, 2014, 1:44pm UTC](https://discuss.elastic.co/t/unassigned-shards/15894/3 "2014-02-19T13:44:08Z")

</div>

ok, i found the problem.

the problematic server was in the wrong version of elasticsearch.  
i hope it will help others 🙂

thanks.

On Wed, Feb 19, 2014 at 2:29 PM, Itamar Syn-Hershko [itamar@code972.com](mailto:itamar@code972.com)wrote:

> There's a lot of info missing: how many servers, indexes, shards and  
> replicas do you have? have you made sure to set all the configurations  
> correctly (quorum size, expected number of nodes etc)?
> 
> You may be experiencing a split-brain situation (if your cluster state is  
> red) or just a temporary hiccup (if it's yellow). But without more info its  
> hard to tell. Either way, restarting the entire cluster usually helps  
> immediately, if this is an option.
> 
> With regards to the response "is not allowed, reason: NO()" you are  
> getting, there is an open issue on this for getting more feedback in the  
> response, that I _think_ was made it to v1 and maybe even 0.90.11.
> 
> --
> 
> Itamar Syn-Hershko  
> [http://code972.com](http://code972.com) | @synhershko [https://twitter.com/synhershko](https://twitter.com/synhershko)  
> Freelance Developer & Consultant  
> Author of RavenDB in Action [http://manning.com/synhershko/](http://manning.com/synhershko/)
> 
> On Wed, Feb 19, 2014 at 2:22 PM, Tal Shemesh [tal.shemesh@gmail.com](mailto:tal.shemesh@gmail.com)wrote:
> 
> > Hi,  
> > i am using elasticsearch for a while and one morning i have noticed i  
> > have an unassigned shard.  
> > i started to play with the cluster (restart some nodes, add more nodes,  
> > try to move allocate the shards) and got some more unassigned  
> > i realized all the shards which are primary in one of the nodes has their  
> > replicas unassigned.  
> > also, i tired to allocate or move those shards, and all i get is:
> > 
> > org.elasticsearch.transport.RemoteTransportException:  
> > [foa02][inet[/192.168.2.2:9300]][cluster/reroute]  
> > Caused by: org.elasticsearch.ElasticSearchIllegalArgumentException:  
> > [allocate] allocation of [logstash-2014.02.18][0] on node  
> > [foa8][Rhmt4uF6Rf2\_8WAw-WieZA][inet[  
> > 192.168.2.8/192.168.2.8:9300]]{master=false}[http://192.168.2.8/192.168.2.8:9300]]{master=false}](http://192.168.2.8/192.168.2.8:9300%5D%5D%7Bmaster=false%7D)is not allowed, reason: NO()  
> > at  
> > org.elasticsearch.cluster.routing.allocation.command.AllocateAllocationCommand.execute(AllocateAllocationCommand.java:188)  
> > at  
> > org.elasticsearch.cluster.routing.allocation.command.AllocationCommands.execute(AllocationCommands.java:116)  
> > at  
> > org.elasticsearch.cluster.routing.allocation.AllocationService.reroute(AllocationService.java:125)  
> > at  
> > org.elasticsearch.action.admin.cluster.reroute.TransportClusterRerouteAction$1.execute(TransportClusterRerouteAction.java:112)  
> > at  
> > org.elasticsearch.cluster.service.InternalClusterService$UpdateTask.run(InternalClusterService.java:300)  
> > at  
> > org.elasticsearch.common.util.concurrent.PrioritizedEsThreadPoolExecutor$TieBreakingPrioritizedRunnable.run(PrioritizedEsThreadPoolExecutor.java:135)  
> > at  
> > java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)  
> > at  
> > java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)  
> > at java.lang.Thread.run(Thread.java:724)  
> > i attached an image from the "head" plugin
> > 
> > [https://lh4.googleusercontent.com/-lQxXqu8G1jc/UwSh5GyXkuI/AAAAAAAAGV0/ZfnsveGeA30/s1600/head.jpg](https://lh4.googleusercontent.com/-lQxXqu8G1jc/UwSh5GyXkuI/AAAAAAAAGV0/ZfnsveGeA30/s1600/head.jpg)
> > 
> > any idea what is wrong?
> > 
> > --  
> > 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).
> > 
> > To view this discussion on the web visit  
> > [https://groups.google.com/d/msgid/elasticsearch/c2a5ba79-3bfd-41c5-981f-6e535c6c0052%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/c2a5ba79-3bfd-41c5-981f-6e535c6c0052%40googlegroups.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/1aVNnWNnIPs/unsubscribe](https://groups.google.com/d/topic/elasticsearch/1aVNnWNnIPs/unsubscribe).  
> To unsubscribe from this group and all its topics, send an email to  
> [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
> To view this discussion on the web visit  
> [https://groups.google.com/d/msgid/elasticsearch/CAHTr4Ztk7J1tQMnxCD851L--i6%2BL20vVU47svmu%2B11d9Y\_a5sw%40mail.gmail.com](https://groups.google.com/d/msgid/elasticsearch/CAHTr4Ztk7J1tQMnxCD851L--i6%2BL20vVU47svmu%2B11d9Y_a5sw%40mail.gmail.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).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/CAAfe%2B1GLm88yKCx8KS%3DwkMPQzTvCPrdr-ALMDX\_1oNaLRJtQ8Q%40mail.gmail.com](https://groups.google.com/d/msgid/elasticsearch/CAAfe%2B1GLm88yKCx8KS%3DwkMPQzTvCPrdr-ALMDX_1oNaLRJtQ8Q%40mail.gmail.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, 1:49am UTC](https://discuss.elastic.co/t/unassigned-shards/15894/4 "2017-07-06T01:49:08Z")

</div>


