# Indices are getting locked

**URL:** <https://discuss.elastic.co/t/indices-are-getting-locked/208498>\
**Category:** Elasticsearch\
**Created:** [November 19, 2019, 11:33am UTC](https://discuss.elastic.co/t/indices-are-getting-locked/208498 "2019-11-19T11:33:46Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![Seetharaman\_K](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/seetharaman_k/32/52542_2.png) [@Seetharaman\_K](https://discuss.elastic.co/u/Seetharaman_K)\
**Post date:** [November 19, 2019, 11:33am UTC](https://discuss.elastic.co/t/indices-are-getting-locked/208498/1 "2019-11-19T11:33:46Z")

</div>

Not sure what is the reason why indices are getting locked , every time one of the index is getting locked , i have to go and remove the lock . the obvious answer is as many may say "its due to do disk space issue" but to be honest there are some close to 100 indices and none of them are over 3mb. neither my had drive is full ,  
so where should i begin my analyses ? is it something related to index template ?

---

<div class="post-metadata">

**Author:** ![DavidTurner](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/davidturner/32/22453_2.png) [@DavidTurner](https://discuss.elastic.co/u/DavidTurner)\
**Post date:** [November 19, 2019, 12:31pm UTC](https://discuss.elastic.co/t/indices-are-getting-locked/208498/2 "2019-11-19T12:31:06Z")

</div>

What exactly do you mean by "locked"? What exactly are you doing to "remove the lock"?

If you mean that you are seeing your indices blocked with `read-only / allow delete` then the best way to diagnose this is by looking in the server logs, since if Elasticsearch applies this block automatically then it logs a warning about it. Look for the string `DiskThresholdMonitor`.

---

<div class="post-metadata">

**Author:** ![Seetharaman\_K](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/seetharaman_k/32/52542_2.png) [@Seetharaman\_K](https://discuss.elastic.co/u/Seetharaman_K)\
**Post date:** [November 20, 2019, 6:33am UTC](https://discuss.elastic.co/t/indices-are-getting-locked/208498/3 "2019-11-20T06:33:55Z")

</div>

Hi David ,  
am really sorry to kind of deviate this thread , but when i tried to see the logs for Nov 18 2019 , i was surprised to see only the 19th logs. not sure when the problem started occurring. below is the image in the Logs folder. there is a 2 MB log third from the top . but through out the log there is only 19th November entry. could there be some problem with installation ? coz , with out the logs i would not be able to identify on which date that `DiskThresholdMonitor` happened.

 ![image](https://us1.discourse-cdn.com/elastic/original/3X/f/1/f1e3e565ecabb5c73098d0252c89698131e2a908.png)

---

<div class="post-metadata">

**Author:** ![Christian\_Dahlqvist](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/christian_dahlqvist/32/4617_2.png) [@Christian\_Dahlqvist](https://discuss.elastic.co/u/Christian_Dahlqvist)\
**Post date:** [November 20, 2019, 6:44am UTC](https://discuss.elastic.co/t/indices-are-getting-locked/208498/4 "2019-11-20T06:44:57Z")

</div>

Can you please provide the full output from the `_cluster/stats` API?

---

<div class="post-metadata">

**Author:** ![Seetharaman\_K](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/seetharaman_k/32/52542_2.png) [@Seetharaman\_K](https://discuss.elastic.co/u/Seetharaman_K)\
**Post date:** [November 20, 2019, 6:48am UTC](https://discuss.elastic.co/t/indices-are-getting-locked/208498/5 "2019-11-20T06:48:47Z")

</div>

[cluster stats](https://anotepad.com/notes/c3pj235) helps ?

---

<div class="post-metadata">

**Author:** ![DavidTurner](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/davidturner/32/22453_2.png) [@DavidTurner](https://discuss.elastic.co/u/DavidTurner)\
**Post date:** [November 20, 2019, 7:49am UTC](https://discuss.elastic.co/t/indices-are-getting-locked/208498/6 "2019-11-20T07:49:36Z")

</div>

It looks like you have some (compressed) logs dating back to 2019-11-04 which might be worth checking.

Also I understood your first post to mean that this keeps on happening rather than it happened once. If so, you could just wait for it to happen again and then look at the logs.

---

<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:** [December 18, 2019, 7:49am UTC](https://discuss.elastic.co/t/indices-are-getting-locked/208498/7 "2019-12-18T07:49:41Z")

</div>

Closed on December 18, 2019, 7:49am UTC

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