# Failed to obtain node lock

**URL:** <https://discuss.elastic.co/t/failed-to-obtain-node-lock/4206>\
**Category:** Elasticsearch\
**Created:** [April 8, 2011, 7:21pm UTC](https://discuss.elastic.co/t/failed-to-obtain-node-lock/4206 "2011-04-08T19:21:25Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Richard\_Livsey\_2](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/richard_livsey_2/32/3241_2.png) [@Richard\_Livsey\_2](https://discuss.elastic.co/u/Richard_Livsey_2)\
**Post date:** [April 8, 2011, 7:21pm UTC](https://discuss.elastic.co/t/failed-to-obtain-node-lock/4206/1 "2011-04-08T19:21:25Z")

</div>

I've just upgraded to 0.15.2 on one of our staging servers and am having trouble getting it up and running.

I was on 0.10.x previously, but I've wiped all remains of it so it should be akin to a fresh install.

Here's what I get in the logs:

[19:13:38,771][INFO][node] [Marc Spector] {elasticsearch/0.15.2}[24500]: initializing ...  
[19:13:38,777][INFO][plugins] [Marc Spector] loaded []  
[19:14:40,763][ERROR][bootstrap] {elasticsearch/0.15.2}: Initialization Failed ...

1. IOException[Failed to obtain node lock]

Any ideas as to what's causing it to fail to get a lock, or anywhere I can look to find further debug info?

Cheers.

---

<div class="post-metadata">

**Author:** ![kimchy](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/kimchy/32/44952_2.png) [@kimchy](https://discuss.elastic.co/u/kimchy)\
**Post date:** [April 8, 2011, 8:53pm UTC](https://discuss.elastic.co/t/failed-to-obtain-node-lock/4206/2 "2011-04-08T20:53:44Z")

</div>

When a node starts up, it obtains a native lock to its own data location (within the data directory). Is it writable?  
On Friday, April 8, 2011 at 10:21 PM, Richard Livsey wrote:

> I've just upgraded to 0.15.2 on one of our staging servers and am having trouble getting it up and running.
> 
> I was on 0.10.x previously, but I've wiped all remains of it so it should be akin to a fresh install.
> 
> Here's what I get in the logs:
> 
> [19:13:38,771][INFO][node] [Marc Spector] {elasticsearch/0.15.2}[24500]: initializing ...  
> [19:13:38,777][INFO][plugins] [Marc Spector] loaded   
> [19:14:40,763][ERROR][bootstrap] {elasticsearch/0.15.2}: Initialization Failed ...
> 
> 1. IOException[Failed to obtain node lock]
> 
> Any ideas as to what's causing it to fail to get a lock, or anywhere I can look to find further debug info?
> 
> Cheers.

---

<div class="post-metadata">

**Author:** ![Richard\_Livsey\_2](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/richard_livsey_2/32/3241_2.png) [@Richard\_Livsey\_2](https://discuss.elastic.co/u/Richard_Livsey_2)\
**Post date:** [April 9, 2011, 12:47pm UTC](https://discuss.elastic.co/t/failed-to-obtain-node-lock/4206/3 "2011-04-09T12:47:37Z")

</div>

Aha, cheers, rather newbie mistake!

I thought the data directory was in one place, but the startup script was setting it to another location which didn't exist!

Reading the directory layout made the lightbulb go off that I was looking in the wrong place:

> **[Elasticsearch Platform — Find real-time answers at scale](https://www.elastic.co)**
>
> Power insights and outcomes with the Elasticsearch Platform and AI. See into your data and find answers that matter with enterprise solutions designed to help you build, observe, and protect. Try Elasticsearch free today.

D'oh, all working now cheers :o)

On Friday, 8 April 2011 at 21:53, Shay Banon wrote:

> When a node starts up, it obtains a native lock to its own data location (within the data directory). Is it writable?  
> On Friday, April 8, 2011 at 10:21 PM, Richard Livsey wrote:
> 
> > I've just upgraded to 0.15.2 on one of our staging servers and am having trouble getting it up and running.
> > 
> > I was on 0.10.x previously, but I've wiped all remains of it so it should be akin to a fresh install.
> > 
> > Here's what I get in the logs:
> > 
> > [19:13:38,771][INFO][node] [Marc Spector] {elasticsearch/0.15.2}[24500]: initializing ...  
> > [19:13:38,777][INFO][plugins] [Marc Spector] loaded   
> > [19:14:40,763][ERROR][bootstrap] {elasticsearch/0.15.2}: Initialization Failed ...
> > 
> > 1. IOException[Failed to obtain node lock]
> > 
> > Any ideas as to what's causing it to fail to get a lock, or anywhere I can look to find further debug info?
> > 
> > Cheers.

---

<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, 4:08am UTC](https://discuss.elastic.co/t/failed-to-obtain-node-lock/4206/4 "2017-07-06T04:08:40Z")

</div>


