Failed to obtain node lock


(Richard Livsey-2) #1

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.


(Shay Banon) #2

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.


(Richard Livsey-2) #3

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:
http://www.elasticsearch.org/guide/reference/setup/dir-layout.html

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.


(system) #4