builds fail using svn+ssh

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

builds fail using svn+ssh

Dang H. Nguyen
Occassionally, I will get failed builds for no apparent reason. We're using svn+ssh and public key authentication between hudson and the svn server. When the build fails, I see no ssh problems on the svn server, and I am also able to make the ssh connection from hudson to svn with no problems (as the user that hudson uses to access svn). Additionally, builds will succeed again after running again after the failed build.

This is the exception I get from the build's Hudson console output:

Checking out svn+ssh://[hidden email]/mnt/svn/
ERROR: Failed to check out svn+ssh://[hidden email]/mnt/svn/
org.tmatesoft.svn.core.SVNException: svn: Cannot connect to 'svn+ssh://[hidden email]': There was a problem while connecting to oursvn.server.com:22
        at org.tmatesoft.svn.core.internal.wc.SVNErrorManager.error(SVNErrorManager.java:82)
        at org.tmatesoft.svn.core.internal.wc.SVNErrorManager.error(SVNErrorManager.java:69)
        at org.tmatesoft.svn.core.internal.io.svn.SVNSSHSession.openConnection(SVNSSHSession.java:285)
        at org.tmatesoft.svn.core.internal.io.svn.SVNSSHSession.getConnection(SVNSSHSession.java:88)
        at org.tmatesoft.svn.core.internal.io.svn.SVNSSHConnector.open(SVNSSHConnector.java:91)
        at org.tmatesoft.svn.core.internal.io.svn.SVNConnection.open(SVNConnection.java:74)
        at org.tmatesoft.svn.core.internal.io.svn.SVNRepositoryImpl.openConnection(SVNRepositoryImpl.java:1237)
        at org.tmatesoft.svn.core.internal.io.svn.SVNRepositoryImpl.getLatestRevision(SVNRepositoryImpl.java:168)
        at org.tmatesoft.svn.core.wc.SVNBasicClient.getRevisionNumber(SVNBasicClient.java:482)
        at org.tmatesoft.svn.core.wc.SVNBasicClient.getLocations(SVNBasicClient.java:851)
        at org.tmatesoft.svn.core.wc.SVNBasicClient.createRepository(SVNBasicClient.java:534)
        at org.tmatesoft.svn.core.wc.SVNUpdateClient.doCheckout(SVNUpdateClient.java:893)
        at hudson.scm.SubversionSCM$CheckOutTask.invoke(SubversionSCM.java:742)
        at hudson.scm.SubversionSCM$CheckOutTask.invoke(SubversionSCM.java:660)
        at hudson.FilePath.act(FilePath.java:753)
        at hudson.FilePath.act(FilePath.java:735)
        at hudson.scm.SubversionSCM.checkout(SubversionSCM.java:653)
        at hudson.scm.SubversionSCM.checkout(SubversionSCM.java:601)
        at hudson.model.AbstractProject.checkout(AbstractProject.java:1044)
        at hudson.model.AbstractBuild$AbstractRunner.checkout(AbstractBuild.java:479)
        at hudson.model.AbstractBuild$AbstractRunner.run(AbstractBuild.java:411)
        at hudson.model.Run.run(Run.java:1241)
        at hudson.maven.MavenModuleSetBuild.run(MavenModuleSetBuild.java:306)
        at hudson.model.ResourceController.execute(ResourceController.java:88)
        at hudson.model.Executor.run(Executor.java:124)
Caused by: java.io.IOException: There was a problem while connecting to subversion.kihatest.com:22
        at com.trilead.ssh2.Connection.connect(Connection.java:755)
        at org.tmatesoft.svn.core.internal.io.svn.SVNSSHSession.openConnection(SVNSSHSession.java:245)
        ... 22 more
Caused by: java.net.SocketException: Connection reset
        at java.net.SocketInputStream.read(SocketInputStream.java:168)
        at java.net.SocketInputStream.read(SocketInputStream.java:182)
        at com.trilead.ssh2.transport.ClientServerHello.readLineRN(ClientServerHello.java:31)
        at com.trilead.ssh2.transport.ClientServerHello.<init>(ClientServerHello.java:68)
        at com.trilead.ssh2.transport.TransportManager.initialize(TransportManager.java:457)
        at com.trilead.ssh2.Connection.connect(Connection.java:699)
        ... 23 more

---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]