Authentication required on SVN over HTTPS with client cert

Hi
I installed teamcity on Windows and Linux and tried connecting to my https repository of svn protected with certitficates. The earlier version of teamcity ie Teamcity 3.1 was working fine. As soon as I upgraded to 3.1.2, it stopped working with the following errors:

Any solutions will help

jetbrains.buildServer.vcs.VcsException: jetbrains.buildServer.vcs.VcsException: Cannot request dated revision from svn: svn: Authentication required for '<https://intranet.indience.in:443>'
at jetbrains.buildServer.buildTriggers.vcs.svn.SvnSupport.getVersionDisplayName(SvnSupport.java:26)
at jetbrains.buildServer.buildTriggers.vcs.VcsChangesLoader.updateCurrentVersion(VcsChangesLoader.java:1)
at jetbrains.buildServer.buildTriggers.vcs.VcsChangesLoader.loadChanges(VcsChangesLoader.java:70)
at jetbrains.buildServer.vcs.impl.VcsManagerImpl.loadChanges(VcsManagerImpl.java:38)
at jetbrains.buildServer.vcs.impl.VcsManagerImpl.checkForModifications(VcsManagerImpl.java:670)
at jetbrains.buildServer.serverSide.impl.auth.SecuredVcsManager.checkForModifications(SecuredVcsManager.java:20)
at jetbrains.buildServer.serverSide.impl.VcsModificationChecker$1.run(VcsModificationChecker.java:13)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:417)
at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:269)
at java.util.concurrent.FutureTask.run(FutureTask.java:123)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:650)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:675)
at java.lang.Thread.run(Thread.java:595)
Caused by: jetbrains.buildServer.vcs.VcsException: Cannot request dated revision from svn: svn: Authentication required for '<https://intranet.indience.in:443>'
at jetbrains.buildServer.buildTriggers.vcs.svn.SvnConnection.getRevision(SvnConnection.java:161)
at jetbrains.buildServer.buildTriggers.vcs.svn.SvnSupport.getVersionDisplayName(SvnSupport.java:1)
... 12 more
Caused by: org.tmatesoft.svn.core.SVNAuthenticationException: svn: Authentication required for '<https://intranet.indience.in:443>'
at org.tmatesoft.svn.core.internal.wc.SVNErrorManager.authenticationFailed(SVNErrorManager.java:47)
at org.tmatesoft.svn.core.internal.wc.SVNErrorManager.authenticationFailed(SVNErrorManager.java:41)
at org.tmatesoft.svn.core.auth.BasicAuthenticationManager.getFirstAuthentication(BasicAuthenticationManager.java:170)
at org.tmatesoft.svn.core.internal.io.dav.http.HTTPSSLKeyManager.initialize(HTTPSSLKeyManager.java:239)
at org.tmatesoft.svn.core.internal.io.dav.http.HTTPSSLKeyManager.initializeNoException(HTTPSSLKeyManager.java:221)
at org.tmatesoft.svn.core.internal.io.dav.http.HTTPSSLKeyManager.chooseClientAlias(HTTPSSLKeyManager.java:115)
at com.sun.net.ssl.internal.ssl.JsseX509KeyManager$AbstractWrapper.chooseClientAlias(SSLContextImpl.java:385)
at com.sun.net.ssl.internal.ssl.JsseX509KeyManager.chooseClientAlias(SSLContextImpl.java:427)
at com.sun.net.ssl.internal.ssl.ClientHandshaker.serverHelloDone(ClientHandshaker.java:460)
at com.sun.net.ssl.internal.ssl.ClientHandshaker.processMessage(ClientHandshaker.java:160)
at com.sun.net.ssl.internal.ssl.Handshaker.processLoop(Handshaker.java:495)
at com.sun.net.ssl.internal.ssl.Handshaker.process_record(Handshaker.java:433)
at com.sun.net.ssl.internal.ssl.SSLSocketImpl.readRecord(SSLSocketImpl.java:818)
at com.sun.net.ssl.internal.ssl.SSLSocketImpl.readDataRecord(SSLSocketImpl.java:680)
at com.sun.net.ssl.internal.ssl.AppInputStream.read(AppInputStream.java:75)
at java.io.BufferedInputStream.fill(BufferedInputStream.java:218)
at java.io.BufferedInputStream.read(BufferedInputStream.java:235)
at org.tmatesoft.svn.core.internal.util.SVNLogInputStream.read(SVNLogInputStream.java:75)
at org.tmatesoft.svn.core.internal.io.dav.http.HTTPParser.readPlainLine(HTTPParser.java:69)
at org.tmatesoft.svn.core.internal.io.dav.http.HTTPParser.readLine(HTTPParser.java:51)
at org.tmatesoft.svn.core.internal.io.dav.http.HTTPParser.parseStatus(HTTPParser.java:39)
at org.tmatesoft.svn.core.internal.io.dav.http.HTTPConnection.readHeader(HTTPConnection.java:179)
at org.tmatesoft.svn.core.internal.io.dav.http.HTTPRequest.dispatch(HTTPRequest.java:167)
at org.tmatesoft.svn.core.internal.io.dav.http.HTTPConnection.request(HTTPConnection.java:323)
at org.tmatesoft.svn.core.internal.io.dav.http.HTTPConnection.request(HTTPConnection.java:257)
at org.tmatesoft.svn.core.internal.io.dav.http.HTTPConnection.request(HTTPConnection.java:245)
at org.tmatesoft.svn.core.internal.io.dav.DAVConnection.exchangeCapabilities(DAVConnection.java:454)
at org.tmatesoft.svn.core.internal.io.dav.DAVConnection.open(DAVConnection.java:97)
at org.tmatesoft.svn.core.internal.io.dav.DAVRepository.openConnection(DAVRepository.java:643)
at org.tmatesoft.svn.core.internal.io.dav.DAVRepository.getDatedRevision(DAVRepository.java:187)
at jetbrains.buildServer.buildTriggers.vcs.svn.SvnConnection.getRevision(SvnConnection.java:173)
... 13 more
jetbrains.buildServer.vcs.VcsException: Cannot request dated revision from svn: svn: Authentication required for '<https://intranet.indience.in:443>'
at jetbrains.buildServer.buildTriggers.vcs.svn.SvnConnection.getRevision(SvnConnection.java:161)
at jetbrains.buildServer.buildTriggers.vcs.svn.SvnSupport.getVersionDisplayName(SvnSupport.java:1)
at jetbrains.buildServer.buildTriggers.vcs.VcsChangesLoader.updateCurrentVersion(VcsChangesLoader.java:1)
at jetbrains.buildServer.buildTriggers.vcs.VcsChangesLoader.loadChanges(VcsChangesLoader.java:70)
at jetbrains.buildServer.vcs.impl.VcsManagerImpl.loadChanges(VcsManagerImpl.java:38)
at jetbrains.buildServer.vcs.impl.VcsManagerImpl.checkForModifications(VcsManagerImpl.java:670)
at jetbrains.buildServer.serverSide.impl.auth.SecuredVcsManager.checkForModifications(SecuredVcsManager.java:20)
at jetbrains.buildServer.serverSide.impl.VcsModificationChecker$1.run(VcsModificationChecker.java:13)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:417)
at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:269)
at java.util.concurrent.FutureTask.run(FutureTask.java:123)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:650)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:675)
at java.lang.Thread.run(Thread.java:595)
Caused by: org.tmatesoft.svn.core.SVNAuthenticationException: svn: Authentication required for '<https://intranet.indience.in:443>'
at org.tmatesoft.svn.core.internal.wc.SVNErrorManager.authenticationFailed(SVNErrorManager.java:47)
at org.tmatesoft.svn.core.internal.wc.SVNErrorManager.authenticationFailed(SVNErrorManager.java:41)
at org.tmatesoft.svn.core.auth.BasicAuthenticationManager.getFirstAuthentication(BasicAuthenticationManager.java:170)
at org.tmatesoft.svn.core.internal.io.dav.http.HTTPSSLKeyManager.initialize(HTTPSSLKeyManager.java:239)
at org.tmatesoft.svn.core.internal.io.dav.http.HTTPSSLKeyManager.initializeNoException(HTTPSSLKeyManager.java:221)
at org.tmatesoft.svn.core.internal.io.dav.http.HTTPSSLKeyManager.chooseClientAlias(HTTPSSLKeyManager.java:115)
at com.sun.net.ssl.internal.ssl.JsseX509KeyManager$AbstractWrapper.chooseClientAlias(SSLContextImpl.java:385)
at com.sun.net.ssl.internal.ssl.JsseX509KeyManager.chooseClientAlias(SSLContextImpl.java:427)
at com.sun.net.ssl.internal.ssl.ClientHandshaker.serverHelloDone(ClientHandshaker.java:460)
at com.sun.net.ssl.internal.ssl.ClientHandshaker.processMessage(ClientHandshaker.java:160)
at com.sun.net.ssl.internal.ssl.Handshaker.processLoop(Handshaker.java:495)
at com.sun.net.ssl.internal.ssl.Handshaker.process_record(Handshaker.java:433)
at com.sun.net.ssl.internal.ssl.SSLSocketImpl.readRecord(SSLSocketImpl.java:818)
at com.sun.net.ssl.internal.ssl.SSLSocketImpl.readDataRecord(SSLSocketImpl.java:680)
at com.sun.net.ssl.internal.ssl.AppInputStream.read(AppInputStream.java:75)
at java.io.BufferedInputStream.fill(BufferedInputStream.java:218)
at java.io.BufferedInputStream.read(BufferedInputStream.java:235)
at org.tmatesoft.svn.core.internal.util.SVNLogInputStream.read(SVNLogInputStream.java:75)
at org.tmatesoft.svn.core.internal.io.dav.http.HTTPParser.readPlainLine(HTTPParser.java:69)
at org.tmatesoft.svn.core.internal.io.dav.http.HTTPParser.readLine(HTTPParser.java:51)
at org.tmatesoft.svn.core.internal.io.dav.http.HTTPParser.parseStatus(HTTPParser.java:39)
at org.tmatesoft.svn.core.internal.io.dav.http.HTTPConnection.readHeader(HTTPConnection.java:179)
at org.tmatesoft.svn.core.internal.io.dav.http.HTTPRequest.dispatch(HTTPRequest.java:167)
at org.tmatesoft.svn.core.internal.io.dav.http.HTTPConnection.request(HTTPConnection.java:323)
at org.tmatesoft.svn.core.internal.io.dav.http.HTTPConnection.request(HTTPConnection.java:257)
at org.tmatesoft.svn.core.internal.io.dav.http.HTTPConnection.request(HTTPConnection.java:245)
at org.tmatesoft.svn.core.internal.io.dav.DAVConnection.exchangeCapabilities(DAVConnection.java:454)
at org.tmatesoft.svn.core.internal.io.dav.DAVConnection.open(DAVConnection.java:97)
at org.tmatesoft.svn.core.internal.io.dav.DAVRepository.openConnection(DAVRepository.java:643)
at org.tmatesoft.svn.core.internal.io.dav.DAVRepository.getDatedRevision(DAVRepository.java:187)
at jetbrains.buildServer.buildTriggers.vcs.svn.SvnConnection.getRevision(SvnConnection.java:173)
... 13 more
org.tmatesoft.svn.core.SVNAuthenticationException: svn: Authentication required for '<https://intranet.indience.in:443>'
at org.tmatesoft.svn.core.internal.wc.SVNErrorManager.authenticationFailed(SVNErrorManager.java:47)
at org.tmatesoft.svn.core.internal.wc.SVNErrorManager.authenticationFailed(SVNErrorManager.java:41)
at org.tmatesoft.svn.core.auth.BasicAuthenticationManager.getFirstAuthentication(BasicAuthenticationManager.java:170)
at org.tmatesoft.svn.core.internal.io.dav.http.HTTPSSLKeyManager.initialize(HTTPSSLKeyManager.java:239)
at org.tmatesoft.svn.core.internal.io.dav.http.HTTPSSLKeyManager.initializeNoException(HTTPSSLKeyManager.java:221)
at org.tmatesoft.svn.core.internal.io.dav.http.HTTPSSLKeyManager.chooseClientAlias(HTTPSSLKeyManager.java:115)
at com.sun.net.ssl.internal.ssl.JsseX509KeyManager$AbstractWrapper.chooseClientAlias(SSLContextImpl.java:385)
at com.sun.net.ssl.internal.ssl.JsseX509KeyManager.chooseClientAlias(SSLContextImpl.java:427)
at com.sun.net.ssl.internal.ssl.ClientHandshaker.serverHelloDone(ClientHandshaker.java:460)
at com.sun.net.ssl.internal.ssl.ClientHandshaker.processMessage(ClientHandshaker.java:160)
at com.sun.net.ssl.internal.ssl.Handshaker.processLoop(Handshaker.java:495)
at com.sun.net.ssl.internal.ssl.Handshaker.process_record(Handshaker.java:433)
at com.sun.net.ssl.internal.ssl.SSLSocketImpl.readRecord(SSLSocketImpl.java:818)
at com.sun.net.ssl.internal.ssl.SSLSocketImpl.readDataRecord(SSLSocketImpl.java:680)
at com.sun.net.ssl.internal.ssl.AppInputStream.read(AppInputStream.java:75)
at java.io.BufferedInputStream.fill(BufferedInputStream.java:218)
at java.io.BufferedInputStream.read(BufferedInputStream.java:235)
at org.tmatesoft.svn.core.internal.util.SVNLogInputStream.read(SVNLogInputStream.java:75)
at org.tmatesoft.svn.core.internal.io.dav.http.HTTPParser.readPlainLine(HTTPParser.java:69)
at org.tmatesoft.svn.core.internal.io.dav.http.HTTPParser.readLine(HTTPParser.java:51)
at org.tmatesoft.svn.core.internal.io.dav.http.HTTPParser.parseStatus(HTTPParser.java:39)
at org.tmatesoft.svn.core.internal.io.dav.http.HTTPConnection.readHeader(HTTPConnection.java:179)
at org.tmatesoft.svn.core.internal.io.dav.http.HTTPRequest.dispatch(HTTPRequest.java:167)
at org.tmatesoft.svn.core.internal.io.dav.http.HTTPConnection.request(HTTPConnection.java:323)
at org.tmatesoft.svn.core.internal.io.dav.http.HTTPConnection.request(HTTPConnection.java:257)
at org.tmatesoft.svn.core.internal.io.dav.http.HTTPConnection.request(HTTPConnection.java:245)
at org.tmatesoft.svn.core.internal.io.dav.DAVConnection.exchangeCapabilities(DAVConnection.java:454)
at org.tmatesoft.svn.core.internal.io.dav.DAVConnection.open(DAVConnection.java:97)
at org.tmatesoft.svn.core.internal.io.dav.DAVRepository.openConnection(DAVRepository.java:643)
at org.tmatesoft.svn.core.internal.io.dav.DAVRepository.getDatedRevision(DAVRepository.java:187)
at jetbrains.buildServer.buildTriggers.vcs.svn.SvnConnection.getRevision(SvnConnection.java:173)
at jetbrains.buildServer.buildTriggers.vcs.svn.SvnSupport.getVersionDisplayName(SvnSupport.java:1)
at jetbrains.buildServer.buildTriggers.vcs.VcsChangesLoader.updateCurrentVersion(VcsChangesLoader.java:1)
at jetbrains.buildServer.buildTriggers.vcs.VcsChangesLoader.loadChanges(VcsChangesLoader.java:70)
at jetbrains.buildServer.vcs.impl.VcsManagerImpl.loadChanges(VcsManagerImpl.java:38)
at jetbrains.buildServer.vcs.impl.VcsManagerImpl.checkForModifications(VcsManagerImpl.java:670)
at jetbrains.buildServer.serverSide.impl.auth.SecuredVcsManager.checkForModifications(SecuredVcsManager.java:20)
at jetbrains.buildServer.serverSide.impl.VcsModificationChecker$1.run(VcsModificationChecker.java:13)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:417)
at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:269)
at java.util.concurrent.FutureTask.run(FutureTask.java:123)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:650)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:675)
at java.lang.Thread.run(Thread.java:595)

