Is sonar.externalIssuesReportPaths available in onprem free account

Im using sonarqube free package onprem machine. Community Edition v9.9.6.
-Dsonar.externalIssuesReportPaths=myissues.json gives me some error.

Is it available on free version? Chatgpt said it is available for developer or enterprise packages.

Also the error logs look likes giving authorized error but when i remove externalIssuesReportPaths parameter, it run perfectly.

Looking for help :slight_smile:

8:45:11  08:45:10.824 INFO  Scanner configuration file: /jenkins/sonar-scanner/conf/sonar-scanner.properties
08:45:11  08:45:10.829 INFO  Project root configuration file: NONE
08:45:11  08:45:10.855 INFO  SonarScanner CLI 6.0.0.4432
08:45:11  08:45:10.857 INFO  Java 17.0.11 Eclipse Adoptium (64-bit)
08:45:11  08:45:10.857 INFO  Linux 4.18.0-553.27.1.el8_10.x86_64 amd64
08:45:11  08:45:10.865 DEBUG Scanner max available memory: 5 GB
08:45:11  08:45:10.900 DEBUG uname -m returned 'x86_64'
08:45:11  08:45:10.901 DEBUG Create: /jenkins/jenkins-user-home/.sonar/cache
08:45:11  08:45:10.902 INFO  User cache: /jenkins/jenkins-user-home/.sonar/cache
08:45:11  08:45:10.903 DEBUG Create: /jenkins/jenkins-user-home/.sonar/cache/_tmp
08:45:11  08:45:11.357 DEBUG Loaded [470] system trusted certificates
08:45:11  08:45:11.576 DEBUG --> GET http://sonartest.XX.com/api/v2/analysis/version
08:45:11  08:45:11.717 DEBUG <-- 404 https://sonartest.XX.com/api/v2/analysis/version (141ms, unknown-length body)
08:45:11  08:45:11.718 DEBUG --> GET http://sonartest.XX.com/api/server/version
08:45:11  08:45:11.730 DEBUG <-- 200 https://sonartest.XX.com/api/server/version (10ms, 11-byte body)
08:45:11  08:45:11.732 DEBUG Extract sonar-scanner-java-library-batch in temp...
08:45:11  08:45:11.735 DEBUG Get bootstrap index...
08:45:11  08:45:11.735 DEBUG --> GET http://sonartest.XX.com/batch/index
08:45:11  08:45:11.743 DEBUG <-- 200 https://sonartest.XX.com/batch/index (7ms, 81-byte body)
08:45:11  08:45:11.743 DEBUG Get bootstrap completed
08:45:11  08:45:11.744 DEBUG Create isolated classloader...
08:45:11  08:45:11.749 DEBUG Start temp cleaning...
08:45:11  08:45:11.756 DEBUG Temp cleaning done
08:45:11  08:45:11.757 INFO  Communicating with SonarQube Server 9.9.6.92038
08:45:11  08:45:11.758 DEBUG Work directory: /jenkins/workspace/RenginMavenJob/109/.scannerwork
08:45:11  08:45:11.758 DEBUG Execution execute
08:45:12  08:45:12.084 DEBUG Community 9.9.6.92038
08:45:12  08:45:12.317 INFO  Load global settings
08:45:12  08:45:12.396 DEBUG GET 401 https://sonartest.XX.com/api/settings/values.protobuf | time=78ms
08:45:12  08:45:12.413 INFO  EXECUTION FAILURE
08:45:12  08:45:12.413 INFO  Total time: 1.649s
08:45:12  08:45:12.413 ERROR Error during SonarScanner CLI execution
08:45:12  org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'org.sonarsource.scanner.lib.internal.IsolatedClassloader@46944ca9-org.sonar.scanner.bootstrap.ScannerPluginRepository': Unsatisfied dependency expressed through constructor parameter 0; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'org.sonarsource.scanner.lib.internal.IsolatedClassloader@46944ca9-org.sonar.scanner.bootstrap.ScannerPluginInstaller': Unsatisfied dependency expressed through constructor parameter 0; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'org.sonarsource.scanner.lib.internal.IsolatedClassloader@46944ca9-org.sonar.scanner.bootstrap.PluginFiles': Unsatisfied dependency expressed through constructor parameter 1; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'GlobalConfiguration' defined in org.sonar.scanner.bootstrap.GlobalConfigurationProvider: Unsatisfied dependency expressed through method 'provide' parameter 0; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'GlobalServerSettings' defined in org.sonar.scanner.bootstrap.GlobalServerSettingsProvider: Bean instantiation via factory method failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.sonar.scanner.bootstrap.GlobalServerSettings]: Factory method 'provide' threw exception; nested exception is Not authorized. Please check the properties sonar.login and sonar.password.```

Hey there.

Yes, sonar.externalIssuesReportPaths is available in SonarQube Community Edition/Build. It is not gated to commercial editions.

Most likely something has gone wrong with how you’re passing analysis parameters. Where are you configuring your parameters? Can you share exactly how they’re configured (in both cases: where the analysis succeeds, and when it fails)

im just giving “sonar.externalIssuesReportPaths=./issues” with the other parameters like “-Dsonar.qualitygate.timeout=2000”
Error logs showing 404 error with a url include v2 api, but in my sonarqube i can only see v1 api. May v2 api not active in my sonarqube setup?

08:45:11 08:45:11.717 DEBUG ← 404 https://sonar.XX.com/api/v2/analysis/version (141ms, unknown-length body)

18:17:59 18:17:59.532 DEBUG GET 401 https://sonar.XX.com/api/settings/values.protobuf | time=69ms

18:17:59 18:17:59.548 ERROR Error during SonarScanner CLI execution

No, those are fine (it’s just the scanner checking to see what APIs are available). Again, please: