Must-share information (formatted with Markdown):
-
which versions are you using (SonarQube, Scanner, Plugin, and any relevant extension)
Sonarqube 10.6(92116) Developer
Jenkins 2.476
SonarQube Scanner 6.1.0.4477 -
how is SonarQube deployed: zip, Docker, Helm
Docker
*Sympton.
Sonarqube scanner is triggred by jenkins.
In jenkin, there is no error, and it works well.
In sonarqube, there is error box "The last anaysis has failed. See details)
I think all of the tests have this error in my sonarqube.
And there is no update in the Issues item after this error appears.
Here is log and scanner context information.
Error Details
org.sonar.server.es.ElasticsearchException: Fail to execute es requestES refresh request on indices 'issues'
at org.sonar.server.es.EsClient.execute(EsClient.java:336)
at org.sonar.server.es.EsClient.refresh(EsClient.java:159)
at org.sonar.server.es.BulkIndexer.stop(BulkIndexer.java:129)
at org.sonar.server.issue.index.IssueIndexer.deleteByKeys(IssueIndexer.java:310)
at org.sonar.ce.task.projectanalysis.purge.IndexPurgeListener.onIssuesRemoval(IndexPurgeListener.java:37)
at org.sonar.db.purge.PurgeDao.deleteOldClosedIssues(PurgeDao.java:128)
at org.sonar.db.purge.PurgeDao.purge(PurgeDao.java:70)
at org.sonar.ce.task.projectanalysis.purge.ProjectCleaner.purge(ProjectCleaner.java:63)
at org.sonar.ce.task.projectanalysis.purge.PurgeDatastoresStep.execute(PurgeDatastoresStep.java:54)
at org.sonar.ce.task.step.ComputationStepExecutor.executeStep(ComputationStepExecutor.java:79)
at org.sonar.ce.task.step.ComputationStepExecutor.executeSteps(ComputationStepExecutor.java:70)
at org.sonar.ce.task.step.ComputationStepExecutor.execute(ComputationStepExecutor.java:57)
at org.sonar.ce.task.projectanalysis.taskprocessor.ReportTaskProcessor.process(ReportTaskProcessor.java:75)
at org.sonar.ce.taskprocessor.CeWorkerImpl$ExecuteTask.executeTask(CeWorkerImpl.java:212)
at org.sonar.ce.taskprocessor.CeWorkerImpl$ExecuteTask.run(CeWorkerImpl.java:194)
at org.sonar.ce.taskprocessor.CeWorkerImpl.findAndProcessTask(CeWorkerImpl.java:160)
at org.sonar.ce.taskprocessor.CeWorkerImpl$TrackRunningState.get(CeWorkerImpl.java:135)
at org.sonar.ce.taskprocessor.CeWorkerImpl.call(CeWorkerImpl.java:87)
at org.sonar.ce.taskprocessor.CeWorkerImpl.call(CeWorkerImpl.java:53)
at com.google.common.util.concurrent.TrustedListenableFutureTask$TrustedFutureInterruptibleTask.runInterruptibly(TrustedListenableFutureTask.java:131)
at com.google.common.util.concurrent.InterruptibleTask.run(InterruptibleTask.java:76)
at com.google.common.util.concurrent.TrustedListenableFutureTask.run(TrustedListenableFutureTask.java:82)
at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source)
at java.base/java.util.concurrent.FutureTask.run(Unknown Source)
at java.base/java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(Unknown Source)
at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
at java.base/java.lang.Thread.run(Unknown Source)
Caused by: java.lang.RuntimeException: Request cannot be executed; I/O reactor status: STOPPED
at org.elasticsearch.client.RestClient.extractAndWrapCause(RestClient.java:940)
at org.elasticsearch.client.RestClient.performRequest(RestClient.java:300)
at org.elasticsearch.client.RestClient.performRequest(RestClient.java:288)
at org.elasticsearch.client.RestHighLevelClient.performClientRequest(RestHighLevelClient.java:2699)
at org.elasticsearch.client.RestHighLevelClient.internalPerformRequest(RestHighLevelClient.java:2171)
at org.elasticsearch.client.RestHighLevelClient.performRequest(RestHighLevelClient.java:2137)
at org.elasticsearch.client.RestHighLevelClient.performRequestAndParseEntity(RestHighLevelClient.java:2105)
at org.elasticsearch.client.IndicesClient.refresh(IndicesClient.java:900)
at org.sonar.server.es.EsClient.lambda$refresh$9(EsClient.java:159)
at org.sonar.server.es.EsClient.execute(EsClient.java:334)
... 27 more
Caused by: java.lang.IllegalStateException: Request cannot be executed; I/O reactor status: STOPPED
at org.apache.http.util.Asserts.check(Asserts.java:46)
at org.apache.http.impl.nio.client.CloseableHttpAsyncClientBase.ensureRunning(CloseableHttpAsyncClientBase.java:90)
at org.apache.http.impl.nio.client.InternalHttpAsyncClient.execute(InternalHttpAsyncClient.java:123)
at org.elasticsearch.client.RestClient.performRequest(RestClient.java:296)
... 35 more
Plugins:
Bundled analyzers:
- Python Code Quality and Security 4.19.0.15616 (python)
- Clean as You Code 2.3.0.1782 (cayc)
- XML Code Quality and Security 2.10.0.4108 (xml)
- JaCoCo 1.3.0.1538 (jacoco)
- IaC Code Quality and Security 1.31.0.10579 (iac)
- Text Code Quality and Security 2.12.1.2905 (text)
Global server settings:
- email.from=####
- email.fromName=SWTeam DevOps
- email.prefix=[SonarQube]
- sonar.abap.file.suffixes=.abap,.ab4,.flow,.asprog
- sonar.azureresourcemanager.file.suffixes=.bicep
- sonar.c.file.suffixes=.c,.h
- sonar.core.id=E6548B69-AYtcllxFe9m76IEIVJMB
- sonar.core.serverBaseURL=####
- sonar.core.startTime=2024-07-23T08:12:53+0000
- sonar.cpp.file.suffixes=.cc,.cpp,.cxx,.c++,.hh,.hpp,.hxx,.h++,.ipp
- sonar.cs.file.suffixes=.cs,.razor
- sonar.css.file.suffixes=.css,.less,.scss,.sass
- sonar.docker.file.patterns=Dockerfile,*.dockerfile
- sonar.flex.file.suffixes=as
- sonar.forceAuthentication=true
- sonar.global.exclusions=debug*/**/*,release*/**/*,usbupdate*/**/*,sources/**/*,####/application/apps/csipmgr/epri/**/*,####/application/build/**,**/*.twig,####/webengine/dashboard/modules/**,####/webengine/engineer/modules/**,####/webengine/installer/modules/**,**/*.png,**/*.yml,**/*.scss
- sonar.go.file.suffixes=.go
- sonar.html.file.suffixes=.html,.xhtml,.cshtml,.vbhtml,.aspx,.ascx,.rhtml,.erb,.shtm,.shtml,.cmp,.twig
- sonar.java.file.suffixes=.java,.jav
- sonar.java.springconfig.file.patterns=**/src/main/resources/**/application*.properties,**/src/main/resources/**/application*.yaml,**/src/main/resources/**/application*.yml
- sonar.javascript.file.suffixes=.js,.jsx,.cjs,.mjs,.vue
- sonar.json.file.suffixes=.json
- sonar.jsp.file.suffixes=.jsp,.jspf,.jspx
- sonar.kotlin.file.suffixes=.kt,.kts
- sonar.objc.file.suffixes=.m
- sonar.php.file.suffixes=php,php3,php4,php5,phtml,inc
- sonar.plsql.file.suffixes=sql,pks,pkb
- sonar.projectCreation.mainBranchName=master
- sonar.python.file.suffixes=py
- sonar.qualityProfiles.allowDisableInheritedRules=false
- sonar.ruby.file.suffixes=.rb
- sonar.scala.file.suffixes=.scala
- sonar.swift.file.suffixes=.swift
- sonar.terraform.file.suffixes=.tf
- sonar.tsql.file.suffixes=.tsql
- sonar.typescript.file.suffixes=.ts,.tsx,.cts,.mts
- sonar.vbnet.file.suffixes=.vb
- sonar.xml.file.suffixes=.xml,.xsd,.xsl,.config
- sonar.yaml.file.suffixes=.yaml,.yml
Project server settings:
- sonar.abap.file.suffixes=.abap,.ab4,.flow,.asprog
- sonar.azureresourcemanager.file.suffixes=.bicep
- sonar.c.file.suffixes=.c,.h
- sonar.cpp.file.suffixes=.cc,.cpp,.cxx,.c++,.hh,.hpp,.hxx,.h++,.ipp
- sonar.cs.file.suffixes=.cs,.razor
- sonar.css.file.suffixes=.css,.less,.scss,.sass
- sonar.docker.file.patterns=Dockerfile,*.dockerfile
- sonar.flex.file.suffixes=as
- sonar.go.file.suffixes=.go
- sonar.html.file.suffixes=.html,.xhtml,.cshtml,.vbhtml,.aspx,.ascx,.rhtml,.erb,.shtm,.shtml,.cmp,.twig
- sonar.java.file.suffixes=.java,.jav
- sonar.java.springconfig.file.patterns=**/src/main/resources/**/application*.properties,**/src/main/resources/**/application*.yaml,**/src/main/resources/**/application*.yml
- sonar.javascript.file.suffixes=.js,.jsx,.cjs,.mjs,.vue
- sonar.json.file.suffixes=.json
- sonar.jsp.file.suffixes=.jsp,.jspf,.jspx
- sonar.kotlin.file.suffixes=.kt,.kts
- sonar.objc.file.suffixes=.m
- sonar.php.file.suffixes=php,php3,php4,php5,phtml,inc
- sonar.plsql.file.suffixes=sql,pks,pkb
- sonar.python.file.suffixes=py
- sonar.ruby.file.suffixes=.rb
- sonar.scala.file.suffixes=.scala
- sonar.swift.file.suffixes=.swift
- sonar.terraform.file.suffixes=.tf
- sonar.tsql.file.suffixes=.tsql
- sonar.typescript.file.suffixes=.ts,.tsx,.cts,.mts
- sonar.vbnet.file.suffixes=.vb
- sonar.xml.file.suffixes=.xml,.xsd,.xsl,.config
- sonar.yaml.file.suffixes=.yaml,.yml
Project scanner properties:
- sonar.ce.javaOpts=-Xmx8192m -Xms6000m -XX:+HeapDumpOnOutOfMemoryError
- sonar.cfamily.compile-commands=sonar/compile_commands.json
- sonar.filesize.limit=50
- sonar.host.url=####
- sonar.projectBaseDir=/DATA/jenkins/workspace/SonarQube
- sonar.projectKey=EMS
- sonar.scanner.apiBaseUrl=####/v2
- sonar.scanner.app=ScannerCLI
- sonar.scanner.appVersion=6.1.0.4477
- sonar.scanner.arch=x86_64
- sonar.scanner.bootstrapStartTime=1721949829692
- sonar.scanner.opts=-Xmx50G
- sonar.scanner.os=linux
- sonar.scanner.wasEngineCacheHit=true
- sonar.scanner.wasJreCacheHit=HIT
- sonar.scm.disabled=true
- sonar.search.javaOpts=-Xmx1024m -Xms1024m -XX:MaxDirectMemorySize=256m -XX:+HeapDumpOnOutOfMemoryError
- sonar.sourceEncoding=UTF-8
- sonar.sources=####
- sonar.token=####
- sonar.verbose=true
- sonar.web.javaOpts=-Xmx2048m -Xms2048m -XX:+HeapDumpOnOutOfMemoryError
- sonar.working.directory=/DATA/jenkins/workspace/SonarQube/.scannerwork
Do not share screenshots of logs – share the text itself (bonus points for being well-formatted)!