Must-share information (formatted with Markdown):
-
SonarQube Server 10.5.1
-
Starting it from command line using the sonar.sh script
-
Start the server and it is not coming up
-
Tried to start the server using these commands:
$ sonar.sh startand also
$ sonar.sh consoleHere is what I see when I run the sonar.sh console command:
<pre>bin/java
Running SonarQube...
2025.11.20 13:38:40 INFO app[][o.s.a.AppFileSystem] Cleaning or creating temp directory /opt/sonarcube/temp
2025.11.20 13:38:40 INFO app[][o.s.a.es.EsSettings] Elasticsearch listening on [HTTP: 127.0.0.1:9001, TCP: 127.0.0.1:44903]
2025.11.20 13:38:40 INFO app[][o.s.a.ProcessLauncherImpl] Launch process[ELASTICSEARCH] from [/opt/sonarcube/elasticsearch]: /usr/lib/jvm/java-21-openjdk-amd64/bin/java -Xms4m -Xmx64m -XX:+UseSerialGC -Dcli.name=server -Dcli.script=./bin/elasticsearch -Dcli.libs=lib/tools/server-cli -Des.path.home=/opt/sonarcube/elasticsearch -Des.path.conf=/opt/sonarcube/temp/conf/es -Des.distribution.type=tar -cp /opt/sonarcube/elasticsearch/lib/*:/opt/sonarcube/elasticsearch/lib/cli-launcher/* org.elasticsearch.launcher.CliToolLauncher
2025.11.20 13:38:40 INFO app[][o.s.a.SchedulerImpl] Waiting for Elasticsearch to be up and running
Nov 20, 2025 1:38:42 PM sun.util.locale.provider.LocaleProviderAdapter <clinit>
WARNING: COMPAT locale provider will be removed in a future release
2025.11.20 13:38:42 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.11.20 13:38:42 INFO es[][o.e.n.Node] version[8.11.0], pid[17796], build[tar/d9ec3fa628c7b0ba3d25692e277ba26814820b20/2023-11-04T10:04:57.184859352Z], OS[Linux/6.17.0-6-generic/amd64], JVM[Ubuntu/OpenJDK 64-Bit Server VM/21.0.9-ea/21.0.9-ea+8-Ubuntu-1]
2025.11.20 13:38:42 INFO es[][o.e.n.Node] JVM home [/usr/lib/jvm/java-21-openjdk-amd64], using bundled JDK [false]
2025.11.20 13:38:42 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, -XX:+UseG1GC, -Djava.io.tmpdir=/opt/sonarcube/temp, -XX:ErrorFile=/opt/sonarcube/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/sonarcube/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, -Xmx512m, -Xms512m, -XX:MaxDirectMemorySize=256m, -XX:+HeapDumpOnOutOfMemoryError, -XX:G1HeapRegionSize=4m, -XX:InitiatingHeapOccupancyPercent=30, -XX:G1ReservePercent=15, -Des.distribution.type=tar, --module-path=/opt/sonarcube/elasticsearch/lib, --add-modules=jdk.net, --add-modules=ALL-MODULE-PATH, -Djdk.module.main=org.elasticsearch.server]
2025.11.20 13:38:43 INFO es[][o.e.p.PluginsService] loaded module [x-pack-core]
2025.11.20 13:38:43 INFO es[][o.e.p.PluginsService] loaded module [old-lucene-versions]
2025.11.20 13:38:43 INFO es[][o.e.p.PluginsService] loaded module [parent-join]
2025.11.20 13:38:43 INFO es[][o.e.p.PluginsService] loaded module [lang-painless]
2025.11.20 13:38:43 INFO es[][o.e.p.PluginsService] loaded module [rest-root]
2025.11.20 13:38:43 INFO es[][o.e.p.PluginsService] loaded module [reindex]
2025.11.20 13:38:43 INFO es[][o.e.p.PluginsService] loaded module [x-pack-redact]
2025.11.20 13:38:43 INFO es[][o.e.p.PluginsService] loaded module [analysis-common]
2025.11.20 13:38:43 INFO es[][o.e.p.PluginsService] loaded module [x-pack-security]
2025.11.20 13:38:43 INFO es[][o.e.p.PluginsService] loaded module [transport-netty4]
2025.11.20 13:38:43 INFO es[][o.e.p.PluginsService] loaded module [aggregations]
2025.11.20 13:38:43 INFO es[][o.e.p.PluginsService] loaded module [apm]
2025.11.20 13:38:45 INFO es[][o.e.e.NodeEnvironment] using [1] data paths, mounts [[/ (/dev/nvme0n1p2)]], net usable_space [83gb], net total_space [915.3gb], types [ext4]
2025.11.20 13:38:45 INFO es[][o.e.e.NodeEnvironment] heap size [512mb], compressed ordinary object pointers [true]
2025.11.20 13:38:45 INFO es[][o.e.n.Node] node name [sonarqube], node ID [XEEP1i-TTperR92JpMlUUQ], cluster name [sonarqube], roles [data_content, data_warm, master, remote_cluster_client, data, data_cold, ingest, data_frozen, ml, data_hot, transform]
2025.11.20 13:38:45 INFO es[][o.e.x.s.Security] Security is disabled
2025.11.20 13:38: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.11.20 13:38:45 INFO es[][o.e.i.r.RecoverySettings] using rate limit [40mb] with [default=40mb, read=0b, write=0b, max=0b]
2025.11.20 13:38:45 INFO es[][o.e.d.DiscoveryModule] using discovery type [single-node] and seed hosts providers [settings]
2025.11.20 13:38:46 INFO es[][o.e.n.Node] initialized
2025.11.20 13:38:46 INFO es[][o.e.n.Node] starting ...
2025.11.20 13:38:46 INFO es[][o.e.t.TransportService] publish_address {127.0.0.1:44903}, bound_addresses {127.0.0.1:44903}
2025.11.20 13:38:46 INFO es[][o.e.c.c.ClusterBootstrapService] this node is locked into cluster UUID [muQ1z4gOQqa2RmSYwmdWLA] and will not attempt further cluster bootstrapping
2025.11.20 13:38:46 INFO es[][o.e.c.s.MasterService] elected-as-master ([1] nodes joined in term 4)[_FINISH_ELECTION_, {sonarqube}{XEEP1i-TTperR92JpMlUUQ}{Kf7ch7SpTYKpvCEp9IuHbA}{sonarqube}{127.0.0.1}{127.0.0.1:44903}{cdfhilmrstw}{8.11.0}{7000099-8500003} completing election], term: 4, version: 14, delta: master node changed {previous [], current [{sonarqube}{XEEP1i-TTperR92JpMlUUQ}{Kf7ch7SpTYKpvCEp9IuHbA}{sonarqube}{127.0.0.1}{127.0.0.1:44903}{cdfhilmrstw}{8.11.0}{7000099-8500003}]}
2025.11.20 13:38:46 INFO es[][o.e.c.s.ClusterApplierService] master node changed {previous [], current [{sonarqube}{XEEP1i-TTperR92JpMlUUQ}{Kf7ch7SpTYKpvCEp9IuHbA}{sonarqube}{127.0.0.1}{127.0.0.1:44903}{cdfhilmrstw}{8.11.0}{7000099-8500003}]}, term: 4, version: 14, reason: Publication{term=4, version=14}
2025.11.20 13:38:46 INFO es[][o.e.c.f.AbstractFileWatchingService] starting file watcher ...
2025.11.20 13:38:46 INFO es[][o.e.c.f.AbstractFileWatchingService] file settings service up and running [tid=63]
2025.11.20 13:38:46 INFO es[][o.e.c.c.NodeJoinExecutor] node-join: [{sonarqube}{XEEP1i-TTperR92JpMlUUQ}{Kf7ch7SpTYKpvCEp9IuHbA}{sonarqube}{127.0.0.1}{127.0.0.1:44903}{cdfhilmrstw}{8.11.0}{7000099-8500003}] with reason [completing election]
2025.11.20 13:38:46 INFO es[][o.e.h.AbstractHttpServerTransport] publish_address {127.0.0.1:9001}, bound_addresses {127.0.0.1:9001}
2025.11.20 13:38:46 INFO es[][o.e.n.Node] started {sonarqube}{XEEP1i-TTperR92JpMlUUQ}{Kf7ch7SpTYKpvCEp9IuHbA}{sonarqube}{127.0.0.1}{127.0.0.1:44903}{cdfhilmrstw}{8.11.0}{7000099-8500003}{xpack.installed=true, rack_id=sonarqube}
2025.11.20 13:38:46 INFO es[][o.e.l.ClusterStateLicenseService] license [39d050a3-d15c-4806-afaf-c0737536efa6] mode [basic] - valid
2025.11.20 13:38:46 INFO es[][o.e.g.GatewayService] recovered [0] indices into cluster_state
2025.11.20 13:38:46 INFO es[][o.e.h.n.s.HealthNodeTaskExecutor] Node [{sonarqube}{XEEP1i-TTperR92JpMlUUQ}] is selected as the current health node.
2025.11.20 13:38:47 INFO app[][o.s.a.SchedulerImpl] Process[es] is up
2025.11.20 13:38:47 INFO app[][o.s.a.ProcessLauncherImpl] Launch process[WEB_SERVER] from [/opt/sonarcube]: /usr/lib/jvm/java-21-openjdk-amd64/bin/java -Djava.awt.headless=true -Dfile.encoding=UTF-8 -Djava.io.tmpdir=/opt/sonarcube/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 -Dcom.redhat.fips=false -Xmx512m -Xms128m -XX:+HeapDumpOnOutOfMemoryError -Dhttp.nonProxyHosts=localhost|127.*|[::1] -cp ./lib/sonar-application-10.5.1.90531.jar:/opt/sonarcube/lib/jdbc/h2/h2-2.2.224.jar org.sonar.server.app.WebServer /opt/sonarcube/temp/sq-process12645450983796955179properties
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.11.20 13:38:47 WARN app[][o.s.a.p.AbstractManagedProcess] Process exited with exit value [Web Server]: 1
2025.11.20 13:38:47 INFO app[][o.s.a.SchedulerImpl] Process[Web Server] is stopped
2025.11.20 13:38:47 WARN app[][o.s.a.p.AbstractManagedProcess] Process exited with exit value [ElasticSearch]: 143
2025.11.20 13:38:47 INFO app[][o.s.a.SchedulerImpl] Process[ElasticSearch] is stopped
2025.11.20 13:38:47 INFO app[][o.s.a.SchedulerImpl] SonarQube is stopped
</pre>
Do not share screenshots of logs – share the text itself (bonus points for being well-formatted)!