ERROR: Error during SonarQube Scanner execution java.lang.IllegalStateException: Report processing did not complete successfully: CANCELED

Hello Team ,
Can someone help us with the solution for below exceptions.

  1. The jenkins job fails with error as below and the respective ce task id which is generated for report processing shows below exception in the ce.log
    Error -
05:00:18.846 ERROR: Error during SonarQube Scanner execution
java.lang.IllegalStateException: Report processing did not complete successfully: CANCELED
	at org.sonar.plugins.buildbreaker.QualityGateBreaker.getAnalysisId(
	at org.sonar.plugins.buildbreaker.QualityGateBreaker.execute(
	at org.sonar.scanner.postjob.PostJobWrapper.execute(
	at org.sonar.scanner.postjob.PostJobsExecutor.execute(
	at org.sonar.scanner.postjob.PostJobsExecutor.execute(
	at org.sonar.scanner.scan.ProjectScanContainer.doAfterStart(
	at org.sonar.core.platform.ComponentContainer.startComponents(
	at org.sonar.core.platform.ComponentContainer.execute(
	at org.sonar.scanner.bootstrap.GlobalContainer.doAfterStart(
	at org.sonar.core.platform.ComponentContainer.startComponents(
	at org.sonar.core.platform.ComponentContainer.execute(
	at org.sonar.batch.bootstrapper.Batch.doExecute(
	at org.sonar.batch.bootstrapper.Batch.executeTask(
	at org.sonarsource.scanner.api.internal.batch.BatchIsolatedLauncher.execute(
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(
	at java.lang.reflect.Method.invoke(
	at org.sonarsource.scanner.api.internal.IsolatedLauncherProxy.invoke(
	at com.sun.proxy.$Proxy0.execute(Unknown Source)
	at org.sonarsource.scanner.api.EmbeddedScanner.doExecute(
	at org.sonarsource.scanner.api.EmbeddedScanner.runAnalysis(
	at org.sonarsource.scanner.cli.Main.runAnalysis(
	at org.sonarsource.scanner.cli.Main.execute(
	at org.sonarsource.scanner.cli.Main.main(
05:00:18.848 ERROR: 
05:00:18.848 ERROR: Re-run SonarQube Scanner using the -X switch to enable full debug logging.

Picked up _JAVA_OPTIONS: -Xmx9216m
Failed to finalize task with uuid ‘AX12K1V3hILq2kQ_DLK7’ and persist its state to db java.lang.IllegalStateException: Task does not exist anymore.

  1. The jenkins build fails at quality gate and shows major issues but when actual report is checked , there are no major issues found. Either the information is misleading or is not getting stored in sonarqube ? When the build is rerun , it succeeds without any issues.

  2. We are also seeing below exceptions in our web.log

ERROR web[][o.s.s.e.RecoveryIndexer] Elasticsearch recovery - fail to recover documents
java.lang.IllegalStateException: Fail to select authorizations
Caused by: The incoming request has too many parameters. The server supports a maximum of 2100 parameters. Reduce the number of parameters and resend the request.
        at org.apache.commons.dbcp2.DelegatingPreparedStatement.executeQuery(
        at org.apache.commons.dbcp2.DelegatingPreparedStatement.executeQuery(
        at org.sonar.server.permission.index.PermissionIndexerDao.doSelectByProjects(
        ... 17 common frames omitted

Version - We are using Sonarqube Community Edition Version
What has been done so far -We are checking with the database team about memory usage of the db.
Please suggest us what should be checked more to solve this issue


Welcome to the community!

First, your version is past EOL. You should upgrade to either the latest version or the current LTS at your earliest convenience. Your upgrade path is:

7.7 → 7.9.6 → 8.9.3 → 9.2.1 (last step optional)

You may find the Upgrade Guide and the LTS-to-LTS Upgrade Notes helpful. If you have questions about upgrading, feel free to open a new thread for that here.

If your error persists after upgrade, please come back to us.