Sonarqube-sonarqube-0 pod is failing because of elastic search

Must-share information (formatted with Markdown):

  • which versions are you using (SonarQube, Scanner, Plugin, and any relevant extension)
    Latest 10 version

  • how is SonarQube deployed: zip, Docker, Helm
    Using Helm

  • what are you trying to achieve
    Installing Sonarkube in AWS EKS Cluster

  • what have you tried so far to achieve this
    Installation is failing throwing ES error. I am using the default configuration and Postgres is up and running, but my sonar-qube service is failing with the below error.

surendra.reddy@dev-dops-01:~/sonarqube/sonarqube$ k get pods
k lNAME                     READY   STATUS             RESTARTS        AGE
sonarqube-postgresql-0   1/1     Running            0               127m
sonarqube-sonarqube-0    0/1     CrashLoopBackOff   10 (3m8s ago)   34m
surendra.reddy@dev-dops-01:~/sonarqube/sonarqube$ k logs -f sonarqube-sonarqube-0
Defaulted container "sonarqube" out of: sonarqube, wait-for-db (init), init-sysctl (init), init-fs (init)
2023.10.23 07:32:35 INFO  app[][o.s.a.AppFileSystem] Cleaning or creating temp directory /opt/sonarqube/temp
2023.10.23 07:32:35 INFO  app[][o.s.a.es.EsSettings] Elasticsearch listening on [HTTP: 127.0.0.1:9001, TCP: 127.0.0.1:38029]
2023.10.23 07:32:35 INFO  app[][o.s.a.ProcessLauncherImpl] Launch process[ELASTICSEARCH] from [/opt/sonarqube/elasticsearch]: /opt/java/openjdk/bin/java -Xms4m -Xmx64m -XX:+UseSerialGC -Dcli.name=server -Dcli.script=./bin/elasticsearch -Dcli.libs=lib/tools/server-cli -Des.path.home=/opt/sonarqube/elasticsearch -Des.path.conf=/opt/sonarqube/temp/conf/es -Des.distribution.type=tar -cp /opt/sonarqube/elasticsearch/lib/*:/opt/sonarqube/elasticsearch/lib/cli-launcher/* org.elasticsearch.launcher.CliToolLauncher
2023.10.23 07:32:36 INFO  app[][o.s.a.SchedulerImpl] Waiting for Elasticsearch to be up and running
2023.10.23 07:32:48 INFO  es[][o.e.n.Node] version[8.7.0], pid[79], build[tar/09520b59b6bc1057340b55750186466ea715e30e/2023-03-27T16:31:09.816451435Z], OS[Linux/5.10.192-183.736.amzn2.x86_64/amd64], JVM[Eclipse Adoptium/OpenJDK 64-Bit Server VM/17.0.8.1/17.0.8.1+1]
2023.10.23 07:32:48 INFO  es[][o.e.n.Node] JVM home [/opt/java/openjdk], using bundled JDK [false]
2023.10.23 07:32:48 INFO  es[][o.e.n.Node] JVM arguments [-Des.networkaddress.cache.ttl=60, -Des.networkaddress.cache.negative.ttl=10, -Djava.security.manager=allow, -XX:+AlwaysPreTouch, -Xss1m, -Djava.awt.headless=true, -Dfile.encoding=UTF-8, -Djna.nosys=true, -XX:-OmitStackTraceInFastThrow, -Dio.netty.noUnsafe=true, -Dio.netty.noKeySetOptimization=true, -Dio.netty.recycler.maxCapacityPerThread=0, -Dlog4j.shutdownHookEnabled=false, -Dlog4j2.disable.jmx=true, -Dlog4j2.formatMsgNoLookups=true, -Djava.locale.providers=SPI,COMPAT, --add-opens=java.base/java.io=ALL-UNNAMED, -XX:+UseG1GC, -Djava.io.tmpdir=/opt/sonarqube/temp, -XX:ErrorFile=/opt/sonarqube/logs/es_hs_err_pid%p.log, -Xlog:disable, -Des.networkaddress.cache.ttl=60, -Des.networkaddress.cache.negative.ttl=10, -XX:+AlwaysPreTouch, -Xss1m, -Djava.awt.headless=true, -Dfile.encoding=UTF-8, -Djna.nosys=true, -Djna.tmpdir=/opt/sonarqube/temp, -XX:-OmitStackTraceInFastThrow, -Dio.netty.noUnsafe=true, -Dio.netty.noKeySetOptimization=true, -Dio.netty.recycler.maxCapacityPerThread=0, -Dio.netty.allocator.numDirectArenas=0, -Dlog4j.shutdownHookEnabled=false, -Dlog4j2.disable.jmx=true, -Dlog4j2.formatMsgNoLookups=true, -Djava.locale.providers=COMPAT, -Dcom.redhat.fips=false, -Des.enforce.bootstrap.checks=true, -Xmx512m, -Xms512m, -XX:MaxDirectMemorySize=256m, -XX:+HeapDumpOnOutOfMemoryError, -XX:G1HeapRegionSize=4m, -XX:InitiatingHeapOccupancyPercent=30, -XX:G1ReservePercent=15, -Des.distribution.type=tar, --module-path=/opt/sonarqube/elasticsearch/lib, --add-modules=jdk.net, -Djdk.module.main=org.elasticsearch.server]
2023.10.23 07:32:51 INFO  es[][o.e.p.PluginsService] loaded module [aggregations]
2023.10.23 07:32:51 INFO  es[][o.e.p.PluginsService] loaded module [analysis-common]
2023.10.23 07:32:51 INFO  es[][o.e.p.PluginsService] loaded module [apm]
2023.10.23 07:32:51 INFO  es[][o.e.p.PluginsService] loaded module [blob-cache]
2023.10.23 07:32:51 INFO  es[][o.e.p.PluginsService] loaded module [lang-painless]
2023.10.23 07:32:51 INFO  es[][o.e.p.PluginsService] loaded module [old-lucene-versions]
2023.10.23 07:32:51 INFO  es[][o.e.p.PluginsService] loaded module [parent-join]
2023.10.23 07:32:51 INFO  es[][o.e.p.PluginsService] loaded module [reindex]
2023.10.23 07:32:51 INFO  es[][o.e.p.PluginsService] loaded module [transport-netty4]
2023.10.23 07:32:51 INFO  es[][o.e.p.PluginsService] loaded module [x-pack-aggregate-metric]
2023.10.23 07:32:51 INFO  es[][o.e.p.PluginsService] loaded module [x-pack-core]
2023.10.23 07:32:51 INFO  es[][o.e.p.PluginsService] loaded module [x-pack-profiling]
2023.10.23 07:32:51 INFO  es[][o.e.p.PluginsService] loaded module [x-pack-security]
2023.10.23 07:32:51 INFO  es[][o.e.p.PluginsService] no plugins loaded
2023.10.23 07:33:00 INFO  es[][o.e.e.NodeEnvironment] using [1] data paths, mounts [[/opt/sonarqube/data (/dev/nvme1n1)]], net usable_space [4.6gb], net total_space [4.8gb], types [ext4]
2023.10.23 07:33:00 INFO  es[][o.e.e.NodeEnvironment] heap size [512mb], compressed ordinary object pointers [true]
2023.10.23 07:33:00 INFO  es[][o.e.n.Node] node name [sonarqube], node ID [ng0QwAhhS2Kc-B0NtLlh5A], cluster name [sonarqube], roles [data_cold, data, remote_cluster_client, master, data_warm, data_content, transform, data_hot, ml, data_frozen, ingest]
2023.10.23 07:33:02 INFO  es[][o.e.x.p.ProfilingPlugin] Profiling is enabled
2023.10.23 07:33:03 INFO  es[][o.e.x.s.Security] Security is disabled
2023.10.23 07:33:03 INFO  es[][o.e.t.n.NettyAllocator] creating NettyAllocator with the following configs: [name=unpooled, suggested_max_allocation_size=1mb, factors={es.unsafe.use_unpooled_allocator=null, g1gc_enabled=true, g1gc_region_size=4mb, heap_size=512mb}]
2023.10.23 07:33:03 INFO  es[][o.e.i.r.RecoverySettings] using rate limit [40mb] with [default=40mb, read=0b, write=0b, max=0b]
2023.10.23 07:33:03 INFO  es[][o.e.d.DiscoveryModule] using discovery type [single-node] and seed hosts providers [settings]
2023.10.23 07:33:05 INFO  es[][o.e.n.Node] initialized
2023.10.23 07:33:05 INFO  es[][o.e.n.Node] starting ...
2023.10.23 07:33:06 INFO  es[][o.e.t.TransportService] publish_address {127.0.0.1:38029}, bound_addresses {127.0.0.1:38029}
2023.10.23 07:33:06 INFO  es[][o.e.b.BootstrapChecks] explicitly enforcing bootstrap checks
2023.10.23 07:33:06 WARN  es[][o.e.c.c.ClusterBootstrapService] this node is locked into cluster UUID [P6BzrYbtQU2dF6gI_yBlXA] but [cluster.initial_master_nodes] is set to [sonarqube]; remove this setting to avoid possible data loss caused by subsequent cluster bootstrap attempts; for further information see https://www.elastic.co/guide/en/elasticsearch/reference/8.7/important-settings.html#initial_master_nodes
2023.10.23 07:33:06 INFO  es[][o.e.c.s.MasterService] elected-as-master ([1] nodes joined)[_FINISH_ELECTION_, {sonarqube}{ng0QwAhhS2Kc-B0NtLlh5A}{qw9PcURbTYGfnImFnAGLyw}{sonarqube}{127.0.0.1}{127.0.0.1:38029}{cdfhilmrstw}{8.7.0} completing election], term: 35, version: 138, delta: master node changed {previous [], current [{sonarqube}{ng0QwAhhS2Kc-B0NtLlh5A}{qw9PcURbTYGfnImFnAGLyw}{sonarqube}{127.0.0.1}{127.0.0.1:38029}{cdfhilmrstw}{8.7.0}]}
2023.10.23 07:33:07 INFO  es[][o.e.c.s.ClusterApplierService] master node changed {previous [], current [{sonarqube}{ng0QwAhhS2Kc-B0NtLlh5A}{qw9PcURbTYGfnImFnAGLyw}{sonarqube}{127.0.0.1}{127.0.0.1:38029}{cdfhilmrstw}{8.7.0}]}, term: 35, version: 138, reason: Publication{term=35, version=138}
2023.10.23 07:33:07 INFO  es[][o.e.r.s.FileSettingsService] starting file settings watcher ...
2023.10.23 07:33:07 INFO  es[][o.e.r.s.FileSettingsService] file settings service up and running [tid=28]
2023.10.23 07:33:07 INFO  es[][o.e.h.AbstractHttpServerTransport] publish_address {127.0.0.1:9001}, bound_addresses {127.0.0.1:9001}
2023.10.23 07:33:07 INFO  es[][o.e.n.Node] started {sonarqube}{ng0QwAhhS2Kc-B0NtLlh5A}{qw9PcURbTYGfnImFnAGLyw}{sonarqube}{127.0.0.1}{127.0.0.1:38029}{cdfhilmrstw}{8.7.0}{xpack.installed=true, rack_id=sonarqube}
2023.10.23 07:33:07 INFO  es[][o.e.c.c.NodeJoinExecutor] node-join: [{sonarqube}{ng0QwAhhS2Kc-B0NtLlh5A}{qw9PcURbTYGfnImFnAGLyw}{sonarqube}{127.0.0.1}{127.0.0.1:38029}{cdfhilmrstw}{8.7.0}] with reason [completing election]
2023.10.23 07:33:08 INFO  app[][o.s.a.SchedulerImpl] Process[es] is up
2023.10.23 07:33:08 INFO  app[][o.s.a.ProcessLauncherImpl] Launch process[WEB_SERVER] from [/opt/sonarqube]: /opt/java/openjdk/bin/java -Djava.awt.headless=true -Dfile.encoding=UTF-8 -Djava.io.tmpdir=/opt/sonarqube/temp -XX:-OmitStackTraceInFastThrow --add-opens=java.base/java.util=ALL-UNNAMED --add-opens=java.base/java.lang=ALL-UNNAMED --add-opens=java.base/java.io=ALL-UNNAMED --add-opens=java.rmi/sun.rmi.transport=ALL-UNNAMED --add-exports=java.base/jdk.internal.ref=ALL-UNNAMED --add-opens=java.base/java.nio=ALL-UNNAMED --add-opens=java.base/sun.nio.ch=ALL-UNNAMED --add-opens=java.management/sun.management=ALL-UNNAMED --add-opens=jdk.management/com.sun.management.internal=ALL-UNNAMED -Dcom.redhat.fips=false -Xmx512m -Xms128m -XX:+HeapDumpOnOutOfMemoryError -Dhttp.nonProxyHosts=localhost|127.*|[::1] -cp ./lib/sonar-application-10.2.1.78527.jar:/opt/sonarqube/lib/jdbc/postgresql/postgresql-42.6.0.jar org.sonar.server.app.WebServer /opt/sonarqube/temp/sq-process14546650981108385131properties
2023.10.23 07:33:09 INFO  es[][o.e.l.LicenseService] license [2d7288f7-55ef-4a0a-9af2-cc88659db097] mode [basic] - valid
2023.10.23 07:33:09 INFO  es[][o.e.g.GatewayService] recovered [0] indices into cluster_state
2023.10.23 07:33:09 INFO  es[][o.e.h.n.s.HealthNodeTaskExecutor] Node [{sonarqube}{ng0QwAhhS2Kc-B0NtLlh5A}] is selected as the current health node.
WARNING: A terminally deprecated method in java.lang.System has been called
WARNING: System::setSecurityManager has been called by org.sonar.process.PluginSecurityManager (file:/opt/sonarqube/lib/sonar-application-10.2.1.78527.jar)
WARNING: Please consider reporting this to the maintainers of org.sonar.process.PluginSecurityManager
WARNING: System::setSecurityManager will be removed in a future release
2023.10.23 07:33:10 INFO  web[][o.s.p.ProcessEntryPoint] Starting Web Server
2023.10.23 07:33:13 INFO  web[][o.s.s.p.LogServerVersion] SonarQube Server / 10.2.1.78527 / 953bf4f6bc7c449ecd33704e5fb450c19412f037
2023.10.23 07:33:13 INFO  web[][o.s.d.DefaultDatabase] Create JDBC data source for jdbc:postgresql://sonarqube-postgresql:5432/sonarDB
2023.10.23 07:33:13 INFO  web[][c.z.h.HikariDataSource] HikariPool-1 - Starting...
2023.10.23 07:33:13 INFO  web[][c.z.h.p.HikariPool] HikariPool-1 - Added connection org.postgresql.jdbc.PgConnection@3a022576
2023.10.23 07:33:13 INFO  web[][c.z.h.HikariDataSource] HikariPool-1 - Start completed.
2023.10.23 07:33:17 INFO  web[][o.s.s.p.ServerFileSystemImpl] SonarQube home: /opt/sonarqube
2023.10.23 07:33:17 INFO  web[][o.s.s.u.SystemPasscodeImpl] System authentication by passcode is enabled
2023.10.23 07:33:18 INFO  web[][o.s.s.p.ServerPluginManager] Deploy C# Code Quality and Security / 9.8.0.76515 / c1515bad8ebe3e38e102b68fdec8c429669ec560
2023.10.23 07:33:18 INFO  web[][o.s.s.p.ServerPluginManager] Deploy Clean as You Code / 2.1.0.500 / 4a2d47cf125d03ebacf43536a3897c168deb1b0a
2023.10.23 07:33:18 INFO  web[][o.s.s.p.ServerPluginManager] Deploy Configuration detection for Code Quality and Security / 1.3.0.654 / 63073f0270b2c4754afa58eb8b5ea04e2eebf1a4
2023.10.23 07:33:18 INFO  web[][o.s.s.p.ServerPluginManager] Deploy Flex Code Quality and Security / 2.10.0.3458 / 3ef14c50cfd03e5b40a2270fc6e8edc5c49dedcd
2023.10.23 07:33:18 INFO  web[][o.s.s.p.ServerPluginManager] Deploy Go Code Quality and Security / 1.14.0.4481 / dcfff811316898a16bf1c6ff191dd3a5d84d3307
2023.10.23 07:33:18 INFO  web[][o.s.s.p.ServerPluginManager] Deploy HTML Code Quality and Security / 3.9.0.3600 / c877f85377cbf43c325a924dff566e2511142dbd
2023.10.23 07:33:18 INFO  web[][o.s.s.p.ServerPluginManager] Deploy IaC Code Quality and Security / 1.20.0.5654 / 45bdf29bcd98938351390d5b5905ee16e4616078
2023.10.23 07:33:18 INFO  web[][o.s.s.p.ServerPluginManager] Deploy JaCoCo / 1.3.0.1538 / 74a7798c7cea687c72ed9df40c93eb7ea2a58c49
2023.10.23 07:33:18 INFO  web[][o.s.s.p.ServerPluginManager] Deploy Java Code Quality and Security / 7.24.0.32100 / c39dafc9f60909db5edeb18ecc30ef617d9b5e7d
2023.10.23 07:33:18 INFO  web[][o.s.s.p.ServerPluginManager] Deploy JavaScript/TypeScript/CSS Code Quality and Security / 10.5.1.22382 / aee0b6ea75d253c96e97ab00eb1e96e1112ec2a7
2023.10.23 07:33:18 INFO  web[][o.s.s.p.ServerPluginManager] Deploy Kotlin Code Quality and Security / 2.17.0.2902 / f561c3df92dca4379ae526fc4c912f786328f009
2023.10.23 07:33:18 INFO  web[][o.s.s.p.ServerPluginManager] Deploy PHP Code Quality and Security / 3.32.0.10180 / 077f75886ec0b948cdf94b61631a444bcd23a529
2023.10.23 07:33:18 INFO  web[][o.s.s.p.ServerPluginManager] Deploy Python Code Quality and Security / 4.7.0.12181 / eeaa409efe993ea779a0dacdbbe8e28e4879c975
2023.10.23 07:33:18 INFO  web[][o.s.s.p.ServerPluginManager] Deploy Ruby Code Quality and Security / 1.14.0.4481 / dcfff811316898a16bf1c6ff191dd3a5d84d3307
2023.10.23 07:33:18 INFO  web[][o.s.s.p.ServerPluginManager] Deploy Scala Code Quality and Security / 1.14.0.4481 / dcfff811316898a16bf1c6ff191dd3a5d84d3307
2023.10.23 07:33:18 INFO  web[][o.s.s.p.ServerPluginManager] Deploy Text Code Quality and Security / 2.3.0.1632 / 66d70521dd5e12993a5614c3202f4c33ae0182bd
2023.10.23 07:33:18 INFO  web[][o.s.s.p.ServerPluginManager] Deploy VB.NET Code Quality and Security / 9.8.0.76515 / c1515bad8ebe3e38e102b68fdec8c429669ec560
2023.10.23 07:33:18 INFO  web[][o.s.s.p.ServerPluginManager] Deploy XML Code Quality and Security / 2.10.0.4108 / 34b16ba369117f6befc0b1e0866a069a80f6db2e
2023.10.23 07:33:20 INFO  web[][o.s.s.p.d.m.c.PostgresCharsetHandler] Verify that database charset supports UTF8
2023.10.23 07:33:20 INFO  web[][o.s.s.e.EsClientProvider] Connected to local Elasticsearch: [http://localhost:9001]
2023.10.23 07:33:21 WARN  web[][o.s.a.s.w.WebService$Action] Description is not set on action api/monitoring/metrics
2023.10.23 07:33:21 WARN  web[][o.s.a.s.w.WebService$Action] Since is not set on action api/monitoring/metrics
2023.10.23 07:33:21 WARN  web[][o.s.a.s.w.WebService$Action] The response example is not set on action api/monitoring/metrics
2023.10.23 07:33:21 WARN  web[][o.s.a.s.w.WebService$Action] The response example is not set on action api/system/liveness
2023.10.23 07:33:21 INFO  web[][o.s.s.p.w.MasterServletFilter] Initializing servlet filter org.sonar.server.platform.web.WebServiceFilter@4837f97e [pattern=UrlPattern{inclusions=[/api/system/migrate_db.*, ...], exclusions=[/api/components/update_key, ...]}]
2023.10.23 07:33:22 INFO  web[][o.s.s.p.DetectPluginChange] Detect plugin changes

ERROR: Elasticsearch exited unexpectedly
2023.10.23 07:33:24 WARN  app[][o.s.a.p.AbstractManagedProcess] Process exited with exit value [ElasticSearch]: 137
2023.10.23 07:33:24 INFO  app[][o.s.a.SchedulerImpl] Process[ElasticSearch] is stopped
2023.10.23 07:33:24 INFO  web[][o.s.p.ProcessEntryPoint] Hard stopping process
2023.10.23 07:33:25 WARN  web[][o.s.p.ProcessEntryPoint$HardStopperThread] Can not stop in 1000ms
2023.10.23 07:33:27 INFO  web[][o.h.v.i.util.Version] HV000001: Hibernate Validator null
2023.10.23 07:33:28 WARN  web[][o.s.c.a.AnnotationConfigApplicationContext] Exception encountered during context initialization - cancelling refresh attempt: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'jdk.internal.loader.ClassLoaders$AppClassLoader@63dd899-org.sonar.server.es.IndexCreator': Initialization of bean failed; nested exception is org.sonar.server.es.ElasticsearchException: Fail to execute es requestES indices exists request on indices 'metadatas'
2023.10.23 07:33:28 ERROR web[][o.s.s.p.Platform] Background initialization failed. Stopping SonarQube
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'jdk.internal.loader.ClassLoaders$AppClassLoader@63dd899-org.sonar.server.es.IndexCreator': Initialization of bean failed; nested exception is org.sonar.server.es.ElasticsearchException: Fail to execute es requestES indices exists request on indices 'metadatas'
	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:628)
	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:542)
	at org.springframework.beans.factory.support.AbstractBeanFactory.lambda$doGetBean$0(AbstractBeanFactory.java:335)
	at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:234)
	at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:333)
	at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:208)
	at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:955)
	at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:920)
	at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:583)
	at org.sonar.core.platform.SpringComponentContainer.startComponents(SpringComponentContainer.java:187)
	at org.sonar.server.platform.platformlevel.PlatformLevel.start(PlatformLevel.java:80)
	at org.sonar.server.platform.platformlevel.PlatformLevel4.start(PlatformLevel4.java:662)
	at org.sonar.server.platform.PlatformImpl.start(PlatformImpl.java:214)
	at org.sonar.server.platform.PlatformImpl.startLevel34Containers(PlatformImpl.java:194)
	at org.sonar.server.platform.PlatformImpl$AutoStarterRunnable.runIfNotAborted(PlatformImpl.java:362)
	at org.sonar.server.platform.PlatformImpl$1.doRun(PlatformImpl.java:113)
	at org.sonar.server.platform.PlatformImpl$AutoStarterRunnable.run(PlatformImpl.java:346)
	at java.base/java.lang.Thread.run(Unknown Source)
Caused by: org.sonar.server.es.ElasticsearchException: Fail to execute es requestES indices exists request on indices 'metadatas'
	at org.sonar.server.es.EsClient.execute(EsClient.java:336)
	at org.sonar.server.es.EsClient.indexExists(EsClient.java:191)
	at org.sonar.server.es.IndexCreator.start(IndexCreator.java:78)
	at org.sonar.core.platform.StartableBeanPostProcessor.postProcessBeforeInitialization(StartableBeanPostProcessor.java:33)
	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyBeanPostProcessorsBeforeInitialization(AbstractAutowireCapableBeanFactory.java:440)
	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1796)
	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:620)
	... 17 common frames omitted
Caused by: org.elasticsearch.ElasticsearchException: java.util.concurrent.ExecutionException: java.net.ConnectException: Connection refused
	at org.elasticsearch.client.RestHighLevelClient.performClientRequest(RestHighLevelClient.java:2695)
	at org.elasticsearch.client.RestHighLevelClient.internalPerformRequest(RestHighLevelClient.java:2171)
	at org.elasticsearch.client.RestHighLevelClient.performRequest(RestHighLevelClient.java:2154)
	at org.elasticsearch.client.IndicesClient.exists(IndicesClient.java:1279)
	at org.sonar.server.es.EsClient.lambda$indexExists$20(EsClient.java:191)
	at org.sonar.server.es.EsClient.execute(EsClient.java:334)
	... 23 common frames omitted
Caused by: java.util.concurrent.ExecutionException: java.net.ConnectException: Connection refused
	at org.elasticsearch.common.util.concurrent.BaseFuture$Sync.getValue(BaseFuture.java:257)
	at org.elasticsearch.common.util.concurrent.BaseFuture$Sync.get(BaseFuture.java:244)
	at org.elasticsearch.common.util.concurrent.BaseFuture.get(BaseFuture.java:75)
	at org.elasticsearch.client.RestHighLevelClient.performClientRequest(RestHighLevelClient.java:2692)
	... 28 common frames omitted
Caused by: java.net.ConnectException: Connection refused
	at java.base/sun.nio.ch.Net.pollConnect(Native Method)
	at java.base/sun.nio.ch.Net.pollConnectNow(Unknown Source)
	at java.base/sun.nio.ch.SocketChannelImpl.finishConnect(Unknown Source)
	at org.apache.http.impl.nio.reactor.DefaultConnectingIOReactor.processEvent(DefaultConnectingIOReactor.java:174)
	at org.apache.http.impl.nio.reactor.DefaultConnectingIOReactor.processEvents(DefaultConnectingIOReactor.java:148)
	at org.apache.http.impl.nio.reactor.AbstractMultiworkerIOReactor.execute(AbstractMultiworkerIOReactor.java:351)
	at org.apache.http.impl.nio.conn.PoolingNHttpClientConnectionManager.execute(PoolingNHttpClientConnectionManager.java:221)
	at org.apache.http.impl.nio.client.CloseableHttpAsyncClientBase$1.run(CloseableHttpAsyncClientBase.java:64)
	... 1 common frames omitted
2023.10.23 07:33:28 INFO  web[][o.s.s.a.EmbeddedTomcat] HTTP connector enabled on port 9000
2023.10.23 07:33:28 INFO  web[][c.z.h.HikariDataSource] HikariPool-1 - Shutdown initiated...
2023.10.23 07:33:28 INFO  web[][c.z.h.HikariDataSource] HikariPool-1 - Shutdown completed.
2023.10.23 07:33:29 INFO  app[][o.s.a.SchedulerImpl] Process[Web Server] is stopped
2023.10.23 07:33:29 INFO  app[][o.s.a.SchedulerImpl] SonarQube is stopped
surendra.reddy@dev-dops-01:~/sonarqube/sonarqube$ 


Do not share screenshots of logs – share the text itself (bonus points for being well-formatted)!

1 Like

Hi,

The current version is 10.2. Can you upgrade and see if this is still replicable?

 
Thx,
Ann