# Elasticsearch does not release lock on node.lock file

**URL:** <https://discuss.elastic.co/t/elasticsearch-does-not-release-lock-on-node-lock-file/357579>\
**Category:** Elasticsearch\
**Created:** [April 17, 2024, 8:16am UTC](https://discuss.elastic.co/t/elasticsearch-does-not-release-lock-on-node-lock-file/357579 "2024-04-17T08:16:02Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Prashant\_Rana](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/prashant_rana/32/42952_2.png) [@Prashant\_Rana](https://discuss.elastic.co/u/Prashant_Rana)\
**Post date:** [April 17, 2024, 8:16am UTC](https://discuss.elastic.co/t/elasticsearch-does-not-release-lock-on-node-lock-file/357579/1 "2024-04-17T08:16:02Z")

</div>

Sometimes when the machine shutsdown, the Elasticsearch is not releasing the lock on the node.lock file. Even after machine restart, ES is not able to lock the env stating failed to obtain node lock.

Similar issue occurs sometimes when the ES restarts due to OOM.

Any idea why is it happening?

ES version: 5.6.4  
OS: windows

 ![image](https://us1.discourse-cdn.com/elastic/original/3X/f/a/fae3bc3421cead32919c811c3de5285b4045153c.jpeg)

---

<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:** [May 15, 2024, 8:16am UTC](https://discuss.elastic.co/t/elasticsearch-does-not-release-lock-on-node-lock-file/357579/2 "2024-05-15T08:16:27Z")

</div>

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