Sonhrqube server not starting on Mac. please help

Must-share information (formatted with Markdown):

  • which versions are you using (SonarQube, Scanner, Plugin, and any relevant extension) : sonarqube-10.4.1.88267
  • how is SonarQube deployed: zip, Docker, Helm : on mac download and try to configure as provided details
  • what are you trying to achieve : at leat start the server so can use the scanner but its not working at all
  • what have you tried so far to achieve this : had tried to change the. JAVA home but looks like its not working as my Java is in “/Library/Java/JavaVirtualMachines/jdk-21.jdk/Contents/home” but when it run .sonar.sh start it will display different location i.e.
$java --version             
java 21.0.2 2024-01-16 LTS
Java(TM) SE Runtime Environment (build 21.0.2+13-LTS-58)
Java HotSpot(TM) 64-Bit Server VM (build 21.0.2+13-LTS-58, mixed mode, sharing)

~/Dow/W/sonarqube-1/b/macosx-universal-64  ./sonar.sh start
/usr/bin/java
Starting SonarQube...
Started SonarQube.

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

will atttached the logs as well

es.log :

2024.03.15 13:57:58 ERROR es[][o.e.b.Elasticsearch] fatal exception while booting Elasticsearch
java.lang.IllegalStateException: failed to obtain node locks, tried [/Users/shrivsk/Downloads/Working-March-2024/Sonarqube-Community/sonarqube-10.4.1.88267/temp/data/es8]; maybe these locations are not writable or multiple nodes were started on the same data path?
	at org.elasticsearch.env.NodeEnvironment.<init>(NodeEnvironment.java:294) ~[elasticsearch-8.11.0.jar:?]
	at org.elasticsearch.node.Node.<init>(Node.java:499) ~[elasticsearch-8.11.0.jar:?]
	at org.elasticsearch.node.Node.<init>(Node.java:344) ~[elasticsearch-8.11.0.jar:?]
	at org.elasticsearch.bootstrap.Elasticsearch$2.<init>(Elasticsearch.java:236) ~[elasticsearch-8.11.0.jar:?]
	at org.elasticsearch.bootstrap.Elasticsearch.initPhase3(Elasticsearch.java:236) ~[elasticsearch-8.11.0.jar:?]
	at org.elasticsearch.bootstrap.Elasticsearch.main(Elasticsearch.java:73) ~[elasticsearch-8.11.0.jar:?]
Caused by: org.apache.lucene.store.LockObtainFailedException: Lock held by another program: /Users/shrivsk/Downloads/Working-March-2024/Sonarqube-Community/sonarqube-10.4.1.88267/temp/data/es8/node.lock
	at org.apache.lucene.store.NativeFSLockFactory.obtainFSLock(NativeFSLockFactory.java:117) ~[lucene-core-9.8.0.jar:?]
	at org.apache.lucene.store.FSLockFactory.obtainLock(FSLockFactory.java:43) ~[lucene-core-9.8.0.jar:?]
	at org.apache.lucene.store.BaseDirectory.obtainLock(BaseDirectory.java:44) ~[lucene-core-9.8.0.jar:?]
	at org.elasticsearch.env.NodeEnvironment$NodeLock.<init>(NodeEnvironment.java:232) ~[elasticsearch-8.11.0.jar:?]
	at org.elasticsearch.env.NodeEnvironment$NodeLock.<init>(NodeEnvironment.java:206) ~[elasticsearch-8.11.0.jar:?]
	at org.elasticsearch.env.NodeEnvironment.<init>(NodeEnvironment.java:286) ~[elasticsearch-8.11.0.jar:?]

nohup.log :

2024.03.15 13:57:58 ERROR app[][o.s.a.p.EsManagedProcess] Failed to check status
java.lang.RuntimeException: thread waiting for the response was interrupted
   at org.elasticsearch.client.RestClient.extractAndWrapCause(RestClient.java:901)
   at org.elasticsearch.client.RestClient.performRequest(RestClient.java:300)
   at org.elasticsearch.client.RestClient.performRequest(RestClient.java:288)
   at org.elasticsearch.client.RestHighLevelClient.performClientRequest(RestHighLevelClient.java:2699)
   at org.elasticsearch.client.RestHighLevelClient.internalPerformRequest(RestHighLevelClient.java:2171)
   at org.elasticsearch.client.RestHighLevelClient.performRequest(RestHighLevelClient.java:2137)
   at org.elasticsearch.client.RestHighLevelClient.performRequestAndParseEntity(RestHighLevelClient.java:2105)
   at org.elasticsearch.client.ClusterClient.health(ClusterClient.java:151)
   at org.sonar.application.es.EsConnectorImpl.getClusterHealthStatus(EsConnectorImpl.java:79)
   at org.sonar.application.process.EsManagedProcess.checkStatus(EsManagedProcess.java:92)
   at org.sonar.application.process.EsManagedProcess.checkOperational(EsManagedProcess.java:77)
   at org.sonar.application.process.EsManagedProcess.isOperational(EsManagedProcess.java:62)
   at org.sonar.application.process.ManagedProcessHandler.refreshState(ManagedProcessHandler.java:223)
   at org.sonar.application.process.ManagedProcessHandler$EventWatcher.run(ManagedProcessHandler.java:288)
