Installation Issues

Must-share information (formatted with Markdown):

  • which versions are you using (SonarQube Server / Community Build, Scanner, Plugin, and any relevant extension) SonarQube Server Version 2025.1 LTA Developer Edition
  • how is SonarQube deployed: zip, Docker, Helm: ZIP
  • what are you trying to achieve: fix installation issue Standard Commons Logging discovery in action with spring-jcl: please remove commons-logging.jar from classpath in order to avoid potential conflicts
  • what have you tried so far to achieve this: tested connection to database

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

Hey there.

That is probably not the actual problem. Have you checked all your log files for a clear ERROR?

This error is in the sonar log
WARN app[o.s.a.p.AbstractManagedProcess] Process exited with exit value [ElasticSearch]: 1

Do you see any error messages in es.log?

2025.03.19 08:40:39 ERROR es[][o.e.b.Elasticsearch] fatal exception while booting Elasticsearch
java.lang.NoClassDefFoundError: org/apache/commons/logging/LogFactory
	at org.apache.http.conn.ssl.AbstractVerifier.<init>(AbstractVerifier.java:61) ~[?:?]
	at org.apache.http.conn.ssl.AllowAllHostnameVerifier.<init>(AllowAllHostnameVerifier.java:44) ~[?:?]
	at org.apache.http.conn.ssl.AllowAllHostnameVerifier.<clinit>(AllowAllHostnameVerifier.java:46) ~[?:?]
	at org.apache.http.nio.conn.ssl.SSLIOSessionStrategy.<clinit>(SSLIOSessionStrategy.java:70) ~[?:?]
	at org.apache.http.impl.nio.conn.PoolingNHttpClientConnectionManager.getDefaultRegistry(PoolingNHttpClientConnectionManager.java:108) ~[?:?]
	at org.apache.http.impl.nio.conn.PoolingNHttpClientConnectionManager.<init>(PoolingNHttpClientConnectionManager.java:115) ~[?:?]
	at org.elasticsearch.xpack.inference.external.http.HttpClientManager.createConnectionManager(HttpClientManager.java:141) ~[?:?]
	at org.elasticsearch.xpack.inference.external.http.HttpClientManager.create(HttpClientManager.java:97) ~[?:?]
	at org.elasticsearch.xpack.inference.InferencePlugin.createComponents(InferencePlugin.java:191) ~[?:?]
	at org.elasticsearch.node.NodeConstruction.lambda$construct$16(NodeConstruction.java:884) ~[elasticsearch-8.16.1.jar:?]
	at org.elasticsearch.plugins.PluginsService.lambda$flatMap$1(PluginsService.java:254) ~[elasticsearch-8.16.1.jar:?]
	at java.util.stream.ReferencePipeline$7$1.accept(ReferencePipeline.java:273) ~[?:?]
	at java.util.stream.ReferencePipeline$3$1.accept(ReferencePipeline.java:197) ~[?:?]
	at java.util.AbstractList$RandomAccessSpliterator.forEachRemaining(AbstractList.java:720) ~[?:?]
	at java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:509) ~[?:?]
	at java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:499) ~[?:?]
	at java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:575) ~[?:?]
	at java.util.stream.AbstractPipeline.evaluateToArrayNode(AbstractPipeline.java:260) ~[?:?]
	at java.util.stream.ReferencePipeline.toArray(ReferencePipeline.java:616) ~[?:?]
	at java.util.stream.ReferencePipeline.toArray(ReferencePipeline.java:622) ~[?:?]
	at java.util.stream.ReferencePipeline.toList(ReferencePipeline.java:627) ~[?:?]
	at org.elasticsearch.node.NodeConstruction.construct(NodeConstruction.java:906) ~[elasticsearch-8.16.1.jar:?]
	at org.elasticsearch.node.NodeConstruction.prepareConstruction(NodeConstruction.java:288) ~[elasticsearch-8.16.1.jar:?]
	at org.elasticsearch.node.Node.<init>(Node.java:200) ~[elasticsearch-8.16.1.jar:?]
	at org.elasticsearch.bootstrap.Elasticsearch$2.<init>(Elasticsearch.java:240) ~[elasticsearch-8.16.1.jar:?]
	at org.elasticsearch.bootstrap.Elasticsearch.initPhase3(Elasticsearch.java:240) ~[elasticsearch-8.16.1.jar:?]
	at org.elasticsearch.bootstrap.Elasticsearch.main(Elasticsearch.java:75) ~[elasticsearch-8.16.1.jar:?]
