java.lang.IllegalStateException: failed to obtain node locks, tried [[C:\sonarqube-developer-9.1.0.4

–SonarQube Developer Edition
Java version using “13.0.2” but I installed both 11 and 13

wrapper.java.command=C:/Program Files/Java/jdk-13.0.2/bin/java

I am new to sonarqube kindly help me to solve

C:\sonarqube-developer-9.1.0.47736\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 | 2022.05.09 08:40:31 INFO app[][o.s.a.AppFileSystem] Cleaning or creating temp directory C:\sonarqube-developer-9.1.0.47736\temp
jvm 1 | 2022.05.09 08:40:31 INFO app[][o.s.a.es.EsSettings] Elasticsearch listening on [HTTP: 127.0.0.1:9001, TCP: 127.0.0.1:50036]
jvm 1 | 2022.05.09 08:40:31 INFO app[][o.s.a.ProcessLauncherImpl] Launch process[[key='es', ipcIndex=1, logFilenamePrefix=es]] from [C:\sonarqube-developer-9.1.0.47736\elasticsearch]: C:\Program Files\Java\jdk-13.0.2\bin\java -XX:+UseG1GC -Djava.io.tmpdir=C:\sonarqube-developer-9.1.0.47736\temp -XX:ErrorFile=../logs/es_hs_err_pid%p.log -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 -Dio.netty.allocator.numDirectArenas=0 -Dlog4j.shutdownHookEnabled=false -Dlog4j2.disable.jmx=true -Djava.locale.providers=COMPAT -Des.enforce.bootstrap.checks=true -Xmx512m -Xms512m -XX:MaxDirectMemorySize=256m -XX:+HeapDumpOnOutOfMemoryError -Delasticsearch -Des.path.home=C:\sonarqube-developer-9.1.0.47736\elasticsearch -Des.path.conf=C:\sonarqube-developer-9.1.0.47736\temp\conf\es -cp lib/* org.elasticsearch.bootstrap.Elasticsearch
jvm 1 | 2022.05.09 08:40:32 INFO app[][o.s.a.SchedulerImpl] Waiting for Elasticsearch to be up and running
jvm 1 | 2022.05.09 08:40:33 INFO app[][o.s.a.SchedulerImpl] Process[es] is up
jvm 1 | 2022.05.09 08:40:33 INFO app[][o.s.a.ProcessLauncherImpl] Launch process[[key='web', ipcIndex=2, logFilenamePrefix=web]] from [C:\sonarqube-developer-9.1.0.47736]: C:\Program Files\Java\jdk-13.0.2\bin\java -Djava.awt.headless=true -Dfile.encoding=UTF-8 -Djava.io.tmpdir=C:\sonarqube-developer-9.1.0.47736\temp -XX:-OmitStackTraceInFastThrow --add-opens=java.base/java.util=ALL-UNNAMED --add-opens=java.base/java.lang=ALL-UNNAMED --add-opens=java.base/java.io=ALL-UNNAMED --add-opens=java.rmi/sun.rmi.transport=ALL-UNNAMED --add-exports=java.base/jdk.internal.ref=ALL-UNNAMED --add-opens=java.base/java.nio=ALL-UNNAMED --add-opens=java.base/sun.nio.ch=ALL-UNNAMED --add-opens=java.management/sun.management=ALL-UNNAMED --add-opens=jdk.management/com.sun.management.internal=ALL-UNNAMED -Xmx512m -Xms128m -XX:+HeapDumpOnOutOfMemoryError -Dhttp.nonProxyHosts=localhost|127.*|[::1] -cp ./lib/sonar-application-9.1.0.47736.jar;C:\sonarqube-developer-9.1.0.47736\lib\jdbc\mssql\mssql-jdbc-9.2.0.jre11.jar org.sonar.server.app.WebServer C:\sonarqube-developer-9.1.0.47736\temp\sq-process8655800982979091145properties
jvm 1 | uncaught exception in thread [main]
jvm 1 | java.lang.IllegalStateException: failed to obtain node locks, tried [[C:\sonarqube-developer-9.1.0.47736\data\es7]] with lock id [0]; maybe these locations are not writable or multiple nodes were started without increasing [node.max_local_storage_nodes] (was [1])?
jvm 1 | at org.elasticsearch.env.NodeEnvironment.<init>(NodeEnvironment.java:292)
jvm 1 | at org.elasticsearch.node.Node.<init>(Node.java:376)
jvm 1 | at org.elasticsearch.node.Node.<init>(Node.java:281)
jvm 1 | at org.elasticsearch.bootstrap.Bootstrap$5.<init>(Bootstrap.java:219)
jvm 1 | at org.elasticsearch.bootstrap.Bootstrap.setup(Bootstrap.java:219)
jvm 1 | at org.elasticsearch.bootstrap.Bootstrap.init(Bootstrap.java:399)
jvm 1 | at org.elasticsearch.bootstrap.Elasticsearch.init(Elasticsearch.java:159)
jvm 1 | at org.elasticsearch.bootstrap.Elasticsearch.execute(Elasticsearch.java:150)
jvm 1 | at org.elasticsearch.cli.EnvironmentAwareCommand.execute(EnvironmentAwareCommand.java:75)
jvm 1 | at org.elasticsearch.cli.Command.mainWithoutErrorHandling(Command.java:116)
jvm 1 | at org.elasticsearch.cli.Command.main(Command.java:79)
jvm 1 | at org.elasticsearch.bootstrap.Elasticsearch.main(Elasticsearch.java:115)
jvm 1 | at org.elasticsearch.bootstrap.Elasticsearch.main(Elasticsearch.java:81)
jvm 1 | For complete error details, refer to the log at C:\sonarqube-developer-9.1.0.47736\logs\sonarqube.log
jvm 1 | 2022.05.09 08:40:38 WARN app[][o.s.a.p.AbstractManagedProcess] Process exited with exit value [es]: 1
jvm 1 | 2022.05.09 08:40:38 INFO app[][o.s.a.SchedulerImpl] Process[es] is stopped
jvm 1 | 2022.05.09 08:40:46 INFO app[][o.s.a.SchedulerImpl] Process[web] is stopped
jvm 1 | 2022.05.09 08:40:46 INFO app[][o.s.a.SchedulerImpl] SonarQube is stopped
wrapper | <-- Wrapper Stopped

Hi,

Welcome to the community!

There will be more detail in your server logs

 
HTH,
Ann

Hi Ann,
I tried with the solutions but getting same error

Hi,

I don’t know what this means. What do you see in your server logs?

 
Ann