Caused by: java.lang.InterruptedException: null
   at java.base/java.lang.Object.wait0(Native Method)
   at java.base/java.lang.Object.wait(Object.java:366)
   at java.base/java.lang.Object.wait(Object.java:339)
   at org.apache.http.concurrent.BasicFuture.get(BasicFuture.java:82)
   at org.apache.http.impl.nio.client.FutureWrapper.get(FutureWrapper.java:70)
   at org.elasticsearch.client.RestClient.performRequest(RestClient.java:296)

and sonar.log :

2024.03.15 13:57:58 INFO  app[][o.s.a.SchedulerImpl] Process[ElasticSearch] is stopped
2024.03.15 13:57:58 ERROR app[][o.s.a.p.EsManagedProcess] Failed to check status
java.lang.RuntimeException: thread waiting for the response was interrupted
	at org.elasticsearch.client.RestClient.extractAndWrapCause(RestClient.java:901)
	at org.elasticsearch.client.RestClient.performRequest(RestClient.java:300)
	at org.elasticsearch.client.RestClient.performRequest(RestClient.java:288)
	at org.elasticsearch.client.RestHighLevelClient.performClientRequest(RestHighLevelClient.java:2699)
	at org.elasticsearch.client.RestHighLevelClient.internalPerformRequest(RestHighLevelClient.java:2171)
	at org.elasticsearch.client.RestHighLevelClient.performRequest(RestHighLevelClient.java:2137)
	at org.elasticsearch.client.RestHighLevelClient.performRequestAndParseEntity(RestHighLevelClient.java:2105)
	at org.elasticsearch.client.ClusterClient.health(ClusterClient.java:151)
	at org.sonar.application.es.EsConnectorImpl.getClusterHealthStatus(EsConnectorImpl.java:79)
	at org.sonar.application.process.EsManagedProcess.checkStatus(EsManagedProcess.java:92)
	at org.sonar.application.process.EsManagedProcess.checkOperational(EsManagedProcess.java:77)
	at org.sonar.application.process.EsManagedProcess.isOperational(EsManagedProcess.java:62)
	at org.sonar.application.process.ManagedProcessHandler.refreshState(ManagedProcessHandler.java:223)
	at org.sonar.application.process.ManagedProcessHandler$EventWatcher.run(ManagedProcessHandler.java:288)
Caused by: java.lang.InterruptedException: null
	at java.base/java.lang.Object.wait0(Native Method)
	at java.base/java.lang.Object.wait(Object.java:366)
	at java.base/java.lang.Object.wait(Object.java:339)
	at org.apache.http.concurrent.BasicFuture.get(BasicFuture.java:82)
	at org.apache.http.impl.nio.client.FutureWrapper.get(FutureWrapper.java:70)
	at org.elasticsearch.client.RestClient.performRequest(RestClient.java:296)
	... 12 common frames omitted
