Hi Team,
We are trying to implement HA setup using Sonarqube community edition. We used AWS ec2 instances - 3 instances - two sonarqube instances and one for NFS to mount common storage among both instance. I mount the Sonar_data folder from first instance which is having data and temp directory to NFS Server and use that mount folder on Second Sonarqube instance and it is failing to start. PFB the detailed information
Sonarqube Version : 7.9.3
Java 11
Sonar.log 2020.07.13 10:49:33 INFO app[o.e.p.PluginsService] loaded plugin [org.elasticsearch.transport.Netty4Plugin]
2020.07.13 10:49:36 WARN app[o.s.a.p.AbstractManagedProcess] Process exited with exit value [es]: 1
2020.07.13 10:49:36 INFO app[o.s.a.SchedulerImpl] Process[es] is stopped
2020.07.13 10:49:36 INFO app[o.s.a.SchedulerImpl] SonarQube is stopped
elastic search logs
g.IllegalStateException: failed to obtain node locks, tried [[/opt/sonarqube/sonar_data/data/es6]] with lock id [0]; maybe these locations are not writable or multiple nodes were started without increasing [node.max_local_storage_nodes] (was [1])?
at org.elasticsearch.env.NodeEnvironment.(NodeEnvironment.java:300) ~[elasticsearch-6.8.0.jar:6.8.0]
at org.elasticsearch.node.Node.(Node.java:296) ~[elasticsearch-6.8.0.jar:6.8.0]
at org.elasticsearch.node.Node.(Node.java:266) ~[elasticsearch-6.8.0.jar:6.8.0]
at org.elasticsearch.bootstrap.Bootstrap$5.(Bootstrap.java:212) ~[elasticsearch-6.8.0.jar:6.8.0]
at org.elasticsearch.bootstrap.Bootstrap.setup(Bootstrap.java:212) ~[elasticsearch-6.8.0.jar:6.8.0]
at org.elasticsearch.bootstrap.Bootstrap.init(Bootstrap.java:333) ~[elasticsearch-6.8.0.jar:6.8.0]
at org.elasticsearch.bootstrap.Elasticsearch.init(Elasticsearch.java:159) ~[elasticsearch-6.8.0.jar:6.8.0]