Background Task and Error

I am using Sonarqube 8.4 and SonarScanner’s log shows EXECUTION SUCCESS
but in GUI there is an Error that status is failed
.

Error Details

java.lang.IllegalStateException: Unrecoverable indexation failures: 1 errors among 1 requests
	at org.sonar.server.es.IndexingListener$1.onFinish(IndexingListener.java:39)
	at org.sonar.server.es.BulkIndexer.stop(BulkIndexer.java:122)
	at org.sonar.server.measure.index.ProjectMeasuresIndexer.doIndex(ProjectMeasuresIndexer.java:158)
	at org.sonar.server.measure.index.ProjectMeasuresIndexer.indexOnAnalysis(ProjectMeasuresIndexer.java:83)
	at org.sonar.ce.task.projectanalysis.step.IndexAnalysisStep.execute(IndexAnalysisStep.java:45)
	at org.sonar.ce.task.step.ComputationStepExecutor.executeStep(ComputationStepExecutor.java:81)
	at org.sonar.ce.task.step.ComputationStepExecutor.executeSteps(ComputationStepExecutor.java:72)
	at org.sonar.ce.task.step.ComputationStepExecutor.execute(ComputationStepExecutor.java:59)
	at org.sonar.ce.task.projectanalysis.taskprocessor.ReportTaskProcessor.process(ReportTaskProcessor.java:81)
	at org.sonar.ce.taskprocessor.CeWorkerImpl$ExecuteTask.executeTask(CeWorkerImpl.java:235)
	at org.sonar.ce.taskprocessor.CeWorkerImpl$ExecuteTask.run(CeWorkerImpl.java:217)
	at org.sonar.ce.taskprocessor.CeWorkerImpl.findAndProcessTask(CeWorkerImpl.java:162)
	at org.sonar.ce.taskprocessor.CeWorkerImpl$TrackRunningState.get(CeWorkerImpl.java:137)
	at org.sonar.ce.taskprocessor.CeWorkerImpl.call(CeWorkerImpl.java:89)
	at org.sonar.ce.taskprocessor.CeWorkerImpl.call(CeWorkerImpl.java:53)
	at com.google.common.util.concurrent.TrustedListenableFutureTask$TrustedFutureInterruptibleTask.runInterruptibly(TrustedListenableFutureTask.java:125)
	at com.google.common.util.concurrent.InterruptibleTask.run(InterruptibleTask.java:69)
	at com.google.common.util.concurrent.TrustedListenableFutureTask.run(TrustedListenableFutureTask.java:78)
	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.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:304)
	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:834)

How to fix it?
Thanks

Hi, is there anything else in the stacktrace bellow ? There is no “caused by” here.

The most common issue for indexation issues is a “no space left on device” error. After resolving the root cause of the issue, you can simply re-analyse your project.

1 Like

Hi @pierreguillot
I free space about 50G and re-analysis it but again same error.
How to figure out how much space is needed?
what is meaning of the Final Memory: 7M/40M in the sonar-scanner analysis ?

Please share with us more logs. web.log and es.log may contain the message explaining the issue.

1 Like

Thanks @pierreguillot
just web, access and ce logs were created for last project so “es.log” was not:
The web log is :
web.log (137.6 KB)

The logs indicate that your disk space is full. You have reach the 95% watermark, and elasticsearch indexes have switched to read-only. Free some space for /data/es6/, and restart SonarQube

1 Like

I am working in windows and sonarqube is located in C drive . I freed space and now it has 50 G free space. Is not 50 G enough? but my RAM is lower than 2G and if I add RAM my license will be disabled :frowning:

Low RAM can be resulted to this error?

It should definitely be enough :slight_smile:

a Licence is valid for a serverId, which is based on the jdbc URL & the dataset. As long as you keep the DB and the jdbc URL, you can change any hardware you want!

No, only disk space.

Now that you freed some space, please wipe out your sonarqube logs folder, start again, and if it fails upload here all the logs :slight_smile:

2 Likes

Yes, I implemented the offer and finally got the report correctly. I wish I had restarted from the beginning. :slight_smile:

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.