Move path.data

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?

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.

1 Like

Thank you! Works as expected. :ok_hand:

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