Sonar is not starting up

Hello *,

my sonarqube instance is not starting up because elastic search cannot start. Here my es.log

2023.02.08 23:22:17 INFO es[][o.e.n.Node] JVM arguments [-XX:+UseG1GC, -Djava.io.tmpdir=/opt/sonarqube/sonarqube-9.9.0.65466/temp, -XX:ErrorFile=/opt/sonarqube/sonarqube-9.9.0.65466/logs/es_hs_err_pid%p.log, -Des.net

workaddress.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/sonarqube-9.9.0.65466/te

mp, -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, -Xms2g, -Xmx2g, -Des.path.home=/opt/sonarqube/sonarqube-9.9.0

.65466/elasticsearch, -Des.path.conf=/opt/sonarqube/sonarqube-9.9.0.65466/temp/conf/es, -Des.distribution.flavor=default, -Des.distribution.type=tar, -Des.bundled_jdk=false]

2023.02.08 23:22:18 INFO es[][o.e.p.PluginsService] loaded module [analysis-common]

2023.02.08 23:22:18 INFO es[][o.e.p.PluginsService] loaded module [lang-painless]

2023.02.08 23:22:18 INFO es[][o.e.p.PluginsService] loaded module [parent-join]

2023.02.08 23:22:18 INFO es[][o.e.p.PluginsService] loaded module [reindex]

2023.02.08 23:22:18 INFO es[][o.e.p.PluginsService] loaded module [transport-netty4]

2023.02.08 23:22:18 INFO es[][o.e.p.PluginsService] no plugins loaded

2023.02.08 23:22:18 INFO es[][o.e.e.NodeEnvironment] using [1] data paths, mounts [[/ (/dev/mapper/teniosrnd1--vg-root)]], net usable_space [34.8gb], net total_space [145.3gb], types [ext4]

2023.02.08 23:22:18 INFO es[][o.e.e.NodeEnvironment] heap size [2gb], compressed ordinary object pointers [true]

2023.02.08 23:22:18 INFO es[][o.e.n.Node] node name [sonarqube], node ID [f2qTtBePQHesh-i2JUeIwQ], cluster name [sonarqube], roles [data_frozen, master, remote_cluster_client, data, data_content, data_hot, data_warm,

data_cold, ingest]

2023.02.08 23:22:20 INFO es[][o.e.t.NettyAllocator] creating NettyAllocator with the following configs: [name=elasticsearch_configured, chunk_size=256kb, suggested_max_allocation_size=256kb, factors={es.unsafe.use_ne

tty_default_chunk_and_page_size=false, g1gc_enabled=true, g1gc_region_size=1mb}]

2023.02.08 23:22:20 INFO es[][o.e.i.r.RecoverySettings] using rate limit [40mb] with [default=40mb, read=0b, write=0b, max=0b]

2023.02.08 23:22:20 INFO es[][o.e.d.DiscoveryModule] using discovery type [zen] and seed hosts providers [settings]

2023.02.08 23:22:20 INFO es[][o.e.g.DanglingIndicesState] gateway.auto_import_dangling_indices is disabled, dangling indices will not be automatically detected or imported and must be managed manually

2023.02.08 23:22:21 INFO es[][o.e.n.Node] initialized

2023.02.08 23:22:21 INFO es[][o.e.n.Node] starting ...

2023.02.08 23:22:21 INFO es[][o.e.t.TransportService] publish_address {127.0.0.1:44937}, bound_addresses {127.0.0.1:44937}

2023.02.08 23:22:21 INFO es[][o.e.b.BootstrapChecks] explicitly enforcing bootstrap checks

2023.02.08 23:22:21 INFO es[][o.e.c.c.Coordinator] cluster UUID [Yi6tL_PySeayexBa01vqXA]

2023.02.08 23:22:21 INFO es[][o.e.c.s.MasterService] elected-as-master ([1] nodes joined)[{sonarqube}{f2qTtBePQHesh-i2JUeIwQ}{Ccef4zilRJK64WTDTcPrGQ}{127.0.0.1}{127.0.0.1:44937}{cdfhimrsw} elect leader, _BECOME_MASTE

R_TASK_, _FINISH_ELECTION_], term: 67, version: 133, delta: master node changed {previous [], current [{sonarqube}{f2qTtBePQHesh-i2JUeIwQ}{Ccef4zilRJK64WTDTcPrGQ}{127.0.0.1}{127.0.0.1:44937}{cdfhimrsw}]}

2023.02.08 23:22:21 INFO es[][o.e.c.s.ClusterApplierService] master node changed {previous [], current [{sonarqube}{f2qTtBePQHesh-i2JUeIwQ}{Ccef4zilRJK64WTDTcPrGQ}{127.0.0.1}{127.0.0.1:44937}{cdfhimrsw}]}, term: 67,

version: 133, reason: Publication{term=67, version=133}

2023.02.08 23:22:21 INFO es[][o.e.h.AbstractHttpServerTransport] publish_address {127.0.0.1:9001}, bound_addresses {127.0.0.1:9001}

2023.02.08 23:22:21 INFO es[][o.e.n.Node] started

2023.02.08 23:22:21 INFO es[][o.e.g.GatewayService] recovered [0] indices into cluster_state

2023.02.08 23:22:23 INFO es[][o.e.n.Node] stopping ...

2023.02.08 23:22:23 INFO es[][o.e.n.Node] stopped

2023.02.08 23:22:23 INFO es[][o.e.n.Node] closing ...

2023.02.08 23:22:23 INFO es[][o.e.n.Node] closed

Hey there.

It’s not clear from the logs that something went wrong with Elasticsearch – just that it stopped (which could be the side effect of other processes not succeeding starting).

Are there any errors in the other logs?