SonarQubePublish Task Getting TimeOut

Hi,

We are using Azure DevOps with SonarQube Tasks.

SonarQube Server is working on Azure VM with Ubuntu.

Here is the specs.

Operating System: Linux (ubuntu 22.04)
Size: Standard B4ms
vCPUs: 4
RAM: 16 GiB
Disk: Standard HDD LRS 356GiB
SonarQube Version: Community Build v25.2.0.102705 Standard Experience
SonarQube Task Version: 7

Problem: SonarQubePublish task is reaching timeout, firstly we used 300sec, then 600sec, it is still reached timeout, the logs show the only Publish task’s time is almost 10min.

On the website, there are 52 pending Background Job, but most of them are also finished.

At this point, what we can do, how we figure it out?

Thank you.

Starting: SonarQubePublish
Task : Publish Quality Gate Result
Description : Publish SonarQube Server’s Quality Gate result on the Azure DevOps build result, to be used after the actual analysis.
Version : 7.4.1
Author : sonarsource
Help : More Information
[INFO] SonarQube Server: Server version: 25.2.0.102705
##[warning][WARN] SonarQube Server: Reached timeout while waiting for task to complete
##[warning][WARN] SonarQube Server: Task ‘c3638c82-60fd-4904-a95f-b6b9bdb11cfe’ takes too long to complete. Stopping after 600s of polling. No quality gate will be displayed on build result.
[INFO] SonarQube Server: Overall Quality Gate status: ok
Finishing: SonarQubePublish

Hi,

It looks like the problem here is the length of your Background Tasks queue. The first answer is to try throwing more resources at your SonarQube instance, and in particular the Compute Engine process. You can tune its resources using the sonar.ce.* server properties.

If that doesn’t work for you, though, you’ll need to consider upgrading to Enterprise Edition($$), which allows you to configure multiple CE worker threads, and clear the processing queue faster.

 
HTH,
Ann