Must-share information (formatted with Markdown):
- which versions are you using - Sonarqube Community Edition Version 8.4.1 (build 35646) , sonar-maven-plugin3.7 , [Jenkins 2.235.5] with SVNKIT 1.10.1
- what are you trying to achieve - clean package sonar:sonar -DsonarServerURL=sonarServerIP:9000
- what have you tried so far to achieve this. Scan successful with <sonar.scm.disabled>true</sonar.scm.disabled> and result published to SonarQube
When <sonar.scm.disabled>false</sonar.scm.disabled> the sonar scan fails with Error when executing blame for file : svn: E175002: Connection reset
This happens for one file with 32000 lines of code, but the same is working file with Sonar sonar-maven-plugin 3.2
Error trace:
[INFO] 10792/16890 source files have been analyzed
[INFO] 10792/16890 source files have been analyzed
[INFO] 10792/16890 source files have been analyzed
[INFO] 10792/16890 source files have been analyzed
[INFO] 10792/16890 source files have been analyzed
[INFO] 10792/16890 source files have been analyzed
[INFO] 10792/16890 source files have been analyzed
[INFO] **10792**/16890 source files have been analyzed
.
.
Repeated 150 times
.
.
...
[ERROR] Failed to execute goal org.sonarsource.scanner.maven:sonar-maven-plugin:3.7.0.1746:sonar (default-cli) on project aaspire-app: Error when executing blame for file <filename>: svn: E175002: Connection reset
[ERROR] svn: E175002: REPORT request failed on '<filename>'
[ERROR] -> [Help 1]
org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal org.sonarsource.scanner.maven:sonar-maven-plugin:3.7.0.1746:sonar (default-cli) on project aaspire-app: Error when executing blame for file <filename>
at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:215)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:156)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:148)
at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:117)
at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:81)
at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build (SingleThreadedBuilder.java:56)
at org.apache.maven.lifecycle.internal.LifecycleStarter.execute (LifecycleStarter.java:128)
at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:305)
at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:192)
at org.apache.maven.DefaultMaven.execute (DefaultMaven.java:105)
Caused by: org.apache.maven.plugin.MojoExecutionException: Error when executing blame for file <filename>
at org.sonarsource.scanner.maven.bootstrap.ScannerBootstrapper.execute (ScannerBootstrapper.java:67)
at org.sonarsource.scanner.maven.SonarQubeMojo.execute (SonarQubeMojo.java:104)
at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo (DefaultBuildPluginManager.java:137)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:210)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:156)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:148)
at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:117)
at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:81)
at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build (SingleThreadedBuilder.java:56)
at org.apache.maven.lifecycle.internal.LifecycleStarter.execute (LifecycleStarter.java:128)
at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:305)
at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:192)
at org.apache.maven.DefaultMaven.execute (DefaultMaven.java:105)
at org.jvnet.hudson.maven3.launcher.Maven35Launcher.main (Maven35Launcher.java:130)
Caused by: java.lang.IllegalStateException: Error when executing blame for file <filename>
at org.sonar.plugins.scm.svn.SvnBlameCommand.blame (SvnBlameCommand.java:85)
at org.sonar.plugins.scm.svn.SvnBlameCommand.blame (SvnBlameCommand.java:58)
at org.sonar.scanner.scm.ScmPublisher.publish (ScmPublisher.java:84)
at org.sonar.scanner.scan.ProjectScanContainer.doAfterStart (ProjectScanContainer.java:358)
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:144)
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)
Caused by: org.tmatesoft.svn.core.SVNException: svn: E175002: Connection reset
svn: E175002: REPORT request failed on '/svn//!svn/bc/151168/branches/<Finename>'
at org.tmatesoft.svn.core.internal.wc.SVNErrorManager.error (SVNErrorManager.java:112)
at org.tmatesoft.svn.core.internal.wc.SVNErrorManager.error (SVNErrorManager.java:96)
at org.tmatesoft.svn.core.internal.io.dav.http.HTTPConnection.request (HTTPConnection.java:765)
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:910)
at org.tmatesoft.svn.core.internal.io.dav.DAVConnection.doReport (DAVConnection.java:363)
at org.tmatesoft.svn.core.internal.io.dav.DAVConnection.doReport (DAVConnection.java:353)
at org.tmatesoft.svn.core.internal.io.dav.DAVRepository.getFileRevisionsImpl (DAVRepository.java:936)
at org.tmatesoft.svn.core.io.SVNRepository.getFileRevisions (SVNRepository.java:763)
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.plugins.scm.svn.SvnBlameCommand.blame (SvnBlameCommand.java:83)
at org.sonar.plugins.scm.svn.SvnBlameCommand.blame (SvnBlameCommand.java:58)
at org.sonar.scanner.scm.ScmPublisher.publish (ScmPublisher.java:84)
at org.sonar.scanner.scan.ProjectScanContainer.doAfterStart (ProjectScanContainer.java:358)
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:144)
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)
error.txt (6.6 KB)
Is there way to increase timeout or any alternate option? I have already tried -Dhudson.spool-svn=true still same error is thrown.
Am not sure why this is working fine in SonarQube Version 6.7 (build 33306) and sonar-maven-plugin - 3.2
Please assist, let me know in case more details is required