Unable to start sonarqube 9.4.0

Hi Team , I am trying to setup SonarQube on my local on mac (Apple M1, OS Big Sur version 11.4), I am referencing following blog https://mobiosolutions.com/install-sonarqube-installation-guide-mac-os/

I am getting below error

Running SonarQube...
wrapper  | --> Wrapper Started as Console
wrapper  | Launching a JVM...
jvm 1    | Wrapper (Version 3.2.3) http://wrapper.tanukisoftware.org
jvm 1    |   Copyright 1999-2006 Tanuki Software, Inc.  All Rights Reserved.
jvm 1    |
jvm 1    |
jvm 1    | WARNING - Unable to load the Wrapper's native library because none of the
jvm 1    |           following files:
jvm 1    |             libwrapper-macosx-aarch64-64.dylib
jvm 1    |             libwrapper-macosx-universal-64.dylib
jvm 1    |             libwrapper.dylib
jvm 1    |           could be located on the following java.library.path:
jvm 1    |             /Users/jitendersingh/Applications/SonarQube/bin/macosx-universal-64/./lib
jvm 1    |           Please see the documentation for the wrapper.java.library.path
jvm 1    |           configuration property.
jvm 1    |           System signals will not be handled correctly.
jvm 1    |
jvm 1    | 2022.05.03 13:58:08 INFO  app[][o.s.a.AppFileSystem] Cleaning or creating temp directory /Users/jitendersingh/Applications/SonarQube/temp
jvm 1    | 2022.05.03 13:58:08 INFO  app[][o.s.a.es.EsSettings] Elasticsearch listening on [HTTP: 127.0.0.1:9001, TCP: 127.0.0.1:60145]
jvm 1    | 2022.05.03 13:58:08 INFO  app[][o.s.a.ProcessLauncherImpl] Launch process[ELASTICSEARCH] from [/Users/jitendersingh/Applications/SonarQube/elasticsearch]: /Users/jitendersingh/Applications/SonarQube/elasticsearch/bin/elasticsearch
jvm 1    | 2022.05.03 13:58:08 INFO  app[][o.s.a.SchedulerImpl] Waiting for Elasticsearch to be up and running
jvm 1    | 2022.05.03 13:58:18 INFO  app[][o.s.a.SchedulerImpl] Process[es] is up
jvm 1    | 2022.05.03 13:58:18 INFO  app[][o.s.a.ProcessLauncherImpl] Launch process[WEB_SERVER] from [/Users/jitendersingh/Applications/SonarQube]: /Library/Java/JavaVirtualMachines/jdk-17.0.1.jdk/Cont
export JAVA_HOME=/Library/Java/JavaVirtualMachines/jdk-17.0.1.jdk/Contents/Home
ents/Home/bin/java -Djava.awt.headless=true -Dfile.encoding=UTF-8 -Djava.io.tmpdir=/Users/jitendersingh/Applications/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 -Dcom.redhat.fips=false -Xmx512m -Xms128m -XX:+HeapDumpOnOutOfMemoryError -Dhttp.nonProxyHosts=localhost|127.*|[::1] -cp ./lib/sonar-application-9.4.0.54424.jar:/Users/jitendersingh/Applications/SonarQube/lib/jdbc/h2/h2-2.1.210.jar org.sonar.server.app.WebServer /Users/jitendersingh/Applications/SonarQube/temp/sq-process12306422591462198785properties
jvm 1    | WARNING: A terminally deprecated method in java.lang.System has been called
jvm 1    | WARNING: System::setSecurityManager has been called by org.sonar.process.PluginSecurityManager (file:/Users/jitendersingh/Applications/SonarQube/lib/sonar-application-9.4.0.54424.jar)
jvm 1    | WARNING: Please consider reporting this to the maintainers of org.sonar.process.PluginSecurityManager
jvm 1    | WARNING: System::setSecurityManager will be removed in a future release
jvm 1    | 2022.05.03 13:58:22 INFO  app[][o.s.a.SchedulerImpl] Process[Web Server] is stopped
jvm 1    | 2022.05.03 13:58:22 WARN  app[][o.s.a.p.AbstractManagedProcess] Process exited with exit value [ElasticSearch]: 143
jvm 1    | 2022.05.03 13:58:22 INFO  app[][o.s.a.SchedulerImpl] Process[ElasticSearch] is stopped
jvm 1    | 2022.05.03 13:58:22 INFO  app[][o.s.a.SchedulerImpl] SonarQube is stopped
wrapper  | <-- Wrapper Stopped

