hudson.util.IOException2: revision check failed on svn://localhost/ROOT/SVN/SANDBOX/trunk at hudson.scm.SubversionChangeLogBuilder.buildModule(SubversionChangeLogBuilder.java:157)

Jenkins JIRA | sbernaud | 7 years ago
  1. 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)
  2. 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)
  3. 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)
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 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)
  6. 0

    Hudson is unable to check out from SVN if there are "empty" revision s in the tree please see attached dump and snippet from "svn log". Sorry that I don't provide a full reproducable but i hope the description will do. Running: Hudson 1.227 Subversion Server 1.4 Windows XP SP2 Java 1.6.3 /Regards /Per Logs: ---------------------------------------------------- FailedConsole Output View as plain text started Checking out svn://m-wiki/mk4/SI/CMS/tracks/systemtracks/trunk/com.saabgroup.cms.systemtrack ERROR: Failed to check out svn://m-wiki/mk4/SI/CMS/tracks/systemtracks/trunk/com.saabgroup.cms.systemtrack org.tmatesoft.svn.core.SVNException: svn: Could not find time for revision 9423 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:287) 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:420) at hudson.scm.SubversionSCM$CheckOutTask.invoke(SubversionSCM.java:359) at hudson.FilePath.act(FilePath.java:315) at hudson.scm.SubversionSCM.checkout(SubversionSCM.java:353) at hudson.scm.SubversionSCM.checkout(SubversionSCM.java:304) at hudson.model.AbstractProject.checkout(AbstractProject.java:574) 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:778) at hudson.maven.MavenModuleSetBuild.run(MavenModuleSetBuild.java:202) at hudson.model.ResourceController.execute(ResourceController.java:70) at hudson.model.Executor.run(Executor.java:85) finished: FAILURE --------------------------------- Snippet from the svn log for the repository gives: r9423 | (no author) | (no date) | 1 line ------------------------------------

    Jenkins JIRA | 8 years ago | persan
    org.tmatesoft.svn.core.SVNException: svn: Could not find time for revision 9423 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: 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()
    2. SVNKit Library
      SVNConnection.open
      1. org.tmatesoft.svn.core.internal.io.svn.SVNConnection.open(SVNConnection.java:74)
      1 frame