MacBook-Pro ~ % 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 | 2022.02.17 16:28:42 INFO app[][o.s.a.AppFileSystem] Cleaning or creating temp directory /Applications/SonarQube/temp
jvm 1 | 2022.02.17 16:28:43 INFO app[][o.s.a.es.EsSettings] Elasticsearch listening on [HTTP: 127.0.0.1:9001, TCP: 127.0.0.1:49731]
jvm 1 | 2022.02.17 16:28:43 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 | 2022.02.17 16:28:43 INFO app[][o.s.a.SchedulerImpl] Waiting for Elasticsearch to be up and running
jvm 1 | 2022.02.17 16:28:57 INFO app[][o.s.a.SchedulerImpl] Process[es] is up
jvm 1 | 2022.02.17 16:28:57 INFO app[][o.s.a.ProcessLauncherImpl] Launch process[[key='web', ipcIndex=2, logFilenamePrefix=web]] from [/Applications/SonarQube]: /Library/Java/JavaVirtualMachines/jdk-11.0.14.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 --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.3.0.51899.jar:/Applications/SonarQube/lib/jdbc/h2/h2-1.4.199.jar org.sonar.server.app.WebServer /Applications/SonarQube/temp/sq-process8662015725803246181properties
jvm 1 | 2022.02.17 16:29:08 INFO app[][o.s.a.SchedulerImpl] Process[web] is stopped
jvm 1 | 2022.02.17 16:29:08 INFO app[][o.s.a.SchedulerImpl] Process[es] is stopped
jvm 1 | 2022.02.17 16:29:08 WARN app[][o.s.a.p.AbstractManagedProcess] Process exited with exit value [es]: 143
jvm 1 | 2022.02.17 16:29:08 INFO app[][o.s.a.SchedulerImpl] SonarQube is stopped
wrapper | <-- Wrapper Stopped
Deleted data/e7, but it didn’t change anything. Using the latest version of SonarQube and latest Macbook
Completely uninstalled SonarQube, installed it again. Still the error remains.
2022.02.17 20:29:14 INFO web[][o.s.s.p.DetectPluginChange] Detect plugin changes
2022.02.17 20:29:14 INFO web[][o.s.s.a.EmbeddedTomcat] HTTP connector enabled on port 9000
2022.02.17 20:29:15 INFO web[][o.s.s.p.UpdateCenterClient] Update center: https://update.sonarsource.org/update-center.properties (no proxy)
2022.02.17 20:29:16 INFO web[][o.s.s.s.LogServerId] Server ID: BF41A1F2-AX8ILpRFs11NI9w7Zkiy
2022.02.17 20:29:16 WARN web[][o.s.s.a.LogOAuthWarning] For security reasons, OAuth authentication should use HTTPS. You should set the property 'Administration > Configuration > Server base URL' to a HTTPS URL.
2022.02.17 20:29:16 WARN web[][o.s.a.s.w.WebService$Action] The response example is not set on action api/plugins/download
2022.02.17 20:29:16 WARN web[][o.s.a.s.w.WebService$Action] The response example is not set on action api/system/liveness
2022.02.17 20:29:16 WARN web[][o.s.a.s.w.WebService$Action] The response example is not set on action api/alm_integrations/list_bitbucketserver_projects
2022.02.17 20:29:16 WARN web[][o.s.a.s.w.WebService$Action] The response example is not set on action api/alm_integrations/search_bitbucketcloud_repos
2022.02.17 20:29:16 WARN web[][o.s.a.s.w.WebService$Action] The response example is not set on action api/alm_integrations/check_pat
2022.02.17 20:29:16 WARN web[][o.s.a.s.w.WebService$Action] The response example is not set on action api/alm_integrations/list_azure_projects
2022.02.17 20:29:16 WARN web[][o.s.a.s.w.WebService$Action] The response example is not set on action api/alm_integrations/search_bitbucketserver_repos
2022.02.17 20:29:16 WARN web[][o.s.a.s.w.WebService$Action] The response example is not set on action api/alm_integrations/search_azure_repos
2022.02.17 20:29:16 WARN web[][o.s.a.s.w.WebService$Action] The response example is not set on action api/project_dump/status
2022.02.17 20:29:16 INFO web[][o.s.s.t.TelemetryDaemon] Sharing of SonarQube statistics is enabled.
2022.02.17 20:29:16 INFO web[][o.s.s.n.NotificationDaemon] Notification service started (delay 60 sec.)
2022.02.17 20:29:16 INFO web[][o.s.s.a.p.ExpiredSessionsCleaner] Purge of expired session tokens has removed 0 elements
2022.02.17 20:29:16 INFO web[][o.s.s.s.GeneratePluginIndex] Generate scanner plugin index
2022.02.17 20:29:16 INFO web[][o.s.s.s.RegisterMetrics] Register metrics
2022.02.17 20:29:16 INFO web[][o.s.s.a.p.ExpiredSessionsCleaner] Purge of expired SAML message ids has removed 0 elements
2022.02.17 20:29:17 INFO web[][o.s.s.r.RegisterRules] Register rules
2022.02.17 20:29:17 ERROR web[][o.s.s.p.Platform] Background initialization failed. Stopping SonarQube
java.lang.NoSuchMethodError: org.sonar.api.server.rule.RulesDefinition$NewRule.setDebtSubCharacteristic(Ljava/lang/String;)Lorg/sonar/api/server/rule/RulesDefinition$NewRule;
at org.sonar.squidbridge.rules.SqaleXmlLoader.processRule(SqaleXmlLoader.java:124)
at org.sonar.squidbridge.rules.SqaleXmlLoader.processSubChar(SqaleXmlLoader.java:92)
at org.sonar.squidbridge.rules.SqaleXmlLoader.processRoot(SqaleXmlLoader.java:78)
at org.sonar.squidbridge.rules.SqaleXmlLoader.loadXmlResource(SqaleXmlLoader.java:65)
at org.sonar.squidbridge.rules.SqaleXmlLoader.load(SqaleXmlLoader.java:52)
at com.backelite.sonarqube.swift.issues.swiftlint.SwiftLintRulesDefinition.define(SwiftLintRulesDefinition.java:61)
at org.sonar.server.rule.RuleDefinitionsLoader.load(RuleDefinitionsLoader.java:53)
at org.sonar.server.rule.RegisterRules.start(RegisterRules.java:119)
at org.sonar.core.platform.StartableCloseableSafeLifecyleStrategy.start(StartableCloseableSafeLifecyleStrategy.java:40)
at org.picocontainer.injectors.AbstractInjectionFactory$LifecycleAdapter.start(AbstractInjectionFactory.java:84)
at org.picocontainer.behaviors.AbstractBehavior.start(AbstractBehavior.java:169)
at org.picocontainer.behaviors.Stored$RealComponentLifecycle.start(Stored.java:132)
at org.picocontainer.behaviors.Stored.start(Stored.java:110)
at org.picocontainer.DefaultPicoContainer.potentiallyStartAdapter(DefaultPicoContainer.java:1016)
at org.picocontainer.DefaultPicoContainer.startAdapters(DefaultPicoContainer.java:1009)
at org.picocontainer.DefaultPicoContainer.start(DefaultPicoContainer.java:767)
at org.sonar.core.platform.ComponentContainer.startComponents(ComponentContainer.java:136)
at org.sonar.server.platform.platformlevel.PlatformLevel.start(PlatformLevel.java:90)
at org.sonar.server.platform.platformlevel.PlatformLevelStartup.access$001(PlatformLevelStartup.java:51)
at org.sonar.server.platform.platformlevel.PlatformLevelStartup$1.doPrivileged(PlatformLevelStartup.java:119)
at org.sonar.server.user.DoPrivileged.execute(DoPrivileged.java:45)
at org.sonar.server.platform.platformlevel.PlatformLevelStartup.start(PlatformLevelStartup.java:116)
at org.sonar.server.platform.PlatformImpl.executeStartupTasks(PlatformImpl.java:198)
at org.sonar.server.platform.PlatformImpl$1.lambda$doRun$1(PlatformImpl.java:122)
at org.sonar.server.platform.PlatformImpl$AutoStarterRunnable.runIfNotAborted(PlatformImpl.java:370)
at org.sonar.server.platform.PlatformImpl$1.doRun(PlatformImpl.java:122)
at org.sonar.server.platform.PlatformImpl$AutoStarterRunnable.run(PlatformImpl.java:354)
at java.base/java.lang.Thread.run(Thread.java:834)
2022.02.17 20:29:18 INFO web[][o.s.p.ProcessEntryPoint] Hard stopping process
2022.02.17 20:29:18 INFO web[][o.s.s.n.NotificationDaemon] Notification service stopped
2022.02.17 20:29:18 INFO web[][o.s.s.p.d.EmbeddedDatabase] Embedded database stopped
i think you are using a community swift plugin and not the one that is provided by sonarsource starting at the developer edition and above.
you should ask the maintainer of this plugin for help if you want to stick to the community edition or request a free trial for the developer edition to take a look at our commercial swift plugin
okay if there is nothing in the sonarqube UI there was no scan that could have been processed. This could be the case because sonarqube is not detecting any source code, so please check your scanner parameters/properties and the output of the scanner run.
please note that if you only have swift code and a sonarqube edition the does not have a swift language plugin (as in the community edition), the swift code will be ignored.