Elasticsearch failed on start when Path.data change in elasticsearch.yml

I setup the elasticsearch 5.2.2 on ubuntu machine and its works fine until i uncomment the "path.data: /elasticstack/elasticsearch/data" setting in elasticsearch.yml .

Hi,

The error message mentions that it is impossible to read /etc/elasticsearch/elasticsearch.yml
Is it possible the file belongs to root (if you use command ll on ubuntu or ls -al) ? If so please do chown to change to the service user running elasticsearch

Tks
Julien

Thank you Julien, I reboot the machine and than restart the elasticservice "service elasticsearch start".
After that i check the systemd logs. it show me the actual error of "permissions"

It get solve after grant write permission "chmod -RW " on "log" and "data" folder which i set as path in "elasticsearch.yml"

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