SONARQUBE ISSUE AFTER UPGRADE

Using sonarqube 8.9.9 and getting multiple issues after the upgrade from 8.7

2022.09.21 03:33:42 ERROR ce[AYNe9zD2tCcH9uOk6e_h][o.s.s.es.BulkIndexer] Fail to execute bulk index request: org.elasticsearch.action.bulk.BulkRequest/unset
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.lambda$performRequestAsync$1(RestClient.java:377)
	at org.elasticsearch.client.Cancellable$RequestCancellable.runIfNotCancelled(Cancellable.java:90)
	at org.elasticsearch.client.RestClient.performRequestAsync(RestClient.java:375)
	at org.elasticsearch.client.RestClient.performRequestAsync(RestClient.java:362)
	at org.elasticsearch.client.RestHighLevelClient$4.onResponse(RestHighLevelClient.java:2603)
	at org.elasticsearch.client.RestHighLevelClient$4.onResponse(RestHighLevelClient.java:2598)
	at org.elasticsearch.common.util.concurrent.ListenableFuture.notifyListenerDirectly(ListenableFuture.java:113)
	at org.elasticsearch.common.util.concurrent.ListenableFuture.addListener(ListenableFuture.java:55)
	at org.elasticsearch.common.util.concurrent.ListenableFuture.addListener(ListenableFuture.java:41)
	at org.elasticsearch.client.RestHighLevelClient.performClientRequestAsync(RestHighLevelClient.java:2598)
	at org.elasticsearch.client.RestHighLevelClient.internalPerformRequestAsync(RestHighLevelClient.java:2337)
	at org.elasticsearch.client.RestHighLevelClient.performRequestAsync(RestHighLevelClient.java:2292)
	at org.elasticsearch.client.RestHighLevelClient.performRequestAsyncAndParseEntity(RestHighLevelClient.java:2241)
	at org.elasticsearch.client.RestHighLevelClient.bulkAsync(RestHighLevelClient.java:632)
	at org.sonar.server.es.EsClient.bulkAsync(EsClient.java:119)
	at org.elasticsearch.action.bulk.Retry$RetryHandler.execute(Retry.java:201)
	at org.elasticsearch.action.bulk.Retry.withBackoff(Retry.java:51)
	at org.elasticsearch.action.bulk.BulkRequestHandler.execute(BulkRequestHandler.java:56)
	at org.elasticsearch.action.bulk.BulkProcessor.execute(BulkProcessor.java:540)
	at org.elasticsearch.action.bulk.BulkProcessor.execute(BulkProcessor.java:550)
	at org.elasticsearch.action.bulk.BulkProcessor.awaitClose(BulkProcessor.java:413)
	at org.sonar.server.es.BulkIndexer.stop(BulkIndexer.java:122)
	at org.sonar.server.rule.index.RuleIndexer.doIndexRules(RuleIndexer.java:150)
	at org.sonar.server.rule.index.RuleIndexer.index(RuleIndexer.java:123)
	at org.sonar.server.rule.index.RuleIndexer.postCommit(RuleIndexer.java:115)
	at org.sonar.server.rule.index.RuleIndexer.commitAndIndex(RuleIndexer.java:108)
	at org.sonar.ce.task.projectanalysis.issue.AdHocRuleCreator.persistAndIndex(AdHocRuleCreator.java:114)
	at org.sonar.ce.task.projectanalysis.issue.RuleRepositoryImpl.persistAndIndex(RuleRepositoryImpl.java:79)
	at org.sonar.ce.task.projectanalysis.issue.RuleRepositoryImpl.lambda$saveOrUpdateAddHocRules$0(RuleRepositoryImpl.java:75)
	at java.base/java.util.HashMap$Values.forEach(HashMap.java:976)
	at org.sonar.ce.task.projectanalysis.issue.RuleRepositoryImpl.saveOrUpdateAddHocRules(RuleRepositoryImpl.java:75)
	at org.sonar.ce.task.projectanalysis.step.PersistAdHocRulesStep.execute(PersistAdHocRulesStep.java:40)
	at org.sonar.ce.task.step.ComputationStepExecutor.executeStep(ComputationStepExecutor.java:81)
	at org.sonar.ce.task.step.ComputationStepExecutor.executeSteps(ComputationStepExecutor.java:72)
	at org.sonar.ce.task.step.ComputationStepExecutor.execute(ComputationStepExecutor.java:59)
	at org.sonar.ce.task.projectanalysis.taskprocessor.ReportTaskProcessor.process(ReportTaskProcessor.java:81)
	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:125)
	at com.google.common.util.concurrent.InterruptibleTask.run(InterruptibleTask.java:69)
	at com.google.common.util.concurrent.TrustedListenableFutureTask.run(TrustedListenableFutureTask.java:78)
	at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:515)
	at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
	at java.base/java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:304)
	at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
	at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
	at java.base/java.lang.Thread.run(Thread.java:834)

Hey there.

I would reccomend checking all the relevant log files, especially es.log, to understand if something has gone wrong with the Elasticsearch process.

And, you could also try:

  1. Stopping your SonarQube instance
  2. Deleting data/es7 from your SonarQube Installation Directoyr
  3. Starting your SonarQube instance