`

Hi,

Welcome to the community!

I believe this is the root of the problem:

You need to figure out why the Elasticsearch process can’t obtain node locks. Is it permissions? Is some other, “helpful” process (e.g. a virus scan) grabbing the locks first?

 
HTH,
Ann

had tried to kill the process and stop the firewall as well but still no luck

ps aux | grep 'elastic'
kill -9 26025

but not luck still the same
es.log

2024.03.18 14:18:09 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.03.18 14:18:09 INFO  es[][o.e.n.Node] version[8.11.0], pid[26086], build[tar/d9ec3fa628c7b0ba3d25692e277ba26814820b20/2023-11-04T10:04:57.184859352Z], OS[Mac OS X/14.2.1/x86_64], JVM[Oracle Corporation/Java HotSpot(TM) 64-Bit Server VM/21.0.2/21.0.2+13-LTS-58]
2024.03.18 14:18:09 INFO  es[][o.e.n.Node] JVM home [/Library/Java/JavaVirtualMachines/jdk-21.jdk/Contents/Home], using bundled JDK [false]
2024.03.18 14:18:09 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=/Users/shrivsk/Downloads/Working-March-2024/sonarqube-18March/temp, -XX:ErrorFile=/Users/shrivsk/Downloads/Working-March-2024/sonarqube-18March/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=/Users/shrivsk/Downloads/Working-March-2024/sonarqube-18March/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=/Users/shrivsk/Downloads/Working-March-2024/sonarqube-18March/elasticsearch/lib, --add-modules=jdk.net, --add-modules=ALL-MODULE-PATH, -Djdk.module.main=org.elasticsearch.server]
2024.03.18 14:18:10 INFO  es[][o.e.p.PluginsService] loaded module [lang-painless]
2024.03.18 14:18:10 INFO  es[][o.e.p.PluginsService] loaded module [parent-join]
2024.03.18 14:18:10 INFO  es[][o.e.p.PluginsService] loaded module [x-pack-core]
2024.03.18 14:18:10 INFO  es[][o.e.p.PluginsService] loaded module [old-lucene-versions]
2024.03.18 14:18:10 INFO  es[][o.e.p.PluginsService] loaded module [rest-root]
2024.03.18 14:18:10 INFO  es[][o.e.p.PluginsService] loaded module [x-pack-redact]
2024.03.18 14:18:10 INFO  es[][o.e.p.PluginsService] loaded module [reindex]
2024.03.18 14:18:10 INFO  es[][o.e.p.PluginsService] loaded module [analysis-common]
2024.03.18 14:18:10 INFO  es[][o.e.p.PluginsService] loaded module [x-pack-security]
2024.03.18 14:18:10 INFO  es[][o.e.p.PluginsService] loaded module [transport-netty4]
2024.03.18 14:18:10 INFO  es[][o.e.p.PluginsService] loaded module [apm]
2024.03.18 14:18:10 INFO  es[][o.e.p.PluginsService] loaded module [aggregations]
2024.03.18 14:18:12 INFO  es[][o.e.e.NodeEnvironment] using [1] data paths, mounts [[/System/Volumes/Data (/dev/disk1s1)]], net usable_space [42.4gb], net total_space [465.6gb], types [apfs]
2024.03.18 14:18:12 INFO  es[][o.e.e.NodeEnvironment] heap size [512mb], compressed ordinary object pointers [true]
2024.03.18 14:18:12 INFO  es[][o.e.n.Node] node name [sonarqube], node ID [y4aP071UQPGjqRy0C915Hw], cluster name [sonarqube], roles [data_frozen, ingest, data_cold, data, remote_cluster_client, master, data_warm, data_content, transform, data_hot, ml]
2024.03.18 14:18:13 INFO  es[][o.e.x.s.Security] Security is disabled
2024.03.18 14:18:13 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.03.18 14:18:13 INFO  es[][o.e.i.r.RecoverySettings] using rate limit [40mb] with [default=40mb, read=0b, write=0b, max=0b]
2024.03.18 14:18:13 INFO  es[][o.e.d.DiscoveryModule] using discovery type [single-node] and seed hosts providers [settings]
2024.03.18 14:18:13 INFO  es[][o.e.n.Node] initialized
2024.03.18 14:18:13 INFO  es[][o.e.n.Node] starting ...
2024.03.18 14:18:14 INFO  es[][o.e.t.TransportService] publish_address {127.0.0.1:54641}, bound_addresses {127.0.0.1:54641}
2024.03.18 14:18:14 INFO  es[][o.e.c.c.ClusterBootstrapService] this node is locked into cluster UUID [0jC224CJSqyhK9rkEDD4Vw] and will not attempt further cluster bootstrapping
2024.03.18 14:18:14 INFO  es[][o.e.c.s.MasterService] elected-as-master ([1] nodes joined in term 5)[_FINISH_ELECTION_, {sonarqube}{y4aP071UQPGjqRy0C915Hw}{mltXx2p_T92LkUwwyQLj3Q}{sonarqube}{127.0.0.1}{127.0.0.1:54641}{cdfhilmrstw}{8.11.0}{7000099-8500003} completing election], term: 5, version: 5, delta: master node changed {previous [], current [{sonarqube}{y4aP071UQPGjqRy0C915Hw}{mltXx2p_T92LkUwwyQLj3Q}{sonarqube}{127.0.0.1}{127.0.0.1:54641}{cdfhilmrstw}{8.11.0}{7000099-8500003}]}
2024.03.18 14:18:14 INFO  es[][o.e.c.s.ClusterApplierService] master node changed {previous [], current [{sonarqube}{y4aP071UQPGjqRy0C915Hw}{mltXx2p_T92LkUwwyQLj3Q}{sonarqube}{127.0.0.1}{127.0.0.1:54641}{cdfhilmrstw}{8.11.0}{7000099-8500003}]}, term: 5, version: 5, reason: Publication{term=5, version=5}
2024.03.18 14:18:14 INFO  es[][o.e.c.f.AbstractFileWatchingService] starting file watcher ...
2024.03.18 14:18:14 INFO  es[][o.e.c.f.AbstractFileWatchingService] file settings service up and running [tid=48]
2024.03.18 14:18:14 INFO  es[][o.e.h.AbstractHttpServerTransport] publish_address {127.0.0.1:9001}, bound_addresses {127.0.0.1:9001}
2024.03.18 14:18:14 INFO  es[][o.e.c.c.NodeJoinExecutor] node-join: [{sonarqube}{y4aP071UQPGjqRy0C915Hw}{mltXx2p_T92LkUwwyQLj3Q}{sonarqube}{127.0.0.1}{127.0.0.1:54641}{cdfhilmrstw}{8.11.0}{7000099-8500003}] with reason [completing election]
2024.03.18 14:18:14 INFO  es[][o.e.n.Node] started {sonarqube}{y4aP071UQPGjqRy0C915Hw}{mltXx2p_T92LkUwwyQLj3Q}{sonarqube}{127.0.0.1}{127.0.0.1:54641}{cdfhilmrstw}{8.11.0}{7000099-8500003}{xpack.installed=true, rack_id=sonarqube}

nohup logs

2024.03.18 14:18:09 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.03.18 14:18:09 INFO  es[][o.e.n.Node] version[8.11.0], pid[26086], build[tar/d9ec3fa628c7b0ba3d25692e277ba26814820b20/2023-11-04T10:04:57.184859352Z], OS[Mac OS X/14.2.1/x86_64], JVM[Oracle Corporation/Java HotSpot(TM) 64-Bit Server VM/21.0.2/21.0.2+13-LTS-58]
2024.03.18 14:18:09 INFO  es[][o.e.n.Node] JVM home [/Library/Java/JavaVirtualMachines/jdk-21.jdk/Contents/Home], using bundled JDK [false]
2024.03.18 14:18:09 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=/Users/shrivsk/Downloads/Working-March-2024/sonarqube-18March/temp, -XX:ErrorFile=/Users/shrivsk/Downloads/Working-March-2024/sonarqube-18March/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=/Users/shrivsk/Downloads/Working-March-2024/sonarqube-18March/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=/Users/shrivsk/Downloads/Working-March-2024/sonarqube-18March/elasticsearch/lib, --add-modules=jdk.net, --add-modules=ALL-MODULE-PATH, -Djdk.module.main=org.elasticsearch.server]
2024.03.18 14:18:10 INFO  es[][o.e.p.PluginsService] loaded module [lang-painless]
2024.03.18 14:18:10 INFO  es[][o.e.p.PluginsService] loaded module [parent-join]
2024.03.18 14:18:10 INFO  es[][o.e.p.PluginsService] loaded module [x-pack-core]
2024.03.18 14:18:10 INFO  es[][o.e.p.PluginsService] loaded module [old-lucene-versions]
2024.03.18 14:18:10 INFO  es[][o.e.p.PluginsService] loaded module [rest-root]
2024.03.18 14:18:10 INFO  es[][o.e.p.PluginsService] loaded module [x-pack-redact]
2024.03.18 14:18:10 INFO  es[][o.e.p.PluginsService] loaded module [reindex]
2024.03.18 14:18:10 INFO  es[][o.e.p.PluginsService] loaded module [analysis-common]
2024.03.18 14:18:10 INFO  es[][o.e.p.PluginsService] loaded module [x-pack-security]
2024.03.18 14:18:10 INFO  es[][o.e.p.PluginsService] loaded module [transport-netty4]
2024.03.18 14:18:10 INFO  es[][o.e.p.PluginsService] loaded module [apm]
2024.03.18 14:18:10 INFO  es[][o.e.p.PluginsService] loaded module [aggregations]
2024.03.18 14:18:12 INFO  es[][o.e.e.NodeEnvironment] using [1] data paths, mounts [[/System/Volumes/Data (/dev/disk1s1)]], net usable_space [42.4gb], net total_space [465.6gb], types [apfs]
2024.03.18 14:18:12 INFO  es[][o.e.e.NodeEnvironment] heap size [512mb], compressed ordinary object pointers [true]
2024.03.18 14:18:12 INFO  es[][o.e.n.Node] node name [sonarqube], node ID [y4aP071UQPGjqRy0C915Hw], cluster name [sonarqube], roles [data_frozen, ingest, data_cold, data, remote_cluster_client, master, data_warm, data_content, transform, data_hot, ml]
2024.03.18 14:18:13 INFO  es[][o.e.x.s.Security] Security is disabled
2024.03.18 14:18:13 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.03.18 14:18:13 INFO  es[][o.e.i.r.RecoverySettings] using rate limit [40mb] with [default=40mb, read=0b, write=0b, max=0b]
2024.03.18 14:18:13 INFO  es[][o.e.d.DiscoveryModule] using discovery type [single-node] and seed hosts providers [settings]
2024.03.18 14:18:13 INFO  es[][o.e.n.Node] initialized
2024.03.18 14:18:13 INFO  es[][o.e.n.Node] starting ...
2024.03.18 14:18:14 INFO  es[][o.e.t.TransportService] publish_address {127.0.0.1:54641}, bound_addresses {127.0.0.1:54641}
2024.03.18 14:18:14 INFO  es[][o.e.c.c.ClusterBootstrapService] this node is locked into cluster UUID [0jC224CJSqyhK9rkEDD4Vw] and will not attempt further cluster bootstrapping
2024.03.18 14:18:14 INFO  es[][o.e.c.s.MasterService] elected-as-master ([1] nodes joined in term 5)[_FINISH_ELECTION_, {sonarqube}{y4aP071UQPGjqRy0C915Hw}{mltXx2p_T92LkUwwyQLj3Q}{sonarqube}{127.0.0.1}{127.0.0.1:54641}{cdfhilmrstw}{8.11.0}{7000099-8500003} completing election], term: 5, version: 5, delta: master node changed {previous [], current [{sonarqube}{y4aP071UQPGjqRy0C915Hw}{mltXx2p_T92LkUwwyQLj3Q}{sonarqube}{127.0.0.1}{127.0.0.1:54641}{cdfhilmrstw}{8.11.0}{7000099-8500003}]}
2024.03.18 14:18:14 INFO  es[][o.e.c.s.ClusterApplierService] master node changed {previous [], current [{sonarqube}{y4aP071UQPGjqRy0C915Hw}{mltXx2p_T92LkUwwyQLj3Q}{sonarqube}{127.0.0.1}{127.0.0.1:54641}{cdfhilmrstw}{8.11.0}{7000099-8500003}]}, term: 5, version: 5, reason: Publication{term=5, version=5}
2024.03.18 14:18:14 INFO  es[][o.e.c.f.AbstractFileWatchingService] starting file watcher ...
2024.03.18 14:18:14 INFO  es[][o.e.c.f.AbstractFileWatchingService] file settings service up and running [tid=48]
2024.03.18 14:18:14 INFO  es[][o.e.h.AbstractHttpServerTransport] publish_address {127.0.0.1:9001}, bound_addresses {127.0.0.1:9001}
2024.03.18 14:18:14 INFO  es[][o.e.c.c.NodeJoinExecutor] node-join: [{sonarqube}{y4aP071UQPGjqRy0C915Hw}{mltXx2p_T92LkUwwyQLj3Q}{sonarqube}{127.0.0.1}{127.0.0.1:54641}{cdfhilmrstw}{8.11.0}{7000099-8500003}] with reason [completing election]
2024.03.18 14:18:14 INFO  es[][o.e.n.Node] started {sonarqube}{y4aP071UQPGjqRy0C915Hw}{mltXx2p_T92LkUwwyQLj3Q}{sonarqube}{127.0.0.1}{127.0.0.1:54641}{cdfhilmrstw}{8.11.0}{7000099-8500003}{xpack.installed=true, rack_id=sonarqube}

sonar log

2024.03.18 14:18:06 INFO  app[][o.s.a.AppFileSystem] Cleaning or creating temp directory /Users/shrivsk/Downloads/Working-March-2024/sonarqube-18March/temp
2024.03.18 14:18:06 INFO  app[][o.s.a.es.EsSettings] Elasticsearch listening on [HTTP: 127.0.0.1:9001, TCP: 127.0.0.1:54641]
2024.03.18 14:18:06 INFO  app[][o.s.a.ProcessLauncherImpl] Launch process[ELASTICSEARCH] from [/Users/shrivsk/Downloads/Working-March-2024/sonarqube-18March/elasticsearch]: /Library/Java/JavaVirtualMachines/jdk-21.jdk/Contents/Home/bin/java -Xms4m -Xmx64m -XX:+UseSerialGC -Dcli.name=server -Dcli.script=./bin/elasticsearch -Dcli.libs=lib/tools/server-cli -Des.path.home=/Users/shrivsk/Downloads/Working-March-2024/sonarqube-18March/elasticsearch -Des.path.conf=/Users/shrivsk/Downloads/Working-March-2024/sonarqube-18March/temp/conf/es -Des.distribution.type=tar -cp /Users/shrivsk/Downloads/Working-March-2024/sonarqube-18March/elasticsearch/lib/*:/Users/shrivsk/Downloads/Working-March-2024/sonarqube-18March/elasticsearch/lib/cli-launcher/* org.elasticsearch.launcher.CliToolLauncher
2024.03.18 14:18:06 INFO  app[][o.s.a.SchedulerImpl] Waiting for Elasticsearch to be up and running

Hi,

From your new logs, it looks like Elasticsearch is starting just fine.

What do your other server logs say?

 
Ann

Hi Ann,

thanks for your reply, had tried every thing but looks like there is some issue, please find the all three logs what i had find here.

es.log (6.4 KB)
nohup.log (1.2 KB)
sonar.log (1.0 KB)

had attached the server logs if you are looking. for something else please le me know as well as attaching the config file as well for your reference

sonar.properties.zip (8.0 KB)

if you need any further info feel free to ask thanks for your help

Hi,

Those logs seem awful short. And I don’t see web.log.

 
Ann

i even can’t see the weblog folder as well please guide me what should i do

Hi,

web.log should be a single file in the logs directory. How about a screenshot of that directory?

 
Ann

Hi,

Thanks for the screenshot. Several files I expected to see are missing, not just web.log.

Going back to the logs you provided, I see this:

2024.03.18 21:54:20 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.03.18 21:54:21 INFO  es[][o.e.n.Node] version[8.11.0], pid[52450], build[tar/d9ec3fa628c7b0ba3d25692e277ba26814820b20/2023-11-04T10:04:57.184859352Z], OS[Mac OS X/14.2.1/x86_64], JVM[Oracle Corporation/Java HotSpot(TM) 64-Bit Server VM/21.0.2/21.0.2+13-LTS-58]
2024.03.18 21:54:21 INFO  es[][o.e.n.Node] JVM home [/Library/Java/JavaVirtualMachines/jdk-21.jdk/Contents/Home], using bundled JDK [false]

Per the docs, only Java 17 is supported for SonarQube 10.4.*. Can you downgrade Java and try again?

 
Thx,
Ann

thanks after changing the java version i am able to see some more logs file but still getting error for web.logs i.e. attached below

sonar.log (2.78 KB)

web.log (15 KB)

nohup.log (3.22 KB)

es.log (7.31 KB)

Hi,

What did you make of that error you mentioned in web.log?

 
Ann

thanks you very much for your support, its now working able to login to sonarqube now thanks

sorry getting below error i.e.

2024.03.19 17:04:36 WARN web[][o.s.c.a.AnnotationConfigApplicationContext] Exception encountered during context initialization - cancelling refresh attempt: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'jdk.internal.loader.ClassLoaders$AppClassLoader@5ffd2b27-org.sonar.server.es.IndexCreator': Initialization of bean failed; nested exception is org.sonar.server.es.ElasticsearchException: Fail to execute es requestES get request for key 'dbVendor' on index 'metadatas'
2024.03.19 17:04:36 ERROR web[][o.s.s.p.Platform] Background initialization failed. Stopping SonarQube
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'jdk.internal.loader.ClassLoaders$AppClassLoader@5ffd2b27-org.sonar.server.es.IndexCreator': Initialization of bean failed; nested exception is org.sonar.server.es.ElasticsearchException: Fail to execute es requestES get request for key 'dbVendor' on index 'metadatas'
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:628)
at org.sp

web.log (41.2 KB)

Hi,

A new error is a new question and deserves a new thread. If the problem’s not obvious to you after you check all your server logs, please start a new thread.

 
Ann

looks like there is still an issue could you please guide me what is that attaching the web.log here

if you need any further information please let me know

web.log (41.2 KB)

es.log (15.6 KB)