Caused by: java.lang.ClassNotFoundException: org.apache.commons.logging.LogFactory
	at org.elasticsearch.plugins.ExtendedPluginsClassLoader.findClass(ExtendedPluginsClassLoader.java:39) ~[elasticsearch-8.16.1.jar:?]
	at java.lang.ClassLoader.loadClass(ClassLoader.java:592) ~[?:?]
	at java.lang.ClassLoader.loadClass(ClassLoader.java:525) ~[?:?]
	at jdk.internal.loader.Loader.loadClass(Loader.java:564) ~[?:?]
	at java.lang.ClassLoader.loadClass(ClassLoader.java:525) ~[?:?]

Strange! Is it possible you have some environment variables that might be setting some extra Java configuration? I’m thinking JAVA_TOOL_OPTIONS , _JAVA_OPTIONS. This can mess around with the classpath and could be intefering with Elasticsearch’s ability to start.


These are the only environmental variables I have

I had deleted the commons-logging.jar file. I put it back and this is the es log file
2025.03.19 13:16:31 INFO es[o.e.n.NativeAccess] Using [jna] native provider and native methods for [Windows]
2025.03.19 13:16:32 INFO es[o.e.n.Node] version[8.16.1], pid[3952], build[tar/ffe992aa682c1968b5df375b5095b3a21f122bf3/2024-11-19T16:00:31.793213192Z], OS[Windows Server 2019/10.0/amd64], JVM[Oracle Corporation/Java HotSpot™ 64-Bit Server VM/17.0.12/17.0.12+8-LTS-286]
2025.03.19 13:16:32 INFO es[o.e.n.Node] JVM home [C:\Program Files\java_home], using bundled JDK [false]
2025.03.19 13:16:32 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=C:\sonarqube-2025.1.0.102418\var\sonarqube\temp, -XX:ErrorFile=C:\sonarqube-2025.1.0.102418\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=C:\sonarqube-2025.1.0.102418\var\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, -XX:G1HeapRegionSize=4m, -XX:InitiatingHeapOccupancyPercent=30, -XX:G1ReservePercent=15, --module-path=C:\sonarqube-2025.1.0.102418\elasticsearch\lib, --add-modules=jdk.net, --add-modules=ALL-MODULE-PATH, -Djdk.module.main=org.elasticsearch.server]
2025.03.19 13:16:32 INFO es[o.e.n.Node] Default Locale [en_US]
2025.03.19 13:16:38 INFO es[o.e.p.PluginsService] loaded module [rest-root]
2025.03.19 13:16:38 INFO es[o.e.p.PluginsService] loaded module [reindex]
2025.03.19 13:16:38 INFO es[o.e.p.PluginsService] loaded module [x-pack-core]
2025.03.19 13:16:38 INFO es[o.e.p.PluginsService] loaded module [x-pack-redact]
2025.03.19 13:16:38 INFO es[o.e.p.PluginsService] loaded module [x-pack-security]
2025.03.19 13:16:38 INFO es[o.e.p.PluginsService] loaded module [x-pack-geoip-enterprise-downloader]
2025.03.19 13:16:38 INFO es[o.e.p.PluginsService] loaded module [x-pack-esql-core]
2025.03.19 13:16:38 INFO es[o.e.p.PluginsService] loaded module [x-pack-apm-data]
2025.03.19 13:16:38 INFO es[o.e.p.PluginsService] loaded module [lang-painless]
2025.03.19 13:16:38 INFO es[o.e.p.PluginsService] loaded module [old-lucene-versions]
2025.03.19 13:16:38 INFO es[o.e.p.PluginsService] loaded module [parent-join]
2025.03.19 13:16:38 INFO es[o.e.p.PluginsService] loaded module [counted-keyword]
2025.03.19 13:16:38 INFO es[o.e.p.PluginsService] loaded module [logsdb]
2025.03.19 13:16:38 INFO es[o.e.p.PluginsService] loaded module [analysis-common]
2025.03.19 13:16:38 INFO es[o.e.p.PluginsService] loaded module [x-pack-inference]
2025.03.19 13:16:38 INFO es[o.e.p.PluginsService] loaded module [dot-prefix-validation]
2025.03.19 13:16:38 INFO es[o.e.p.PluginsService] loaded module [health-shards-availability]
2025.03.19 13:16:38 INFO es[o.e.p.PluginsService] loaded module [transport-netty4]
2025.03.19 13:16:38 INFO es[o.e.p.PluginsService] loaded module [x-pack-otel-data]
2025.03.19 13:16:38 INFO es[o.e.p.PluginsService] loaded module [aggregations]
2025.03.19 13:16:38 INFO es[o.e.p.PluginsService] loaded module [apm]
2025.03.19 13:16:39 INFO es[o.e.e.NodeEnvironment] using [1] data paths, mounts [[(C:)]], net usable_space [20.6gb], net total_space [59.4gb], types [NTFS]
2025.03.19 13:16:39 INFO es[o.e.e.NodeEnvironment] heap size [512mb], compressed ordinary object pointers [true]
2025.03.19 13:16:39 INFO es[o.e.n.Node] node name [sonarqube], node ID [Zjhf2Xa_SYaM_JM1aTlOAg], cluster name [sonarqube], roles [data_frozen, ingest, data_cold, data, remote_cluster_client, master, data_warm, data_content, transform, data_hot, ml]
2025.03.19 13:16:41 INFO es[o.e.i.r.RecoverySettings] using rate limit [40mb] with [default=40mb, read=0b, write=0b, max=0b]
2025.03.19 13:16:41 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.03.19 13:16:41 INFO es[o.e.c.m.DataStreamGlobalRetentionSettings] Updated default factory retention to [null]
2025.03.19 13:16:41 INFO es[o.e.c.m.DataStreamGlobalRetentionSettings] Updated max factory retention to [null]
2025.03.19 13:16:41 INFO es[o.e.x.s.Security] Security is disabled
2025.03.19 13:16:41 INFO es[o.e.x.a.APMPlugin] APM ingest plugin is enabled
2025.03.19 13:16:41 INFO es[o.e.x.c.t.YamlTemplateRegistry] apm index template registry is enabled
2025.03.19 13:16:41 INFO es[o.e.x.o.OTelPlugin] OTel ingest plugin is enabled
2025.03.19 13:16:41 INFO es[o.e.x.c.t.YamlTemplateRegistry] OpenTelemetry index template registry is enabled
2025.03.19 13:16:41 INFO es[o.e.t.a.APM] Sending apm metrics is disabled
2025.03.19 13:16:41 INFO es[o.e.t.a.APM] Sending apm tracing is disabled
2025.03.19 13:16:41 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.03.19 13:16:41 INFO es[o.e.d.DiscoveryModule] using discovery type [single-node] and seed hosts providers [settings]
2025.03.19 13:16:42 INFO es[o.e.n.Node] initialized
2025.03.19 13:16:42 INFO es[o.e.n.Node] starting …
2025.03.19 13:16:42 INFO es[o.e.t.TransportService] publish_address {127.0.0.1:58599}, bound_addresses {127.0.0.1:58599}
2025.03.19 13:16:42 INFO es[o.e.b.BootstrapChecks] explicitly enforcing bootstrap checks
2025.03.19 13:16:42 INFO es[o.e.c.c.ClusterBootstrapService] this node is locked into cluster UUID [rJzmJAZdSYKk9ugUC2aMDw] and will not attempt further cluster bootstrapping
2025.03.19 13:16:42 INFO es[o.e.c.s.MasterService] elected-as-master ([1] nodes joined in term 10)[FINISH_ELECTION, {sonarqube}{Zjhf2Xa_SYaM_JM1aTlOAg}{YYo7L1A3RqipDaU-I4i-LA}{sonarqube}{127.0.0.1}{127.0.0.1:58599}{cdfhilmrstw}{8.16.1}{7000099-8518000} completing election], term: 10, version: 47, delta: master node changed {previous , current [{sonarqube}{Zjhf2Xa_SYaM_JM1aTlOAg}{YYo7L1A3RqipDaU-I4i-LA}{sonarqube}{127.0.0.1}{127.0.0.1:58599}{cdfhilmrstw}{8.16.1}{7000099-8518000}]}
2025.03.19 13:16:42 INFO es[o.e.c.s.ClusterApplierService] master node changed {previous , current [{sonarqube}{Zjhf2Xa_SYaM_JM1aTlOAg}{YYo7L1A3RqipDaU-I4i-LA}{sonarqube}{127.0.0.1}{127.0.0.1:58599}{cdfhilmrstw}{8.16.1}{7000099-8518000}]}, term: 10, version: 47, reason: Publication{term=10, version=47}
2025.03.19 13:16:42 INFO es[o.e.c.c.NodeJoinExecutor] node-join: [{sonarqube}{Zjhf2Xa_SYaM_JM1aTlOAg}{YYo7L1A3RqipDaU-I4i-LA}{sonarqube}{127.0.0.1}{127.0.0.1:58599}{cdfhilmrstw}{8.16.1}{7000099-8518000}] with reason [completing election]
2025.03.19 13:16:42 INFO es[o.e.h.AbstractHttpServerTransport] publish_address {127.0.0.1:9001}, bound_addresses {127.0.0.1:9001}
2025.03.19 13:16:42 INFO es[o.e.n.Node] started {sonarqube}{Zjhf2Xa_SYaM_JM1aTlOAg}{YYo7L1A3RqipDaU-I4i-LA}{sonarqube}{127.0.0.1}{127.0.0.1:58599}{cdfhilmrstw}{8.16.1}{7000099-8518000}{xpack.installed=true, rack_id=sonarqube}
2025.03.19 13:16:43 INFO es[o.e.l.ClusterStateLicenseService] license [2dbbc8b4-00c9-48d9-9960-4b4e327b28c3] mode [basic] - valid
2025.03.19 13:16:43 INFO es[o.e.c.f.AbstractFileWatchingService] starting file watcher …
2025.03.19 13:16:43 INFO es[o.e.g.GatewayService] recovered [0] indices into cluster_state
2025.03.19 13:16:43 INFO es[o.e.c.f.AbstractFileWatchingService] file settings service up and running [tid=39]
2025.03.19 13:16:43 INFO es[o.e.r.s.FileSettingsService] setting file [C:\sonarqube-2025.1.0.102418\var\sonarqube\temp\conf\es\operator\settings.json] not found, initializing [file_settings] as empty
2025.03.19 13:16:43 INFO es[o.e.h.n.s.HealthNodeTaskExecutor] Node [{sonarqube}{Zjhf2Xa_SYaM_JM1aTlOAg}] is selected as the current health node.
2025.03.19 13:16:46 INFO es[o.e.n.Node] stopping …
2025.03.19 13:16:46 INFO es[o.e.c.f.AbstractFileWatchingService] shutting down watcher thread
2025.03.19 13:16:46 INFO es[o.e.c.f.AbstractFileWatchingService] watcher service stopped
2025.03.19 13:16:46 INFO es[o.e.n.Node] stopped
2025.03.19 13:16:46 INFO es[o.e.n.Node] closing …
2025.03.19 13:16:46 INFO es[o.e.n.Node] closed

sonar.txt (3.2 KB)
es.log (21.3 KB)
web.log (12 KB)

Time to look at the web.log file :wink: The docs on Installing the SonarQube Server database > Microsoft SQL Server will help you!

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.