Sonar scanner : 5.1.0.28487
I have a .net project under svn that is being integrated in teamcity and analyzed with sonar.
My problem occurs when the sonar scanner tries to get blame informations, its not able to because of authentication issue
java.lang.IllegalStateException: Authentication error when executing blame for file … Caused by: org.tmatesoft.svn.core.SVNAuthenticationException: svn: E170001: Authentication required for…
I saw some posts saying svn credentials could be filled in under administration/configuration section but im not able to see any SVN section when i log in SonarQube 9.2.
At the project level, i also have nothing regarding svn credentials i could fill in.
I tried to pass the sonar.svn.username and sonar.svn.password.secured as arguments to the scanner begin phase but its as if they were ignored.
Could you please help to understand whats the problem and how i can make this work ?
I’m using sonarqube and sonarsource/sonar-scanner-cli both docker images latest version.
sonarqube is * Community Edition * Version 9.3 (build 51899)
sonar-scanner-cli is 4.6.2.2472
I am running both properties as you mentioned above:
-Dsonar.sonar.svn.username and -Dsonar.svn.password.secured while running the sonar-scanner
............
INFO: SCM Publisher SCM provider for this project is: svn
INFO: SCM Publisher 302 source files to be analyzed
INFO: SCM Publisher 0/302 source files have been analyzed (done) | time=693ms
INFO: ------------------------------------------------------------------------
INFO: EXECUTION FAILURE
INFO: ------------------------------------------------------------------------
INFO: Total time: 45.651s
INFO: Final Memory: 17M/70M
INFO: ------------------------------------------------------------------------
ERROR: Error during SonarScanner execution
java.lang.IllegalStateException: Authentication error when executing blame for file admin/modules/BLA/BLA/BLA/BLA/FILE.xml
at org.sonar.scm.svn.SvnBlameCommand.blame(SvnBlameCommand.java:91)
at org.sonar.scm.svn.SvnBlameCommand.blame(SvnBlameCommand.java:60)
at org.sonar.scanner.scm.ScmPublisher.publish(ScmPublisher.java:84)
at org.sonar.scanner.scan.ProjectScanContainer.doAfterStart(ProjectScanContainer.java:354)
at org.sonar.core.platform.ComponentContainer.startComponents(ComponentContainer.java:137)
at org.sonar.core.platform.ComponentContainer.execute(ComponentContainer.java:123)
at org.sonar.scanner.bootstrap.GlobalContainer.doAfterStart(GlobalContainer.java:136)
at org.sonar.core.platform.ComponentContainer.startComponents(ComponentContainer.java:137)
at org.sonar.core.platform.ComponentContainer.execute(ComponentContainer.java:123)
at org.sonar.batch.bootstrapper.Batch.doExecute(Batch.java:72)
at org.sonar.batch.bootstrapper.Batch.execute(Batch.java:66)
at org.sonarsource.scanner.api.internal.batch.BatchIsolatedLauncher.execute(BatchIsolatedLauncher.java:46)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.base/java.lang.reflect.Method.invoke(Method.java:566)
at org.sonarsource.scanner.api.internal.IsolatedLauncherProxy.invoke(IsolatedLauncherProxy.java:60)
at com.sun.proxy.$Proxy0.execute(Unknown Source)
at org.sonarsource.scanner.api.EmbeddedScanner.doExecute(EmbeddedScanner.java:189)
at org.sonarsource.scanner.api.EmbeddedScanner.execute(EmbeddedScanner.java:138)
at org.sonarsource.scanner.cli.Main.execute(Main.java:112)
at org.sonarsource.scanner.cli.Main.execute(Main.java:75)
at org.sonarsource.scanner.cli.Main.main(Main.java:61)
Caused by: org.tmatesoft.svn.core.SVNAuthenticationException: svn: E170001: Authentication required for '<https://svn.BLABLA.com:443> BLA_SVN Slave'
at org.tmatesoft.svn.core.internal.wc.SVNErrorManager.authenticationFailed(SVNErrorManager.java:53)
at org.tmatesoft.svn.core.internal.wc.SVNErrorManager.authenticationFailed(SVNErrorManager.java:47)
at org.tmatesoft.svn.core.internal.wc.DefaultSVNAuthenticationManager.getFirstAuthentication(DefaultSVNAuthenticationManager.java:201)
at org.tmatesoft.svn.core.internal.io.dav.http.HTTPConnection.request(HTTPConnection.java:687)
at org.tmatesoft.svn.core.internal.io.dav.http.HTTPConnection.request(HTTPConnection.java:352)
at org.tmatesoft.svn.core.internal.io.dav.http.HTTPConnection.request(HTTPConnection.java:340)
at org.tmatesoft.svn.core.internal.io.dav.DAVConnection.performHttpRequest(DAVConnection.java:914)
at org.tmatesoft.svn.core.internal.io.dav.DAVConnection.exchangeCapabilities(DAVConnection.java:706)
at org.tmatesoft.svn.core.internal.io.dav.DAVConnection.open(DAVConnection.java:114)
at org.tmatesoft.svn.core.internal.io.dav.DAVRepository.openConnection(DAVRepository.java:1047)
at org.tmatesoft.svn.core.internal.io.dav.DAVRepository.hasCapability(DAVRepository.java:868)
at org.tmatesoft.svn.core.io.SVNRepository.assertServerIsMergeInfoCapable(SVNRepository.java:790)
at org.tmatesoft.svn.core.io.SVNRepository.getFileRevisions(SVNRepository.java:759)
at org.tmatesoft.svn.core.internal.wc2.remote.SvnRemoteAnnotate.run(SvnRemoteAnnotate.java:109)
at org.tmatesoft.svn.core.internal.wc2.remote.SvnRemoteAnnotate.run(SvnRemoteAnnotate.java:30)
at org.tmatesoft.svn.core.internal.wc2.SvnOperationRunner.run(SvnOperationRunner.java:21)
at org.tmatesoft.svn.core.wc2.SvnOperationFactory.run(SvnOperationFactory.java:1239)
at org.tmatesoft.svn.core.wc2.SvnOperation.run(SvnOperation.java:294)
at org.tmatesoft.svn.core.wc.SVNLogClient.doAnnotate(SVNLogClient.java:295)
at org.sonar.scm.svn.SvnBlameCommand.blame(SvnBlameCommand.java:86)
... 22 more
ERROR:
ERROR: Re-run SonarScanner using the -X switch to enable full debug logging.