13 comments
Comment actions Permalink

I get the same error, only it worked just fine for me on 3.1.2, I even didn't change any VCS configurations, it just started this morning.
Other clients like TortoiseSVN can connect to the repository without a problem.

Log file:

TeamCity data path directory: C:/.BuildServer
Cannot find C:\.BuildServer\config\database.properties.
Use database settings from buildServerSpring.xml
Log4J configuraiton file c:\TeamCity\conf\teamcity-server-log4j.xml will be monitored with interval 10 seconds.
=======================================================================
TeamCity 3.1.2 (build 6881) initialized, OS: Windows Vista, JRE: 1.5.0_12-b04
TeamCity is running in professional mode
ERROR - r.serverSide.impl.BuildStarter - jetbrains.buildServer.serverSide.ExecutionException: Cannot evaluate version for root 'CorrectionService trunk', #1
jetbrains.buildServer.serverSide.ExecutionException: Cannot evaluate version for root 'CorrectionService trunk', #1
at jetbrains.buildServer.serverSide.impl.BuildStarter$1.run(BuildStarter.java:17)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:417)
at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:269)
at java.util.concurrent.FutureTask.run(FutureTask.java:123)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:650)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:675)
at java.lang.Thread.run(Thread.java:595)


From build configuraton status:

jetbrains.*****Server.vcs.VcsException: Checking changes for checkout rule '.=>.' failed with erorr: Cannot request dated revision from svn: svn: Authentication required for '<https://xxxx> Subversion Repositories'
at jetbrains.*****Server.vcs.VcsSupportUtil.collectBuildChanges(VcsSupportUtil.java:32)
at jetbrains.****Server.****Triggers.vcs.svn.SvnSupport.collectBuildChanges(SvnSupport.java:41)
at jetbrains.****Server.****Triggers.vcs.VcsChangesLoader.collectBuildChanges(VcsChangesLoader.java:77)
at jetbrains.****Server.****Triggers.vcs.VcsChangesLoader.loadChanges(VcsChangesLoader.java:5)
at jetbrains.*****Server.vcs.impl.VcsManagerImpl.loadChanges(VcsManagerImpl.java:38)
at jetbrains.*****Server.vcs.impl.VcsManagerImpl.checkForModifications(VcsManagerImpl.java:670)
at jetbrains.*****Server.serverSide.impl.auth.SecuredVcsManager.checkForModifications(SecuredVcsManager.java:20)
at jetbrains.*****Server.serverSide.impl.VcsModificationChecker$1.run(VcsModificationChecker.java:13)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:417)
at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:269)
at java.util.concurrent.FutureTask.run(FutureTask.java:123)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:650)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:675)
at java.lang.Thread.run(Thread.java:595)
Caused by: jetbrains.*****Server.vcs.VcsException: Cannot request dated revision from svn: svn: Authentication required for '<https://xxxx> Subversion Repositories'
at jetbrains.****Server.****Triggers.vcs.svn.SvnConnection.getRevision(SvnConnection.java:161)
at jetbrains.****Server.****Triggers.vcs.svn.SvnConnection.getEntries(SvnConnection.java:301)
at jetbrains.****Server.****Triggers.vcs.svn.SvnConnection.addChanges(SvnConnection.java:477)
at jetbrains.****Server.****Triggers.vcs.svn.SvnSupport.collectBuildChanges(SvnSupport.java:66)
at jetbrains.*****Server.vcs.VcsSupportUtil.collectBuildChanges(VcsSupportUtil.java:27)
... 13 more
Caused by: org.tmatesoft.svn.core.SVNAuthenticationException: svn: Authentication required for '<https://xxxx> Subversion Repositories'
at org.tmatesoft.svn.core.internal.wc.SVNErrorManager.authenticationFailed(SVNErrorManager.java:47)
at org.tmatesoft.svn.core.internal.wc.SVNErrorManager.authenticationFailed(SVNErrorManager.java:41)
at org.tmatesoft.svn.core.auth.BasicAuthenticationManager.getNextAuthentication(BasicAuthenticationManager.java:188)
at org.tmatesoft.svn.core.internal.io.dav.http.HTTPConnection.request(HTTPConnection.java:483)
at org.tmatesoft.svn.core.internal.io.dav.http.HTTPConnection.request(HTTPConnection.java:257)
at org.tmatesoft.svn.core.internal.io.dav.http.HTTPConnection.request(HTTPConnection.java:245)
at org.tmatesoft.svn.core.internal.io.dav.DAVConnection.exchangeCapabilities(DAVConnection.java:454)
at org.tmatesoft.svn.core.internal.io.dav.DAVConnection.open(DAVConnection.java:97)
at org.tmatesoft.svn.core.internal.io.dav.DAVRepository.openConnection(DAVRepository.java:643)
at org.tmatesoft.svn.core.internal.io.dav.DAVRepository.getDatedRevision(DAVRepository.java:187)
at jetbrains.****Server.****Triggers.vcs.svn.SvnConnection.getRevision(SvnConnection.java:173)
... 17 more
jetbrains.*****Server.vcs.VcsException: Cannot request dated revision from svn: svn: Authentication required for '<https://xxxx> Subversion Repositories'
at jetbrains.****Server.****Triggers.vcs.svn.SvnConnection.getRevision(SvnConnection.java:161)
at jetbrains.****Server.****Triggers.vcs.svn.SvnConnection.getEntries(SvnConnection.java:301)
at jetbrains.****Server.****Triggers.vcs.svn.SvnConnection.addChanges(SvnConnection.java:477)
at jetbrains.****Server.****Triggers.vcs.svn.SvnSupport.collectBuildChanges(SvnSupport.java:66)
at jetbrains.*****Server.vcs.VcsSupportUtil.collectBuildChanges(VcsSupportUtil.java:27)
at jetbrains.****Server.****Triggers.vcs.svn.SvnSupport.collectBuildChanges(SvnSupport.java:41)
at jetbrains.****Server.****Triggers.vcs.VcsChangesLoader.collectBuildChanges(VcsChangesLoader.java:77)
at jetbrains.****Server.****Triggers.vcs.VcsChangesLoader.loadChanges(VcsChangesLoader.java:5)
at jetbrains.*****Server.vcs.impl.VcsManagerImpl.loadChanges(VcsManagerImpl.java:38)
at jetbrains.*****Server.vcs.impl.VcsManagerImpl.checkForModifications(VcsManagerImpl.java:670)
at jetbrains.*****Server.serverSide.impl.auth.SecuredVcsManager.checkForModifications(SecuredVcsManager.java:20)
at jetbrains.*****Server.serverSide.impl.VcsModificationChecker$1.run(VcsModificationChecker.java:13)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:417)
at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:269)
at java.util.concurrent.FutureTask.run(FutureTask.java:123)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:650)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:675)
at java.lang.Thread.run(Thread.java:595)
Caused by: org.tmatesoft.svn.core.SVNAuthenticationException: svn: Authentication required for '<https://xxxx> Subversion Repositories'
at org.tmatesoft.svn.core.internal.wc.SVNErrorManager.authenticationFailed(SVNErrorManager.java:47)
at org.tmatesoft.svn.core.internal.wc.SVNErrorManager.authenticationFailed(SVNErrorManager.java:41)
at org.tmatesoft.svn.core.auth.BasicAuthenticationManager.getNextAuthentication(BasicAuthenticationManager.java:188)
at org.tmatesoft.svn.core.internal.io.dav.http.HTTPConnection.request(HTTPConnection.java:483)
at org.tmatesoft.svn.core.internal.io.dav.http.HTTPConnection.request(HTTPConnection.java:257)
at org.tmatesoft.svn.core.internal.io.dav.http.HTTPConnection.request(HTTPConnection.java:245)
at org.tmatesoft.svn.core.internal.io.dav.DAVConnection.exchangeCapabilities(DAVConnection.java:454)
at org.tmatesoft.svn.core.internal.io.dav.DAVConnection.open(DAVConnection.java:97)
at org.tmatesoft.svn.core.internal.io.dav.DAVRepository.openConnection(DAVRepository.java:643)
at org.tmatesoft.svn.core.internal.io.dav.DAVRepository.getDatedRevision(DAVRepository.java:187)
at jetbrains.****Server.****Triggers.vcs.svn.SvnConnection.getRevision(SvnConnection.java:173)
... 17 more
org.tmatesoft.svn.core.SVNAuthenticationException: svn: Authentication required for '<https://xxxx> Subversion Repositories'
at org.tmatesoft.svn.core.internal.wc.SVNErrorManager.authenticationFailed(SVNErrorManager.java:47)
at org.tmatesoft.svn.core.internal.wc.SVNErrorManager.authenticationFailed(SVNErrorManager.java:41)
at org.tmatesoft.svn.core.auth.BasicAuthenticationManager.getNextAuthentication(BasicAuthenticationManager.java:188)
at org.tmatesoft.svn.core.internal.io.dav.http.HTTPConnection.request(HTTPConnection.java:483)
at org.tmatesoft.svn.core.internal.io.dav.http.HTTPConnection.request(HTTPConnection.java:257)
at org.tmatesoft.svn.core.internal.io.dav.http.HTTPConnection.request(HTTPConnection.java:245)
at org.tmatesoft.svn.core.internal.io.dav.DAVConnection.exchangeCapabilities(DAVConnection.java:454)
at org.tmatesoft.svn.core.internal.io.dav.DAVConnection.open(DAVConnection.java:97)
at org.tmatesoft.svn.core.internal.io.dav.DAVRepository.openConnection(DAVRepository.java:643)
at org.tmatesoft.svn.core.internal.io.dav.DAVRepository.getDatedRevision(DAVRepository.java:187)
at jetbrains.****Server.****Triggers.vcs.svn.SvnConnection.getRevision(SvnConnection.java:173)
at jetbrains.****Server.****Triggers.vcs.svn.SvnConnection.getEntries(SvnConnection.java:301)
at jetbrains.****Server.****Triggers.vcs.svn.SvnConnection.addChanges(SvnConnection.java:477)
at jetbrains.****Server.****Triggers.vcs.svn.SvnSupport.collectBuildChanges(SvnSupport.java:66)
at jetbrains.*****Server.vcs.VcsSupportUtil.collectBuildChanges(VcsSupportUtil.java:27)
at jetbrains.****Server.****Triggers.vcs.svn.SvnSupport.collectBuildChanges(SvnSupport.java:41)
at jetbrains.****Server.****Triggers.vcs.VcsChangesLoader.collectBuildChanges(VcsChangesLoader.java:77)
at jetbrains.****Server.****Triggers.vcs.VcsChangesLoader.loadChanges(VcsChangesLoader.java:5)
at jetbrains.*****Server.vcs.impl.VcsManagerImpl.loadChanges(VcsManagerImpl.java:38)
at jetbrains.*****Server.vcs.impl.VcsManagerImpl.checkForModifications(VcsManagerImpl.java:670)
at jetbrains.*****Server.serverSide.impl.auth.SecuredVcsManager.checkForModifications(SecuredVcsManager.java:20)
at jetbrains.*****Server.serverSide.impl.VcsModificationChecker$1.run(VcsModificationChecker.java:13)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:417)
at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:269)
at java.util.concurrent.FutureTask.run(FutureTask.java:123)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:650)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:675)
at java.lang.Thread.run(Thread.java:595)

