# Unavailable Shard Exception

**URL:** <https://discuss.elastic.co/t/unavailable-shard-exception/6942>\
**Category:** Elasticsearch\
**Created:** [March 8, 2012, 5:55am UTC](https://discuss.elastic.co/t/unavailable-shard-exception/6942 "2012-03-08T05:55:21Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![vibin](https://avatars.discourse-cdn.com/v4/letter/v/2bfe46/32.png) [@vibin](https://discuss.elastic.co/u/vibin)\
**Post date:** [March 8, 2012, 5:55am UTC](https://discuss.elastic.co/t/unavailable-shard-exception/6942/1 "2012-03-08T05:55:21Z")

</div>

Hi,

I came across the following error while indexing when I have deleted  
some index folders from ES cluster

UnavailableShardsException[[2012-03-07][0] [2] shardIt, [0] active :  
Timeout waiting for [1m], request:  
org.elasticsearch.action.bulk.BulkShardRequest@7403e02a]

But I have not deleted "2012-03-07" folder.

Note : Indexing was working fine before deleting Index folders.

Cluster Configuration:

number\_of\_shards: 1  
number\_of\_replicas: 1

How to get rid of this conflict.

Any help is much appreciated.....

Regards,  
-Vibin

---

<div class="post-metadata">

**Author:** ![Christian\_von\_Wendt\_](https://avatars.discourse-cdn.com/v4/letter/c/9e8a1a/32.png) [@Christian\_von\_Wendt\_](https://discuss.elastic.co/u/Christian_von_Wendt_)\
**Post date:** [March 8, 2012, 9:26am UTC](https://discuss.elastic.co/t/unavailable-shard-exception/6942/2 "2012-03-08T09:26:59Z")

</div>

Hi,

It looks like the problem I just had my self. I was trying to create an  
index an use it right away, but couldn't because of a timing issue. Try  
this call after you have deleted your index:

- 

```
   node.client().admin().cluster().health(new 

```

ClusterHealthRequest(INDEXNAME).waitForActiveShards(1)).actionGet();  
\*  
I hope this helps.

Regards...

Den torsdag den 8. marts 2012 06.55.21 UTC+1 skrev vibin dhas:

> Hi,
> 
> I came across the following error while indexing when I have deleted  
> some index folders from ES cluster
> 
> UnavailableShardsException[[2012-03-07][0] [2] shardIt, [0] active :  
> Timeout waiting for [1m], request:  
> org.elasticsearch.action.bulk.BulkShardRequest@7403e02a]
> 
> But I have not deleted "2012-03-07" folder.
> 
> Note : Indexing was working fine before deleting Index folders.
> 
> Cluster Configuration:
> 
> number\_of\_shards: 1  
> number\_of\_replicas: 1
> 
> How to get rid of this conflict.
> 
> Any help is much appreciated.....
> 
> Regards,  
> -Vibin

---

<div class="post-metadata">

**Author:** ![vibin](https://avatars.discourse-cdn.com/v4/letter/v/2bfe46/32.png) [@vibin](https://discuss.elastic.co/u/vibin)\
**Post date:** [March 8, 2012, 12:04pm UTC](https://discuss.elastic.co/t/unavailable-shard-exception/6942/3 "2012-03-08T12:04:34Z")

</div>

Thank u Christian,

Actually we have deleted index folders unknowingly [We did a manual  
delete]. Is it possible to rectify this exception?

On Mar 8, 2:26 pm, Christian von Wendt-Jensen [csj.the....@gmail.com](mailto:csj.the....@gmail.com)  
wrote:

> Hi,
> 
> It looks like the problem I just had my self. I was trying to create an  
> index an use it right away, but couldn't because of a timing issue. Try  
> this call after you have deleted your index:
> 
> - 
> 
> ```
> node.client().admin().cluster().health(new
> 
> ```
> 
> ClusterHealthRequest(INDEXNAME).waitForActiveShards(1)).actionGet();  
> \*  
> I hope this helps.
> 
> Regards...
> 
> Den torsdag den 8. marts 2012 06.55.21 UTC+1 skrev vibin dhas:
> 
> > Hi,
> 
> > I came across the following error while indexing when I have deleted  
> > some index folders from ES cluster
> 
> > UnavailableShardsException[[2012-03-07][0] [2] shardIt, [0] active :  
> > Timeout waiting for [1m], request:  
> > org.elasticsearch.action.bulk.BulkShardRequest@7403e02a]
> 
> > But I have not deleted "2012-03-07" folder.
> 
> > Note : Indexing was working fine before deleting Index folders.
> 
> > Cluster Configuration:
> 
> > number\_of\_shards: 1  
> > number\_of\_replicas: 1
> 
> > How to get rid of this conflict.
> 
> > Any help is much appreciated.....
> 
> > Regards,  
> > -Vibin

---

<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, 3:36am UTC](https://discuss.elastic.co/t/unavailable-shard-exception/6942/4 "2017-07-06T03:36:40Z")

</div>


