Failed background task since upgrade to 8.2

Hello all,
Today I upgraded our SonarQube Server from 8.1 Dev to 8.2 Dev. Since then I am facing issues with failed background tasks I cannot get rid of.

For example, there are two pull requests that were analysed successfully yesterday with 8.1 but ran into the following error with the new version 8.2.

Error Details
org.sonar.ce.task.projectanalysis.component.VisitException: Visit failed for Component {key=lmda:LMDA:PULL_REQUEST:2352,type=DIRECTORY}  located lmda:PULL_REQUEST:2352(type=PROJECT)
	at org.sonar.ce.task.projectanalysis.component.VisitException.rethrowOrWrap(
	at org.sonar.ce.task.projectanalysis.component.PathAwareCrawler.visit(
	at org.sonar.ce.task.projectanalysis.component.PathAwareCrawler.visitChildren(
	at org.sonar.ce.task.projectanalysis.component.PathAwareCrawler.visitImpl(
	at org.sonar.ce.task.projectanalysis.component.PathAwareCrawler.visit(
	at org.sonar.ce.task.projectanalysis.step.PersistComponentsStep.execute(
	at org.sonar.ce.task.step.ComputationStepExecutor.executeStep(
	at org.sonar.ce.task.step.ComputationStepExecutor.executeSteps(
	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/
Caused by: java.lang.IllegalArgumentException: Component name can't be empty
	at org.sonar.db.component.ComponentValidator.checkComponentName(
	at org.sonar.db.component.ComponentDto.setName(
	at org.sonar.ce.task.projectanalysis.step.PersistComponentsStep$PersistComponentStepsVisitor.createForDirectory(
	at org.sonar.ce.task.projectanalysis.step.PersistComponentsStep$PersistComponentStepsVisitor.visitDirectory(
	at org.sonar.ce.task.projectanalysis.component.PathAwareCrawler.visitNode(
	at org.sonar.ce.task.projectanalysis.component.PathAwareCrawler.visitImpl(
	at org.sonar.ce.task.projectanalysis.component.PathAwareCrawler.visit(
	... 23 more

In the background we use a Postgre SQL DB 9.6. I already reindexed the database without any change to the analysis of the pull requests.
We use Azure DevOps in combination with SonarQube. In the Azure Pipeline, the Publish Quality Gate Results step throws the above mentioned error, not the Code Analsys.

It looks like the problem is related with the structure of the project being analyzed. If it affects pull requests, it probably doesn’t depend on what’s in the DB.
Could you please post the logs of the code analysis, preferably with debug enabled?

Hi @dmeneses,

After additional google searches I found this discussion. The proposed solution was to exclude the source files of the failing pull request from the sonarqube analysis. This solved the issue. The failed pull requests completed successfully. I included the source files afterwards.

I hope this issue is just a random hick up and does not reoccur with other pull request touching the same source files.

Ok, thanks for the update. Please report back if you continue to see the problem.

See SonarQube 8.2 Failed Background for the solution