# Unavailable\_shards\_exception, reason: primary shard is not active

**URL:** https://discuss.elastic.co/t/unavailable-shards-exception-reason-primary-shard-is-not-active/56590
**Category:** Logstash
**Created:** [July 28, 2016, 8:46am UTC](https://discuss.elastic.co/t/unavailable-shards-exception-reason-primary-shard-is-not-active/56590 "2016-07-28T08:46:55Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![caoping](https://avatars.discourse-cdn.com/v4/letter/c/aca169/32.png) [@caoping](https://discuss.elastic.co/u/caoping)
#### Post date: [July 28, 2016, 8:46am UTC](https://discuss.elastic.co/t/unavailable-shards-exception-reason-primary-shard-is-not-active/56590/1 "2016-07-28T08:46:55Z")

</div>

Anyone can help me on that? It's pretty weird.

I'm using a simple architecture: Filebeat -\> Logstash -\> Elasticsearch. Besides, only **one instance** of logstash and elasticsearch.

When I started them, they worked well. However for a while, there were many error information in logstash.

> {:timestamp=\>"2016-07-28T16:07:26.984000+0800", :message=\>"Beats input: The circuit breaker has detected a slowdown or stall in the pipeline, the input is closing the current connection and rejecting new connection until the pipeline recover.", :exception=\>LogStash::Inputs::BeatsSupport::CircuitBreaker::HalfOpenBreaker, :level=\>:warn}

> {:timestamp=\>"2016-07-28T16:08:28.805000+0800", :message=\>"retrying failed action with response code: 503 ({"type"=\>"unavailable\_shards\_exception", "reason"=\>"[logstash-ehn-2016.07.20][3] primary shard is not active Timeout: [1m], request: [BulkShardRequest to [logstash-ehn-2016.07.20] containing [1] requests]"})", :level=\>:info}

> {:timestamp=\>"2016-07-28T16:07:26.983000+0800", :message=\>"CircuitBreaker::rescuing exceptions", :name=\>"Beats input", :exception=\>LogStash::Inputs::Beats::InsertingToQueueTakeTooLong, :level=\>:warn}

What's more, the elasticsearch log seems there were several nodes. But I do have only one elasticsearch started.

> [2016-07-28 12:51:44,178][INFO][node] [Stygyro] stopping ...  
> [2016-07-28 12:51:44,368][INFO][node] [Stygyro] closing ...  
> [2016-07-28 12:51:44,374][INFO][node] [Stygyro] closed  
> [2016-07-28 12:51:45,965][WARN][bootstrap] unable to install syscall filter: seccomp unavailable: requires kernel 3.5+ with CONFIG\_SECCOMP and CONFIG\_SECCOMP\_FILTER compiled in  
> [2016-07-28 12:51:46,238][INFO][node] [Betty Brant Leeds] version[2.3.4], pid[4393], build[e455fd0/2016-06-30T11:24:31Z]  
> [2016-07-28 12:51:46,238][INFO][node] [Betty Brant Leeds] initializing ...  
> [2016-07-28 12:51:46,813][INFO][plugins] [Betty Brant Leeds] modules [lang-groovy, reindex, lang-expression], plugins , sites   
> [2016-07-28 12:51:46,837][INFO][env] [Betty Brant Leeds] using [1] data paths, mounts [[/home/work (/dev/sda3)]], net usable\_space [65.6gb], net total\_space [116.1gb], spins? [possibly], types [ext3]  
> [2016-07-28 12:51:46,837][WARN][env] [Betty Brant Leeds] max file descriptors [65535] for elasticsearch process likely too low, consider increasing to at least [65536]  
> [2016-07-28 16:27:50,089][WARN][netty.channel.DefaultChannelPipeline] An exception was thrown by an exception handler.  
> java.util.concurrent.RejectedExecutionException: Worker has already been shutdown  
> at org.jboss.netty.channel.socket.nio.AbstractNioSelector.registerTask(AbstractNioSelector.java:120)  
> at org.jboss.netty.channel.socket.nio.AbstractNioWorker.executeInIoThread(AbstractNioWorker.java:72)  
> at org.jboss.netty.channel.socket.nio.NioWorker.executeInIoThread(NioWorker.java:36)

Does anyone know why it happened and how to resolve it? Thanks a lot.

---

<div class="post-metadata">

### Author: ![vinod\_hy](https://avatars.discourse-cdn.com/v4/letter/v/c4cdca/32.png) [@vinod\_hy](https://discuss.elastic.co/u/vinod_hy)
#### Post date: [June 5, 2017, 6:50am UTC](https://discuss.elastic.co/t/unavailable-shards-exception-reason-primary-shard-is-not-active/56590/2 "2017-06-05T06:50:16Z")

</div>

Even i am facing the same issue. Please help me with the solution.  
Some time ack i was getting an error in kibana as "Elasticsearch is still initializing the kibana index".  
So i ran the below command.  
I had run curl -XDELETE [http://localhost:9200/.kibana](http://localhost:9200/.kibana) command earlier.

Will this cause any issue. Please help me.

---

<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:48pm UTC](https://discuss.elastic.co/t/unavailable-shards-exception-reason-primary-shard-is-not-active/56590/3 "2017-07-06T13:48:12Z")

</div>