Edited by: Meidan Alon on Aug 26, 2008 12:19 PM

0
Comment actions Permalink

The problem was in the user that TC used to connect to svn, though it didn't change. After creating a new user (with the same premissions!) it was fixed.

Edited by: Meidan Alon on Aug 26, 2008 3:40 PM

Edited by: Meidan Alon on Aug 26, 2008 3:49 PM

0
Comment actions Permalink

Roney,

Sorry for the delay in replying.

Is the problem still reproducible?
Did the TeamCity 3.1 work with no additional configuration as to client certificates, etc?

Can you try to gather the SVN debug logs?
It might be more appropriate to open an issue on topic in our tracker.the

--
Best regards,

Yegor Yarko
Project Manager
JetBrains, Inc
http://www.jetbrains.com
"Develop with pleasure!"

0
Comment actions Permalink

I still have the same problem now with Teamcity 4.0

I dint try teh latest version but  I am attaching a log for SVNKIT ie teamcity-svn.log. ( i have enabled the log)

The following is teh log

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

[2009-03-03 16:44:42,220]  DEBUG -                 javasvn.output - NETWORK: Keep-Alive timeout detected
[2009-03-03 16:44:42,227]  DEBUG -                 javasvn.output - NETWORK: svn: Authentication required for '<https://intranet.indience.in:443>'
[2009-03-03 16:44:42,299]  DEBUG -                 javasvn.output - NETWORK: SENT
OPTIONS /iscs/iaf/trunk HTTP/1.1
Host: intranet.indience.in
User-Agent: SVN/1.5.4 SVNKit/1.2.1 (http://svnkit.com/) r5297
Keep-Alive:
Connection: TE, Keep-Alive
TE: trailers
Content-Length: 0
Accept-Encoding: gzip
Content-Type: text/xml; charset="utf-8"
DAV: http://subversion.tigris.org/xmlns/dav/svn/depth
DAV: http://subversion.tigris.org/xmlns/dav/svn/log-revprops
DAV: http://subversion.tigris.org/xmlns/dav/svn/mergeinfo


[2009-03-03 16:44:42,301]  DEBUG -                 javasvn.output - NETWORK: READ
HTTP/1.1 401 Authorization Required
Date: Tue, 03 Mar 2009 11:14:42 GMT
Server: Apache/2.2.3 (CentOS)
WWW-Authenticate: Basic realm="iscs"
Content-Length: 487
Connection: close
Content-Type: text/html; charset=iso-8859-1


++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++


Now the strangest thing is with the svnkit jars in teamcity I tried out the following commands

./jsvn list https://intranet.indience.in/iscs/iaf/trunk

jsvn is the batch file provided by svnkit. I just replaced the jar swith the jars from the teamcity svn plugin folder.

Regds
Roney



Attachment(s):
teamcity-svn.log
0
Comment actions Permalink

Hello Roney,

  Do I understand correctly that 'jsvn list' command works fine and TeamCity fails with the same URL?

  Kind regards,
  KIR

0
Comment actions Permalink

Yes, Kirill, your understanding is correct. jsvn list though asked whether i want to accept the server certificate permanently/temporarily (the usual question) on screen and thereafter it succeeded listing teh repository consecutively but teamcity failed with the same url.

Regds
Roney

0
Comment actions Permalink

Hi Roney,

Did you find the solution?

I encountered the same problem.

Alwasy "Authentication required", but Subversion command line client and subclipse works well on the some environment.

0
Comment actions Permalink

Hello Roney,

  I believe that the problem with authentication should be fixed in the next TeamCity 4.1 EAP (which should be released at the beginning of the next week). We've made authentication process very close to one used by jsvn. In the nearest days I'll try to setup similar configuration and verify it (and fix if it doesn't work yet).

  Kind regards,
  KIR

0
Comment actions Permalink

Thanks Kirill,

Can you go ahead and create an tracker for thsi issue or have you already done it? In there can i relate it to an existing Developer Community thread like this one?
Regds
Ronry

0
Comment actions Permalink

Hello,

  I've created the issue: TW-7411

Regards,
KIR

0
Comment actions Permalink

Can you also release a hotfix kind of solution for earlier released version like 4.0 ?

Regds
Roney

0
Comment actions Permalink

Hi,

  I've attached the fix to the issue TW-7411: Authentication required on SVN over HTTPS with client cert
  The fix should be applied to TeamCity 4.0.2.

  Please let me know if it will work for you.

  Kind regards,
  KIR

0
Comment actions Permalink

Hi Kirill,
I finally moved my production box from 3.1.1 to 4.0.2 with the svn patch. It was a pretty smooth experience.

Thanks fr teh quick solution.

Regds
Roney

0

Please sign in to leave a comment.