Fatal exception while booting Elasticsearch

Hello
I want to run elasticsearch shows me the following error
[error][o.e.b.Elasticsearch ] [nodename] fatal exception while booting Elasticsearch java.lang.illegalStateExcption: failed to obtain node locks,tride[/media/............/elasticsearch]; maybe these locations are not writable or multiple nodes were started on the same data path?

For your information, the folder in which the cursors are located in a storage disk other than the disk in which elasticsearch is located

A couple things to check:

  • Make sure the storage disk is properly mounted and accessible, and the user running Elasticsearch has access to that disk
  • Make sure there is only one instance running (ps aux | grep elasticsearch) and stop the extra instances if there are multiple indices running
  • Make sure your data directory is correctly configured in elasticsearch.yml
  • Check the Elasticsearch logs to see if there is additional information