Move path.data


#1

hi,

i created a new data dir (/data), stopped elasticsearch, edited elasticsearch.yml (path.data: /data) and started elasticsearch again. user/group rights are the same as /var/lib/elasticsearch.

now when i start elasticsearch i cant connect anymore (as user elastic via kibana, curl -XGET etc.). I got a "failed to authenticate user".

I changed path.data back to default dir. Now elasticsearch works as expected.

Any Idea? Whats going wrong?


(Mark Walkom) #2

You need to move the actual data - the directories and files - from the default to the new path.
That's where Elasticsearch stores the auth details in the native realm.


#3

Thank you! Works as expected. :ok_hand:


(system) #4

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