Elasticsearch do not start after installation due to below error:
[9.7gb], spins? [possibly], types [ext4]
[2019-07-23T13:43:44,765][INFO ][o.e.e.NodeEnvironment ] [6yEOT5I] heap size [1.9gb], compressed ordinary object pointers [true]
[2019-07-23T13:43:44,771][ERROR][o.e.n.Node ] detected index data in default.path.data [/var/lib/elasticsearch/nodes/0/indices] where there should not be any
[2019-07-23T13:43:44,772][INFO ][o.e.n.Node ] index folder [leV9g4DMR_WweW7oOMwD6A] in default.path.data [/var/lib/elasticsearch/nodes/0/indices] must be moved to any of [/opt/elasticsearch/data/nodes/0/indices]
[2019-07-23T13:43:44,774][ERROR][o.e.b.Bootstrap ] Exception
java.lang.IllegalStateException: detected index data in default.path.data [/var/lib/elasticsearch] where there should not be any; check the logs for details
I dont see this error on our lab environment after elastic installation but this same error has been observed in customer environment everytime. To resolve the issue I have to manually delete the indices folder and then restart the Elastic process.
I dont know why this is happening on customer environment although the installation process that I am following on the server is same. Can some assist on this please.