Mac sonar fail sonarqube-10.3.0.82913 jdk17

2023.12.21 09:07:30 INFO app[o.s.a.AppFileSystem] Cleaning or creating temp directory /Users/zhongshan/Software/sonarqube-10.3.0.82913/temp
2023.12.21 09:07:30 INFO app[o.s.a.es.EsSettings] Elasticsearch listening on [HTTP: 127.0.0.1:9001, TCP: 127.0.0.1:64234]
2023.12.21 09:07:30 INFO app[o.s.a.ProcessLauncherImpl] Launch process[ELASTICSEARCH] from [/Users/zhongshan/Software/sonarqube-10.3.0.82913/elasticsearch]: /Users/zhongshan/Software/jdk-17.0.7.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/zhongshan/Software/sonarqube-10.3.0.82913/elasticsearch -Des.path.conf=/Users/zhongshan/Software/sonarqube-10.3.0.82913/temp/conf/es -Des.distribution.type=tar -cp /Users/zhongshan/Software/sonarqube-10.3.0.82913/elasticsearch/lib/:/Users/zhongshan/Software/sonarqube-10.3.0.82913/elasticsearch/lib/cli-launcher/ org.elasticsearch.launcher.CliToolLauncher
2023.12.21 09:07:30 INFO app[o.s.a.SchedulerImpl] Waiting for Elasticsearch to be up and running
2023.12.21 09:07:34 WARN app[o.s.a.p.AbstractManagedProcess] Process exited with exit value [ElasticSearch]: 1
2023.12.21 09:07:34 INFO app[o.s.a.SchedulerImpl] Process[ElasticSearch] is stopped
2023.12.21 09:07:34 INFO app[o.s.a.SchedulerImpl] SonarQube is stopped
2023.12.21 09:13:42 INFO app[o.s.a.AppFileSystem] Cleaning or creating temp directory /Users/zhongshan/Software/sonarqube-10.3.0.82913/temp
2023.12.21 09:13:42 INFO app[o.s.a.es.EsSettings] Elasticsearch listening on [HTTP: 127.0.0.1:9001, TCP: 127.0.0.1:49649]
2023.12.21 09:13:42 INFO app[o.s.a.ProcessLauncherImpl] Launch process[ELASTICSEARCH] from [/Users/zhongshan/Software/sonarqube-10.3.0.82913/elasticsearch]: /Users/zhongshan/Software/jdk-17.0.7.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/zhongshan/Software/sonarqube-10.3.0.82913/elasticsearch -Des.path.conf=/Users/zhongshan/Software/sonarqube-10.3.0.82913/temp/conf/es -Des.distribution.type=tar -cp /Users/zhongshan/Software/sonarqube-10.3.0.82913/elasticsearch/lib/:/Users/zhongshan/Software/sonarqube-10.3.0.82913/elasticsearch/lib/cli-launcher/ org.elasticsearch.launcher.CliToolLauncher
2023.12.21 09:13:42 INFO app[o.s.a.SchedulerImpl] Waiting for Elasticsearch to be up and running
2023.12.21 09:13:44 WARN app[o.s.a.p.AbstractManagedProcess] Process exited with exit value [ElasticSearch]: 1
2023.12.21 09:13:44 INFO app[o.s.a.SchedulerImpl] Process[ElasticSearch] is stopped
2023.12.21 09:13:44 INFO app[o.s.a.SchedulerImpl] SonarQube is stopped
2023.12.21 09:13:49 INFO app[o.s.a.AppFileSystem] Cleaning or creating temp directory /Users/zhongshan/Software/sonarqube-10.3.0.82913/temp
2023.12.21 09:13:49 INFO app[o.s.a.es.EsSettings] Elasticsearch listening on [HTTP: 127.0.0.1:9001, TCP: 127.0.0.1:49687]
2023.12.21 09:13:49 INFO app[o.s.a.ProcessLauncherImpl] Launch process[ELASTICSEARCH] from [/Users/zhongshan/Software/sonarqube-10.3.0.82913/elasticsearch]: /Users/zhongshan/Software/jdk-17.0.7.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/zhongshan/Software/sonarqube-10.3.0.82913/elasticsearch -Des.path.conf=/Users/zhongshan/Software/sonarqube-10.3.0.82913/temp/conf/es -Des.distribution.type=tar -cp /Users/zhongshan/Software/sonarqube-10.3.0.82913/elasticsearch/lib/:/Users/zhongshan/Software/sonarqube-10.3.0.82913/elasticsearch/lib/cli-launcher/ org.elasticsearch.launcher.CliToolLauncher
2023.12.21 09:13:49 INFO app[o.s.a.SchedulerImpl] Waiting for Elasticsearch to be up and running
2023.12.21 09:13:51 WARN app[o.s.a.p.AbstractManagedProcess] Process exited with exit value [ElasticSearch]: 1
2023.12.21 09:13:51 INFO app[o.s.a.SchedulerImpl] Process[ElasticSearch] is stopped
2023.12.21 09:13:51 ERROR app[o.s.a.p.EsManagedProcess] Failed to check status
org.elasticsearch.ElasticsearchException: java.lang.InterruptedException
at org.elasticsearch.client.RestHighLevelClient.performClientRequest(RestHighLevelClient.java:2695)
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:84)
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.util.concurrent.locks.AbstractQueuedSynchronizer.acquireSharedInterruptibly(AbstractQueuedSynchronizer.java:1048)
at org.elasticsearch.common.util.concurrent.BaseFuture$Sync.get(BaseFuture.java:243)
at org.elasticsearch.common.util.concurrent.BaseFuture.get(BaseFuture.java:75)
at org.elasticsearch.client.RestHighLevelClient.performClientRequest(RestHighLevelClient.java:2692)
… 10 common frames omitted
2023.12.21 09:13:51 INFO app[o.s.a.SchedulerImpl] SonarQube is stopped

