We are using Sonarqube 9.5 (56709) developer edition. The problem appeared after upgrade from 9.1 (it could be related, idk).
There are no ‘caused by’ lines at the date of problem (sonarqube logs)
Only ‘caused by’ lines at the date of upgrade :
java.lang.IllegalStateException: failed to obtain node locks, tried [[/opt/sonarqube/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])?
org.elasticsearch.bootstrap.StartupException: java.lang.IllegalStateException: failed to obtain node locks, tried [[/opt/sonarqube/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])?
Caused by: java.lang.IllegalStateException: failed to obtain node locks, tried [[/opt/sonarqube/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])?
Thanks for the logging. I appreciate your effort to compress the repeated data, but it really would be nice to have the full, unedited file (with only names/paths redacted as necessary).
Since you’ve edited, I need to ask more questions:
15:37:33.079 DEBUG: Native git blame failed. Falling back to jgit: folder/src/file.kt
java.lang.IllegalStateException: Command execution exited with code: 128
at org.sonar.scm.git.ProcessWrapperFactory$ProcessWrapper.execute(ProcessWrapperFactory.java:77)
at org.sonar.scm.git.GitBlameCommand.blame(GitBlameCommand.java:122)
at org.sonar.scm.git.CompositeBlameCommand.blame(CompositeBlameCommand.java:123)
at org.sonar.scm.git.CompositeBlameCommand.lambda$blame$0(CompositeBlameCommand.java:83)
at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:515)
at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
at java.base/java.lang.Thread.run(Thread.java:829)
15:37:33.079 DEBUG: Native git blame failed. Falling back to jgit: folder/src/other-file.kt
java.lang.IllegalStateException: Command execution exited with code: 128
at org.sonar.scm.git.ProcessWrapperFactory$ProcessWrapper.execute(ProcessWrapperFactory.java:77)
at org.sonar.scm.git.GitBlameCommand.blame(GitBlameCommand.java:122)
at org.sonar.scm.git.CompositeBlameCommand.blame(CompositeBlameCommand.java:123)
at org.sonar.scm.git.CompositeBlameCommand.lambda$blame$0(CompositeBlameCommand.java:83)
at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:515)
at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
at java.base/java.lang.Thread.run(Thread.java:829)
15:37:33.079 DEBUG: Native git blame failed. Falling back to jgit: folder/src/other-file.kt
java.lang.IllegalStateException: Command execution exited with code: 128
at org.sonar.scm.git.ProcessWrapperFactory$ProcessWrapper.execute(ProcessWrapperFactory.java:77)
at org.sonar.scm.git.GitBlameCommand.blame(GitBlameCommand.java:122)
at org.sonar.scm.git.CompositeBlameCommand.blame(CompositeBlameCommand.java:123)
at org.sonar.scm.git.CompositeBlameCommand.lambda$blame$0(CompositeBlameCommand.java:83)
at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:515)
at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
at java.base/java.lang.Thread.run(Thread.java:829)
15:37:33.079 DEBUG: Native git blame failed. Falling back to jgit: folder/src/other-file.kt
java.lang.IllegalStateException: Command execution exited with code: 128
at org.sonar.scm.git.ProcessWrapperFactory$ProcessWrapper.execute(ProcessWrapperFactory.java:77)
at org.sonar.scm.git.GitBlameCommand.blame(GitBlameCommand.java:122)
at org.sonar.scm.git.CompositeBlameCommand.blame(CompositeBlameCommand.java:123)
at org.sonar.scm.git.CompositeBlameCommand.lambda$blame$0(CompositeBlameCommand.java:83)
at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:515)
at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
at java.base/java.lang.Thread.run(Thread.java:829)
Does this represent errors on 4 different files? 2 files? (Some other count?)
16:00:10.550 INFO: 4/11 source files have been analyzed
[.. same]
16:18:10.571 INFO: 4/11 source files have been analyzed
Task was aborted else it goes until timeout (more than 2 hour)
Is the implications that the error set repeats over & over until you give up and quit the job?
If it only happens on 2 projects, it is likely they have at least something that distinguishes them from the others. Is there anything that sets these 2 projects apart? If they have no symlinks, do they have Git submodules? Or something else? It just seems like it’s entering an infinite loop (hence my question about symlinks; but perhaps it’s something else).