The connection to SonarQube is lost. Please contact your system administrator

Must-share information (formatted with Markdown):

  • SonarQube, Scanner and Plugin versions are using

    SonarQube is sonarqube-9.0.1.46107
    SoneScanner is sonar-scanner-cli-4.6.2.2472
    Plugin is backelite-sonar-swift-plugin-0.4.6.jar

  • Trying to up Sonarqube in my localhost

  • I have you below command for up the SonarQube

Actually, I have downloaded the SonarQube developer edition. and given below command in terminal
sh /Applications/SonarQube/bin/macosx-universal-64/sonar.sh console

Got error. Check it below

➜  / sh /Applications/SonarQube/bin/macosx-universal-64/sonar.sh console
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    | 2021.08.05 21:34:55 INFO  app[][o.s.a.AppFileSystem] Cleaning or creating temp directory /Applications/SonarQube/temp
jvm 1    | 2021.08.05 21:34:55 INFO  app[][o.s.a.es.EsSettings] Elasticsearch listening on [HTTP: 127.0.0.1:9001, TCP: 127.0.0.1:52301]
jvm 1    | 2021.08.05 21:34:55 INFO  app[][o.s.a.ProcessLauncherImpl] Launch process[[key='es', ipcIndex=1, logFilenamePrefix=es]] from [/Applications/SonarQube/elasticsearch]: /Applications/SonarQube/elasticsearch/bin/elasticsearch
jvm 1    | 2021.08.05 21:34:55 INFO  app[][o.s.a.SchedulerImpl] Waiting for Elasticsearch to be up and running
jvm 1    | warning: no-jdk distributions that do not bundle a JDK are deprecated and will be removed in a future release
jvm 1    | Java HotSpot(TM) 64-Bit Server VM warning: Option UseConcMarkSweepGC was deprecated in version 9.0 and will likely be removed in a future release.
jvm 1    | 2021.08.05 21:35:22 INFO  app[][o.s.a.SchedulerImpl] Process[es] is up
jvm 1    | 2021.08.05 21:35:22 INFO  app[][o.s.a.ProcessLauncherImpl] Launch process[[key='web', ipcIndex=2, logFilenamePrefix=web]] from [/Applications/SonarQube]: /Library/Java/JavaVirtualMachines/jdk-11.0.11.jdk/Contents/Home/bin/java -Djava.awt.headless=true -Dfile.encoding=UTF-8 -Djava.io.tmpdir=/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 -Xmx512m -Xms128m -XX:+HeapDumpOnOutOfMemoryError -Dhttp.nonProxyHosts=localhost|127.*|[::1] -cp ./lib/sonar-application-9.0.1.46107.jar:/Applications/SonarQube/lib/jdbc/h2/h2-1.4.199.jar org.sonar.server.app.WebServer /Applications/SonarQube/temp/sq-process7496848957729509064properties
jvm 1    | 2021.08.05 21:35:31 INFO  app[][o.s.a.SchedulerImpl] Process[web] is stopped
jvm 1    | 2021.08.05 21:35:31 INFO  app[][o.s.a.SchedulerImpl] Process[es] is stopped
jvm 1    | 2021.08.05 21:35:31 WARN  app[][o.s.a.p.AbstractManagedProcess] Process exited with exit value [es]: 143
jvm 1    | 2021.08.05 21:35:31 INFO  app[][o.s.a.SchedulerImpl] SonarQube is stopped
wrapper  | <-- Wrapper Stopped

how could I fix this error?

Hi,

Welcome to the community!

You may be aware that the backelite-sonar-swift plugin is in direct competition with our commercial offerings, so we can’t support it here.

If you remove the plugin and still have trouble starting up, then feel free to come back to us with the errors you find in your server logs.

 
:slightly_smiling_face:
Ann

@ganncamp you are a great man. working fine. Lots of thanks.

4 Likes