- which versions are you using (SonarQube 10.6)
- how is SonarQube deployed: zip
- what are you trying to achieve: Starting the server
- what have you tried so far to achieve this: below
In Win10 I’ve installed JDK (jdk-22_windows-x64_bin) , Postgres 16.4 and unzipped sonarqube-10.6.0.92116.zip
When I try to start the server I get SonarQube is stopped . Looks like something with ElasticSearch or Java is wrong? Thanks
Steps:
Open pgAdmin4 > Create user: sonarqube, and dbase: sqube
[pgAdmin4] select dbase sqube > open psql:
> grant all privileges on database sqube to sonarqube;
Unzip sonarqube-**.zip to D:\wamp64\www\laravel\sonarQube
/conf/sonar.properties:
sonar.jdbc.username=sonarqube
sonar.jdbc.password=Rossi3232$
sonar.path.data=data
sonar.path.temp=temp
sonar.jdbc.url=jdbc:postgresql://localhost/sonarqube?currentSchema=sqube
Install JDK: https://www.oracle.com/java/technologies/downloads/
> setx SONAR_JAVA_PATH "D:\Program Files\Java\jdk-22\bin\java.exe"
Start the web server:
> cd wamp64\www\laravel\sonarQube\bin\windows-x86-64
> StartSonar.bat
logs\SonarServiceWrapper.wrapper.log
2024-08-23 09:56:55,440 DEBUG - Starting WinSW in console mode
2024-08-23 10:02:09,474 DEBUG - Starting WinSW in console mode
2024-08-23 10:08:28,297 DEBUG - Starting WinSW in console mode
2024-08-23 10:09:03,551 DEBUG - Starting WinSW in console mode
2024-08-23 10:12:03,901 DEBUG - Starting WinSW in console mode
2024-08-23 11:29:15,151 DEBUG - Starting WinSW in console mode
es.log
2024.08.23 11:29:18 INFO es[][o.e.n.NativeAccess] Using [jdk] native provider and native methods for [Windows]
2024.08.23 11:29:18 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.
2024.08.23 11:29:18 INFO es[][o.e.n.Node] version[8.13.4], pid[13496], build[tar/da95df118650b55a500dcc181889ac35c6d8da7c/2024-05-06T22:04:45.107454559Z], OS[Windows 10/10.0/amd64], JVM[Oracle Corporation/Java HotSpot(TM) 64-Bit Server VM/22.0.2/22.0.2+9-70]
2024.08.23 11:29:18 INFO es[][o.e.n.Node] JVM home [D:\Program Files\Java\jdk-22], using bundled JDK [false]
2024.08.23 11:29:18 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, --enable-native-access=org.elasticsearch.nativeaccess, -XX:ReplayDataFile=logs/replay_pid%p.log, -Des.distribution.type=tar, -XX:+UseG1GC, -Djava.io.tmpdir=D:\wamp64\www\laravel\sonarQube\temp, -XX:ErrorFile=D:\wamp64\www\laravel\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=D:\wamp64\www\laravel\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=D:\wamp64\www\laravel\sonarQube\elasticsearch\lib, --add-modules=jdk.net, --add-modules=ALL-MODULE-PATH, -Djdk.module.main=org.elasticsearch.server]
2024.08.23 11:29:18 INFO es[][o.e.n.Node] Default Locale [en_GB]
2024.08.23 11:29:19 INFO es[][o.e.p.PluginsService] loaded module [rest-root]
2024.08.23 11:29:19 INFO es[][o.e.p.PluginsService] loaded module [reindex]
2024.08.23 11:29:19 INFO es[][o.e.p.PluginsService] loaded module [x-pack-core]
2024.08.23 11:29:19 INFO es[][o.e.p.PluginsService] loaded module [x-pack-redact]
2024.08.23 11:29:19 INFO es[][o.e.p.PluginsService] loaded module [x-pack-security]
2024.08.23 11:29:19 INFO es[][o.e.p.PluginsService] loaded module [x-pack-apm-data]
2024.08.23 11:29:19 INFO es[][o.e.p.PluginsService] loaded module [lang-painless]
2024.08.23 11:29:19 INFO es[][o.e.p.PluginsService] loaded module [old-lucene-versions]
2024.08.23 11:29:19 INFO es[][o.e.p.PluginsService] loaded module [parent-join]
2024.08.23 11:29:19 INFO es[][o.e.p.PluginsService] loaded module [counted-keyword]
2024.08.23 11:29:19 INFO es[][o.e.p.PluginsService] loaded module [analysis-common]
2024.08.23 11:29:19 INFO es[][o.e.p.PluginsService] loaded module [x-pack-inference]
2024.08.23 11:29:19 INFO es[][o.e.p.PluginsService] loaded module [health-shards-availability]
2024.08.23 11:29:19 INFO es[][o.e.p.PluginsService] loaded module [transport-netty4]
2024.08.23 11:29:19 INFO es[][o.e.p.PluginsService] loaded module [aggregations]
2024.08.23 11:29:19 INFO es[][o.e.p.PluginsService] loaded module [apm]
2024.08.23 11:29:19 INFO es[][o.e.e.NodeEnvironment] using [1] data paths, mounts [[DATA (D:)]], net usable_space [390.9gb], net total_space [931.3gb], types [NTFS]
2024.08.23 11:29:19 INFO es[][o.e.e.NodeEnvironment] heap size [512mb], compressed ordinary object pointers [true]
2024.08.23 11:29:20 INFO es[][o.e.n.Node] node name [sonarqube], node ID [lTq-VcgLTyubjPGGy_PK6Q], cluster name [sonarqube], roles [ml, data_hot, transform, data_content, data_warm, master, remote_cluster_client, data, data_cold, ingest, data_frozen]
2024.08.23 11:29:21 INFO es[][o.e.f.FeatureService] Registered local node features [desired_node.version_deprecated, features_supported, health.extended_repository_indicator, usage.data_tiers.precalculate_stats]
2024.08.23 11:29:21 INFO es[][o.e.x.s.Security] Security is disabled
2024.08.23 11:29:21 INFO es[][o.e.x.a.APMPlugin] APM ingest plugin is disabled
2024.08.23 11:29:22 INFO es[][o.e.t.a.APM] Sending apm metrics is disabled
2024.08.23 11:29:22 INFO es[][o.e.t.a.APM] Sending apm tracing is disabled
2024.08.23 11:29:22 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}]
2024.08.23 11:29:22 INFO es[][o.e.i.r.RecoverySettings] using rate limit [40mb] with [default=40mb, read=0b, write=0b, max=0b]
2024.08.23 11:29:22 INFO es[][o.e.d.DiscoveryModule] using discovery type [single-node] and seed hosts providers [settings]
2024.08.23 11:29:22 INFO es[][o.e.n.Node] initialized
2024.08.23 11:29:22 INFO es[][o.e.n.Node] starting ...
2024.08.23 11:29:23 INFO es[][o.e.t.TransportService] publish_address {127.0.0.1:14459}, bound_addresses {127.0.0.1:14459}
2024.08.23 11:29:23 INFO es[][o.e.b.BootstrapChecks] explicitly enforcing bootstrap checks
2024.08.23 11:29:23 INFO es[][o.e.c.c.ClusterBootstrapService] this node is locked into cluster UUID [ZNdZE1aSTs-hMqmXTP6U4Q] and will not attempt further cluster bootstrapping
2024.08.23 11:29:23 INFO es[][o.e.c.s.MasterService] elected-as-master ([1] nodes joined in term 6)[_FINISH_ELECTION_, {sonarqube}{lTq-VcgLTyubjPGGy_PK6Q}{ZlvvhpbBR4CkzmF4rwzouQ}{sonarqube}{127.0.0.1}{127.0.0.1:14459}{cdfhilmrstw}{8.13.4}{7000099-8503000} completing election], term: 6, version: 22, delta: master node changed {previous [], current [{sonarqube}{lTq-VcgLTyubjPGGy_PK6Q}{ZlvvhpbBR4CkzmF4rwzouQ}{sonarqube}{127.0.0.1}{127.0.0.1:14459}{cdfhilmrstw}{8.13.4}{7000099-8503000}]}
2024.08.23 11:29:23 INFO es[][o.e.c.s.ClusterApplierService] master node changed {previous [], current [{sonarqube}{lTq-VcgLTyubjPGGy_PK6Q}{ZlvvhpbBR4CkzmF4rwzouQ}{sonarqube}{127.0.0.1}{127.0.0.1:14459}{cdfhilmrstw}{8.13.4}{7000099-8503000}]}, term: 6, version: 22, reason: Publication{term=6, version=22}
2024.08.23 11:29:23 INFO es[][o.e.c.f.AbstractFileWatchingService] starting file watcher ...
2024.08.23 11:29:23 INFO es[][o.e.c.f.AbstractFileWatchingService] file settings service up and running [tid=49]
2024.08.23 11:29:23 INFO es[][o.e.h.AbstractHttpServerTransport] publish_address {127.0.0.1:9001}, bound_addresses {127.0.0.1:9001}
2024.08.23 11:29:23 INFO es[][o.e.c.c.NodeJoinExecutor] node-join: [{sonarqube}{lTq-VcgLTyubjPGGy_PK6Q}{ZlvvhpbBR4CkzmF4rwzouQ}{sonarqube}{127.0.0.1}{127.0.0.1:14459}{cdfhilmrstw}{8.13.4}{7000099-8503000}] with reason [completing election]
2024.08.23 11:29:23 INFO es[][o.e.n.Node] started {sonarqube}{lTq-VcgLTyubjPGGy_PK6Q}{ZlvvhpbBR4CkzmF4rwzouQ}{sonarqube}{127.0.0.1}{127.0.0.1:14459}{cdfhilmrstw}{8.13.4}{7000099-8503000}{xpack.installed=true, rack_id=sonarqube}
2024.08.23 11:29:23 INFO es[][o.e.l.ClusterStateLicenseService] license [8dd94178-36ac-4543-96ca-76e65c602f7c] mode [basic] - valid
2024.08.23 11:29:23 INFO es[][o.e.g.GatewayService] recovered [0] indices into cluster_state
2024.08.23 11:29:23 INFO es[][o.e.h.n.s.HealthNodeTaskExecutor] Node [{sonarqube}{lTq-VcgLTyubjPGGy_PK6Q}] is selected as the current health node.
2024.08.23 11:29:23 INFO es[][o.e.n.Node] stopping ...
2024.08.23 11:29:23 INFO es[][o.e.c.f.AbstractFileWatchingService] shutting down watcher thread
2024.08.23 11:29:23 INFO es[][o.e.c.f.AbstractFileWatchingService] watcher service stopped
2024.08.23 11:29:23 INFO es[][o.e.n.Node] stopped
2024.08.23 11:29:23 INFO es[][o.e.n.Node] closing ...
2024.08.23 11:29:23 INFO es[][o.e.n.Node] closed
sonar.log
2024.08.23 11:29:15 INFO app[][o.s.a.AppFileSystem] Cleaning or creating temp directory D:\wamp64\www\laravel\sonarQube\temp
2024.08.23 11:29:15 INFO app[][o.s.a.es.EsSettings] Elasticsearch listening on [HTTP: 127.0.0.1:9001, TCP: 127.0.0.1:14459]
2024.08.23 11:29:15 INFO app[][o.s.a.ProcessLauncherImpl] Launch process[ELASTICSEARCH] from [D:\wamp64\www\laravel\sonarQube\elasticsearch]: D:\Program Files\Java\jdk-22\bin\java -Xms4m -Xmx64m -XX:+UseSerialGC -Dcli.name=server -Dcli.script=./bin/elasticsearch -Dcli.libs=lib/tools/server-cli -Des.path.home=D:\wamp64\www\laravel\sonarQube\elasticsearch -Des.path.conf=D:\wamp64\www\laravel\sonarQube\temp\conf\es -Des.distribution.type=tar -cp D:\wamp64\www\laravel\sonarQube\elasticsearch\lib\*;D:\wamp64\www\laravel\sonarQube\elasticsearch\lib\cli-launcher\* org.elasticsearch.launcher.CliToolLauncher
2024.08.23 11:29:15 INFO app[][o.s.a.SchedulerImpl] Waiting for Elasticsearch to be up and running
2024.08.23 11:29:23 INFO app[][o.s.a.SchedulerImpl] Process[es] is up
2024.08.23 11:29:23 INFO app[][o.s.a.ProcessLauncherImpl] Launch process[WEB_SERVER] from [D:\wamp64\www\laravel\sonarQube]: D:\Program Files\Java\jdk-22\bin\java -Djava.awt.headless=true -Dfile.encoding=UTF-8 -Djava.io.tmpdir=D:\wamp64\www\laravel\sonarQube\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.6.0.92116.jar;D:\wamp64\www\laravel\sonarQube\lib\jdbc\postgresql\postgresql-42.7.3.jar org.sonar.server.app.WebServer D:\wamp64\www\laravel\sonarQube\temp\sq-process3740710532365382652properties
2024.08.23 11:29:23 WARN app[][o.s.a.p.AbstractManagedProcess] Process exited with exit value [Web Server]: 1
2024.08.23 11:29:23 INFO app[][o.s.a.SchedulerImpl] Process[Web Server] is stopped
2024.08.23 11:29:24 INFO app[][o.s.a.SchedulerImpl] Process[ElasticSearch] is stopped
2024.08.23 11:29:24 INFO app[][o.s.a.SchedulerImpl] SonarQube is stopped