Connection Failed

Hi,

I am running TC 3.1.1 (Build 6828) on a Win2K8 box and I regularly have a "connection failed" error when TC tries to connect to our SVN server.
The error I got is "svn: Cannot connect to 'svn+ssh://USER@MYSVNSERVER': Sorry, this connection is closed."

I got the error almost every day now. What is strange is that if I change the server DNS name with its IP address it will work for a day, and then I got the same error.

I have attached a screen shot of the error and below is the details of the error:

jetbrains.buildServer.vcs.VcsException: Checking changes for checkout rule '.=>.' failed with erorr: Cannot request dated revision from svn: svn: Cannot connect to 'svn+ssh://TCACCOUNT@SVNSERVER': Sorry, this connection is closed.
at jetbrains.buildServer.vcs.VcsSupportUtil.collectBuildChanges(VcsSupportUtil.java:33)
at jetbrains.buildServer.buildTriggers.vcs.svn.SvnSupport.collectBuildChanges(SvnSupport.java:18)
at jetbrains.buildServer.buildTriggers.vcs.VcsChangesLoader.collectBuildChanges(VcsChangesLoader.java:16)
at jetbrains.buildServer.buildTriggers.vcs.VcsChangesLoader.loadChanges(VcsChangesLoader.java:41)
at jetbrains.buildServer.vcs.impl.VcsManagerImpl.loadChanges(VcsManagerImpl.java:305)
at jetbrains.buildServer.vcs.impl.VcsManagerImpl.checkForModifications(VcsManagerImpl.java:400)
at jetbrains.buildServer.serverSide.impl.auth.SecuredVcsManager.checkForModifications(SecuredVcsManager.java:85)
at jetbrains.buildServer.serverSide.impl.VcsModificationChecker$1.run(VcsModificationChecker.java:5)
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: Cannot connect to 'svn+ssh://TCACCOUNT@SVNSERVER': Sorry, this connection is closed.
at jetbrains.buildServer.buildTriggers.vcs.svn.SvnConnection.getRevision(SvnConnection.java:467)
at jetbrains.buildServer.buildTriggers.vcs.svn.SvnConnection.getEntries(SvnConnection.java:235)
at jetbrains.buildServer.buildTriggers.vcs.svn.SvnConnection.addChanges(SvnConnection.java:452)
at jetbrains.buildServer.buildTriggers.vcs.svn.SvnSupport.collectBuildChanges(SvnSupport.java:135)
at jetbrains.buildServer.vcs.VcsSupportUtil.collectBuildChanges(VcsSupportUtil.java:27)
... 13 more
Caused by: org.tmatesoft.svn.core.SVNException: svn: Cannot connect to 'svn+ssh://TCACCOUNT@SVNSERVER': Sorry, this connection is closed.
at org.tmatesoft.svn.core.internal.wc.SVNErrorManager.error(SVNErrorManager.java:69)
at org.tmatesoft.svn.core.internal.io.svn.SVNGanymedConnector.open(SVNGanymedConnector.java:130)
at org.tmatesoft.svn.core.internal.io.svn.SVNConnection.open(SVNConnection.java:60)
at org.tmatesoft.svn.core.internal.io.svn.SVNRepositoryImpl.openConnection(SVNRepositoryImpl.java:974)
at org.tmatesoft.svn.core.internal.io.svn.SVNRepositoryImpl.getDatedRevision(SVNRepositoryImpl.java:159)
at jetbrains.buildServer.buildTriggers.vcs.svn.SvnConnection.getRevision(SvnConnection.java:227)
... 17 more
Caused by: java.io.IOException: Sorry, this connection is closed.
at ch.ethz.ssh2.transport.TransportManager.sendMessage(TransportManager.java:635)
at ch.ethz.ssh2.channel.ChannelManager.openSessionChannel(ChannelManager.java:566)
at ch.ethz.ssh2.Session.(Session.java:39) at ch.ethz.ssh2.Connection.openSession(Connection.java:965) at org.tmatesoft.svn.core.internal.io.svn.SVNGanymedSession$SSHConnectionInfo.openSession(SVNGanymedSession.java:421) at org.tmatesoft.svn.core.internal.io.svn.SVNGanymedConnector.open(SVNGanymedConnector.java:90) ... 21 more Caused by: java.net.SocketTimeoutException: Read timed out at java.net.SocketInputStream.socketRead0(Native Method) at java.net.SocketInputStream.read(SocketInputStream.java:129) at ch.ethz.ssh2.crypto.cipher.CipherInputStream.fill_buffer(CipherInputStream.java:41) at ch.ethz.ssh2.crypto.cipher.CipherInputStream.internal_read(CipherInputStream.java:52) at ch.ethz.ssh2.crypto.cipher.CipherInputStream.getBlock(CipherInputStream.java:79) at ch.ethz.ssh2.crypto.cipher.CipherInputStream.read(CipherInputStream.java:108) at ch.ethz.ssh2.transport.TransportConnection.receiveMessage(TransportConnection.java:231) at ch.ethz.ssh2.transport.TransportManager.receiveLoop(TransportManager.java:669) at ch.ethz.ssh2.transport.TransportManager$1.run(TransportManager.java:468) ... 1 more jetbrains.buildServer.vcs.VcsException: Cannot request dated revision from svn: svn: Cannot connect to 'svn+ssh://TCACCOUNT@SVNSERVER': Sorry, this connection is closed. at jetbrains.buildServer.buildTriggers.vcs.svn.SvnConnection.getRevision(SvnConnection.java:467) at jetbrains.buildServer.buildTriggers.vcs.svn.SvnConnection.getEntries(SvnConnection.java:235) at jetbrains.buildServer.buildTriggers.vcs.svn.SvnConnection.addChanges(SvnConnection.java:452) at jetbrains.buildServer.buildTriggers.vcs.svn.SvnSupport.collectBuildChanges(SvnSupport.java:135) at jetbrains.buildServer.vcs.VcsSupportUtil.collectBuildChanges(VcsSupportUtil.java:27) at jetbrains.buildServer.buildTriggers.vcs.svn.SvnSupport.collectBuildChanges(SvnSupport.java:18) at jetbrains.buildServer.buildTriggers.vcs.VcsChangesLoader.collectBuildChanges(VcsChangesLoader.java:16) at jetbrains.buildServer.buildTriggers.vcs.VcsChangesLoader.loadChanges(VcsChangesLoader.java:41) at jetbrains.buildServer.vcs.impl.VcsManagerImpl.loadChanges(VcsManagerImpl.java:305) at jetbrains.buildServer.vcs.impl.VcsManagerImpl.checkForModifications(VcsManagerImpl.java:400) at jetbrains.buildServer.serverSide.impl.auth.SecuredVcsManager.checkForModifications(SecuredVcsManager.java:85) at jetbrains.buildServer.serverSide.impl.VcsModificationChecker$1.run(VcsModificationChecker.java:5) 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.SVNException: svn: Cannot connect to 'svn+ssh://TCACCOUNT@SVNSERVER': Sorry, this connection is closed. at org.tmatesoft.svn.core.internal.wc.SVNErrorManager.error(SVNErrorManager.java:69) at org.tmatesoft.svn.core.internal.io.svn.SVNGanymedConnector.open(SVNGanymedConnector.java:130) at org.tmatesoft.svn.core.internal.io.svn.SVNConnection.open(SVNConnection.java:60) at org.tmatesoft.svn.core.internal.io.svn.SVNRepositoryImpl.openConnection(SVNRepositoryImpl.java:974) at org.tmatesoft.svn.core.internal.io.svn.SVNRepositoryImpl.getDatedRevision(SVNRepositoryImpl.java:159) at jetbrains.buildServer.buildTriggers.vcs.svn.SvnConnection.getRevision(SvnConnection.java:227) ... 17 more Caused by: java.io.IOException: Sorry, this connection is closed. at ch.ethz.ssh2.transport.TransportManager.sendMessage(TransportManager.java:635) at ch.ethz.ssh2.channel.ChannelManager.openSessionChannel(ChannelManager.java:566) at ch.ethz.ssh2.Session.(Session.java:39) at ch.ethz.ssh2.Connection.openSession(Connection.java:965) at org.tmatesoft.svn.core.internal.io.svn.SVNGanymedSession$SSHConnectionInfo.openSession(SVNGanymedSession.java:421) at org.tmatesoft.svn.core.internal.io.svn.SVNGanymedConnector.open(SVNGanymedConnector.java:90) ... 21 more Caused by: java.net.SocketTimeoutException: Read timed out at java.net.SocketInputStream.socketRead0(Native Method) at java.net.SocketInputStream.read(SocketInputStream.java:129) at ch.ethz.ssh2.crypto.cipher.CipherInputStream.fill_buffer(CipherInputStream.java:41) at ch.ethz.ssh2.crypto.cipher.CipherInputStream.internal_read(CipherInputStream.java:52) at ch.ethz.ssh2.crypto.cipher.CipherInputStream.getBlock(CipherInputStream.java:79) at ch.ethz.ssh2.crypto.cipher.CipherInputStream.read(CipherInputStream.java:108) at ch.ethz.ssh2.transport.TransportConnection.receiveMessage(TransportConnection.java:231) at ch.ethz.ssh2.transport.TransportManager.receiveLoop(TransportManager.java:669) at ch.ethz.ssh2.transport.TransportManager$1.run(TransportManager.java:468) ... 1 more org.tmatesoft.svn.core.SVNException: svn: Cannot connect to 'svn+ssh://TCACCOUNT@SVNSERVER': Sorry, this connection is closed. at org.tmatesoft.svn.core.internal.wc.SVNErrorManager.error(SVNErrorManager.java:69) at org.tmatesoft.svn.core.internal.io.svn.SVNGanymedConnector.open(SVNGanymedConnector.java:130) at org.tmatesoft.svn.core.internal.io.svn.SVNConnection.open(SVNConnection.java:60) at org.tmatesoft.svn.core.internal.io.svn.SVNRepositoryImpl.openConnection(SVNRepositoryImpl.java:974) at org.tmatesoft.svn.core.internal.io.svn.SVNRepositoryImpl.getDatedRevision(SVNRepositoryImpl.java:159) at jetbrains.buildServer.buildTriggers.vcs.svn.SvnConnection.getRevision(SvnConnection.java:227) at jetbrains.buildServer.buildTriggers.vcs.svn.SvnConnection.getEntries(SvnConnection.java:235) at jetbrains.buildServer.buildTriggers.vcs.svn.SvnConnection.addChanges(SvnConnection.java:452) at jetbrains.buildServer.buildTriggers.vcs.svn.SvnSupport.collectBuildChanges(SvnSupport.java:135) at jetbrains.buildServer.vcs.VcsSupportUtil.collectBuildChanges(VcsSupportUtil.java:27) at jetbrains.buildServer.buildTriggers.vcs.svn.SvnSupport.collectBuildChanges(SvnSupport.java:18) at jetbrains.buildServer.buildTriggers.vcs.VcsChangesLoader.collectBuildChanges(VcsChangesLoader.java:16) at jetbrains.buildServer.buildTriggers.vcs.VcsChangesLoader.loadChanges(VcsChangesLoader.java:41) at jetbrains.buildServer.vcs.impl.VcsManagerImpl.loadChanges(VcsManagerImpl.java:305) at jetbrains.buildServer.vcs.impl.VcsManagerImpl.checkForModifications(VcsManagerImpl.java:400) at jetbrains.buildServer.serverSide.impl.auth.SecuredVcsManager.checkForModifications(SecuredVcsManager.java:85) at jetbrains.buildServer.serverSide.impl.VcsModificationChecker$1.run(VcsModificationChecker.java:5) 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: java.io.IOException: Sorry, this connection is closed. at ch.ethz.ssh2.transport.TransportManager.sendMessage(TransportManager.java:635) at ch.ethz.ssh2.channel.ChannelManager.openSessionChannel(ChannelManager.java:566) at ch.ethz.ssh2.Session.(Session.java:39) at ch.ethz.ssh2.Connection.openSession(Connection.java:965) at org.tmatesoft.svn.core.internal.io.svn.SVNGanymedSession$SSHConnectionInfo.openSession(SVNGanymedSession.java:421) at org.tmatesoft.svn.core.internal.io.svn.SVNGanymedConnector.open(SVNGanymedConnector.java:90) ... 21 more Caused by: java.net.SocketTimeoutException: Read timed out at java.net.SocketInputStream.socketRead0(Native Method) at java.net.SocketInputStream.read(SocketInputStream.java:129) at ch.ethz.ssh2.crypto.cipher.CipherInputStream.fill_buffer(CipherInputStream.java:41) at ch.ethz.ssh2.crypto.cipher.CipherInputStream.internal_read(CipherInputStream.java:52) at ch.ethz.ssh2.crypto.cipher.CipherInputStream.getBlock(CipherInputStream.java:79) at ch.ethz.ssh2.crypto.cipher.CipherInputStream.read(CipherInputStream.java:108) at ch.ethz.ssh2.transport.TransportConnection.receiveMessage(TransportConnection.java:231) at ch.ethz.ssh2.transport.TransportManager.receiveLoop(TransportManager.java:669) at ch.ethz.ssh2.transport.TransportManager$1.run(TransportManager.java:468) ... 1 more java.io.IOException: Sorry, this connection is closed. at ch.ethz.ssh2.transport.TransportManager.sendMessage(TransportManager.java:635) at ch.ethz.ssh2.channel.ChannelManager.openSessionChannel(ChannelManager.java:566) at ch.ethz.ssh2.Session.]]>(Session.java:39)
at ch.ethz.ssh2.Connection.openSession(Connection.java:965)
at org.tmatesoft.svn.core.internal.io.svn.SVNGanymedSession$SSHConnectionInfo.openSession(SVNGanymedSession.java:421)
at org.tmatesoft.svn.core.internal.io.svn.SVNGanymedConnector.open(SVNGanymedConnector.java:90)
at org.tmatesoft.svn.core.internal.io.svn.SVNConnection.open(SVNConnection.java:60)
at org.tmatesoft.svn.core.internal.io.svn.SVNRepositoryImpl.openConnection(SVNRepositoryImpl.java:974)
at org.tmatesoft.svn.core.internal.io.svn.SVNRepositoryImpl.getDatedRevision(SVNRepositoryImpl.java:159)
at jetbrains.buildServer.buildTriggers.vcs.svn.SvnConnection.getRevision(SvnConnection.java:227)
at jetbrains.buildServer.buildTriggers.vcs.svn.SvnConnection.getEntries(SvnConnection.java:235)
at jetbrains.buildServer.buildTriggers.vcs.svn.SvnConnection.addChanges(SvnConnection.java:452)
at jetbrains.buildServer.buildTriggers.vcs.svn.SvnSupport.collectBuildChanges(SvnSupport.java:135)
at jetbrains.buildServer.vcs.VcsSupportUtil.collectBuildChanges(VcsSupportUtil.java:27)
at jetbrains.buildServer.buildTriggers.vcs.svn.SvnSupport.collectBuildChanges(SvnSupport.java:18)
at jetbrains.buildServer.buildTriggers.vcs.VcsChangesLoader.collectBuildChanges(VcsChangesLoader.java:16)
at jetbrains.buildServer.buildTriggers.vcs.VcsChangesLoader.loadChanges(VcsChangesLoader.java:41)
at jetbrains.buildServer.vcs.impl.VcsManagerImpl.loadChanges(VcsManagerImpl.java:305)
at jetbrains.buildServer.vcs.impl.VcsManagerImpl.checkForModifications(VcsManagerImpl.java:400)
at jetbrains.buildServer.serverSide.impl.auth.SecuredVcsManager.checkForModifications(SecuredVcsManager.java:85)
at jetbrains.buildServer.serverSide.impl.VcsModificationChecker$1.run(VcsModificationChecker.java:5)
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: java.net.SocketTimeoutException: Read timed out
at java.net.SocketInputStream.socketRead0(Native Method)
at java.net.SocketInputStream.read(SocketInputStream.java:129)
at ch.ethz.ssh2.crypto.cipher.CipherInputStream.fill_buffer(CipherInputStream.java:41)
at ch.ethz.ssh2.crypto.cipher.CipherInputStream.internal_read(CipherInputStream.java:52)
at ch.ethz.ssh2.crypto.cipher.CipherInputStream.getBlock(CipherInputStream.java:79)
at ch.ethz.ssh2.crypto.cipher.CipherInputStream.read(CipherInputStream.java:108)
at ch.ethz.ssh2.transport.TransportConnection.receiveMessage(TransportConnection.java:231)
at ch.ethz.ssh2.transport.TransportManager.receiveLoop(TransportManager.java:669)
at ch.ethz.ssh2.transport.TransportManager$1.run(TransportManager.java:468)
... 1 more
java.net.SocketTimeoutException: Read timed out
at java.net.SocketInputStream.socketRead0(Native Method)
at java.net.SocketInputStream.read(SocketInputStream.java:129)
at ch.ethz.ssh2.crypto.cipher.CipherInputStream.fill_buffer(CipherInputStream.java:41)
at ch.ethz.ssh2.crypto.cipher.CipherInputStream.internal_read(CipherInputStream.java:52)
at ch.ethz.ssh2.crypto.cipher.CipherInputStream.getBlock(CipherInputStream.java:79)
at ch.ethz.ssh2.crypto.cipher.CipherInputStream.read(CipherInputStream.java:108)
at ch.ethz.ssh2.transport.TransportConnection.receiveMessage(TransportConnection.java:231)
at ch.ethz.ssh2.transport.TransportManager.receiveLoop(TransportManager.java:669)
at ch.ethz.ssh2.transport.TransportManager$1.run(TransportManager.java:468)
at java.lang.Thread.run(Thread.java:595)



Attachment(s):
TC.jpg
1 comment
Comment actions Permalink

Julien,

The connection seems to be closed by the Subversion server. Could you investigate why the server closes the connection?

The error should go away once TeamCity can connect to the server.

--
Best regards,

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

0

Please sign in to leave a comment.