New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Wrong checking of #23981 bug #24283
Comments
Same issue here. |
Well @elzozz, If this is your case, you have to manually fix this moving these indexes to the real data folder. Check https://www.elastic.co/blog/multi-data-path-bug-in-elasticsearch-5-3-0 for further details (basically, you just need to move the folder content ...). |
@elzozz I think that @antdavidl is correct here. |
@antdavidl Thanks for reporting, we will get this fixed in the next patch release (5.3.2). |
@antdavidl |
As a workaround if you don't have the data at default path '/var/lib/elasticsearch'. just create a symlink to the default path and comment out the explicit path.data definition in the config file |
I think there's some confusion here. You say:
If you have |
@elzozz Can you please describe your precise situation? It appears that you have |
@jasontedor Sorry, It's Monday and I can't seem to compose a normal sentence ;) |
Then I do not understand how you're running into this issue if |
I'm too seeing this with a fresh install of an els 5.3.1 cluster which was performed using the elastic ansible file. in my elasticsearch config path.data is set to /var/lib/elasticsearch/els13-els13 Is the ansible script doing something wrong, or is this an ELS bug? It prevents the restart of nodes without deletion of that node's index data and is hence quite critical if multiple nodes were to fail at the same time. |
Here are the config files, maybe it provides with more info. |
@splitice I peeked at the Ansible role; it appears they are setting the configured data paths in the service definition and in the configuration file. I wouldn't necessarily consider this a bug although I don't think they should be doing this, but it does mean that every user of the Ansible role is going to be snagged by this until 5.3.2 it out. |
@elzozz I don't see |
i found this topic and this solve to me.
https://discuss.elastic.co/t/elasticsearch-restart-failed/83357/7?u=igormarqs |
@jasontedor Here are the config files and I think I found the issue in my case. |
@elzozz Indeed, you have both |
Elasticsearch version: 5.3.1
JVM version: openjdk-1.8.0.131-2.b11.el7_3
OS version: CentOS 7.3.1611 (Core)
Description of the problem including expected versus actual behavior:
I had just updated from 5.3.0 to 5.3.1 and then the node didn't like to start up. The logs indicates that there were indexes in the default folder where they should not be. However, this is exactly the folder in which always I have had my indexes!
I think that the mechanism to control a potential misconfiguration after the fix of the bug #23981 in 5.3.1 is wrongly implemented when you have the default data folder explicitly defined in the configuration file.
I had the following lines in my configuration file:
I was using the default data folder but anyway configuring it explicitly (since it is configurable by other means; ansible-stuff ...).
In order to raise the Elasticsearch service I have had to comment the path.data line and then it works fine:
I think the problem is that the new code was checking if the data folder was being settled up and then check if the default data folder contains indexes, but ... what about if the default data folder is also a valid data folder included in the configuration?
Thanks!
Steps to reproduce:
Provide logs (if relevant):
[2017-04-24T11:45:12,480][INFO ][o.e.n.Node ] [automation] initializing ...
[2017-04-24T11:45:12,557][INFO ][o.e.e.NodeEnvironment ] [automation] using [1] data paths, mounts [[/var/lib/elasticsearch (/dev/mapper/vg_data-lv_elastic)]], net usable_space [39gb], net total_space [58.9gb], spins? [possibly], types [ext4]
[2017-04-24T11:45:12,557][INFO ][o.e.e.NodeEnvironment ] [automation] heap size [1.9gb], compressed ordinary object pointers [true]
[2017-04-24T11:45:13,691][ERROR][o.e.n.Node ] [automation] detected index data in default.path.data [/var/lib/elasticsearch/nodes/0/indices] where there should not be any
The text was updated successfully, but these errors were encountered: