Fatal exception while booting Elasticsearch

We deployed sonarqube in 3 node microk8s kubernetes cluster and recently upgraded to version 10.2.1(community edition). There was removal of one node in cluster and sinarqube scheduled in another node after which we got below issue.

ERROR es[o.e.b.Elasticsearch] fatal exception while booting Elasticsearch
java.lang.IllegalStateException: failed to obtain node locks, tried [/opt/sonarqube/data/es8]; maybe these locations are not writable or multiple nodes were started
on the same data path?

Please help in resolving this issue

Hey there.

Unless you’re using SonarQube’s Data Center Edition, you can only have a single node running.

You should make sure you only have 1 node running, and wipe the /data/es8 directory to get the Elasticsearch index back in place.

Thanks. I have this solution in mind and was trying to get reason for it.
It worked removing es8 directory…