Can anyone please help me

Hi @Jitender_Singh,

From the error logs, you are using jdk-17.0.1 to start SonarQube server, I would suggest refer to the Prerequisite and try to start SonarQube server with jdk-11 version.

Let me know If you have any issues.

Thanks
Srikanth Vangari | SonarSource

Hi @Srikanth_Vangari Thanks for responding to my query , I tried with jdk 11 and still it is throwing error

Running SonarQube...
wrapper  | --> Wrapper Started as Console
wrapper  | Launching a JVM...
jvm 1    | Wrapper (Version 3.2.3) http://wrapper.tanukisoftware.org
jvm 1    |   Copyright 1999-2006 Tanuki Software, Inc.  All Rights Reserved.
jvm 1    |
jvm 1    | 2022.05.03 16:34:25 INFO  app[][o.s.a.AppFileSystem] Cleaning or creating temp directory /Users/jitendersingh/Applications/SonarQube/temp
jvm 1    | 2022.05.03 16:34:25 INFO  app[][o.s.a.es.EsSettings] Elasticsearch listening on [HTTP: 127.0.0.1:9001, TCP: 127.0.0.1:65030]
jvm 1    | 2022.05.03 16:34:25 INFO  app[][o.s.a.ProcessLauncherImpl] Launch process[ELASTICSEARCH] from [/Users/jitendersingh/Applications/SonarQube/elasticsearch]: /Users/jitendersingh/Applications/SonarQube/elasticsearch/bin/elasticsearch
jvm 1    | 2022.05.03 16:34:25 INFO  app[][o.s.a.SchedulerImpl] Waiting for Elasticsearch to be up and running
jvm 1    | 2022.05.03 16:34:40 INFO  app[][o.s.a.SchedulerImpl] Process[es] is up
jvm 1    | 2022.05.03 16:34:41 INFO  app[][o.s.a.ProcessLauncherImpl] Launch process[WEB_SERVER] from [/Users/jitendersingh/Applications/SonarQube]: /Library/Java/JavaVirtualMachines/jdk-11.0.15.jdk/Contents/Home/bin/java -Djava.awt.headless=true -Dfile.encoding=UTF-8 -Djava.io.tmpdir=/Users/jitendersingh/Applications/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 -Dcom.redhat.fips=false -Xmx512m -Xms128m -XX:+HeapDumpOnOutOfMemoryError -Dhttp.nonProxyHosts=localhost|127.*|[::1] -cp ./lib/sonar-application-9.4.0.54424.jar:/Users/jitendersingh/Applications/SonarQube/lib/jdbc/h2/h2-2.1.210.jar org.sonar.server.app.WebServer /Users/jitendersingh/Applications/SonarQube/temp/sq-process3911466240755212427properties
jvm 1    | 2022.05.03 16:34:54 INFO  app[][o.s.a.SchedulerImpl] Process[Web Server] is stopped
jvm 1    | 2022.05.03 16:34:54 WARN  app[][o.s.a.p.AbstractManagedProcess] Process exited with exit value [ElasticSearch]: 143
jvm 1    | 2022.05.03 16:34:54 INFO  app[][o.s.a.SchedulerImpl] Process[ElasticSearch] is stopped
jvm 1    | 2022.05.03 16:34:54 INFO  app[][o.s.a.SchedulerImpl] SonarQube is stopped
wrapper  | <-- Wrapper Stopped
jitendersingh@CWAN-FVFG26YXQ05N ~ % echo $JAVA_HOME
/Library/Java/JavaVirtualMachines/jdk-11.0.15.jdk/Contents/Home
jitendersingh@CWAN-FVFG26YXQ05N ~ %```

Hi @Jitender_Singh,

The Apple M1 is not supported and The expected support of Apple M1 will be in future releases.

Thanks
Srikanth Vangari | SonarSource

Thanks for the update @Srikanth_Vangari