ERROR: Try increasing sonar.buildbreaker.queryMaxAttempts, sonar.buildbreaker.queryInterval, or both

Hi,

When I am executing the job on jenkins sometimes I am getting the error:

ERROR: [BUILD BREAKER] API query limit (30) reached. Try increasing sonar.buildbreaker.queryMaxAttempts, sonar.buildbreaker.queryInterval, or both.

and the following message continuously flashes untill the job fails:
Waiting for report processing to complete…

Here are the logs:

2:44:07.251 INFO: Calculating CPD for 0 files
02:44:07.253 INFO: CPD calculation finished
02:44:09.191 INFO: Analysis report generated in 1832ms, dir size=17 MB
02:44:10.727 INFO: Analysis reports compressed in 1536ms, zip size=5 MB
02:44:10.960 INFO: Analysis report uploaded in 232ms
02:44:10.961 INFO: ANALYSIS SUCCESSFUL, you can browse http://codescan.ABC.net:8080/dashboard/index/A
02:44:10.961 INFO: Note that you will be able to access the updated dashboard once the server has processed the submitted analysis report
02:44:10.961 INFO: More about the report processing at http://codescan.ABC.net:8080/api/ce/task?id=AWd40WD4bTnmWSh_i2rz
02:44:10.963 INFO: Executing post-job org.sonar.plugins.buildbreaker.QualityGateBreaker
02:44:11.086 INFO: Waiting for report processing to complete...
02:44:21.094 INFO: Waiting for report processing to complete...
02:44:31.099 INFO: Waiting for report processing to complete...
02:44:41.107 INFO: Waiting for report processing to complete...
02:44:51.113 INFO: Waiting for report processing to complete...
02:45:01.119 INFO: Waiting for report processing to complete...
02:45:11.125 INFO: Waiting for report processing to complete...
02:45:21.130 INFO: Waiting for report processing to complete...
02:45:31.136 INFO: Waiting for report processing to complete...
02:45:41.142 INFO: Waiting for report processing to complete...
02:45:51.147 INFO: Waiting for report processing to complete...
02:46:01.152 INFO: Waiting for report processing to complete...
02:46:11.159 INFO: Waiting for report processing to complete...
02:46:21.165 INFO: Waiting for report processing to complete...
02:46:31.170 INFO: Waiting for report processing to complete...
02:46:41.175 INFO: Waiting for report processing to complete...
02:46:51.182 INFO: Waiting for report processing to complete...
02:47:01.187 INFO: Waiting for report processing to complete...
02:47:11.192 INFO: Waiting for report processing to complete...
02:47:21.199 INFO: Waiting for report processing to complete...
02:47:31.206 INFO: Waiting for report processing to complete...
02:47:41.215 INFO: Waiting for report processing to complete...
02:47:51.222 INFO: Waiting for report processing to complete...
02:48:01.229 INFO: Waiting for report processing to complete...
02:48:11.234 INFO: Waiting for report processing to complete...
02:48:21.240 INFO: Waiting for report processing to complete...
02:48:31.245 INFO: Waiting for report processing to complete...
02:48:41.253 INFO: Waiting for report processing to complete...
02:48:51.259 INFO: Waiting for report processing to complete...
02:49:01.265 INFO: Waiting for report processing to complete...
02:49:11.266 ERROR: [BUILD BREAKER] API query limit (30) reached.  Try increasing sonar.buildbreaker.queryMaxAttempts, sonar.buildbreaker.queryInterval, or both.
02:49:12.680 INFO: ------------------------------------------------------------------------
02:49:12.680 INFO: EXECUTION FAILURE
02:49:12.680 INFO: ------------------------------------------------------------------------
02:49:12.680 INFO: Total time: 5:18.202s
02:49:12.759 INFO: Final Memory: 21M/748M
02:49:12.759 INFO: ------------------------------------------------------------------------
02:49:12.759 ERROR: Error during SonarQube Scanner execution
02:49:12.759 ERROR: Report processing is taking longer than the configured wait limit.
02:49:12.759 ERROR: 
02:49:12.759 ERROR: Re-run SonarQube Scanner using the -X switch to enable full debug logging.
For pattern: src/github.com/ABC/A/R_MSI/R/W_installer/bin/Debug/*.msi 1 artifacts were found
Deploying artifact: http://artifact.corp.A.net:8081//artifactory/dt-dev_A/249/W_installer.msi
Deploying build info to: http://artifact.corp.A.net:8081//artifactory/api/build
ERROR: SonarQube scanner exited with non-zero code: 1
[CHECKSTYLE] Skipping publisher since build result is FAILURE
Skipped archiving because build is not successful
[Cobertura] Publishing Cobertura coverage report...

[Cobertura] Publishing Cobertura coverage results...

[Cobertura] Cobertura coverage report found.

After Increasing the number of max attempts, the problem still persists.

Can anybody give some valuable inputs to solve this issue.

Thanks :slight_smile:

Hi,

This is not what you’re looking for, but we don’t think you should use the Build Breaker plugin. If you really must have this functionality, then you should switch to webhooks. Their use in Jenkins is documented here.

 
Ann

Hello,
I am also facing same issue while running this on my local.
[INFO] Note that you will be able to access the updated dashboard once the server has processed the submitted analysis report
[INFO] More about the report processing at https://sonarqube.fis.dev/api/ce/task?id=AXWcidDQ6RSsgYiOIkab
[INFO] Executing post-job ‘Forbidden Configuration Breaker’
[INFO] Executing post-job ‘Quality Gate Breaker’
[INFO] Waiting for report processing to complete…
[INFO] Waiting for report processing to complete…
[INFO] Waiting for report processing to complete…
[ERROR] [BUILD BREAKER] API query limit (30) reached. Try increasing sonar.buildbreaker.queryMaxAttempts, sonar.buildbreaker.queryInterval, or both.
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO]
[INFO] fis-cmn-api … SKIPPED
[INFO] fis-cmn … SKIPPED
[INFO] fis-ww-project 3.0.0.0 … FAILURE [07:37 min]
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 07:38 min
[INFO] Finished at: 2020-11-06T13:26:52+05:30
[INFO] ------------------------------------------------------------------------
[WARNING] The requested profile “artifactory” could not be activated because it does not exist.
[ERROR] Failed to execute goal org.sonarsource.scanner.maven:sonar-maven-plugin:3.7.0.1746:sonar (default-cli) on project fis-ww-project: Report processing is taking longer than the configured wait limit. -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.

Could you please help on resolving this?

Hi,

Welcome to the community!

In general it’s better to let topics this old stay dead, but in this context maybe it’s not so bad because it makes it easy to quote myself :smiley:

Your error is clearly coming from that plugin. You need to start there.

 
HTH,
Ann