Not able to start elastic Service

Hey I found the following thread : Unable to start elasticsearch as service - #5 by Kajol_Nimesh

It seems that you have a permission issue for the elastic directory /var/lib/elasticsearch :

Caused by: java.io.IOException: failed to obtain lock on /var/lib/elasticsearch/nodes/0

The reported solution is to give root permission to that directory : sudo chown -R elasticsearch:elasticsearch /var/lib/elasticsearch

Whether or not this is best practice from a security standpoint is unkwon to me. Try this solution, and pls tell if it worked for you.