# Failed to obtain node locks when starting elasticsearch

**URL:** <https://discuss.elastic.co/t/failed-to-obtain-node-locks-when-starting-elasticsearch/310892>\
**Category:** Elasticsearch\
**Created:** [July 28, 2022, 3:06pm UTC](https://discuss.elastic.co/t/failed-to-obtain-node-locks-when-starting-elasticsearch/310892 "2022-07-28T15:06:21Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Leonardo\_Henrique](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/leonardo_henrique/32/79658_2.png) [@Leonardo\_Henrique](https://discuss.elastic.co/u/Leonardo_Henrique)\
**Post date:** [July 28, 2022, 3:06pm UTC](https://discuss.elastic.co/t/failed-to-obtain-node-locks-when-starting-elasticsearch/310892/1 "2022-07-28T15:06:21Z")

</div>

Some background: I had an elasticsearch installed in my CentOS with yum. After I uninstalled that with `yum remove`. Right now, I want to run elasticsearch in the same machine, but the error below appears when I run `sudo systemctl start elasticsearch`. How can I solve that?

`java.lang.IllegalStateException: failed to obtain node locks, tried [[/var/lib/elasticsearch]] with lock id [0]; maybe these locations are not writable or multiple nodes were started without increasing [node.max_local_storage_nodes] (was [1])?`

---

<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:** [August 25, 2022, 3:06pm UTC](https://discuss.elastic.co/t/failed-to-obtain-node-locks-when-starting-elasticsearch/310892/2 "2022-08-25T15:06:27Z")

</div>

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