SonarQube 8.2 server is not running

OS - W 10
Jdk - 11.0.7
SonarQube - 8.2

Throwing below error

INFO  app[][o.s.a.SchedulerImpl] Waiting for Elasticsearch to be up and running
Java HotSpot(TM) 64-Bit Server VM warning: Option UseConcMarkSweepGC was deprecated in version 9.0 and will likely be removed in a future release.
2020.04.29 16:50:00 INFO  app[][o.e.p.PluginsService] no modules loaded
2020.04.29 16:50:00 INFO  app[][o.e.p.PluginsService] loaded plugin [org.elasticsearch.transport.Netty4Plugin]
2020.04.29 16:50:05 WARN  app[][o.s.a.p.AbstractManagedProcess] Process exited with exit value [es]: 1
2020.04.29 16:50:05 INFO  app[][o.s.a.SchedulerImpl] Process[es] is stopped
2020.04.29 16:50:05 INFO  app[][o.s.a.SchedulerImpl] SonarQube is stopped
2020.04.29 16:50:05 INFO  app[][o.e.c.t.TransportClientNodesService] failed to get node info for {#transport#-1}{kOSFBn2ARJiOtBcabSu5IQ}{127.0.0.1}{127.0.0.1:9001}, disconnecting...
java.lang.IllegalStateException: Future got interrupted
	at org.elasticsearch.common.util.concurrent.FutureUtils.get(FutureUtils.java:60)
	at org.elasticsearch.action.support.AdapterActionFuture.actionGet(AdapterActionFuture.java:34)
	at org.elasticsearch.transport.ConnectionManager.internalOpenConnection(ConnectionManager.java:209)
	at org.elasticsearch.transport.ConnectionManager.openConnection(ConnectionManager.java:80)
	at org.elasticsearch.transport.TransportService.openConnection(TransportService.java:367)
	at org.elasticsearch.client.transport.TransportClientNodesService$SimpleNodeSampler.doSample(TransportClientNodesService.java:411)
	at org.elasticsearch.client.transport.TransportClientNodesService$NodeSampler.sample(TransportClientNodesService.java:362)
	at org.elasticsearch.client.transport.TransportClientNodesService.addTransportAddresses(TransportClientNodesService.java:201)
	at org.elasticsearch.client.transport.TransportClient.addTransportAddress(TransportClient.java:342)
	at org.sonar.application.es.EsConnectorImpl$MinimalTransportClient.<init>(EsConnectorImpl.java:108)
	at org.sonar.application.es.EsConnectorImpl.buildTransportClient(EsConnectorImpl.java:89)
	at org.sonar.application.es.EsConnectorImpl.getTransportClient(EsConnectorImpl.java:74)
	at org.sonar.application.es.EsConnectorImpl.getClusterHealthStatus(EsConnectorImpl.java:61)
	at org.sonar.application.process.EsManagedProcess.checkStatus(EsManagedProcess.java:88)
	at org.sonar.application.process.EsManagedProcess.checkOperational(EsManagedProcess.java:73)
	at org.sonar.application.process.EsManagedProcess.isOperational(EsManagedProcess.java:58)
	at org.sonar.application.process.ManagedProcessHandler.refreshState(ManagedProcessHandler.java:220)
	at org.sonar.application.process.ManagedProcessHandler$EventWatcher.run(ManagedProcessHandler.java:285)
Caused by: java.lang.InterruptedException: null
	at java.base/java.util.concurrent.locks.AbstractQueuedSynchronizer.doAcquireSharedInterruptibly(AbstractQueuedSynchronizer.java:1040)
	at java.base/java.util.concurrent.locks.AbstractQueuedSynchronizer.acquireSharedInterruptibly(AbstractQueuedSynchronizer.java:1345)
	at org.elasticsearch.common.util.concurrent.BaseFuture$Sync.get(BaseFuture.java:251)
	at org.elasticsearch.common.util.concurrent.BaseFuture.get(BaseFuture.java:94)
	at org.elasticsearch.common.util.concurrent.FutureUtils.get(FutureUtils.java:57)
	... 17 common frames omitted
<-- Wrapper Stopped

Howdy!

Welcome to the SonarSource community. We’re glad to have you.

The error thrown in this log indicates a failure when checking the status of Elastic Search. To drill down further into this, we should check the es.log file, located in $SONARQUBE-HOME/logs/. If this is your first setup, I also recommend checking out the documentation on logging. If you notice anything suspicious in the es log, post it here and I’d be happy to help further. :slight_smile:

Cheers,
Josh

Thanks Joshua for your response.
As you suggested verified in es.logs and observed elasticsearch jar file related information. i.e.

2020.04.29 16:50:05 ERROR es[o.e.b.Bootstrap] Exception
java.lang.IllegalStateException: failed to obtain node locks, tried [[C:\sonarqube-8.2.0.32929\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.4.jar:6.8.4]
at org.elasticsearch.node.Node.(Node.java:296) ~[elasticsearch-6.8.4.jar:6.8.4]
at org.elasticsearch.node.Node.(Node.java:266) ~[elasticsearch-6.8.4.jar:6.8.4]
at org.elasticsearch.bootstrap.Bootstrap$5.(Bootstrap.java:212) ~[elasticsearch-6.8.4.jar:6.8.4]
at org.elasticsearch.bootstrap.Bootstrap.setup(Bootstrap.java:212) ~[elasticsearch-6.8.4.jar:6.8.4]
at org.elasticsearch.bootstrap.Bootstrap.init(Bootstrap.java:333) [elasticsearch-6.8.4.jar:6.8.4]
at org.elasticsearch.bootstrap.Elasticsearch.init(Elasticsearch.java:159) [elasticsearch-6.8.4.jar:6.8.4]
at org.elasticsearch.bootstrap.Elasticsearch.execute(Elasticsearch.java:150) [elasticsearch-6.8.4.jar:6.8.4]
at org.elasticsearch.cli.EnvironmentAwareCommand.execute(EnvironmentAwareCommand.java:86) [elasticsearch-6.8.4.jar:6.8.4]
at org.elasticsearch.cli.Command.mainWithoutErrorHandling(Command.java:124) [elasticsearch-cli-6.8.4.jar:6.8.4]
at org.elasticsearch.cli.Command.main(Command.java:90) [elasticsearch-cli-6.8.4.jar:6.8.4]
at org.elasticsearch.bootstrap.Elasticsearch.main(Elasticsearch.java:116) [elasticsearch-6.8.4.jar:6.8.4]
at org.elasticsearch.bootstrap.Elasticsearch.main(Elasticsearch.java:93) [elasticsearch-6.8.4.jar:6.8.4]
2020.04.29 16:50:05 WARN es[o.e.b.ElasticsearchUncaughtExceptionHandler] uncaught exception in thread [main]
org.elasticsearch.bootstrap.StartupException: java.lang.IllegalStateException: failed to obtain node locks, tried [[C:\sonarqube-8.2.0.32929\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.bootstrap.Elasticsearch.init(Elasticsearch.java:163) ~[elasticsearch-6.8.4.jar:6.8.4]
at org.elasticsearch.bootstrap.Elasticsearch.execute(Elasticsearch.java:150) ~[elasticsearch-6.8.4.jar:6.8.4]
at org.elasticsearch.cli.EnvironmentAwareCommand.execute(EnvironmentAwareCommand.java:86) ~[elasticsearch-6.8.4.jar:6.8.4]
at org.elasticsearch.cli.Command.mainWithoutErrorHandling(Command.java:124) ~[elasticsearch-cli-6.8.4.jar:6.8.4]
at org.elasticsearch.cli.Command.main(Command.java:90) ~[elasticsearch-cli-6.8.4.jar:6.8.4]
at org.elasticsearch.bootstrap.Elasticsearch.main(Elasticsearch.java:116) ~[elasticsearch-6.8.4.jar:6.8.4]
at org.elasticsearch.bootstrap.Elasticsearch.main(Elasticsearch.java:93) ~[elasticsearch-6.8.4.jar:6.8.4]
Caused by: java.lang.IllegalStateException: failed to obtain node locks, tried [[C:\sonarqube-8.2.0.32929\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.4.jar:6.8.4]
at org.elasticsearch.node.Node.(Node.java:296) ~[elasticsearch-6.8.4.jar:6.8.4]
at org.elasticsearch.node.Node.(Node.java:266) ~[elasticsearch-6.8.4.jar:6.8.4]
at org.elasticsearch.bootstrap.Bootstrap$5.(Bootstrap.java:212) ~[elasticsearch-6.8.4.jar:6.8.4]
at org.elasticsearch.bootstrap.Bootstrap.setup(Bootstrap.java:212) ~[elasticsearch-6.8.4.jar:6.8.4]
at org.elasticsearch.bootstrap.Bootstrap.init(Bootstrap.java:333) ~[elasticsearch-6.8.4.jar:6.8.4]
at org.elasticsearch.bootstrap.Elasticsearch.init(Elasticsearch.java:159) ~[elasticsearch-6.8.4.jar:6.8.4]
… 6 more

Hi Ravi and Josh,
I am also getting the similar error. I hope this is ok to post here or I can make a new thread.
OS - W 10
Jdk - 13.0.2
SonarQube - 8.2.0.32929

It was working fine, but I stopped the SonarQube server to make some changes to the sonar-properties file (trying to get https working) and restarted the server.
Now I get this error in the console when I try to run StartSonar.bat

C:\sonarqube-de\bin\windows-x86-64>StartSonar.bat
wrapper  | --> Wrapper Started as Console
wrapper  | Launching a JVM...
jvm 1    | Wrapper (Version 3.2.3) http://wrapper.tanukisoftware.org
jvm 1    |   Copyright 1999-2006 Tanuki Software, Inc.  All Rights Reserved.
jvm 1    |
jvm 1    | 2020.04.30 12:33:42 INFO  app[][o.s.a.AppFileSystem] Cleaning or creating temp directory C:\sonarqube-de\temp
jvm 1    | 2020.04.30 12:33:43 INFO  app[][o.s.a.es.EsSettings] Elasticsearch listening on /127.0.0.1:9001
jvm 1    | 2020.04.30 12:33:43 INFO  app[][o.s.a.ProcessLauncherImpl] Launch process[[key='es', ipcIndex=1, logFilenamePrefix=es]] from [C:\sonarqube-de\elasticsearch]: C:\java\jdk-13.0.2\bin\java -XX:+UseConcMarkSweepGC -XX:CMSInitiatingOccupancyFraction=75 -XX:+UseCMSInitiatingOccupancyOnly -Des.networkaddress.cache.ttl=60 -Des.networkaddress.cache.negative.ttl=10 -XX:+AlwaysPreTouch -Xss1m -Djava.awt.headless=true -Dfile.encoding=UTF-8 -Djna.nosys=true -XX:-OmitStackTraceInFastThrow -Dio.netty.noUnsafe=true -Dio.netty.noKeySetOptimization=true -Dio.netty.recycler.maxCapacityPerThread=0 -Dlog4j.shutdownHookEnabled=false -Dlog4j2.disable.jmx=true -Djava.io.tmpdir=C:\sonarqube-de\temp -XX:ErrorFile=../logs/es_hs_err_pid%p.log -Xmx512m -Xms512m -XX:+HeapDumpOnOutOfMemoryError -Dbootstrap.system_call_filter=false -Delasticsearch -Des.path.home=C:\sonarqube-de\elasticsearch -Des.path.conf=C:\sonarqube-de\temp\conf\es -cp lib/* org.elasticsearch.bootstrap.Elasticsearch
jvm 1    | 2020.04.30 12:33:43 INFO  app[][o.s.a.SchedulerImpl] Waiting for Elasticsearch to be up and running
jvm 1    | OpenJDK 64-Bit Server VM warning: Option UseConcMarkSweepGC was deprecated in version 9.0 and will likely be removed in a future release.
jvm 1    | 2020.04.30 12:33:44 INFO  app[][o.e.p.PluginsService] no modules loaded
jvm 1    | 2020.04.30 12:33:44 INFO  app[][o.e.p.PluginsService] loaded plugin [org.elasticsearch.transport.Netty4Plugin]
jvm 1    | 2020.04.30 12:33:59 WARN  app[][o.s.a.p.AbstractManagedProcess] Process exited with exit value [es]: 1
wrapper  | Wrapper Process has not received any CPU time for 1351 seconds.  Extending timeouts.
jvm 1    | 2020.04.30 12:33:59 INFO  app[][o.s.a.SchedulerImpl] Process[es] is stopped
jvm 1    | 2020.04.30 12:33:59 INFO  app[][o.s.a.SchedulerImpl] SonarQube is stopped
jvm 1    | 2020.04.30 12:34:05 INFO  app[][o.e.c.t.TransportClientNodesService] failed to get node info for {#transport#-1}{Fkycr9RCR_GzRoFJZ2fKFQ}{127.0.0.1}{127.0.0.1:9001}, disconnecting...
jvm 1    | java.lang.IllegalStateException: Future got interrupted
jvm 1    |      at org.elasticsearch.common.util.concurrent.FutureUtils.get(FutureUtils.java:60)
jvm 1    |      at org.elasticsearch.action.support.AdapterActionFuture.actionGet(AdapterActionFuture.java:34)
jvm 1    |      at org.elasticsearch.transport.ConnectionManager.internalOpenConnection(ConnectionManager.java:209)
jvm 1    |      at org.elasticsearch.transport.ConnectionManager.openConnection(ConnectionManager.java:80)
jvm 1    |      at org.elasticsearch.transport.TransportService.openConnection(TransportService.java:367)
jvm 1    |      at org.elasticsearch.client.transport.TransportClientNodesService$SimpleNodeSampler.doSample(TransportClientNodesService.java:411)
jvm 1    |      at org.elasticsearch.client.transport.TransportClientNodesService$NodeSampler.sample(TransportClientNodesService.java:362)
jvm 1    |      at org.elasticsearch.client.transport.TransportClientNodesService.addTransportAddresses(TransportClientNodesService.java:201)
jvm 1    |      at org.elasticsearch.client.transport.TransportClient.addTransportAddress(TransportClient.java:342)
jvm 1    |      at org.sonar.application.es.EsConnectorImpl$MinimalTransportClient.<init>(EsConnectorImpl.java:108)
jvm 1    |      at org.sonar.application.es.EsConnectorImpl.buildTransportClient(EsConnectorImpl.java:89)
jvm 1    |      at org.sonar.application.es.EsConnectorImpl.getTransportClient(EsConnectorImpl.java:74)
jvm 1    |      at org.sonar.application.es.EsConnectorImpl.getClusterHealthStatus(EsConnectorImpl.java:61)
jvm 1    |      at org.sonar.application.process.EsManagedProcess.checkStatus(EsManagedProcess.java:88)
jvm 1    |      at org.sonar.application.process.EsManagedProcess.checkOperational(EsManagedProcess.java:73)
jvm 1    |      at org.sonar.application.process.EsManagedProcess.isOperational(EsManagedProcess.java:58)
jvm 1    |      at org.sonar.application.process.ManagedProcessHandler.refreshState(ManagedProcessHandler.java:220)
jvm 1    |      at org.sonar.application.process.ManagedProcessHandler$EventWatcher.run(ManagedProcessHandler.java:285)
jvm 1    | Caused by: java.lang.InterruptedException: null
jvm 1    |      at java.base/java.util.concurrent.locks.AbstractQueuedSynchronizer.acquireSharedInterruptibly(AbstractQueuedSynchronizer.java:1343)
jvm 1    |      at org.elasticsearch.common.util.concurrent.BaseFuture$Sync.get(BaseFuture.java:251)
jvm 1    |      at org.elasticsearch.common.util.concurrent.BaseFuture.get(BaseFuture.java:94)
jvm 1    |      at org.elasticsearch.common.util.concurrent.FutureUtils.get(FutureUtils.java:57)
jvm 1    |      ... 17 common frames omitted
wrapper  | <-- Wrapper Stopped

This is the output in the es.logs file

2020.04.30 12:31:02 INFO  es[][o.e.e.NodeEnvironment] using [1] data paths, mounts [[(C:)]], net usable_space [34.2gb], net total_space [126.9gb], types [NTFS]
2020.04.30 12:31:02 INFO  es[][o.e.e.NodeEnvironment] heap size [495.3mb], compressed ordinary object pointers [true]
2020.04.30 12:31:02 INFO  es[][o.e.n.Node] node name [sonarqube], node ID [NuC74lTDR4ugfNPlt5wd-A]
2020.04.30 12:31:02 INFO  es[][o.e.n.Node] version[6.8.4], pid[8612], build[unknown/unknown/bca0c8d/2019-10-16T06:19:49.319352Z], OS[Windows Server 2016/10.0/amd64], JVM[Oracle Corporation/OpenJDK 64-Bit Server VM/13.0.2/13.0.2+8]
2020.04.30 12:31:02 INFO  es[][o.e.n.Node] JVM arguments [-XX:+UseConcMarkSweepGC, -XX:CMSInitiatingOccupancyFraction=75, -XX:+UseCMSInitiatingOccupancyOnly, -Des.networkaddress.cache.ttl=60, -Des.networkaddress.cache.negative.ttl=10, -XX:+AlwaysPreTouch, -Xss1m, -Djava.awt.headless=true, -Dfile.encoding=UTF-8, -Djna.nosys=true, -XX:-OmitStackTraceInFastThrow, -Dio.netty.noUnsafe=true, -Dio.netty.noKeySetOptimization=true, -Dio.netty.recycler.maxCapacityPerThread=0, -Dlog4j.shutdownHookEnabled=false, -Dlog4j2.disable.jmx=true, -Djava.io.tmpdir=C:\sonarqube-de\temp, -XX:ErrorFile=../logs/es_hs_err_pid%p.log, -Xmx512m, -Xms512m, -XX:+HeapDumpOnOutOfMemoryError, -Dbootstrap.system_call_filter=false, -Delasticsearch, -Des.path.home=C:\sonarqube-de\elasticsearch, -Des.path.conf=C:\sonarqube-de\temp\conf\es]
2020.04.30 12:31:04 INFO  es[][o.e.p.PluginsService] loaded module [analysis-common]
2020.04.30 12:31:04 INFO  es[][o.e.p.PluginsService] loaded module [lang-painless]
2020.04.30 12:31:04 INFO  es[][o.e.p.PluginsService] loaded module [mapper-extras]
2020.04.30 12:31:04 INFO  es[][o.e.p.PluginsService] loaded module [parent-join]
2020.04.30 12:31:04 INFO  es[][o.e.p.PluginsService] loaded module [percolator]
2020.04.30 12:31:04 INFO  es[][o.e.p.PluginsService] loaded module [reindex]
2020.04.30 12:31:04 INFO  es[][o.e.p.PluginsService] loaded module [repository-url]
2020.04.30 12:31:04 INFO  es[][o.e.p.PluginsService] loaded module [transport-netty4]
2020.04.30 12:31:04 INFO  es[][o.e.p.PluginsService] no plugins loaded
2020.04.30 12:31:08 WARN  es[][o.e.d.c.s.Settings] [http.enabled] setting was deprecated in Elasticsearch and will be removed in a future release! See the breaking changes documentation for the next major version.
2020.04.30 12:31:13 INFO  es[][o.e.d.DiscoveryModule] using discovery type [zen] and host providers [settings]
2020.04.30 12:31:14 INFO  es[][o.e.n.Node] initialized
2020.04.30 12:31:14 INFO  es[][o.e.n.Node] starting ...
2020.04.30 12:31:14 INFO  es[][o.e.t.TransportService] publish_address {127.0.0.1:9001}, bound_addresses {127.0.0.1:9001}
2020.04.30 12:31:18 INFO  es[][o.e.c.s.MasterService] zen-disco-elected-as-master ([0] nodes joined), reason: new_master {sonarqube}{NuC74lTDR4ugfNPlt5wd-A}{lIyp5YQlRMCy9lltIC3A1g}{127.0.0.1}{127.0.0.1:9001}{rack_id=sonarqube}
2020.04.30 12:31:18 INFO  es[][o.e.c.s.ClusterApplierService] new_master {sonarqube}{NuC74lTDR4ugfNPlt5wd-A}{lIyp5YQlRMCy9lltIC3A1g}{127.0.0.1}{127.0.0.1:9001}{rack_id=sonarqube}, reason: apply cluster state (from master [master {sonarqube}{NuC74lTDR4ugfNPlt5wd-A}{lIyp5YQlRMCy9lltIC3A1g}{127.0.0.1}{127.0.0.1:9001}{rack_id=sonarqube} committed version [1] source [zen-disco-elected-as-master ([0] nodes joined)]])
2020.04.30 12:31:18 INFO  es[][o.e.n.Node] started
2020.04.30 12:31:19 INFO  es[][o.e.g.GatewayService] recovered [7] indices into cluster_state
2020.04.30 12:31:24 INFO  es[][o.e.c.r.a.AllocationService] Cluster health status changed from [RED] to [GREEN] (reason: [shards started [[metadatas][0]] ...]).
2020.04.30 12:33:29 INFO  es[][o.e.e.NodeEnvironment] using [1] data paths, mounts [[(C:)]], net usable_space [34.2gb], net total_space [126.9gb], types [NTFS]
2020.04.30 12:33:29 INFO  es[][o.e.e.NodeEnvironment] heap size [495.3mb], compressed ordinary object pointers [true]
2020.04.30 12:33:30 INFO  es[][o.e.n.Node] node name [sonarqube], node ID [NuC74lTDR4ugfNPlt5wd-A]
2020.04.30 12:33:30 INFO  es[][o.e.n.Node] version[6.8.4], pid[10968], build[unknown/unknown/bca0c8d/2019-10-16T06:19:49.319352Z], OS[Windows Server 2016/10.0/amd64], JVM[Oracle Corporation/OpenJDK 64-Bit Server VM/13.0.2/13.0.2+8]
2020.04.30 12:33:30 INFO  es[][o.e.n.Node] JVM arguments [-XX:+UseConcMarkSweepGC, -XX:CMSInitiatingOccupancyFraction=75, -XX:+UseCMSInitiatingOccupancyOnly, -Des.networkaddress.cache.ttl=60, -Des.networkaddress.cache.negative.ttl=10, -XX:+AlwaysPreTouch, -Xss1m, -Djava.awt.headless=true, -Dfile.encoding=UTF-8, -Djna.nosys=true, -XX:-OmitStackTraceInFastThrow, -Dio.netty.noUnsafe=true, -Dio.netty.noKeySetOptimization=true, -Dio.netty.recycler.maxCapacityPerThread=0, -Dlog4j.shutdownHookEnabled=false, -Dlog4j2.disable.jmx=true, -Djava.io.tmpdir=C:\sonarqube-de\temp, -XX:ErrorFile=../logs/es_hs_err_pid%p.log, -Xmx512m, -Xms512m, -XX:+HeapDumpOnOutOfMemoryError, -Dbootstrap.system_call_filter=false, -Delasticsearch, -Des.path.home=C:\sonarqube-de\elasticsearch, -Des.path.conf=C:\sonarqube-de\temp\conf\es]
2020.04.30 12:33:31 INFO  es[][o.e.p.PluginsService] loaded module [analysis-common]
2020.04.30 12:33:31 INFO  es[][o.e.p.PluginsService] loaded module [lang-painless]
2020.04.30 12:33:31 INFO  es[][o.e.p.PluginsService] loaded module [mapper-extras]
2020.04.30 12:33:31 INFO  es[][o.e.p.PluginsService] loaded module [parent-join]
2020.04.30 12:33:31 INFO  es[][o.e.p.PluginsService] loaded module [percolator]
2020.04.30 12:33:31 INFO  es[][o.e.p.PluginsService] loaded module [reindex]
2020.04.30 12:33:31 INFO  es[][o.e.p.PluginsService] loaded module [repository-url]
2020.04.30 12:33:31 INFO  es[][o.e.p.PluginsService] loaded module [transport-netty4]
2020.04.30 12:33:31 INFO  es[][o.e.p.PluginsService] no plugins loaded
2020.04.30 12:33:35 WARN  es[][o.e.d.c.s.Settings] [http.enabled] setting was deprecated in Elasticsearch and will be removed in a future release! See the breaking changes documentation for the next major version.
2020.04.30 12:33:38 INFO  es[][o.e.d.DiscoveryModule] using discovery type [zen] and host providers [settings]
2020.04.30 12:33:41 INFO  es[][o.e.n.Node] initialized
2020.04.30 12:33:41 INFO  es[][o.e.n.Node] starting ...
2020.04.30 12:33:42 INFO  es[][o.e.t.TransportService] publish_address {127.0.0.1:9001}, bound_addresses {127.0.0.1:9001}
2020.04.30 12:33:46 INFO  es[][o.e.c.s.MasterService] zen-disco-elected-as-master ([0] nodes joined), reason: new_master {sonarqube}{NuC74lTDR4ugfNPlt5wd-A}{WQtZVAEPT7O0U6XweBkHoQ}{127.0.0.1}{127.0.0.1:9001}{rack_id=sonarqube}
2020.04.30 12:33:46 INFO  es[][o.e.c.s.ClusterApplierService] new_master {sonarqube}{NuC74lTDR4ugfNPlt5wd-A}{WQtZVAEPT7O0U6XweBkHoQ}{127.0.0.1}{127.0.0.1:9001}{rack_id=sonarqube}, reason: apply cluster state (from master [master {sonarqube}{NuC74lTDR4ugfNPlt5wd-A}{WQtZVAEPT7O0U6XweBkHoQ}{127.0.0.1}{127.0.0.1:9001}{rack_id=sonarqube} committed version [1] source [zen-disco-elected-as-master ([0] nodes joined)]])
2020.04.30 12:33:46 INFO  es[][o.e.n.Node] started
2020.04.30 12:33:48 ERROR es[][o.e.b.Bootstrap] Exception
java.lang.IllegalStateException: failed to obtain node locks, tried [[C:\sonarqube-de\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.<init>(NodeEnvironment.java:300) ~[elasticsearch-6.8.4.jar:6.8.4]
	at org.elasticsearch.node.Node.<init>(Node.java:296) ~[elasticsearch-6.8.4.jar:6.8.4]
	at org.elasticsearch.node.Node.<init>(Node.java:266) ~[elasticsearch-6.8.4.jar:6.8.4]
	at org.elasticsearch.bootstrap.Bootstrap$5.<init>(Bootstrap.java:212) ~[elasticsearch-6.8.4.jar:6.8.4]
	at org.elasticsearch.bootstrap.Bootstrap.setup(Bootstrap.java:212) ~[elasticsearch-6.8.4.jar:6.8.4]
	at org.elasticsearch.bootstrap.Bootstrap.init(Bootstrap.java:333) [elasticsearch-6.8.4.jar:6.8.4]
	at org.elasticsearch.bootstrap.Elasticsearch.init(Elasticsearch.java:159) [elasticsearch-6.8.4.jar:6.8.4]
	at org.elasticsearch.bootstrap.Elasticsearch.execute(Elasticsearch.java:150) [elasticsearch-6.8.4.jar:6.8.4]
	at org.elasticsearch.cli.EnvironmentAwareCommand.execute(EnvironmentAwareCommand.java:86) [elasticsearch-6.8.4.jar:6.8.4]
	at org.elasticsearch.cli.Command.mainWithoutErrorHandling(Command.java:124) [elasticsearch-cli-6.8.4.jar:6.8.4]
	at org.elasticsearch.cli.Command.main(Command.java:90) [elasticsearch-cli-6.8.4.jar:6.8.4]
	at org.elasticsearch.bootstrap.Elasticsearch.main(Elasticsearch.java:116) [elasticsearch-6.8.4.jar:6.8.4]
	at org.elasticsearch.bootstrap.Elasticsearch.main(Elasticsearch.java:93) [elasticsearch-6.8.4.jar:6.8.4]
2020.04.30 12:33:48 WARN  es[][o.e.b.ElasticsearchUncaughtExceptionHandler] uncaught exception in thread [main]
org.elasticsearch.bootstrap.StartupException: java.lang.IllegalStateException: failed to obtain node locks, tried [[C:\sonarqube-de\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.bootstrap.Elasticsearch.init(Elasticsearch.java:163) ~[elasticsearch-6.8.4.jar:6.8.4]
	at org.elasticsearch.bootstrap.Elasticsearch.execute(Elasticsearch.java:150) ~[elasticsearch-6.8.4.jar:6.8.4]
	at org.elasticsearch.cli.EnvironmentAwareCommand.execute(EnvironmentAwareCommand.java:86) ~[elasticsearch-6.8.4.jar:6.8.4]
	at org.elasticsearch.cli.Command.mainWithoutErrorHandling(Command.java:124) ~[elasticsearch-cli-6.8.4.jar:6.8.4]
	at org.elasticsearch.cli.Command.main(Command.java:90) ~[elasticsearch-cli-6.8.4.jar:6.8.4]
	at org.elasticsearch.bootstrap.Elasticsearch.main(Elasticsearch.java:116) ~[elasticsearch-6.8.4.jar:6.8.4]
	at org.elasticsearch.bootstrap.Elasticsearch.main(Elasticsearch.java:93) ~[elasticsearch-6.8.4.jar:6.8.4]
Caused by: java.lang.IllegalStateException: failed to obtain node locks, tried [[C:\sonarqube-de\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.<init>(NodeEnvironment.java:300) ~[elasticsearch-6.8.4.jar:6.8.4]
	at org.elasticsearch.node.Node.<init>(Node.java:296) ~[elasticsearch-6.8.4.jar:6.8.4]
	at org.elasticsearch.node.Node.<init>(Node.java:266) ~[elasticsearch-6.8.4.jar:6.8.4]
	at org.elasticsearch.bootstrap.Bootstrap$5.<init>(Bootstrap.java:212) ~[elasticsearch-6.8.4.jar:6.8.4]
	at org.elasticsearch.bootstrap.Bootstrap.setup(Bootstrap.java:212) ~[elasticsearch-6.8.4.jar:6.8.4]
	at org.elasticsearch.bootstrap.Bootstrap.init(Bootstrap.java:333) ~[elasticsearch-6.8.4.jar:6.8.4]
	at org.elasticsearch.bootstrap.Elasticsearch.init(Elasticsearch.java:159) ~[elasticsearch-6.8.4.jar:6.8.4]
	... 6 more
2020.04.30 12:33:59 INFO  es[][o.e.g.GatewayService] recovered [7] indices into cluster_state
2020.04.30 12:34:08 INFO  es[][o.e.c.r.a.AllocationService] Cluster health status changed from [RED] to [GREEN] (reason: [shards started [[metadatas][0]] ...]).
2020.04.30 12:34:48 INFO  es[][o.e.e.NodeEnvironment] using [1] data paths, mounts [[(C:)]], net usable_space [34.2gb], net total_space [126.9gb], types [NTFS]
2020.04.30 12:34:48 INFO  es[][o.e.e.NodeEnvironment] heap size [495.3mb], compressed ordinary object pointers [true]
2020.04.30 12:34:48 INFO  es[][o.e.n.Node] node name [sonarqube], node ID [NuC74lTDR4ugfNPlt5wd-A]
2020.04.30 12:34:48 INFO  es[][o.e.n.Node] version[6.8.4], pid[9444], build[unknown/unknown/bca0c8d/2019-10-16T06:19:49.319352Z], OS[Windows Server 2016/10.0/amd64], JVM[Oracle Corporation/OpenJDK 64-Bit Server VM/13.0.2/13.0.2+8]
2020.04.30 12:34:48 INFO  es[][o.e.n.Node] JVM arguments [-XX:+UseConcMarkSweepGC, -XX:CMSInitiatingOccupancyFraction=75, -XX:+UseCMSInitiatingOccupancyOnly, -Des.networkaddress.cache.ttl=60, -Des.networkaddress.cache.negative.ttl=10, -XX:+AlwaysPreTouch, -Xss1m, -Djava.awt.headless=true, -Dfile.encoding=UTF-8, -Djna.nosys=true, -XX:-OmitStackTraceInFastThrow, -Dio.netty.noUnsafe=true, -Dio.netty.noKeySetOptimization=true, -Dio.netty.recycler.maxCapacityPerThread=0, -Dlog4j.shutdownHookEnabled=false, -Dlog4j2.disable.jmx=true, -Djava.io.tmpdir=C:\sonarqube-de\temp, -XX:ErrorFile=../logs/es_hs_err_pid%p.log, -Xmx512m, -Xms512m, -XX:+HeapDumpOnOutOfMemoryError, -Dbootstrap.system_call_filter=false, -Delasticsearch, -Des.path.home=C:\sonarqube-de\elasticsearch, -Des.path.conf=C:\sonarqube-de\temp\conf\es]
2020.04.30 12:34:49 INFO  es[][o.e.p.PluginsService] loaded module [analysis-common]
2020.04.30 12:34:49 INFO  es[][o.e.p.PluginsService] loaded module [lang-painless]
2020.04.30 12:34:49 INFO  es[][o.e.p.PluginsService] loaded module [mapper-extras]
2020.04.30 12:34:49 INFO  es[][o.e.p.PluginsService] loaded module [parent-join]
2020.04.30 12:34:49 INFO  es[][o.e.p.PluginsService] loaded module [percolator]
2020.04.30 12:34:49 INFO  es[][o.e.p.PluginsService] loaded module [reindex]
2020.04.30 12:34:49 INFO  es[][o.e.p.PluginsService] loaded module [repository-url]
2020.04.30 12:34:49 INFO  es[][o.e.p.PluginsService] loaded module [transport-netty4]
2020.04.30 12:34:49 INFO  es[][o.e.p.PluginsService] no plugins loaded
2020.04.30 12:34:53 WARN  es[][o.e.d.c.s.Settings] [http.enabled] setting was deprecated in Elasticsearch and will be removed in a future release! See the breaking changes documentation for the next major version.
2020.04.30 12:34:56 INFO  es[][o.e.d.DiscoveryModule] using discovery type [zen] and host providers [settings]
2020.04.30 12:34:57 INFO  es[][o.e.n.Node] initialized
2020.04.30 12:34:57 INFO  es[][o.e.n.Node] starting ...
2020.04.30 12:34:58 INFO  es[][o.e.t.TransportService] publish_address {127.0.0.1:9001}, bound_addresses {127.0.0.1:9001}
2020.04.30 12:35:01 INFO  es[][o.e.c.s.MasterService] zen-disco-elected-as-master ([0] nodes joined), reason: new_master {sonarqube}{NuC74lTDR4ugfNPlt5wd-A}{-S2NfD8qTbW5PI9nHhzw1A}{127.0.0.1}{127.0.0.1:9001}{rack_id=sonarqube}
2020.04.30 12:35:01 INFO  es[][o.e.c.s.ClusterApplierService] new_master {sonarqube}{NuC74lTDR4ugfNPlt5wd-A}{-S2NfD8qTbW5PI9nHhzw1A}{127.0.0.1}{127.0.0.1:9001}{rack_id=sonarqube}, reason: apply cluster state (from master [master {sonarqube}{NuC74lTDR4ugfNPlt5wd-A}{-S2NfD8qTbW5PI9nHhzw1A}{127.0.0.1}{127.0.0.1:9001}{rack_id=sonarqube} committed version [1] source [zen-disco-elected-as-master ([0] nodes joined)]])
2020.04.30 12:35:01 INFO  es[][o.e.n.Node] started
2020.04.30 12:35:02 INFO  es[][o.e.g.GatewayService] recovered [7] indices into cluster_state
2020.04.30 12:35:06 INFO  es[][o.e.c.r.a.AllocationService] Cluster health status changed from [RED] to [GREEN] (reason: [shards started [[metadatas][0]] ...]).

I downloaded and unzipped a fresh copy of SonarQube, and this works fine.
Let me know if you need any more info.

Thanks,
James

Hi Joshua,
As you suggested i shared logs, can you help me on SonarQube setup.

Hi James,

Is it resolved for you ?

hey hey!

Thanks for sending that in. I got a chance to look at the logs, and saw this bit.

2020.04.30 12:33:48 ERROR es[][o.e.b.Bootstrap] Exception
java.lang.IllegalStateException: failed to obtain node locks, tried [[C:\sonarqube-de\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.<init>(NodeEnvironment.java:300) ~[elasticsearch-6.8.4.jar:6.8.4]

This can be caused by file permissions or by multiple ES instances running and trying to access the same location. Can you check the permissions for the directory in the log and make sure it’s writable? Also, can you check to see if there are any orphaned ES processes on your server? Let me know what you find.