Failed build while collecting changes from other repository

sam picture sam · Mar 27, 2012 · Viewed 13.9k times · Source

Getting the following error while trying to do checkout

Build errors #

[11:27:20]Failed to start build
[11:27:20]Failed to collect changes, error: Error collecting changes for VCS repository 'ibtis' org.tmatesoft.svn.core.SVNException: svn: E175002: Externals problem: processExternalsChanges, externals URL: http://server1/svn/ibtis/trunk/UserControls, version: -1, path:UserControls, original error: svn: E175002: unknown host svn: E175002: OPTIONS request failed on '/svn/ibtis/trunk/UserControls' svn: E175002: unknown host svn: E175002: OPTIONS request failed on '/svn/ibtis/trunk/UserControls'

In teamcity current svn url is URL: http://server2/svn/ibtis/trunk and basically it copies changes from other http://server1/svn/ibtis/trunk.

Any idea whats going wrong here. What setting I am giving wrong or is it not possible to do it from teamcity.

Answer

brodie picture brodie · Apr 3, 2012

I was having similar issues when trying to connect to an SVN repository up on beanstalk and was getting this error:

svn: E175002: OPTIONS request failed

After much searching I found this post which fixed the problem for me.

Essentially, you need to modify your Java Options of your TeamCity tomcat service because the SVN fails to authenticate via SSL. I notice that the svn url you are using is "http://" - are you sure this is correct?

(Assuming Windows OS)

  1. Open a command prompt and go to \teamcity\bin\
  2. type 'tomcat7w.exe //ES//TeamCity' - which will bring up 'TeamCity Web Server Properties' dialog (assuming the name of your TeamCity webservice is 'TeamCity')
  3. Click on the 'Java' tab and type '-Dsvnkit.http.sslProtocols=SSLv3' into the Java Options textbox (after everything else)
  4. Restart the service
  5. Awesomeness