I am using sonarqube community for the first time so I am likely doing something wrong. I did this on windows with mostly c++ and c code. I ran the following from the directory I have the source code:
{
“task”: {
“id”: “b42c63f0-e78b-4e61-88eb-41af268f3e43”,
“type”: “REPORT”,
“componentId”: “e8cf17c8-292d-4b30-9df2-915c8944f3d7”,
“componentKey”: “localPTI”,
“componentName”: “localPTI”,
“componentQualifier”: “TRK”,
“analysisId”: “f3b81092-0718-48cf-9585-b962c2c715b1”,
“status”: “SUCCESS”,
“submittedAt”: “2025-06-07T15:50:41-0400”,
“submitterLogin”: “admin”,
“startedAt”: “2025-06-07T15:50:42-0400”,
“executedAt”: “2025-06-07T15:50:49-0400”,
“executionTimeMs”: 6245,
“hasScannerContext”: true,
“warningCount”: 2,
“warnings”: [
“SCM provider autodetection failed. Please use "sonar.scm.provider" to define SCM of your project, or disable the SCM Sensor in the project settings.”,
“210 unanalyzed C and 569 unanalyzed C++ files were detected in this project during the last analysis. C and C++ cannot be analyzed with your current SonarQube edition. Please consider \u003Ca target="_blank" href="Try Now Developer Edition”\u003Eupgrading to Developer Edition\u003C/a\u003E to find Bugs, Code Smells, Vulnerabilities and Security Hotspots in these files."
],
“infoMessages”:
}
}
Do you have any guidance to what I am doing wrong? It found the code but did’t analyze this.
Thanks. I appreciate the feedback. I downloaded SonarQube Server Developer Edition and got this on startup:C:\data\sonarqube-2025.3.0.108892\bin\windows-x86-64>StartSonar.bat
Starting SonarQube…
2025.06.10 17:43:46 INFO app[o.s.a.AppFileSystem] Cleaning or creating temp directory C:\data\sonarqube-2025.3.0.108892\temp
2025.06.10 17:43:46 INFO app[o.s.a.es.EsSettings] Elasticsearch listening on [HTTP: 127.0.0.1:9001, TCP: 127.0.0.1:{}]
2025.06.10 17:43:46 INFO app[o.s.a.ProcessLauncherImpl] Launch process[ELASTICSEARCH] from [C:\data\sonarqube-2025.3.0.108892\elasticsearch]: C:\Program Files\Microsoft\jdk-17.0.15.6-hotspot\bin\java -Xms4m -Xmx64m -XX:+UseSerialGC -Dcli.name=server -Dcli.script=./bin/elasticsearch -Dcli.libs=lib/tools/server-cli -Des.path.home=C:\data\sonarqube-2025.3.0.108892\elasticsearch -Des.path.conf=C:\data\sonarqube-2025.3.0.108892\temp\conf\es -Des.distribution.type=tar -cp C:\data\sonarqube-2025.3.0.108892\elasticsearch\lib*;C:\data\sonarqube-2025.3.0.108892\elasticsearch\lib\cli-launcher* org.elasticsearch.launcher.CliToolLauncher
2025.06.10 17:43:46 INFO app[o.s.a.SchedulerImpl] Waiting for Elasticsearch to be up and running
Standard Commons Logging discovery in action with spring-jcl: please remove commons-logging.jar from classpath in order to avoid potential conflicts
2025.06.10 17:43:58 INFO app[o.s.a.SchedulerImpl] Process[es] is up
2025.06.10 17:43:58 INFO app[o.s.a.ProcessLauncherImpl] Launch process[WEB_SERVER] from [C:\data\sonarqube-2025.3.0.108892]: C:\Program Files\Microsoft\jdk-17.0.15.6-hotspot\bin\java -Djava.awt.headless=true -Dfile.encoding=UTF-8 -Djava.io.tmpdir=C:\data\sonarqube-2025.3.0.108892\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 -Xmx512m -Xms128m -XX:+HeapDumpOnOutOfMemoryError -Dhttp.nonProxyHosts=localhost|127.*|[::1] -cp ./lib/sonar-application-2025.3.0.108892.jar;C:\data\sonarqube-2025.3.0.108892\lib\jdbc\postgresql\postgresql-42.7.5.jar org.sonar.server.app.WebServer C:\data\sonarqube-2025.3.0.108892\temp\sq-process4320978830798736164properties
Standard Commons Logging discovery in action with spring-jcl: please remove commons-logging.jar from classpath in order to avoid potential conflicts
2025.06.10 17:44:01 INFO app[o.s.a.SchedulerImpl] Process[Web Server] is stopped
2025.06.10 17:44:01 INFO app[o.s.a.SchedulerImpl] Process[ElasticSearch] is stopped
2025.06.10 17:44:01 INFO app[o.s.a.SchedulerImpl] SonarQube is stopped
C:\data\sonarqube-2025.3.0.108892\bin\windows-x86-64>StartSonar.bat
Starting SonarQube…
2025.06.10 17:50:54 INFO app[o.s.a.AppFileSystem] Cleaning or creating temp directory C:\data\sonarqube-2025.3.0.108892\temp
2025.06.10 17:50:54 INFO app[o.s.a.es.EsSettings] Elasticsearch listening on [HTTP: 127.0.0.1:9001, TCP: 127.0.0.1:{}]
2025.06.10 17:50:54 INFO app[o.s.a.ProcessLauncherImpl] Launch process[ELASTICSEARCH] from [C:\data\sonarqube-2025.3.0.108892\elasticsearch]: C:\Program Files\Microsoft\jdk-17.0.15.6-hotspot\bin\java -Xms4m -Xmx64m -XX:+UseSerialGC -Dcli.name=server -Dcli.script=./bin/elasticsearch -Dcli.libs=lib/tools/server-cli -Des.path.home=C:\data\sonarqube-2025.3.0.108892\elasticsearch -Des.path.conf=C:\data\sonarqube-2025.3.0.108892\temp\conf\es -Des.distribution.type=tar -cp C:\data\sonarqube-2025.3.0.108892\elasticsearch\lib*;C:\data\sonarqube-2025.3.0.108892\elasticsearch\lib\cli-launcher* org.elasticsearch.launcher.CliToolLauncher
2025.06.10 17:50:54 INFO app[o.s.a.SchedulerImpl] Waiting for Elasticsearch to be up and running
Standard Commons Logging discovery in action with spring-jcl: please remove commons-logging.jar from classpath in order to avoid potential conflicts
2025.06.10 17:51:05 INFO app[o.s.a.SchedulerImpl] Process[es] is up
2025.06.10 17:51:05 INFO app[o.s.a.ProcessLauncherImpl] Launch process[WEB_SERVER] from [C:\data\sonarqube-2025.3.0.108892]: C:\Program Files\Microsoft\jdk-17.0.15.6-hotspot\bin\java -Djava.awt.headless=true -Dfile.encoding=UTF-8 -Djava.io.tmpdir=C:\data\sonarqube-2025.3.0.108892\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 -Xmx512m -Xms128m -XX:+HeapDumpOnOutOfMemoryError -Dhttp.nonProxyHosts=localhost|127.*|[::1] -cp ./lib/sonar-application-2025.3.0.108892.jar;C:\data\sonarqube-2025.3.0.108892\lib\jdbc\postgresql\postgresql-42.7.5.jar org.sonar.server.app.WebServer C:\data\sonarqube-2025.3.0.108892\temp\sq-process8894398701320460891properties
Standard Commons Logging discovery in action with spring-jcl: please remove commons-logging.jar from classpath in order to avoid potential conflicts
2025.06.10 17:51:09 INFO app[o.s.a.SchedulerImpl] Process[Web Server] is stopped
2025.06.10 17:51:09 INFO app[o.s.a.SchedulerImpl] Process[ElasticSearch] is stopped
2025.06.10 17:51:09 INFO app[o.s.a.SchedulerImpl] SonarQube is stopped
I am running openjdk version “17.0.15” 2025-04-15 LTS and postGres. I modified the sonar.properties files for postgres. Can figure out this error.