Background task failure

Background task is failing, i have free up disk and i have restrarted server still the background is failing, can someone please look the logs and tell me what is the issue.

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)

Welcome to the community forum! Does this happen for all projects, or only one specifically?

Thanks for your reply, it is happening for all projects

Ok, please give us a bit more logs from ce.log. Is there any caused by statements?

Hi Team,

Please find the attached ce.log file, I am using scanner process from Jenkins and from scanner from local system both are getting same issue, can you please check into it.

Thanks & Regards,

Rakesh Reddy M.

image001.jpg

ce.log (42.8 KB)

Thanks for the fast reply. In the log, we can see this line:

2020.11.17 20:08:50 ERROR ce[][o.s.s.es.BulkIndexer] index [projectmeasures], type [auth], id [AXXFXCgSRM_uIcmAg79p], message [ClusterBlockException[blocked by: [FORBIDDEN/12/index read-only / allow delete (api)];]]

That means that the elasticsearch index have been locked in read-only mode, and SonarQube can’t write anymore. That means you reached 95% used disk space on where the /data/ folder is located. Please increase the available free disk space, and restart SonarQube. The elasticsearch will be switched back to read-write during startup.

Hi Team,

Thanks for your reply, Can someone please suggest me how to free up disk space in /data/ folder in sonarqube server.

Thanks & Regards,

Rakesh Reddy M

image001.jpg

++ I have installed sonarqube server in Linux machine, please suggest me how to freeup space.

image001.jpg

Well first you have to figure out on which hard drive disk is located the sonarqube/data folder.

Something like df -h may help you to see if the /data folder is located on a particular drive, and what is the remaining space for that disk. Then i suggest you to have a look at this kind of page to guide you.

Hi Team,

My sonar.mv.db size is around 800mb and disk space is filled with 95%, so i need to remove anything from the file or i need to increases the disk space , i am attaching the Screenshot please check.

Thanks,
Rakesh.

Hi, yes you need to free some space, or increase the disk size.