All of a sudden Exception in thread "main" java.lang.UnsupportedOperationException

I have SQ which was working fine, I always run it using
/opt/sonarqube/sonarqube-10.7.0.96327/bin/linux-x86-64/sonar.sh console
This morning I did the same thing but it did not go through with the following log in the terminal

Running SonarQube...
Removed stale pid file: ./SonarQube.pid
2025.02.01 11:20:07 INFO  app[][o.s.a.AppFileSystem] Cleaning or creating temp directory /opt/sonarqube/sonarqube-10.7.0.96327/temp
2025.02.01 11:20:08 INFO  app[][o.s.a.es.EsSettings] Elasticsearch listening on [HTTP: 127.0.0.1:9001, TCP: 127.0.0.1:39655]
2025.02.01 11:20:10 INFO  app[][o.s.a.ProcessLauncherImpl] Launch process[ELASTICSEARCH] from [/opt/sonarqube/sonarqube-10.7.0.96327/elasticsearch]: /usr/lib/jvm/java-21-openjdk-21.0.5.0.11-1.fc41.x86_64/bin/java -Xms4m -Xmx64m -XX:+UseSerialGC -Dcli.name=server -Dcli.script=./bin/elasticsearch -Dcli.libs=lib/tools/server-cli -Des.path.home=/opt/sonarqube/sonarqube-10.7.0.96327/elasticsearch -Des.path.conf=/opt/sonarqube/sonarqube-10.7.0.96327/temp/conf/es -Des.distribution.type=tar -cp /opt/sonarqube/sonarqube-10.7.0.96327/elasticsearch/lib/*:/opt/sonarqube/sonarqube-10.7.0.96327/elasticsearch/lib/cli-launcher/* org.elasticsearch.launcher.CliToolLauncher
2025.02.01 11:20:10 INFO  app[][o.s.a.SchedulerImpl] Waiting for Elasticsearch to be up and running
Feb 01, 2025 11:20:57 AM sun.util.locale.provider.LocaleProviderAdapter <clinit>
WARNING: COMPAT locale provider will be removed in a future release
2025.02.01 11:23:34 INFO  es[][o.e.n.NativeAccess] Using [jdk] native provider and native methods for [Linux]
2025.02.01 11:23:36 WARN  es[][o.a.l.i.v.VectorizationProvider] Java vector incubator module is not readable. For optimal vector performance, pass --add-modules jdk.incubator.vector to enable Vector API.
2025.02.01 11:23:38 INFO  es[][o.e.n.Node] version[8.14.1], pid[4401], build[tar/93a57a1a76f556d8aee6a90d1a95b06187501310/2024-06-10T23:35:17.114581191Z], OS[Linux/6.11.10-300.fc41.x86_64/amd64], JVM[Red Hat, Inc./OpenJDK 64-Bit Server VM/21.0.5/21.0.5+11]
2025.02.01 11:23:38 INFO  es[][o.e.n.Node] JVM home [/usr/lib/jvm/java-21-openjdk-21.0.5.0.11-1.fc41.x86_64], using bundled JDK [false]
2025.02.01 11:23:38 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=org.elasticsearch.preallocate, --add-opens=org.apache.lucene.core/org.apache.lucene.store=org.elasticsearch.vec, --enable-native-access=org.elasticsearch.nativeaccess, -XX:ReplayDataFile=logs/replay_pid%p.log, -Djava.library.path=/opt/sonarqube/sonarqube-10.7.0.96327/elasticsearch/lib/platform/linux-x64:/usr/java/packages/lib:/usr/lib64:/lib64:/lib:/usr/lib, -Djna.library.path=/opt/sonarqube/sonarqube-10.7.0.96327/elasticsearch/lib/platform/linux-x64:/usr/java/packages/lib:/usr/lib64:/lib64:/lib:/usr/lib, -Des.distribution.type=tar, -XX:+UseG1GC, -Djava.io.tmpdir=/opt/sonarqube/sonarqube-10.7.0.96327/temp, -XX:ErrorFile=/opt/sonarqube/sonarqube-10.7.0.96327/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/sonarqube-10.7.0.96327/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=/opt/sonarqube/sonarqube-10.7.0.96327/elasticsearch/lib, --add-modules=jdk.net, --add-modules=ALL-MODULE-PATH, -Djdk.module.main=org.elasticsearch.server]
2025.02.01 11:23:38 INFO  es[][o.e.n.Node] Default Locale [en_US]
2025.02.01 11:23:54 INFO  es[][o.e.p.PluginsService] loaded module [rest-root]
2025.02.01 11:23:54 INFO  es[][o.e.p.PluginsService] loaded module [x-pack-core]
2025.02.01 11:23:54 INFO  es[][o.e.p.PluginsService] loaded module [x-pack-redact]
2025.02.01 11:23:54 INFO  es[][o.e.p.PluginsService] loaded module [reindex]
2025.02.01 11:23:54 INFO  es[][o.e.p.PluginsService] loaded module [x-pack-security]
2025.02.01 11:23:54 INFO  es[][o.e.p.PluginsService] loaded module [x-pack-apm-data]
2025.02.01 11:23:54 INFO  es[][o.e.p.PluginsService] loaded module [old-lucene-versions]
2025.02.01 11:23:54 INFO  es[][o.e.p.PluginsService] loaded module [lang-painless]
2025.02.01 11:23:54 INFO  es[][o.e.p.PluginsService] loaded module [parent-join]
2025.02.01 11:23:54 INFO  es[][o.e.p.PluginsService] loaded module [counted-keyword]
2025.02.01 11:23:54 INFO  es[][o.e.p.PluginsService] loaded module [x-pack-inference]
2025.02.01 11:23:54 INFO  es[][o.e.p.PluginsService] loaded module [analysis-common]
2025.02.01 11:23:54 INFO  es[][o.e.p.PluginsService] loaded module [health-shards-availability]
2025.02.01 11:23:54 INFO  es[][o.e.p.PluginsService] loaded module [transport-netty4]
2025.02.01 11:23:54 INFO  es[][o.e.p.PluginsService] loaded module [apm]
2025.02.01 11:23:54 INFO  es[][o.e.p.PluginsService] loaded module [aggregations]
2025.02.01 11:23:58 INFO  es[][o.e.e.NodeEnvironment] using [1] data paths, mounts [[/ (/dev/mapper/fedora-root)]], net usable_space [13.7gb], net total_space [47.4gb], types [ext4]
2025.02.01 11:23:58 INFO  es[][o.e.e.NodeEnvironment] heap size [512mb], compressed ordinary object pointers [true]
2025.02.01 11:23:58 INFO  es[][o.e.n.Node] node name [sonarqube], node ID [lBLiRkN-Rve-OxUUOLx_Wg], cluster name [sonarqube], roles [ml, data_hot, transform, data_content, data_warm, master, remote_cluster_client, data, data_cold, ingest, data_frozen]
2025.02.01 11:24:04 INFO  es[][o.e.f.FeatureService] Registered local node features [desired_node.version_deprecated, features_supported, health.extended_repository_indicator, knn_retriever_supported, license-trial-independent-version, retrievers_supported, standard_retriever_supported, usage.data_tiers.precalculate_stats]
2025.02.01 11:24:05 INFO  es[][o.e.x.s.Security] Security is disabled
2025.02.01 11:24:05 INFO  es[][o.e.x.a.APMPlugin] APM ingest plugin is disabled
2025.02.01 11:24:06 INFO  es[][o.e.t.a.APM] Sending apm metrics is disabled
2025.02.01 11:24:06 INFO  es[][o.e.t.a.APM] Sending apm tracing is disabled
2025.02.01 11:24:06 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.02.01 11:24:07 INFO  es[][o.e.i.r.RecoverySettings] using rate limit [40mb] with [default=40mb, read=0b, write=0b, max=0b]
2025.02.01 11:24:07 INFO  es[][o.e.d.DiscoveryModule] using discovery type [single-node] and seed hosts providers [settings]
2025.02.01 11:24:08 INFO  es[][o.e.n.Node] initialized
2025.02.01 11:24:08 INFO  es[][o.e.n.Node] starting ...
2025.02.01 11:24:08 INFO  es[][o.e.t.TransportService] publish_address {127.0.0.1:39655}, bound_addresses {127.0.0.1:39655}
2025.02.01 11:24:09 INFO  es[][o.e.b.BootstrapChecks] explicitly enforcing bootstrap checks
2025.02.01 11:24:09 INFO  es[][o.e.c.c.ClusterBootstrapService] this node is locked into cluster UUID [ErvmE5m6Q1aN0fRQGzMg0w] and will not attempt further cluster bootstrapping
2025.02.01 11:24:10 INFO  es[][o.e.c.s.MasterService] elected-as-master ([1] nodes joined in term 4)[_FINISH_ELECTION_, {sonarqube}{lBLiRkN-Rve-OxUUOLx_Wg}{BSv5jV0YRjOtigVsrxdSUw}{sonarqube}{127.0.0.1}{127.0.0.1:39655}{cdfhilmrstw}{8.14.1}{7000099-8505000} completing election], term: 4, version: 94, delta: master node changed {previous [], current [{sonarqube}{lBLiRkN-Rve-OxUUOLx_Wg}{BSv5jV0YRjOtigVsrxdSUw}{sonarqube}{127.0.0.1}{127.0.0.1:39655}{cdfhilmrstw}{8.14.1}{7000099-8505000}]}
2025.02.01 11:24:10 INFO  es[][o.e.c.s.ClusterApplierService] master node changed {previous [], current [{sonarqube}{lBLiRkN-Rve-OxUUOLx_Wg}{BSv5jV0YRjOtigVsrxdSUw}{sonarqube}{127.0.0.1}{127.0.0.1:39655}{cdfhilmrstw}{8.14.1}{7000099-8505000}]}, term: 4, version: 94, reason: Publication{term=4, version=94}
2025.02.01 11:24:10 INFO  es[][o.e.c.f.AbstractFileWatchingService] starting file watcher ...
2025.02.01 11:24:10 INFO  es[][o.e.c.f.AbstractFileWatchingService] file settings service up and running [tid=36]
2025.02.01 11:24:10 INFO  es[][o.e.r.s.FileSettingsService] setting file [/opt/sonarqube/sonarqube-10.7.0.96327/temp/conf/es/operator/settings.json] not found, initializing [file_settings] as empty
2025.02.01 11:24:10 INFO  es[][o.e.c.c.NodeJoinExecutor] node-join: [{sonarqube}{lBLiRkN-Rve-OxUUOLx_Wg}{BSv5jV0YRjOtigVsrxdSUw}{sonarqube}{127.0.0.1}{127.0.0.1:39655}{cdfhilmrstw}{8.14.1}{7000099-8505000}] with reason [completing election]
2025.02.01 11:24:10 INFO  es[][o.e.h.AbstractHttpServerTransport] publish_address {127.0.0.1:9001}, bound_addresses {127.0.0.1:9001}
2025.02.01 11:24:10 INFO  es[][o.e.n.Node] started {sonarqube}{lBLiRkN-Rve-OxUUOLx_Wg}{BSv5jV0YRjOtigVsrxdSUw}{sonarqube}{127.0.0.1}{127.0.0.1:39655}{cdfhilmrstw}{8.14.1}{7000099-8505000}{xpack.installed=true, rack_id=sonarqube}
2025.02.01 11:24:11 INFO  es[][o.e.l.ClusterStateLicenseService] license [9a669874-cbee-4364-95f0-0f5b53315fdf] mode [basic] - valid
2025.02.01 11:24:11 INFO  es[][o.e.g.GatewayService] recovered [6] indices into cluster_state
2025.02.01 11:24:12 INFO  es[][o.e.h.n.s.HealthNodeTaskExecutor] Node [{sonarqube}{lBLiRkN-Rve-OxUUOLx_Wg}] is selected as the current health node.
2025.02.01 11:24:28 INFO  es[][o.e.c.r.a.AllocationService] current.health="GREEN" message="Cluster health status changed from [RED] to [GREEN] (reason: [shards started [[components][4], [metadatas][0]]])." previous.health="RED" reason="shards started [[components][4], [metadatas][0]]"
2025.02.01 11:24:29 INFO  app[][o.s.a.SchedulerImpl] Process[es] is up
2025.02.01 11:24:29 INFO  app[][o.s.a.ProcessLauncherImpl] Launch process[WEB_SERVER] from [/opt/sonarqube/sonarqube-10.7.0.96327]: /usr/lib/jvm/java-21-openjdk-21.0.5.0.11-1.fc41.x86_64/bin/java -Djava.awt.headless=true -Dfile.encoding=UTF-8 -Djava.io.tmpdir=/opt/sonarqube/sonarqube-10.7.0.96327/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 -Xmx512m -Xms128m -XX:+HeapDumpOnOutOfMemoryError -Dhttp.nonProxyHosts=localhost|127.*|[::1] -cp ./lib/sonar-application-10.7.0.96327.jar:/opt/sonarqube/sonarqube-10.7.0.96327/lib/jdbc/mssql/mssql-jdbc-12.6.3.jre11.jar org.sonar.server.app.WebServer /opt/sonarqube/sonarqube-10.7.0.96327/temp/sq-process12527188902870654083properties
Exception in thread "main" java.lang.UnsupportedOperationException: The Security Manager is deprecated and will be removed in a future release
	at java.base/java.lang.System.setSecurityManager(System.java:430)
	at org.sonar.process.PluginSecurityManager.restrictPlugins(PluginSecurityManager.java:42)
	at org.sonar.server.app.WebSecurityManager.apply(WebSecurityManager.java:47)
	at org.sonar.server.app.WebServer.main(WebServer.java:101)
2025.02.01 11:24:29 WARN  app[][o.s.a.p.AbstractManagedProcess] Process exited with exit value [Web Server]: 1
2025.02.01 11:24:29 INFO  app[][o.s.a.SchedulerImpl] Process[Web Server] is stopped
2025.02.01 11:24:30 INFO  app[][o.s.a.SchedulerImpl] Process[ElasticSearch] is stopped
2025.02.01 11:24:30 INFO  app[][o.s.a.SchedulerImpl] SonarQube is stopped
2025.02.01 11:24:30 WARN  app[][o.s.a.p.AbstractManagedProcess] Process exited with exit value [ElasticSearch]: 143
  • which versions are you using (SonarQube Server / Community Build, Scanner, Plugin, and any relevant extension)
    10.7.0.96327
  • how is SonarQube deployed: zip
  • what are you trying to achieve
    start sonarqube as usual
  • what have you tried so far to achieve this
    retried lauching a couple of times

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

Hi,

SonarQube 10.7 requires JDK 17, it doesn’t work with newer versions. Support for JDK 21 was added in SonarQube 25.1.

You can change the JDK version used by SonarQube setting the env var SONAR_JAVA_PATH like:

export SONAR_JAVA_PATH="path/to/java_home/bin/java"

Thanks, yes I added SONAR_JAVA_PATH to point to jdk 17 which always was the last version but 2 weeks ago I upgraded fedora 39 to 41 and think that this made 21 the default.
Now, can I upgrade SQ to 25.1 from 10.7? I noticed in the interface that my version 10.7 is not active anymore
image

OK, I upgraded to 2025 (as usual using the zip mode), when I run

~]$ /opt/sonarqube/sonarqube-25.1.0.102122/bin/linux-x86-64/sonar.sh console
I am getting the same error. it seems that it is using the right Java. I even did
export SONAR_JAVA_PATH="/usr/lib/jvm/java-21-openjdk-21.0.6.0.7-1.fc41.x86_64/bin/java" and rerun it but did not help

Running SonarQube...
Removed stale pid file: ./SonarQube.pid
2025.02.03 12:40:23 INFO  app[][o.s.a.AppFileSystem] Cleaning or creating temp directory /opt/sonarqube/sonarqube-25.1.0.102122/temp
2025.02.03 12:40:23 INFO  app[][o.s.a.es.EsSettings] Elasticsearch listening on [HTTP: 127.0.0.1:9001, TCP: 127.0.0.1:{}]
2025.02.03 12:40:24 INFO  app[][o.s.a.ProcessLauncherImpl] Launch process[ELASTICSEARCH] from [/opt/sonarqube/sonarqube-25.1.0.102122/elasticsearch]: /usr/lib/jvm/java-21-openjdk-21.0.6.0.7-1.fc41.x86_64/bin/java -Xms4m -Xmx64m -XX:+UseSerialGC -Dcli.name=server -Dcli.script=./bin/elasticsearch -Dcli.libs=lib/tools/server-cli -Des.path.home=/opt/sonarqube/sonarqube-25.1.0.102122/elasticsearch -Des.path.conf=/opt/sonarqube/sonarqube-25.1.0.102122/temp/conf/es -Des.distribution.type=tar -cp /opt/sonarqube/sonarqube-25.1.0.102122/elasticsearch/lib/*:/opt/sonarqube/sonarqube-25.1.0.102122/elasticsearch/lib/cli-launcher/* org.elasticsearch.launcher.CliToolLauncher
2025.02.03 12:40:24 INFO  app[][o.s.a.SchedulerImpl] Waiting for Elasticsearch to be up and running
Standard Commons Logging discovery in action with spring-jcl: please remove commons-logging.jar from classpath in order to avoid potential conflicts
Feb 03, 2025 12:40:30 PM sun.util.locale.provider.LocaleProviderAdapter <clinit>
WARNING: COMPAT locale provider will be removed in a future release
2025.02.03 12:40:31 INFO  es[][o.e.n.NativeAccess] Using native vector library; to disable start with -Dorg.elasticsearch.nativeaccess.enableVectorLibrary=false
2025.02.03 12:40:31 INFO  es[][o.e.n.NativeAccess] Using [jdk] native provider and native methods for [Linux]
2025.02.03 12:40:31 WARN  es[][o.a.l.i.v.VectorizationProvider] Java vector incubator module is not readable. For optimal vector performance, pass --add-modules jdk.incubator.vector to enable Vector API.
2025.02.03 12:40:33 INFO  es[][o.e.n.Node] version[8.16.1], pid[7971], build[tar/ffe992aa682c1968b5df375b5095b3a21f122bf3/2024-11-19T16:00:31.793213192Z], OS[Linux/6.12.11-200.fc41.x86_64/amd64], JVM[Red Hat, Inc./OpenJDK 64-Bit Server VM/21.0.6/21.0.6+7]
2025.02.03 12:40:33 INFO  es[][o.e.n.Node] JVM home [/usr/lib/jvm/java-21-openjdk-21.0.6.0.7-1.fc41.x86_64], using bundled JDK [false]
2025.02.03 12:40:33 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, --enable-native-access=org.elasticsearch.nativeaccess,org.apache.lucene.core, -XX:ReplayDataFile=logs/replay_pid%p.log, -Des.distribution.type=tar, -XX:+UseG1GC, -Djava.io.tmpdir=/opt/sonarqube/sonarqube-25.1.0.102122/temp, -XX:ErrorFile=/opt/sonarqube/sonarqube-25.1.0.102122/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/sonarqube-25.1.0.102122/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=/opt/sonarqube/sonarqube-25.1.0.102122/elasticsearch/lib, --add-modules=jdk.net, --add-modules=ALL-MODULE-PATH, -Djdk.module.main=org.elasticsearch.server]
2025.02.03 12:40:33 INFO  es[][o.e.n.Node] Default Locale [en_US]
2025.02.03 12:40:35 INFO  es[][o.e.p.PluginsService] loaded module [rest-root]
2025.02.03 12:40:35 INFO  es[][o.e.p.PluginsService] loaded module [x-pack-core]
2025.02.03 12:40:35 INFO  es[][o.e.p.PluginsService] loaded module [x-pack-redact]
2025.02.03 12:40:35 INFO  es[][o.e.p.PluginsService] loaded module [reindex]
2025.02.03 12:40:35 INFO  es[][o.e.p.PluginsService] loaded module [x-pack-security]
2025.02.03 12:40:35 INFO  es[][o.e.p.PluginsService] loaded module [x-pack-geoip-enterprise-downloader]
2025.02.03 12:40:35 INFO  es[][o.e.p.PluginsService] loaded module [x-pack-esql-core]
2025.02.03 12:40:35 INFO  es[][o.e.p.PluginsService] loaded module [x-pack-apm-data]
2025.02.03 12:40:35 INFO  es[][o.e.p.PluginsService] loaded module [old-lucene-versions]
2025.02.03 12:40:35 INFO  es[][o.e.p.PluginsService] loaded module [lang-painless]
2025.02.03 12:40:35 INFO  es[][o.e.p.PluginsService] loaded module [parent-join]
2025.02.03 12:40:35 INFO  es[][o.e.p.PluginsService] loaded module [counted-keyword]
2025.02.03 12:40:35 INFO  es[][o.e.p.PluginsService] loaded module [logsdb]
2025.02.03 12:40:35 INFO  es[][o.e.p.PluginsService] loaded module [x-pack-inference]
2025.02.03 12:40:35 INFO  es[][o.e.p.PluginsService] loaded module [analysis-common]
2025.02.03 12:40:35 INFO  es[][o.e.p.PluginsService] loaded module [health-shards-availability]
2025.02.03 12:40:35 INFO  es[][o.e.p.PluginsService] loaded module [dot-prefix-validation]
2025.02.03 12:40:35 INFO  es[][o.e.p.PluginsService] loaded module [transport-netty4]
2025.02.03 12:40:35 INFO  es[][o.e.p.PluginsService] loaded module [x-pack-otel-data]
2025.02.03 12:40:35 INFO  es[][o.e.p.PluginsService] loaded module [apm]
2025.02.03 12:40:35 INFO  es[][o.e.p.PluginsService] loaded module [aggregations]
2025.02.03 12:40:38 INFO  es[][o.e.e.NodeEnvironment] using [1] data paths, mounts [[/ (/dev/mapper/fedora-root)]], net usable_space [11.9gb], net total_space [47.4gb], types [ext4]
2025.02.03 12:40:38 INFO  es[][o.e.e.NodeEnvironment] heap size [512mb], compressed ordinary object pointers [true]
2025.02.03 12:40:38 INFO  es[][o.e.n.Node] node name [sonarqube], node ID [_-aYcdXHQZePVJ-ekuUyVQ], cluster name [sonarqube], roles [master, remote_cluster_client, data, data_cold, ingest, data_frozen, ml, data_hot, transform, data_content, data_warm]
2025.02.03 12:40:43 INFO  es[][o.e.i.r.RecoverySettings] using rate limit [40mb] with [default=40mb, read=0b, write=0b, max=0b]
2025.02.03 12:40:43 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.02.03 12:40:43 INFO  es[][o.e.c.m.DataStreamGlobalRetentionSettings] Updated default factory retention to [null]
2025.02.03 12:40:43 INFO  es[][o.e.c.m.DataStreamGlobalRetentionSettings] Updated max factory retention to [null]
2025.02.03 12:40:44 INFO  es[][o.e.x.s.Security] Security is disabled
2025.02.03 12:40:44 INFO  es[][o.e.x.a.APMPlugin] APM ingest plugin is enabled
2025.02.03 12:40:44 INFO  es[][o.e.x.c.t.YamlTemplateRegistry] apm index template registry is enabled
2025.02.03 12:40:44 INFO  es[][o.e.x.o.OTelPlugin] OTel ingest plugin is enabled
2025.02.03 12:40:44 INFO  es[][o.e.x.c.t.YamlTemplateRegistry] OpenTelemetry index template registry is enabled
2025.02.03 12:40:44 INFO  es[][o.e.t.a.APM] Sending apm metrics is disabled
2025.02.03 12:40:44 INFO  es[][o.e.t.a.APM] Sending apm tracing is disabled
2025.02.03 12:40:45 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.02.03 12:40:45 INFO  es[][o.e.d.DiscoveryModule] using discovery type [single-node] and seed hosts providers [settings]
2025.02.03 12:40:46 INFO  es[][o.e.n.Node] initialized
2025.02.03 12:40:46 INFO  es[][o.e.n.Node] starting ...
2025.02.03 12:40:46 INFO  es[][o.e.t.TransportService] publish_address {127.0.0.1:41391}, bound_addresses {127.0.0.1:41391}
2025.02.03 12:40:47 INFO  es[][o.e.b.BootstrapChecks] explicitly enforcing bootstrap checks
2025.02.03 12:40:47 INFO  es[][o.e.c.c.ClusterBootstrapService] this node is locked into cluster UUID [PWp1yi56Q-OUwhFyORX_xw] and will not attempt further cluster bootstrapping
2025.02.03 12:40:48 INFO  es[][o.e.c.s.MasterService] elected-as-master ([1] nodes joined in term 2)[_FINISH_ELECTION_, {sonarqube}{_-aYcdXHQZePVJ-ekuUyVQ}{HUJW4NGlRFSf4wYzgAS2KQ}{sonarqube}{127.0.0.1}{127.0.0.1:41391}{cdfhilmrstw}{8.16.1}{7000099-8518000} completing election], term: 2, version: 7, delta: master node changed {previous [], current [{sonarqube}{_-aYcdXHQZePVJ-ekuUyVQ}{HUJW4NGlRFSf4wYzgAS2KQ}{sonarqube}{127.0.0.1}{127.0.0.1:41391}{cdfhilmrstw}{8.16.1}{7000099-8518000}]}
2025.02.03 12:40:48 INFO  es[][o.e.c.s.ClusterApplierService] master node changed {previous [], current [{sonarqube}{_-aYcdXHQZePVJ-ekuUyVQ}{HUJW4NGlRFSf4wYzgAS2KQ}{sonarqube}{127.0.0.1}{127.0.0.1:41391}{cdfhilmrstw}{8.16.1}{7000099-8518000}]}, term: 2, version: 7, reason: Publication{term=2, version=7}
2025.02.03 12:40:48 INFO  es[][o.e.h.AbstractHttpServerTransport] publish_address {127.0.0.1:9001}, bound_addresses {127.0.0.1:9001}
2025.02.03 12:40:48 INFO  es[][o.e.c.c.NodeJoinExecutor] node-join: [{sonarqube}{_-aYcdXHQZePVJ-ekuUyVQ}{HUJW4NGlRFSf4wYzgAS2KQ}{sonarqube}{127.0.0.1}{127.0.0.1:41391}{cdfhilmrstw}{8.16.1}{7000099-8518000}] with reason [completing election]
2025.02.03 12:40:48 INFO  es[][o.e.n.Node] started {sonarqube}{_-aYcdXHQZePVJ-ekuUyVQ}{HUJW4NGlRFSf4wYzgAS2KQ}{sonarqube}{127.0.0.1}{127.0.0.1:41391}{cdfhilmrstw}{8.16.1}{7000099-8518000}{xpack.installed=true, rack_id=sonarqube}
2025.02.03 12:40:49 INFO  app[][o.s.a.SchedulerImpl] Process[es] is up
2025.02.03 12:40:49 INFO  app[][o.s.a.ProcessLauncherImpl] Launch process[WEB_SERVER] from [/opt/sonarqube/sonarqube-25.1.0.102122]: /usr/lib/jvm/java-21-openjdk-21.0.6.0.7-1.fc41.x86_64/bin/java -Djava.awt.headless=true -Dfile.encoding=UTF-8 -Djava.io.tmpdir=/opt/sonarqube/sonarqube-25.1.0.102122/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 -Xmx512m -Xms128m -XX:+HeapDumpOnOutOfMemoryError -Dhttp.nonProxyHosts=localhost|127.*|[::1] -cp ./lib/sonar-application-25.1.0.102122.jar:/opt/sonarqube/sonarqube-25.1.0.102122/lib/jdbc/mssql/mssql-jdbc-12.8.1.jre11.jar org.sonar.server.app.WebServer /opt/sonarqube/sonarqube-25.1.0.102122/temp/sq-process10914341877845554257properties
2025.02.03 12:40:49 INFO  es[][o.e.l.ClusterStateLicenseService] license [5a8cc3a1-62bf-45fd-baa5-c618190eb1eb] mode [basic] - valid
2025.02.03 12:40:49 INFO  es[][o.e.c.f.AbstractFileWatchingService] starting file watcher ...
2025.02.03 12:40:49 INFO  es[][o.e.c.f.AbstractFileWatchingService] file settings service up and running [tid=38]
2025.02.03 12:40:49 INFO  es[][o.e.r.s.FileSettingsService] setting file [/opt/sonarqube/sonarqube-25.1.0.102122/temp/conf/es/operator/settings.json] not found, initializing [file_settings] as empty
2025.02.03 12:40:49 INFO  es[][o.e.g.GatewayService] recovered [0] indices into cluster_state
2025.02.03 12:40:49 INFO  es[][o.e.h.n.s.HealthNodeTaskExecutor] Node [{sonarqube}{_-aYcdXHQZePVJ-ekuUyVQ}] is selected as the current health node.
Exception in thread "main" java.lang.UnsupportedOperationException: The Security Manager is deprecated and will be removed in a future release
	at java.base/java.lang.System.setSecurityManager(System.java:430)
	at org.sonar.process.PluginSecurityManager.restrictPlugins(PluginSecurityManager.java:42)
	at org.sonar.server.app.WebSecurityManager.apply(WebSecurityManager.java:47)
	at org.sonar.server.app.WebServer.main(WebServer.java:101)
2025.02.03 12:40:50 WARN  app[][o.s.a.p.AbstractManagedProcess] Process exited with exit value [Web Server]: 1
2025.02.03 12:40:50 INFO  app[][o.s.a.SchedulerImpl] Process[Web Server] is stopped
2025.02.03 12:40:50 WARN  app[][o.s.a.p.AbstractManagedProcess] Process exited with exit value [ElasticSearch]: 143
2025.02.03 12:40:50 INFO  app[][o.s.a.SchedulerImpl] Process[ElasticSearch] is stopped
2025.02.03 12:40:50 INFO  app[][o.s.a.SchedulerImpl] SonarQube is stopped

Hi,

What do your server logs say? In particular, web.log:

 
Ann

Hello Ann. There is nothing

Hi,

That sounds like a good place to start. At a guess, SonarQube doesn’t have the permissions to write its logs.

Can you make sure that the SonarQube user has full permissions, recursive, on the SonarQube directory?

 
Ann

Yes, my user “salam” the owner of /opt/sonarqube/sonarqube-25.1.0.102122 and when I am logged I run the command to start SQ

Hi,

That’s not the question. Does salam have full permissions on all the sub-directories & files?

And if so, what shows up in your other server logs?

 
Ann

Yes, I used as with other versions and upgrades
sudo chown -R salam:salam /opt/sonarqube/sonarqube-25.1.0.102122
on the other log files, the output in terminal is written to sonar.log

Hi,

Then I don’t know what to tell you.

 
Ann

Oh my god then it will be difficult for me to upgrade. So I should stick to version 10.7 in this case!
But tell me please, why SQ does not indicate in the terminal why web server stopped?
Since several years, I migrated from versions 8>9 >10 I never had this issue

Hi,

Your server stopped with an error code from the web process. Your web.log is completely empty, and you tell me SonarQube has full permissions to write to it.

Then you need to figure out why that write is not happening. At this point I can only guess something system-level. As you’ve seen, permissions were my default guess. But maybe you’re out of file space? Or something “helpful” on the system (e.g. an antivirus?) is preventing it?

 
Ann

Ann, I gave everybody the right to read/write to the logs folder, still getting the same error and nothing is written to the web.log

Hi,

Do files exist inside the logs directory? If so, I suggest you clean them out.

Also, Read & Write may not be enough. I suggest you grant Full Control.

 
Ann

Yes, 5 or 6 files updated yesterday and today except web.log.
I will do.
But tell me please, how on linux give “others” full control?

Hi,

I overlooked that you’re on Linux. Then you’ll need to grant execute, not just read/write.

 
HTH,
Ann

Ok I did,

chmod a+rwx  opt/.../logs

also cleaned the logs directory and restarted SQ, I got the same output, 4 files created in the logs folder but still web.log is empty

Hi,

Is there anything interesting in your system log?

What do you get from java --version on a command line?

 
Ann

image