Error message: Compute Engine Task is failing with error - Analysis in error cannot have measures

  • SonarQube version
  • how is SonarQube deployed: zip

Some compute engine tasks are failing with the following error:

2024.04.21 20:15:43 INFO  ce[][o.s.c.t.CeWorkerImpl] Execute task | | type=REPORT | pullRequest=222 | id=AY8CTKTFsE5T5xWXQ56_ | submitter=backend
2024.04.21 20:15:43 INFO  ce[AY8CTKTFsE5T5xWXQ56_][o.s.c.t.s.ComputationStepExecutor] Extract report | status=SUCCESS | time=52ms
2024.04.21 20:15:43 INFO  ce[AY8CTKTFsE5T5xWXQ56_][o.s.c.t.s.ComputationStepExecutor] Persist scanner context | status=SUCCESS | time=7ms
2024.04.21 20:15:43 INFO  ce[AY8CTKTFsE5T5xWXQ56_][o.s.c.t.s.ComputationStepExecutor] Propagate analysis warnings from scanner report | status=SUCCESS | time=4ms
2024.04.21 20:15:43 INFO  ce[AY8CTKTFsE5T5xWXQ56_][o.s.c.t.s.ComputationStepExecutor] Generate analysis UUID | status=SUCCESS | time=0ms
2024.04.21 20:15:43 INFO  ce[AY8CTKTFsE5T5xWXQ56_][o.s.c.t.s.ComputationStepExecutor] Load analysis metadata | status=SUCCESS | time=5ms
2024.04.21 20:15:43 INFO  ce[AY8CTKTFsE5T5xWXQ56_][o.s.c.t.s.ComputationStepExecutor] Initialize | status=SUCCESS | time=10ms
2024.04.21 20:15:43 INFO  ce[AY8CTKTFsE5T5xWXQ56_][o.s.c.t.s.ComputationStepExecutor] Build tree of components | components=6 | status=SUCCESS | time=22ms
2024.04.21 20:15:43 INFO  ce[AY8CTKTFsE5T5xWXQ56_][o.s.c.t.s.ComputationStepExecutor] Validate project | status=FAILED | time=5ms
2024.04.21 20:15:43 INFO  ce[AY8CTKTFsE5T5xWXQ56_][o.s.c.t.p.a.p.PostProjectAnalysisTasksExecutor] Webhooks | globalWebhooks=0 | projectWebhooks=0 | status=SUCCESS | time=4ms
2024.04.21 20:15:45 ERROR ce[AY8CTKTFsE5T5xWXQ56_][o.s.c.t.p.a.p.PostProjectAnalysisTasksExecutor] Execution of task class com.sonarsource.F.D.d failed
java.lang.IllegalStateException: Analysis in error cannot have measures
	at com.sonarsource.F.D.G.C.A$1.B(Unknown Source)
	at com.sonarsource.F.D.G.C.B.A(Unknown Source)
	at com.sonarsource.F.D.G.O.A(Unknown Source)
	at com.sonarsource.F.D.G.O.B(Unknown Source)
	at java.base/java.util.Optional.ifPresent(
	at com.sonarsource.F.D.G.O.A(Unknown Source)
	at com.sonarsource.F.D.G.I.A(Unknown Source)
	at java.base/java.util.Spliterators$ArraySpliterator.forEachRemaining(
	at java.base/$Head.forEach(
	at com.sonarsource.F.D.G.I.A(Unknown Source)
	at com.sonarsource.F.D.d.A(Unknown Source)
	at java.base/java.util.Optional.ifPresent(
	at com.sonarsource.F.D.d.A(Unknown Source)
	at com.sonarsource.F.D.d.B(Unknown Source)
	at org.sonar.ce.async.SynchronousAsyncExecution.addToQueue(
	at com.sonarsource.F.D.d.A(Unknown Source)
	at java.base/java.util.Optional.ifPresent(
	at com.sonarsource.F.D.d.finished(Unknown Source)
	at org.sonar.ce.task.projectanalysis.api.posttask.PostProjectAnalysisTasksExecutor.executeTask(
	at org.sonar.ce.task.projectanalysis.api.posttask.PostProjectAnalysisTasksExecutor.finished(
	at org.sonar.ce.task.step.ComputationStepExecutor.executeListener(
	at org.sonar.ce.task.step.ComputationStepExecutor.execute(
	at org.sonar.ce.task.projectanalysis.taskprocessor.ReportTaskProcessor.process(
	at org.sonar.ce.taskprocessor.CeWorkerImpl$ExecuteTask.executeTask(
	at org.sonar.ce.taskprocessor.CeWorkerImpl$
	at org.sonar.ce.taskprocessor.CeWorkerImpl.findAndProcessTask(
	at org.sonar.ce.taskprocessor.CeWorkerImpl$TrackRunningState.get(
	at java.base/java.util.concurrent.Executors$
	at java.base/
	at java.base/java.util.concurrent.ScheduledThreadPoolExecutor$
	at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(
	at java.base/java.util.concurrent.ThreadPoolExecutor$
	at java.base/
2024.04.21 20:15:45 INFO  ce[AY8CTKTFsE5T5xWXQ56_][o.s.c.t.p.a.p.PostProjectAnalysisTasksExecutor] Pull Request decoration | status=FAILED | time=1684ms
2024.04.21 20:15:45 INFO  ce[AY8CTKTFsE5T5xWXQ56_][o.s.c.t.p.a.p.PostProjectAnalysisTasksExecutor] Report branch Quality Gate status to devops platforms | status=SUCCESS | time=0ms
2024.04.21 20:15:45 INFO  ce[AY8CTKTFsE5T5xWXQ56_][o.s.c.t.CeWorkerImpl] Executed task | | type=REPORT | pullRequest=222 | id=AY8CTKTFsE5T5xWXQ56_ | submitter=backend | status=FAILED | time=1847ms

Not sure what it means and how I can resolve this.

Hey there.

That’s a tricky one. Do you have any community supported plugins installed on your SonarQube server? If so, could you list them here?


I haven’t installed any plugins on my sonarqube server. I check inside the <sonarqubeHome>/extensions/plugins directory and it is empty.

Thanks. I don’t have a clue how to debug this (and I’ve never seen this error message before)

In the meantime, I think you can get past this error if you disable the summary comment for affected projects (project-level Project Settings > General Settings > DevOps Platform Integration > Enable analysis summary under the GitHub Conversation tab

What does “Enable analysis summary under the GitHub Conversation tab” actually do? The description states
. When enabled, a summary is displayed under the GitHub Conversation tab. Notifications may be sent by GitHub depending on your settings.
There’s a comment under my Github PR as shown in the image, if I disable the analysis summary will it impact the comment left on the PR?

Yes, it will disable the comment. You’ll still receive the PR status check, though.

1 Like