I try to update to latest SonarQube 7.0.61563 and get all time Elastic Search reboot loop, es.log
:
2022.10.20 21:57:05 INFO es[][o.e.n.Node] version[7.17.5], pid[2232121], build[default/tar/8d61b4f7ddf931f219e3745f295ed2bbc50c8e84/2022-06-23T21:57:28.736740635Z], OS[Linux/5.15.0-50-generic/amd64], JVM[Ubuntu/OpenJDK 64-Bit Server VM/11.0.16/11.0.16+8-post-Ubuntu-0ubuntu122.04]
2022.10.20 21:57:05 INFO es[][o.e.n.Node] JVM home [/usr/lib/jvm/java-11-openjdk-amd64]
2022.10.20 21:57:05 INFO es[][o.e.n.Node] JVM arguments [-XX:+UseG1GC, -Djava.io.tmpdir=/opt/sonarqube/9.7.0.61563/temp, -XX:ErrorFile=../logs/es_hs_err_pid%p.log, -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/9.7.0.61563/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, -Des.path.home=/opt/sonarqube/9.7.0.61563/elasticsearch, -Des.path.conf=/opt/sonarqube/9.7.0.61563/temp/conf/es, -Des.distribution.flavor=default, -Des.distribution.type=tar, -Des.bundled_jdk=false]
2022.10.20 21:57:05 INFO es[][o.e.p.PluginsService] loaded module [analysis-common]
2022.10.20 21:57:05 INFO es[][o.e.p.PluginsService] loaded module [lang-painless]
2022.10.20 21:57:05 INFO es[][o.e.p.PluginsService] loaded module [parent-join]
2022.10.20 21:57:05 INFO es[][o.e.p.PluginsService] loaded module [reindex]
2022.10.20 21:57:05 INFO es[][o.e.p.PluginsService] loaded module [transport-netty4]
2022.10.20 21:57:05 INFO es[][o.e.p.PluginsService] no plugins loaded
2022.10.20 21:57:05 INFO es[][o.e.e.NodeEnvironment] using [1] data paths, mounts [[/ (/dev/sda2)]], net usable_space [27.2gb], net total_space [108.9gb], types [ext4]
2022.10.20 21:57:05 INFO es[][o.e.e.NodeEnvironment] heap size [512mb], compressed ordinary object pointers [true]
2022.10.20 21:57:05 INFO es[][o.e.n.Node] node name [sonarqube], node ID [Hm_eXsUqR9S7OWZgZGR3LA], cluster name [sonarqube], roles [data_frozen, master, remote_cluster_client, data, data_content, data_hot, data_warm, data_cold, ingest]
2022.10.20 21:57:08 INFO es[][o.e.t.NettyAllocator] creating NettyAllocator with the following configs: [name=unpooled, suggested_max_allocation_size=256kb, factors={es.unsafe.use_unpooled_allocator=null, g1gc_enabled=true, g1gc_region_size=1mb, heap_size=512mb}]
2022.10.20 21:57:08 INFO es[][o.e.i.r.RecoverySettings] using rate limit [40mb] with [default=40mb, read=0b, write=0b, max=0b]
2022.10.20 21:57:08 INFO es[][o.e.d.DiscoveryModule] using discovery type [zen] and seed hosts providers [settings]
2022.10.20 21:57:08 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
2022.10.20 21:57:08 INFO es[][o.e.n.Node] initialized
2022.10.20 21:57:08 INFO es[][o.e.n.Node] starting ...
2022.10.20 21:57:08 INFO es[][o.e.t.TransportService] publish_address {127.0.0.1:38533}, bound_addresses {127.0.0.1:38533}
2022.10.20 21:57:09 INFO es[][o.e.b.BootstrapChecks] explicitly enforcing bootstrap checks
2022.10.20 21:57:09 INFO es[][o.e.c.c.Coordinator] cluster UUID [pbP0sGR2SJuOnWwdgp1MbA]
2022.10.20 21:57:09 INFO es[][o.e.c.s.MasterService] elected-as-master ([1] nodes joined)[{sonarqube}{Hm_eXsUqR9S7OWZgZGR3LA}{kuqGYDbcSZeCRojDCnnH1Q}{127.0.0.1}{127.0.0.1:38533}{cdfhimrsw} elect leader, _BECOME_MASTER_TASK_, _FINISH_ELECTION_], term: 31, version: 61, delta: master node changed {previous [], current [{sonarqube}{Hm_eXsUqR9S7OWZgZGR3LA}{kuqGYDbcSZeCRojDCnnH1Q}{127.0.0.1}{127.0.0.1:38533}{cdfhimrsw}]}
2022.10.20 21:57:09 INFO es[][o.e.c.s.ClusterApplierService] master node changed {previous [], current [{sonarqube}{Hm_eXsUqR9S7OWZgZGR3LA}{kuqGYDbcSZeCRojDCnnH1Q}{127.0.0.1}{127.0.0.1:38533}{cdfhimrsw}]}, term: 31, version: 61, reason: Publication{term=31, version=61}
2022.10.20 21:57:09 INFO es[][o.e.h.AbstractHttpServerTransport] publish_address {127.0.0.1:9001}, bound_addresses {127.0.0.1:9001}
2022.10.20 21:57:09 INFO es[][o.e.n.Node] started
2022.10.20 21:57:09 INFO es[][o.e.g.GatewayService] recovered [0] indices into cluster_state
2022.10.20 21:57:09 INFO es[][o.e.n.Node] stopping ...
2022.10.20 21:57:09 INFO es[][o.e.n.Node] stopped
2022.10.20 21:57:09 INFO es[][o.e.n.Node] closing ...
2022.10.20 21:57:09 INFO es[][o.e.n.Node] closed
I thing the most important line is:
2022.10.20 21:57:09 INFO es[][o.e.g.GatewayService] recovered [0] indices into cluster_state
sonar.log
2022.10.20 21:57:17 INFO app[][o.s.a.ProcessLauncherImpl] Launch process[ELASTICSEARCH] from [/opt/sonarqube/9.7.0.61563/elasticsearch]: /opt/sonarqube/9.7.0.61563/elasticsearch/bin/elasticsearch
2022.10.20 21:57:17 INFO app[][o.s.a.SchedulerImpl] Waiting for Elasticsearch to be up and running
2022.10.20 21:57:18 INFO app[][o.s.a.SchedulerImpl] Stopping SonarQube
2022.10.20 21:57:18 INFO app[][o.s.a.SchedulerImpl] Sonarqube has been requested to stop
2022.10.20 21:57:18 INFO app[][o.s.a.SchedulerImpl] Stopping [Compute Engine] process...
2022.10.20 21:57:18 INFO app[][o.s.a.SchedulerImpl] Stopping [Web Server] process...
2022.10.20 21:57:18 INFO app[][o.s.a.SchedulerImpl] Stopping [ElasticSearch] process...
2022.10.20 21:57:18 WARN app[][o.s.a.p.AbstractManagedProcess] Process exited with exit value [ElasticSearch]: 143
2022.10.20 21:57:18 INFO app[][o.s.a.SchedulerImpl] Process[ElasticSearch] is stopped
2022.10.20 21:57:18 INFO app[][o.s.a.SchedulerImpl] SonarQube is stopped
Here the most important:
2022.10.20 21:57:18 WARN app[][o.s.a.p.AbstractManagedProcess] Process exited with exit value [ElasticSearch]: 143