2023.12.21 14:30:19 ERROR es[o.e.b.Elasticsearch] fatal exception while booting Elasticsearch
java.nio.file.NoSuchFileException: /lib/tools.jar
at sun.nio.fs.UnixException.translateToIOException(UnixException.java:92) ~[?:?]
at sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:106) ~[?:?]
at sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:111) ~[?:?]
at sun.nio.fs.UnixFileAttributeViews$Basic.readAttributes(UnixFileAttributeViews.java:55) ~[?:?]
at sun.nio.fs.UnixFileSystemProvider.readAttributes(UnixFileSystemProvider.java:148) ~[?:?]
at java.nio.file.Files.readAttributes(Files.java:1851) ~[?:?]
at java.util.zip.ZipFile$Source.get(ZipFile.java:1264) ~[?:?]
at java.util.zip.ZipFile$CleanableResource.(ZipFile.java:709) ~[?:?]
at java.util.zip.ZipFile.(ZipFile.java:243) ~[?:?]
at java.util.zip.ZipFile.(ZipFile.java:172) ~[?:?]
at java.util.jar.JarFile.(JarFile.java:347) ~[?:?]
at java.util.jar.JarFile.(JarFile.java:318) ~[?:?]
at java.util.jar.JarFile.(JarFile.java:257) ~[?:?]
at org.elasticsearch.jdk.JarHell.checkJarHell(JarHell.java:221) ~[elasticsearch-core-8.11.0.jar:?]
at org.elasticsearch.jdk.JarHell.checkJarHell(JarHell.java:84) ~[elasticsearch-core-8.11.0.jar:?]
at org.elasticsearch.bootstrap.Elasticsearch.initPhase2(Elasticsearch.java:181) ~[elasticsearch-8.11.0.jar:?]
at org.elasticsearch.bootstrap.Elasticsearch.main(Elasticsearch.java:72) ~[elasticsearch-8.11.0.jar:?]

Hey there.

This sure seems like the issue, but I don’t know what could be causing it and we don’t have any other reports of it!

Can you try reinstalling Java? I’m worried your installation might not be complete.