I have executed SonarQube analysis on my project using the sonar-scanner
command with the below configuration.
js1//sonar-project.properties 2 3sonar.projectKey=Demo 4sonar.projectName=Demo 5sonar.projectVersion=1.0 6sonar.sources=src 7sonar.exclusions=**/__tests__/**/*, **/.next/**/* 8sonar.javascript.lcov.reportPaths=coverage/lcov-report/*.lcov 9sonar.host.url=http://localhost:9000 10sonar.token=my_token
The terminal output indicated a successful execution, but in the SonarQube portal shows a message
The last analysis has failed. See details
It shows background analysis failed. Below is the error message displayed. Earlier it is working but, in recent times i am facing this issue but nothing changed in my computer. How can I fix this issue?
Error Details
java1java.lang.IllegalStateException: Unrecoverable indexation failures: 1 errors among 1 requests. Check Elasticsearch logs for further details. 2 at org.sonar.server.es.IndexingListener$1.onFinish(IndexingListener.java:42) 3 at org.sonar.server.es.BulkIndexer.stop(BulkIndexer.java:131) 4 at org.sonar.server.measure.index.ProjectMeasuresIndexer.doIndex(ProjectMeasuresIndexer.java:162) 5 at org.sonar.server.measure.index.ProjectMeasuresIndexer.indexOnAnalysis(ProjectMeasuresIndexer.java:91) 6 at org.sonar.ce.task.projectanalysis.step.IndexAnalysisStep.lambda$getProjectIndexerConsumer$1(IndexAnalysisStep.java:63) 7 at org.sonar.ce.task.projectanalysis.step.IndexAnalysisStep.execute(IndexAnalysisStep.java:55) 8 at org.sonar.ce.task.step.ComputationStepExecutor.executeStep(ComputationStepExecutor.java:79) 9 at org.sonar.ce.task.step.ComputationStepExecutor.executeSteps(ComputationStepExecutor.java:70) 10 at org.sonar.ce.task.step.ComputationStepExecutor.execute(ComputationStepExecutor.java:57) 11 at org.sonar.ce.task.projectanalysis.taskprocessor.ReportTaskProcessor.process(ReportTaskProcessor.java:75) 12 at org.sonar.ce.taskprocessor.CeWorkerImpl$ExecuteTask.executeTask(CeWorkerImpl.java:212) 13 at org.sonar.ce.taskprocessor.CeWorkerImpl$ExecuteTask.run(CeWorkerImpl.java:194) 14 at org.sonar.ce.taskprocessor.CeWorkerImpl.findAndProcessTask(CeWorkerImpl.java:160) 15 at org.sonar.ce.taskprocessor.CeWorkerImpl$TrackRunningState.get(CeWorkerImpl.java:135) 16 at org.sonar.ce.taskprocessor.CeWorkerImpl.call(CeWorkerImpl.java:87) 17 at org.sonar.ce.taskprocessor.CeWorkerImpl.call(CeWorkerImpl.java:53) 18 at com.google.common.util.concurrent.TrustedListenableFutureTask$TrustedFutureInterruptibleTask.runInterruptibly(TrustedListenableFutureTask.java:131) 19 at com.google.common.util.concurrent.InterruptibleTask.run(InterruptibleTask.java:74) 20 at com.google.common.util.concurrent.TrustedListenableFutureTask.run(TrustedListenableFutureTask.java:82) 21 at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:539) 22 at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264) 23 at java.base/java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:304) 24 at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136) 25 at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635) 26 at java.base/java.lang.Thread.run(Thread.java:833)
I encountered the same issue, and I resolved it by freeing up additional disk space. try to main atleast 30 GB