# Unavailable\_shards\_exception

**URL:** <https://discuss.elastic.co/t/unavailable-shards-exception/349343>\
**Category:** Elasticsearch\
**Tags:** elastic-stack-alerting\
**Created:** [December 14, 2023, 9:34am UTC](https://discuss.elastic.co/t/unavailable-shards-exception/349343 "2023-12-14T09:34:06Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Vittorio\_Morellini](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/vittorio_morellini/32/129995_2.png) [@Vittorio\_Morellini](https://discuss.elastic.co/u/Vittorio_Morellini)\
**Post date:** [December 14, 2023, 9:34am UTC](https://discuss.elastic.co/t/unavailable-shards-exception/349343/1 "2023-12-14T09:34:06Z")

</div>

I have a problem since 2 days on my production inde4x on Elasticsearch.  
Every night I re-create the index by deleteing it and re-creating with a reindex command from a source index.

Now it is happening this error and the index is not available, it is down on the server  
[consulting-prod][0] primary shard is not active Timeout: [1m], request: [BulkShardRequest [[consulting-prod][0]] containing [1000] requests]

I am not able to understand.  
I run the batch at 3 am and it fails

I run the same batch at 8 am manually and it is ok, the task scheduled does not give me error in the log but it fails in the index

Release on Elastic: 8.6.1  
Kibana: 8.6.1

How can I solve the problem for the scheduled task?

---

<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:** [January 11, 2024, 9:34am UTC](https://discuss.elastic.co/t/unavailable-shards-exception/349343/2 "2024-01-11T09:34:27Z")

</div>

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