SubVersion and VisualSVN setup problem

I’m evaluating TeamCity with a view to my team using it using a Windows 7 laptop with VS2010, SubVersion and VisualSVN installed.  I have a C# project setup and working in SubVersion and I have added a new VCS Root pointed to https://sean-VAIO:8443/svn/.  The problem I am running into is when I try to run a build I get the errors:

svn: E175002: can not read HTTP status line
svn: E175002: OPTIONS request failed on '/svn' 

I have configured C:\Users\sean\AppData\Roaming\Subversion\servers with:

[global]

http-proxy-host = sean-VAIO

http-proxy-port = 8443

http-timeout = 60

http-proxy-username = sean

http-proxy-password = password

http-auth-types = basic

 

And I have tried various combinations of settings with no success or much difference in the error message (other than dropping the status line message).  I have also exported the VisualSVN certificate but I’m not sure exactly how I tell TeamCity to use it.

Can anyone point me in the right direction please?  Thanks in advance,

Sean

Stack Trace:

jetbrains.buildServer.vcs.VcsExce*****tion: org.tmatesoft.svn.core.SVNExce*****tion: svn: E175002: can not read HTTP status line
svn: E175002: OPTIONS request failed on '/svn' 
at jetbrains.buildServer.buildTriggers.vcs.svn.SvnSu**********ort.getCurrentVersion(SvnSu**********ort.java:145) 
at jetbrains.buildServer.vcs.im*****l.VcsRootInstancesManagerIm*****l$SVcsRootInstance.getCurrentRevision(VcsRootInstancesManagerIm*****l.java:86)
at jetbrains.buildServer.vcs.im*****l.VcsChangesLoaderIm*****l.getCurrentVersion(VcsChangesLoaderIm*****l.java:22) 
at jetbrains.buildServer.vcs.im*****l.VcsChangesLoaderIm*****l.collectRevisionsForAllRoots(VcsChangesLoaderIm*****l.java:35) 
at jetbrains.buildServer.vcs.im*****l.VcsChangesLoaderIm*****l.getLoadChangesIntervals(VcsChangesLoaderIm*****l.java:77) 
at jetbrains.buildServer.vcs.im*****l.VcsChangesLoaderIm*****l.loadChangesNoLocking(VcsChangesLoaderIm*****l.java:86) 
at jetbrains.buildServer.vcs.im*****l.VcsChangesLoaderIm*****l.loadChanges(VcsChangesLoaderIm*****l.java:66) 
at jetbrains.buildServer.vcs.im*****l.VcsManagerIm*****l.loadChanges(VcsManagerIm*****l.java:171) 
at jetbrains.buildServer.serverSide.im*****l.auth.SecuredVcsManager.loadChanges(SecuredVcsManager.java:33) 
at jetbrains.buildServer.serverSide.im*****l.VcsModificationChecker$1.run(VcsModificationChecker.java:5) 
at java.util.concurrent.Executors$RunnableAda*****ter.call(Unknown Source) 
at java.util.concurrent.FutureTask$Sync.innerRun(Unknown Source) 
at java.util.concurrent.FutureTask.run(Unknown Source) 
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source) 
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) 
at java.lang.Thread.run(Unknown Source) 
Caused by: org.tmatesoft.svn.core.SVNExce*****tion: svn: E175002: can not read HTTP status line 
svn: E175002: OPTIONS request failed on '/svn' 
at org.tmatesoft.svn.core.internal.wc.SVNErrorManager.error(SVNErrorManager.java:106) 
at org.tmatesoft.svn.core.internal.wc.SVNErrorManager.error(SVNErrorManager.java:90) 
at org.tmatesoft.svn.core.internal.io.dav.htt*****.HTTPConnection.request(HTTPConnection.java:662) 
at org.tmatesoft.svn.core.internal.io.dav.htt*****.HTTPConnection.request(HTTPConnection.java:286) 
at org.tmatesoft.svn.core.internal.io.dav.htt*****.HTTPConnection.request(HTTPConnection.java:274) 
at org.tmatesoft.svn.core.internal.io.dav.DAVConnection.*****erformHtt*****Request(DAVConnection.java:704) 
at org.tmatesoft.svn.core.internal.io.dav.DAVConnection.exchangeCa*****abilities(DAVConnection.java:627) 
at org.tmatesoft.svn.core.internal.io.dav.DAVConnection.o*****en(DAVConnection.java:103) 
at org.tmatesoft.svn.core.internal.io.dav.DAVRe*****ository.o*****enConnection(DAVRe*****ository.java:1016) 
at org.tmatesoft.svn.core.internal.io.dav.DAVRe*****ository.getLatestRevision(DAVRe*****ository.java:180) 
at jetbrains.buildServer.buildTriggers.vcs.svn.SvnSu**********ort.getCurrentVersion(SvnSu**********ort.java:155) 
at jetbrains.buildServer.buildTriggers.vcs.svn.SvnSu**********ort.getCurrentVersion(SvnSu**********ort.java:143) 
... 15 more 
Caused by: java.io.EOFExce*****tion: can not read HTTP status line 
at org.tmatesoft.svn.core.internal.io.dav.htt*****.HTTPParser.*****arseStatus(HTTPParser.java:45) 
at org.tmatesoft.svn.core.internal.io.dav.htt*****.HTTPConnection.readHeader(HTTPConnection.java:204) 
at org.tmatesoft.svn.core.internal.io.dav.htt*****.HTTPRequest.dis*****atch(HTTPRequest.java:177) 
at org.tmatesoft.svn.core.internal.io.dav.htt*****.HTTPConnection.connect(HTTPConnection.java:175) 
at org.tmatesoft.svn.core.internal.io.dav.htt*****.HTTPConnection.request(HTTPConnection.java:343) 
... 24 more 
org.tmatesoft.svn.core.SVNExce*****tion: svn: E175002: can not read HTTP status line 
svn: E175002: OPTIONS request failed on '/svn' 
at org.tmatesoft.svn.core.internal.wc.SVNErrorManager.error(SVNErrorManager.java:106) 
at org.tmatesoft.svn.core.internal.wc.SVNErrorManager.error(SVNErrorManager.java:90) 
at org.tmatesoft.svn.core.internal.io.dav.htt*****.HTTPConnection.request(HTTPConnection.java:662) 
at org.tmatesoft.svn.core.internal.io.dav.htt*****.HTTPConnection.request(HTTPConnection.java:286) 
at org.tmatesoft.svn.core.internal.io.dav.htt*****.HTTPConnection.request(HTTPConnection.java:274) 
at org.tmatesoft.svn.core.internal.io.dav.DAVConnection.*****erformHtt*****Request(DAVConnection.java:704) 
at org.tmatesoft.svn.core.internal.io.dav.DAVConnection.exchangeCa*****abilities(DAVConnection.java:627) 
at org.tmatesoft.svn.core.internal.io.dav.DAVConnection.o*****en(DAVConnection.java:103) 
at org.tmatesoft.svn.core.internal.io.dav.DAVRe*****ository.o*****enConnection(DAVRe*****ository.java:1016) 
at org.tmatesoft.svn.core.internal.io.dav.DAVRe*****ository.getLatestRevision(DAVRe*****ository.java:180) 
at jetbrains.buildServer.buildTriggers.vcs.svn.SvnSu**********ort.getCurrentVersion(SvnSu**********ort.java:155) 
at jetbrains.buildServer.buildTriggers.vcs.svn.SvnSu**********ort.getCurrentVersion(SvnSu**********ort.java:143) 
at jetbrains.buildServer.vcs.im*****l.VcsRootInstancesManagerIm*****l$SVcsRootInstance.getCurrentRevision(VcsRootInstancesManagerIm*****l.java:86)
at jetbrains.buildServer.vcs.im*****l.VcsChangesLoaderIm*****l.getCurrentVersion(VcsChangesLoaderIm*****l.java:22) 
at jetbrains.buildServer.vcs.im*****l.VcsChangesLoaderIm*****l.collectRevisionsForAllRoots(VcsChangesLoaderIm*****l.java:35) 
at jetbrains.buildServer.vcs.im*****l.VcsChangesLoaderIm*****l.getLoadChangesIntervals(VcsChangesLoaderIm*****l.java:77) 
at jetbrains.buildServer.vcs.im*****l.VcsChangesLoaderIm*****l.loadChangesNoLocking(VcsChangesLoaderIm*****l.java:86) 
at jetbrains.buildServer.vcs.im*****l.VcsChangesLoaderIm*****l.loadChanges(VcsChangesLoaderIm*****l.java:66) 
at jetbrains.buildServer.vcs.im*****l.VcsManagerIm*****l.loadChanges(VcsManagerIm*****l.java:171) 
at jetbrains.buildServer.serverSide.im*****l.auth.SecuredVcsManager.loadChanges(SecuredVcsManager.java:33) 
at jetbrains.buildServer.serverSide.im*****l.VcsModificationChecker$1.run(VcsModificationChecker.java:5) 
at java.util.concurrent.Executors$RunnableAda*****ter.call(Unknown Source) 
at java.util.concurrent.FutureTask$Sync.innerRun(Unknown Source) 
at java.util.concurrent.FutureTask.run(Unknown Source) 
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source) 
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) 
at java.lang.Thread.run(Unknown Source) 
Caused by: java.io.EOFExce*****tion: can not read HTTP status line 
at org.tmatesoft.svn.core.internal.io.dav.htt*****.HTTPParser.*****arseStatus(HTTPParser.java:45) 
at org.tmatesoft.svn.core.internal.io.dav.htt*****.HTTPConnection.readHeader(HTTPConnection.java:204) 
at org.tmatesoft.svn.core.internal.io.dav.htt*****.HTTPRequest.dis*****atch(HTTPRequest.java:177) 
at org.tmatesoft.svn.core.internal.io.dav.htt*****.HTTPConnection.connect(HTTPConnection.java:175) 
at org.tmatesoft.svn.core.internal.io.dav.htt*****.HTTPConnection.request(HTTPConnection.java:343) 
... 24 more 
java.io.EOFExce*****tion: can not read HTTP status line 
at org.tmatesoft.svn.core.internal.io.dav.htt*****.HTTPParser.*****arseStatus(HTTPParser.java:45) 
at org.tmatesoft.svn.core.internal.io.dav.htt*****.HTTPConnection.readHeader(HTTPConnection.java:204) 
at org.tmatesoft.svn.core.internal.io.dav.htt*****.HTTPRequest.dis*****atch(HTTPRequest.java:177) 
at org.tmatesoft.svn.core.internal.io.dav.htt*****.HTTPConnection.connect(HTTPConnection.java:175) 
at org.tmatesoft.svn.core.internal.io.dav.htt*****.HTTPConnection.request(HTTPConnection.java:343) 
at org.tmatesoft.svn.core.internal.io.dav.htt*****.HTTPConnection.request(HTTPConnection.java:286) 
at org.tmatesoft.svn.core.internal.io.dav.htt*****.HTTPConnection.request(HTTPConnection.java:274) 
at org.tmatesoft.svn.core.internal.io.dav.DAVConnection.*****erformHtt*****Request(DAVConnection.java:704) 
at org.tmatesoft.svn.core.internal.io.dav.DAVConnection.exchangeCa*****abilities(DAVConnection.java:627) 
at org.tmatesoft.svn.core.internal.io.dav.DAVConnection.o*****en(DAVConnection.java:103) 
at org.tmatesoft.svn.core.internal.io.dav.DAVRe*****ository.o*****enConnection(DAVRe*****ository.java:1016) 
at org.tmatesoft.svn.core.internal.io.dav.DAVRe*****ository.getLatestRevision(DAVRe*****ository.java:180) 
at jetbrains.buildServer.buildTriggers.vcs.svn.SvnSu**********ort.getCurrentVersion(SvnSu**********ort.java:155) 
at jetbrains.buildServer.buildTriggers.vcs.svn.SvnSu**********ort.getCurrentVersion(SvnSu**********ort.java:143) 
at jetbrains.buildServer.vcs.im*****l.VcsRootInstancesManagerIm*****l$SVcsRootInstance.getCurrentRevision(VcsRootInstancesManagerIm*****l.java:86)
at jetbrains.buildServer.vcs.im*****l.VcsChangesLoaderIm*****l.getCurrentVersion(VcsChangesLoaderIm*****l.java:22) 
at jetbrains.buildServer.vcs.im*****l.VcsChangesLoaderIm*****l.collectRevisionsForAllRoots(VcsChangesLoaderIm*****l.java:35) 
at jetbrains.buildServer.vcs.im*****l.VcsChangesLoaderIm*****l.getLoadChangesIntervals(VcsChangesLoaderIm*****l.java:77) 
at jetbrains.buildServer.vcs.im*****l.VcsChangesLoaderIm*****l.loadChangesNoLocking(VcsChangesLoaderIm*****l.java:86) 
at jetbrains.buildServer.vcs.im*****l.VcsChangesLoaderIm*****l.loadChanges(VcsChangesLoaderIm*****l.java:66) 
at jetbrains.buildServer.vcs.im*****l.VcsManagerIm*****l.loadChanges(VcsManagerIm*****l.java:171) 
at jetbrains.buildServer.serverSide.im*****l.auth.SecuredVcsManager.loadChanges(SecuredVcsManager.java:33) 
at jetbrains.buildServer.serverSide.im*****l.VcsModificationChecker$1.run(VcsModificationChecker.java:5) 
at java.util.concurrent.Executors$RunnableAda*****ter.call(Unknown Source) 
at java.util.concurrent.FutureTask$Sync.innerRun(Unknown Source) 
at java.util.concurrent.FutureTask.run(Unknown Source) 
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source) 
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) 
at java.lang.Thread.run(Unknown Source)

3 comments

Hi,

  What kind of SVN authentication you're using? Which settings did you specify on the VCS Root page? Did you try "Test connection" button on VCS Root page?
  Why do you specify SVN proxy settings, do you use proxy to access SVN server?

  The documentation regarding SVN settings is available here: http://confluence.jetbrains.net/display/TCD7/Subversion

  Regards,
  KIR

0

Hi, thank you for your reply.  I think the SVN authentication is just called basic??  I've just setup one user and password on VisualSVN and it doesn't use Windows NT / AD authentication.  Test Connection worked OK but I will get some screenshots of how it's configured shortly.  It's probably something obvious that I'm missing as I've been using TFS and I'm new to VisualSVN, SubVersion and TeamCity.  I will also take a look at the link.  Thanks

0

I got this working today by doing the following:

1. Changed VCS checkout mode to Automatically on Agent

2. Switched VisualSVN from https to http (fine for my test environment)

3. Restarted VisualSVN server a couple of times and reset passwords etc

4. Commented out all of lines in the server config file under the AppData\Roaming\SubVersion directory

I can now build successfully.  I will try to switch back to https at some point as well.

Thank you for your help and also thank you to Yegor for your email suggesting step 4 above.

0

Please sign in to leave a comment.