- Which versions are you using: 2025.2.0.105476
- how is SonarQube deployed: Helm
- what are you trying to achieve: sonarqube up and running
- what have you tried so far to achieve this: restarted the deployment, checked file storage, database status, reviewed log messages, checked running processes
Recently our sonarqube instance stopped working while I was away. From what I understand nothing was changed on the service. In reviewing the logs I do not see anything other than harmless INFO messages and SQB waiting for elastic search to start up.
Here is the sonar.log output:
2025.05.12 11:27:06 INFO app[][o.s.a.AppFileSystem] Cleaning or creating temp directory /opt/sonarqube/temp
2025.05.12 11:27:06 INFO app[][o.s.a.es.EsSettings] Elasticsearch listening on [HTTP: 127.0.0.1:9001, TCP: 127.0.0.1:{}]
2025.05.12 11:27:06 INFO app[][o.s.a.ProcessLauncherImpl] Launch process[ELASTICSEARCH] from [/opt/sonarqube/elasticsearch]: /usr/local/openjdk-17/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
2025.05.12 11:27:06 INFO app[][o.s.a.SchedulerImpl] Waiting for Elasticsearch to be up and running
Here is the es.log output:
2025.05.12 11:27:18 INFO es[][o.e.n.NativeAccess] Using [jna] native provider and native methods for [Linux]
2025.05.12 11:27:21 INFO es[][o.e.n.Node] version[8.16.3], pid[81], build[tar/2eb78bceb86e182dc8f45ab76a704b1bfd352c9d/2025-01-10T10:08:28.587559883Z], OS[Linux/5.15.0-1068-azure/amd64], JVM[Oracle Corporation/OpenJDK 64-Bit Server VM/17.0.2/17.0.2+8-86]
2025.05.12 11:27:21 INFO es[][o.e.n.Node] JVM home [/usr/local/openjdk-17], using bundled JDK [false]
2025.05.12 11:27:21 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, -XX:ReplayDataFile=logs/replay_pid%p.log, -Des.distribution.type=tar, -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, -Des.enforce.bootstrap.checks=true, -Xmx512m, -Xms512m, -XX:MaxDirectMemorySize=256m, -XX:+HeapDumpOnOutOfMemoryError, -Dnode.store.allow_mmap=false, -XX:G1HeapRegionSize=4m, -XX:InitiatingHeapOccupancyPercent=30, -XX:G1ReservePercent=15, --module-path=/opt/sonarqube/elasticsearch/lib, --add-modules=jdk.net, --add-modules=ALL-MODULE-PATH, -Djdk.module.main=org.elasticsearch.server]
2025.05.12 11:27:21 INFO es[][o.e.n.Node] Default Locale [en]
2025.05.12 11:27:26 INFO es[][o.e.p.PluginsService] loaded module [rest-root]
2025.05.12 11:27:26 INFO es[][o.e.p.PluginsService] loaded module [reindex]
2025.05.12 11:27:26 INFO es[][o.e.p.PluginsService] loaded module [x-pack-core]
2025.05.12 11:27:26 INFO es[][o.e.p.PluginsService] loaded module [x-pack-redact]
2025.05.12 11:27:26 INFO es[][o.e.p.PluginsService] loaded module [x-pack-security]
2025.05.12 11:27:26 INFO es[][o.e.p.PluginsService] loaded module [x-pack-geoip-enterprise-downloader]
2025.05.12 11:27:26 INFO es[][o.e.p.PluginsService] loaded module [x-pack-esql-core]
2025.05.12 11:27:26 INFO es[][o.e.p.PluginsService] loaded module [x-pack-apm-data]
2025.05.12 11:27:26 INFO es[][o.e.p.PluginsService] loaded module [lang-painless]
2025.05.12 11:27:26 INFO es[][o.e.p.PluginsService] loaded module [old-lucene-versions]
2025.05.12 11:27:26 INFO es[][o.e.p.PluginsService] loaded module [parent-join]
2025.05.12 11:27:26 INFO es[][o.e.p.PluginsService] loaded module [counted-keyword]
2025.05.12 11:27:26 INFO es[][o.e.p.PluginsService] loaded module [logsdb]
2025.05.12 11:27:26 INFO es[][o.e.p.PluginsService] loaded module [x-pack-inference]
2025.05.12 11:27:26 INFO es[][o.e.p.PluginsService] loaded module [analysis-common]
2025.05.12 11:27:26 INFO es[][o.e.p.PluginsService] loaded module [dot-prefix-validation]
2025.05.12 11:27:26 INFO es[][o.e.p.PluginsService] loaded module [health-shards-availability]
2025.05.12 11:27:26 INFO es[][o.e.p.PluginsService] loaded module [transport-netty4]
2025.05.12 11:27:26 INFO es[][o.e.p.PluginsService] loaded module [x-pack-otel-data]
2025.05.12 11:27:26 INFO es[][o.e.p.PluginsService] loaded module [aggregations]
2025.05.12 11:27:26 INFO es[][o.e.p.PluginsService] loaded module [apm]
2025.05.12 11:27:31 INFO es[][o.e.e.NodeEnvironment] using [1] data paths, mounts [[/opt/sonarqube/data (//obfuscated.url.that.we.use/sonar-data)]], net usable_space [4.9tb], net total_space [5tb], types [cifs]
2025.05.12 11:27:31 INFO es[][o.e.e.NodeEnvironment] heap size [512mb], compressed ordinary object pointers [true]
2025.05.12 11:27:35 INFO es[][o.e.n.Node] node name [sonarqube], node ID [WsVNxhh7TR6MKYN-tgz13g], cluster name [sonarqube], roles [ingest, data_frozen, ml, data_hot, transform, data_content, data_warm, master, remote_cluster_client, data, data_cold]
2025.05.12 11:27:44 INFO es[][o.e.i.r.RecoverySettings] using rate limit [40mb] with [default=40mb, read=0b, write=0b, max=0b]
2025.05.12 11:27:44 INFO es[][o.e.f.FeatureService] Registered local node features [desired_node.version_deprecated, features_supported, file_settings, flattened.ignore_above_support, geoip.downloader.database.configuration, get_database_configuration_action.multi_node, health.extended_repository_indicator, knn_retriever_supported, license-trial-independent-version, mapper.boolean_dimension, mapper.flattened.ignore_above_with_arrays_support, mapper.ignore_above_index_level_setting, mapper.index_sorting_on_nested, mapper.keyword_dimension_ignore_above, mapper.keyword_normalizer_synthetic_source, mapper.pass_through_priority, mapper.query_index_mode, mapper.range.null_values_off_by_one_fix, mapper.segment_level_fields_stats, mapper.source.synthetic_source_copy_to_fix, mapper.source.synthetic_source_copy_to_inside_objects_fix, mapper.source.synthetic_source_fallback, mapper.source.synthetic_source_stored_fields_advance_fix, mapper.source.synthetic_source_with_copy_to_and_doc_values_false, mapper.subobjects_auto, mapper.subobjects_auto_fixes, mapper.synthetic_source_keep, mapper.track_ignored_source, mapper.vectors.bbq, mapper.vectors.bit_vectors, mapper.vectors.int4_quantization, put_database_configuration_action.ipinfo, random_reranker_retriever_supported, repositories.supports_usage_stats, rest.capabilities_action, rest.local_only_capabilities, retrievers_supported, routing.boolean_routing_path, routing.multi_value_routing_path, script.hamming, script.term_stats, search.vectors.k_param_supported, security.migration_framework, security.role_mapping_cleanup, security.roles_metadata_flattened, semantic_text.search_inference_id, simulate.component.template.substitutions, simulate.index.template.substitutions, simulate.mapping.validation, simulate.mapping.validation.templates, standard_retriever_supported, stats.include_disk_thresholds, text_similarity_reranker_retriever_composition_supported, text_similarity_reranker_retriever_supported, tsdb.ts_routing_hash_doc_value_parse_byte_ref, unified_highlighter_matched_fields, usage.data_tiers.precalculate_stats]
2025.05.12 11:27:44 INFO es[][o.e.c.m.DataStreamGlobalRetentionSettings] Updated default factory retention to [null]
2025.05.12 11:27:44 INFO es[][o.e.c.m.DataStreamGlobalRetentionSettings] Updated max factory retention to [null]
2025.05.12 11:27:45 INFO es[][o.e.x.s.Security] Security is disabled
2025.05.12 11:27:45 INFO es[][o.e.x.a.APMPlugin] APM ingest plugin is enabled
2025.05.12 11:27:45 INFO es[][o.e.x.c.t.YamlTemplateRegistry] apm index template registry is enabled
2025.05.12 11:27:46 INFO es[][o.e.x.o.OTelPlugin] OTel ingest plugin is enabled
2025.05.12 11:27:46 INFO es[][o.e.x.c.t.YamlTemplateRegistry] OpenTelemetry index template registry is enabled
2025.05.12 11:27:46 INFO es[][o.e.t.a.APM] Sending apm metrics is disabled
2025.05.12 11:27:46 INFO es[][o.e.t.a.APM] Sending apm tracing is disabled
2025.05.12 11:27:47 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}]
2025.05.12 11:27:47 INFO es[][o.e.d.DiscoveryModule] using discovery type [single-node] and seed hosts providers [settings]
2025.05.12 11:27:49 INFO es[][o.e.n.Node] initialized
2025.05.12 11:27:49 INFO es[][o.e.n.Node] starting ...
2025.05.12 11:27:49 INFO es[][o.e.t.TransportService] publish_address {127.0.0.1:34465}, bound_addresses {127.0.0.1:34465}
2025.05.12 11:27:52 INFO es[][o.e.b.BootstrapChecks] explicitly enforcing bootstrap checks
2025.05.12 11:27:52 INFO es[][o.e.c.c.ClusterBootstrapService] this node is locked into cluster UUID [ZE5dFAygR_-Lvd_9zZuCwA] and will not attempt further cluster bootstrapping
2025.05.12 11:27:52 INFO es[][o.e.c.s.MasterService] elected-as-master ([1] nodes joined in term 292)[_FINISH_ELECTION_, {sonarqube}{WsVNxhh7TR6MKYN-tgz13g}{4IPpUlg-Q4W202EA5FBDDw}{sonarqube}{127.0.0.1}{127.0.0.1:34465}{cdfhilmrstw}{8.16.3}{7000099-8518000} completing election], term: 292, version: 3366, delta: master node changed {previous [], current [{sonarqube}{WsVNxhh7TR6MKYN-tgz13g}{4IPpUlg-Q4W202EA5FBDDw}{sonarqube}{127.0.0.1}{127.0.0.1:34465}{cdfhilmrstw}{8.16.3}{7000099-8518000}]}
2025.05.12 11:27:53 INFO es[][o.e.c.s.ClusterApplierService] master node changed {previous [], current [{sonarqube}{WsVNxhh7TR6MKYN-tgz13g}{4IPpUlg-Q4W202EA5FBDDw}{sonarqube}{127.0.0.1}{127.0.0.1:34465}{cdfhilmrstw}{8.16.3}{7000099-8518000}]}, term: 292, version: 3366, reason: Publication{term=292, version=3366}
2025.05.12 11:27:53 INFO es[][o.e.c.c.NodeJoinExecutor] node-join: [{sonarqube}{WsVNxhh7TR6MKYN-tgz13g}{4IPpUlg-Q4W202EA5FBDDw}{sonarqube}{127.0.0.1}{127.0.0.1:34465}{cdfhilmrstw}{8.16.3}{7000099-8518000}] with reason [completing election]
2025.05.12 11:27:53 INFO es[][o.e.h.AbstractHttpServerTransport] publish_address {127.0.0.1:9001}, bound_addresses {127.0.0.1:9001}
2025.05.12 11:27:53 INFO es[][o.e.n.Node] started {sonarqube}{WsVNxhh7TR6MKYN-tgz13g}{4IPpUlg-Q4W202EA5FBDDw}{sonarqube}{127.0.0.1}{127.0.0.1:34465}{cdfhilmrstw}{8.16.3}{7000099-8518000}{rack_id=sonarqube, xpack.installed=true}
2025.05.12 11:27:54 INFO es[][o.e.l.ClusterStateLicenseService] license [6019a0a9-1cf6-4feb-8bdf-32a33dc58aea] mode [basic] - valid
2025.05.12 11:27:54 INFO es[][o.e.c.f.AbstractFileWatchingService] starting file watcher ...
2025.05.12 11:27:54 INFO es[][o.e.c.f.AbstractFileWatchingService] file settings service up and running [tid=34]
2025.05.12 11:27:54 INFO es[][o.e.r.s.FileSettingsService] setting file [/opt/sonarqube/temp/conf/es/operator/settings.json] not found, initializing [file_settings] as empty
2025.05.12 11:27:54 INFO es[][o.e.g.GatewayService] recovered [6] indices into cluster_state
2025.05.12 11:27:55 INFO es[][o.e.h.n.s.HealthNodeTaskExecutor] Node [{sonarqube}{WsVNxhh7TR6MKYN-tgz13g}] is selected as the current health node.
Not seeing any errors or issues, it just looks like sonarqube waits forever for elasticsearch to be in a ready state. Elasticsearch appears to be running fine from what I can tell in the logs.
The only thing I can think to do is up the log levels to see if we can see more information.