Search code examples
svnsonarqubesonar-runner

Sonar Runner SVN error E230001


Trying to analyze a project with sonar-runner brings the following error up:

ERROR: Error during Sonar runner execution
ERROR: Unable to execute Sonar
ERROR: Caused by: The svn blame command [svn blame --xml --non-interactive -x -w src/main/java/[...].java] failed: svn: E230001: Unable to connect to a repository at URL 'https://[...]/trunk/src/main/java/[...].java'
svn: E230001: Server SSL certificate verification failed: issuer is not trusted

If I run a svn list https://[...] it works after permanently trusting the cert, but it still won't work in sonar-runner.

I think adding --trust-server-cert to the svn blame command would fix it, but I don't know of a way to do this (is this configurable via properties? I couldn't find a comprehensive list of possible properties anywhere).


Solution

  • Well, as it turns out, permanently accepting the certificate running a svn list (or any other command) against the server works. What didn't work was that I was doing this from a different user than the one running sonar-runner.

    If it helps anyone: I am running sonar-runner from Atlassian Bamboo, which runs as a Windows service (system user). In order to do the workaround, you'll need a command-line as the system user. To achieve this, view this question.