org.tmatesoft.svn.core.SVNException: svn: Cannot connect to 'svn+ssh://...': Sorry, this connection is closed. at org.tmatesoft.svn.core.internal.wc.SVNErrorManager.error(SVNErrorManager.java:63) at org.tmatesoft.svn.core.internal.io.svn.SVNGanymedConnector.open(SVNGanymedConnector.java:129)

Jenkins JIRA | tal | 9 years ago
  1. 0

    After a while, svn updates stop working on Hudson. The job's console output shows: started Updating svn+ssh://... ERROR: Failed to update svn+ssh://... org.tmatesoft.svn.core.SVNException: svn: Cannot connect to 'svn+ssh://...': Sorry, this connection is closed. at org.tmatesoft.svn.core.internal.wc.SVNErrorManager.error(SVNErrorManager.java:63) at org.tmatesoft.svn.core.internal.io.svn.SVNGanymedConnector.open(SVNGanymedConnector.java:129) 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:970) at org.tmatesoft.svn.core.internal.io.svn.SVNRepositoryImpl.getDatedRevision(SVNRepositoryImpl.java:159) at org.tmatesoft.svn.core.wc.SVNBasicClient.getRevisionNumber(SVNBasicClient.java:346) at org.tmatesoft.svn.core.wc.SVNUpdateClient.doUpdate(SVNUpdateClient.java:159) at hudson.scm.SubversionSCM$CheckOutTask.invoke(SubversionSCM.java:368) at hudson.scm.SubversionSCM$CheckOutTask.invoke(SubversionSCM.java:341) at hudson.FilePath.act(FilePath.java:280) at hudson.scm.SubversionSCM.checkout(SubversionSCM.java:338) at hudson.scm.SubversionSCM.checkout(SubversionSCM.java:295) at hudson.model.AbstractProject.checkout(AbstractProject.java:485) at hudson.model.AbstractBuild$AbstractRunner.checkout(AbstractBuild.java:160) at hudson.model.AbstractBuild$AbstractRunner.run(AbstractBuild.java:126) at hudson.model.Run.run(Run.java:573) at hudson.model.Build.run(Build.java:107) at hudson.model.ResourceController.execute(ResourceController.java:66) at hudson.model.Executor.run(Executor.java:59) 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.<init>(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:89) ... 17 more Caused by: java.net.SocketException: Connection reset at java.net.SocketInputStream.read(SocketInputStream.java:168) 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) Publishing Javadoc Sending e-mails to: ... finished: FAILURE Restarting tomcat and running the build again fixes it for a while.

    Jenkins JIRA | 9 years ago | tal
    org.tmatesoft.svn.core.SVNException: svn: Cannot connect to 'svn+ssh://...': Sorry, this connection is closed. at org.tmatesoft.svn.core.internal.wc.SVNErrorManager.error(SVNErrorManager.java:63) at org.tmatesoft.svn.core.internal.io.svn.SVNGanymedConnector.open(SVNGanymedConnector.java:129)
  2. 0

    After a while, svn updates stop working on Hudson. The job's console output shows: started Updating svn+ssh://... ERROR: Failed to update svn+ssh://... org.tmatesoft.svn.core.SVNException: svn: Cannot connect to 'svn+ssh://...': Sorry, this connection is closed. at org.tmatesoft.svn.core.internal.wc.SVNErrorManager.error(SVNErrorManager.java:63) at org.tmatesoft.svn.core.internal.io.svn.SVNGanymedConnector.open(SVNGanymedConnector.java:129) 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:970) at org.tmatesoft.svn.core.internal.io.svn.SVNRepositoryImpl.getDatedRevision(SVNRepositoryImpl.java:159) at org.tmatesoft.svn.core.wc.SVNBasicClient.getRevisionNumber(SVNBasicClient.java:346) at org.tmatesoft.svn.core.wc.SVNUpdateClient.doUpdate(SVNUpdateClient.java:159) at hudson.scm.SubversionSCM$CheckOutTask.invoke(SubversionSCM.java:368) at hudson.scm.SubversionSCM$CheckOutTask.invoke(SubversionSCM.java:341) at hudson.FilePath.act(FilePath.java:280) at hudson.scm.SubversionSCM.checkout(SubversionSCM.java:338) at hudson.scm.SubversionSCM.checkout(SubversionSCM.java:295) at hudson.model.AbstractProject.checkout(AbstractProject.java:485) at hudson.model.AbstractBuild$AbstractRunner.checkout(AbstractBuild.java:160) at hudson.model.AbstractBuild$AbstractRunner.run(AbstractBuild.java:126) at hudson.model.Run.run(Run.java:573) at hudson.model.Build.run(Build.java:107) at hudson.model.ResourceController.execute(ResourceController.java:66) at hudson.model.Executor.run(Executor.java:59) 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.<init>(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:89) ... 17 more Caused by: java.net.SocketException: Connection reset at java.net.SocketInputStream.read(SocketInputStream.java:168) 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) Publishing Javadoc Sending e-mails to: ... finished: FAILURE Restarting tomcat and running the build again fixes it for a while.

    Jenkins JIRA | 9 years ago | tal
    org.tmatesoft.svn.core.SVNException: svn: Cannot connect to 'svn+ssh://...': Sorry, this connection is closed. at org.tmatesoft.svn.core.internal.wc.SVNErrorManager.error(SVNErrorManager.java:63) at org.tmatesoft.svn.core.internal.io.svn.SVNGanymedConnector.open(SVNGanymedConnector.java:129)
  3. 0

    I think a have triggered a bug when svn poll occurs on a slave (and a change is detected) if master does not have access to repository. Here, the master is installed on our shared server (Tomcat) where nothing but configuration is done (no checkout, no build, ...). Checkouts and builds are delegated to slaves. Master cannot access to repository because access is done via port forwarding which is only activated on slaves (for security reason). On slave, access to svn is done via URL like : svn://localhost/ROOT/ARCH Of course, I verified that access to repository works from slaves : manual triggered build works fine. But if the build is triggered by a SCM change, build fails with the following message : Started by an SCM change Building remotely on host103 Updating svn://localhost/ROOT/SVN/SANDBOX/trunk U date At revision 1517 FATAL: revision check failed on svn://localhost/ROOT/SVN/SANDBOX/trunk hudson.util.IOException2: revision check failed on svn://localhost/ROOT/SVN/SANDBOX/trunk at hudson.scm.SubversionChangeLogBuilder.buildModule(SubversionChangeLogBuilder.java:157) at hudson.scm.SubversionChangeLogBuilder.run(SubversionChangeLogBuilder.java:99) at hudson.scm.SubversionSCM.calcChangeLog(SubversionSCM.java:404) at hudson.scm.SubversionSCM.checkout(SubversionSCM.java:504) at hudson.model.AbstractProject.checkout(AbstractProject.java:1001) at hudson.model.AbstractBuild$AbstractRunner.checkout(AbstractBuild.java:428) at hudson.model.AbstractBuild$AbstractRunner.run(AbstractBuild.java:376) at hudson.model.Run.run(Run.java:1174) at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46) at hudson.model.ResourceController.execute(ResourceController.java:88) at hudson.model.Executor.run(Executor.java:123) Caused by: org.tmatesoft.svn.core.SVNException: svn: connection refused by the server 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.SVNPlainConnector.open(SVNPlainConnector.java:62) 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.SVNLogClient.doLog(SVNLogClient.java:1016) at org.tmatesoft.svn.core.wc.SVNLogClient.doLog(SVNLogClient.java:891) at org.tmatesoft.svn.core.wc.SVNLogClient.doLog(SVNLogClient.java:823) at hudson.scm.SubversionChangeLogBuilder.buildModule(SubversionChangeLogBuilder.java:145) ... 10 more Caused by: java.net.ConnectException: Connection refused at java.net.PlainSocketImpl.socketConnect(Native Method) at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:333) at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:195) at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:182) at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366) at java.net.Socket.connect(Socket.java:519) at org.tmatesoft.svn.core.internal.util.SVNSocketConnection.run(SVNSocketConnection.java:57) at java.lang.Thread.run(Thread.java:595) For debugging purpose, I enabled tunnel from master to repository and it begins to work as expected.

    Jenkins JIRA | 7 years ago | sbernaud
    hudson.util.IOException2: revision check failed on svn://localhost/ROOT/SVN/SANDBOX/trunk at hudson.scm.SubversionChangeLogBuilder.buildModule(SubversionChangeLogBuilder.java:157)
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    I think a have triggered a bug when svn poll occurs on a slave (and a change is detected) if master does not have access to repository. Here, the master is installed on our shared server (Tomcat) where nothing but configuration is done (no checkout, no build, ...). Checkouts and builds are delegated to slaves. Master cannot access to repository because access is done via port forwarding which is only activated on slaves (for security reason). On slave, access to svn is done via URL like : svn://localhost/ROOT/ARCH Of course, I verified that access to repository works from slaves : manual triggered build works fine. But if the build is triggered by a SCM change, build fails with the following message : Started by an SCM change Building remotely on host103 Updating svn://localhost/ROOT/SVN/SANDBOX/trunk U date At revision 1517 FATAL: revision check failed on svn://localhost/ROOT/SVN/SANDBOX/trunk hudson.util.IOException2: revision check failed on svn://localhost/ROOT/SVN/SANDBOX/trunk at hudson.scm.SubversionChangeLogBuilder.buildModule(SubversionChangeLogBuilder.java:157) at hudson.scm.SubversionChangeLogBuilder.run(SubversionChangeLogBuilder.java:99) at hudson.scm.SubversionSCM.calcChangeLog(SubversionSCM.java:404) at hudson.scm.SubversionSCM.checkout(SubversionSCM.java:504) at hudson.model.AbstractProject.checkout(AbstractProject.java:1001) at hudson.model.AbstractBuild$AbstractRunner.checkout(AbstractBuild.java:428) at hudson.model.AbstractBuild$AbstractRunner.run(AbstractBuild.java:376) at hudson.model.Run.run(Run.java:1174) at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46) at hudson.model.ResourceController.execute(ResourceController.java:88) at hudson.model.Executor.run(Executor.java:123) Caused by: org.tmatesoft.svn.core.SVNException: svn: connection refused by the server 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.SVNPlainConnector.open(SVNPlainConnector.java:62) 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.SVNLogClient.doLog(SVNLogClient.java:1016) at org.tmatesoft.svn.core.wc.SVNLogClient.doLog(SVNLogClient.java:891) at org.tmatesoft.svn.core.wc.SVNLogClient.doLog(SVNLogClient.java:823) at hudson.scm.SubversionChangeLogBuilder.buildModule(SubversionChangeLogBuilder.java:145) ... 10 more Caused by: java.net.ConnectException: Connection refused at java.net.PlainSocketImpl.socketConnect(Native Method) at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:333) at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:195) at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:182) at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366) at java.net.Socket.connect(Socket.java:519) at org.tmatesoft.svn.core.internal.util.SVNSocketConnection.run(SVNSocketConnection.java:57) at java.lang.Thread.run(Thread.java:595) For debugging purpose, I enabled tunnel from master to repository and it begins to work as expected.

    Jenkins JIRA | 7 years ago | sbernaud
    hudson.util.IOException2: revision check failed on svn://localhost/ROOT/SVN/SANDBOX/trunk at hudson.scm.SubversionChangeLogBuilder.buildModule(SubversionChangeLogBuilder.java:157)
  6. 0

    When Hudson encounters a restricted revision it fails and the build job is no longer triggered. started Checking out svn://anar/anonsvn.jboss.org-jbossas/projects/ejb3/trunk ERROR: Failed to check out svn://anar/anonsvn.jboss.org-jbossas/projects/ejb3/trunk org.tmatesoft.svn.core.SVNException: svn: Failed to find time on revision 74079 at org.tmatesoft.svn.core.internal.wc.SVNErrorManager.error(SVNErrorManager.java:55) at org.tmatesoft.svn.core.internal.wc.SVNErrorManager.error(SVNErrorManager.java:40) at org.tmatesoft.svn.core.internal.io.svn.SVNReader.parse(SVNReader.java:288) at org.tmatesoft.svn.core.internal.io.svn.SVNConnection.read(SVNConnection.java:238) at org.tmatesoft.svn.core.internal.io.svn.SVNRepositoryImpl.read(SVNRepositoryImpl.java:1012) at org.tmatesoft.svn.core.internal.io.svn.SVNRepositoryImpl.getDatedRevision(SVNRepositoryImpl.java:162) at org.tmatesoft.svn.core.wc.SVNBasicClient.getRevisionNumber(SVNBasicClient.java:346) at org.tmatesoft.svn.core.wc.SVNBasicClient.getLocations(SVNBasicClient.java:467) at org.tmatesoft.svn.core.wc.SVNBasicClient.createRepository(SVNBasicClient.java:418) at org.tmatesoft.svn.core.wc.SVNBasicClient.createRepository(SVNBasicClient.java:382) at org.tmatesoft.svn.core.wc.SVNUpdateClient.doCheckout(SVNUpdateClient.java:305) at hudson.scm.SubversionSCM$CheckOutTask.invoke(SubversionSCM.java:408) at hudson.scm.SubversionSCM$CheckOutTask.invoke(SubversionSCM.java:354) at hudson.FilePath.act(FilePath.java:312) at hudson.scm.SubversionSCM.checkout(SubversionSCM.java:348) at hudson.scm.SubversionSCM.checkout(SubversionSCM.java:299) at hudson.model.AbstractProject.checkout(AbstractProject.java:567) at hudson.model.AbstractBuild$AbstractRunner.checkout(AbstractBuild.java:251) at hudson.model.AbstractBuild$AbstractRunner.run(AbstractBuild.java:225) at hudson.model.Run.run(Run.java:756) at hudson.maven.MavenModuleSetBuild.run(MavenModuleSetBuild.java:202) at hudson.model.ResourceController.execute(ResourceController.java:70) at hudson.model.Executor.run(Executor.java:77) finished: FAILURE [carlo@nymph ~]$ svn log -r 74079 http://anonsvn.jboss.org/repos/jbossas ------------------------------------------------------------------------ r74079 | (no author) | (no date) | 1 line ------------------------------------------------------------------------ See also: http://svnkit.com/tracker/view.php?id=238

    Jenkins JIRA | 9 years ago | Carlo de Wolf
    org.tmatesoft.svn.core.SVNException: svn: Failed to find time on revision 74079 at org.tmatesoft.svn.core.internal.wc.SVNErrorManager.error(SVNErrorManager.java:55) at org.tmatesoft.svn.core.internal.wc.SVNErrorManager.error(SVNErrorManager.java:40)

    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. org.tmatesoft.svn.core.SVNException

      svn: Cannot connect to 'svn+ssh://...': Sorry, this connection is closed. at org.tmatesoft.svn.core.internal.wc.SVNErrorManager.error(SVNErrorManager.java:63) at org.tmatesoft.svn.core.internal.io.svn.SVNGanymedConnector.open(SVNGanymedConnector.java:129)

      at org.tmatesoft.svn.core.internal.io.svn.SVNConnection.open()
    2. SVNKit Library
      SVNConnection.open
      1. org.tmatesoft.svn.core.internal.io.svn.SVNConnection.open(SVNConnection.java:60)
      1 frame