首页 > 解决方案 > JENKINS SVN 连接:E175002:等待服务器超时

问题描述

我们使用 SVN 作为 SCM 工具,使用 Jenkins 作为 CI 工具。Jenkins 的第一次 SVN 结账成功。但是随后的结帐因超时错误而失败。

所需的输出是成功的检出和构建。

18:04:53 ERROR: Failed to check out https://svnserver/svn/T11_2293_Digitalbanking/DevOps/EKYC-UTF8/ekycupdate
18:04:53 org.tmatesoft.svn.core.SVNException: svn: E175002: timed out waiting for server
18:04:53 svn: E175002: OPTIONS request failed on '/svn/T11_2293_Digitalbanking/DevOps/EKYC-UTF8/ekycupdate'
18:04:53    at org.tmatesoft.svn.core.internal.wc.SVNErrorManager.error(SVNErrorManager.java:112)
18:04:53    at org.tmatesoft.svn.core.internal.wc.SVNErrorManager.error(SVNErrorManager.java:96)
18:04:53    at org.tmatesoft.svn.core.internal.io.dav.http.HTTPConnection.request(HTTPConnection.java:765)
18:04:53    at org.tmatesoft.svn.core.internal.io.dav.http.HTTPConnection.request(HTTPConnection.java:352)
18:04:53    at org.tmatesoft.svn.core.internal.io.dav.http.HTTPConnection.request(HTTPConnection.java:340)
18:04:53    at org.tmatesoft.svn.core.internal.io.dav.DAVConnection.performHttpRequest(DAVConnection.java:910)
18:04:53    at org.tmatesoft.svn.core.internal.io.dav.DAVConnection.exchangeCapabilities(DAVConnection.java:702)
18:04:53    at org.tmatesoft.svn.core.internal.io.dav.DAVConnection.open(DAVConnection.java:113)
18:04:53    at org.tmatesoft.svn.core.internal.io.dav.DAVRepository.openConnection(DAVRepository.java:1035)
18:04:53    at org.tmatesoft.svn.core.internal.io.dav.DAVRepository.getLatestRevision(DAVRepository.java:164)
18:04:53    at org.tmatesoft.svn.core.internal.wc16.SVNBasicDelegate.getRevisionNumber(SVNBasicDelegate.java:480)
18:04:53    at org.tmatesoft.svn.core.internal.wc16.SVNBasicDelegate.getLocations(SVNBasicDelegate.java:833)
18:04:53    at org.tmatesoft.svn.core.internal.wc16.SVNBasicDelegate.createRepository(SVNBasicDelegate.java:527)
18:04:53    at org.tmatesoft.svn.core.internal.wc16.SVNUpdateClient16.doCheckout(SVNUpdateClient16.java:875)
18:04:53    at org.tmatesoft.svn.core.internal.wc2.old.SvnOldCheckout.run(SvnOldCheckout.java:66)
18:04:53    at org.tmatesoft.svn.core.internal.wc2.old.SvnOldCheckout.run(SvnOldCheckout.java:18)
18:04:53    at org.tmatesoft.svn.core.internal.wc2.SvnOperationRunner.run(SvnOperationRunner.java:21)
18:04:53    at org.tmatesoft.svn.core.wc2.SvnOperationFactory.run(SvnOperationFactory.java:1239)
18:04:53    at org.tmatesoft.svn.core.wc2.SvnOperation.run(SvnOperation.java:294)
18:04:53    at hudson.scm.subversion.CheckoutUpdater$SubversionUpdateTask.perform(CheckoutUpdater.java:133)
18:04:53    at hudson.scm.subversion.WorkspaceUpdater$UpdateTask.delegateTo(WorkspaceUpdater.java:168)
18:04:53    at hudson.scm.subversion.WorkspaceUpdater$UpdateTask.delegateTo(WorkspaceUpdater.java:176)
18:04:53    at hudson.scm.subversion.UpdateUpdater$TaskImpl.perform(UpdateUpdater.java:134)
18:04:53    at hudson.scm.subversion.WorkspaceUpdater$UpdateTask.delegateTo(WorkspaceUpdater.java:168)
18:04:53    at hudson.scm.SubversionSCM$CheckOutTask.perform(SubversionSCM.java:1041)
18:04:53    at hudson.scm.SubversionSCM$CheckOutTask.invoke(SubversionSCM.java:1017)
18:04:53    at hudson.scm.SubversionSCM$CheckOutTask.invoke(SubversionSCM.java:990)
18:04:53    at hudson.FilePath.act(FilePath.java:1042)
18:04:53    at hudson.FilePath.act(FilePath.java:1025)
18:04:53    at hudson.scm.SubversionSCM.checkout(SubversionSCM.java:937)
18:04:53    at hudson.scm.SubversionSCM.checkout(SubversionSCM.java:864)
18:04:53    at hudson.scm.SCM.checkout(SCM.java:504)
18:04:53    at hudson.model.AbstractProject.checkout(AbstractProject.java:1208)
18:04:53    at hudson.model.AbstractBuild$AbstractBuildExecution.defaultCheckout(AbstractBuild.java:574)
18:04:53    at jenkins.scm.SCMCheckoutStrategy.checkout(SCMCheckoutStrategy.java:86)
18:04:53    at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:499)
18:04:53    at hudson.model.Run.execute(Run.java:1798)
18:04:53    at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43)
18:04:53    at hudson.model.ResourceController.execute(ResourceController.java:97)
18:04:53    at hudson.model.Executor.run(Executor.java:429)
18:04:53 Caused by: java.net.SocketTimeoutException: connect timed out
18:04:53    at java.net.PlainSocketImpl.socketConnect(Native Method)
18:04:53    at java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:350)
18:04:53    at java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:206)
18:04:53    at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:188)
18:04:53    at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:392)
18:04:53    at java.net.Socket.connect(Socket.java:589)
18:04:53    at sun.security.ssl.SSLSocketImpl.connect(SSLSocketImpl.java:673)
18:04:53    at org.tmatesoft.svn.core.internal.util.SVNSocketConnection.run(SVNSocketConnection.java:57)
18:04:53    at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
18:04:53    at java.util.concurrent.FutureTask.run(FutureTask.java:266)
18:04:53    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
18:04:53    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
18:04:53    at java.lang.Thread.run(Thread.java:748)
18:04:53 java.net.SocketTimeoutException: connect timed out
18:04:53    at java.net.PlainSocketImpl.socketConnect(Native Method)
18:04:53    at java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:350)
18:04:53    at java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:206)
18:04:53    at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:188)
18:04:53    at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:392)
18:04:53    at java.net.Socket.connect(Socket.java:589)
18:04:53    at sun.security.ssl.SSLSocketImpl.connect(SSLSocketImpl.java:673)
18:04:53    at org.tmatesoft.svn.core.internal.util.SVNSocketConnection.run(SVNSocketConnection.java:57)
18:04:53    at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
18:04:53    at java.util.concurrent.FutureTask.run(FutureTask.java:266)
18:04:53    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
18:04:53    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
18:04:53    at java.lang.Thread.run(Thread.java:748)
18:04:53 Caused: org.tmatesoft.svn.core.SVNException: svn: E175002: timed out waiting for server
18:04:53 svn: E175002: OPTIONS request failed on '/svn/T11_2293_Digitalbanking/DevOps/EKYC-UTF8/ekycupdate'
18:04:53    at org.tmatesoft.svn.core.internal.wc.SVNErrorManager.error(SVNErrorManager.java:112)
18:04:53    at org.tmatesoft.svn.core.internal.wc.SVNErrorManager.error(SVNErrorManager.java:96)
18:04:53    at org.tmatesoft.svn.core.internal.io.dav.http.HTTPConnection.request(HTTPConnection.java:765)
18:04:53    at org.tmatesoft.svn.core.internal.io.dav.http.HTTPConnection.request(HTTPConnection.java:352)
18:04:53    at org.tmatesoft.svn.core.internal.io.dav.http.HTTPConnection.request(HTTPConnection.java:340)
18:04:53    at org.tmatesoft.svn.core.internal.io.dav.DAVConnection.performHttpRequest(DAVConnection.java:910)
18:04:53    at org.tmatesoft.svn.core.internal.io.dav.DAVConnection.exchangeCapabilities(DAVConnection.java:702)
18:04:53    at org.tmatesoft.svn.core.internal.io.dav.DAVConnection.open(DAVConnection.java:113)
18:04:53    at org.tmatesoft.svn.core.internal.io.dav.DAVRepository.openConnection(DAVRepository.java:1035)
18:04:53    at org.tmatesoft.svn.core.internal.io.dav.DAVRepository.getLatestRevision(DAVRepository.java:164)
18:04:53    at org.tmatesoft.svn.core.internal.wc16.SVNBasicDelegate.getRevisionNumber(SVNBasicDelegate.java:480)
18:04:53    at org.tmatesoft.svn.core.internal.wc16.SVNBasicDelegate.getLocations(SVNBasicDelegate.java:833)
18:04:53    at org.tmatesoft.svn.core.internal.wc16.SVNBasicDelegate.createRepository(SVNBasicDelegate.java:527)
18:04:53    at org.tmatesoft.svn.core.internal.wc16.SVNUpdateClient16.doCheckout(SVNUpdateClient16.java:875)
18:04:53    at org.tmatesoft.svn.core.internal.wc2.old.SvnOldCheckout.run(SvnOldCheckout.java:66)
18:04:53    at org.tmatesoft.svn.core.internal.wc2.old.SvnOldCheckout.run(SvnOldCheckout.java:18)
18:04:53    at org.tmatesoft.svn.core.internal.wc2.SvnOperationRunner.run(SvnOperationRunner.java:21)
18:04:53    at org.tmatesoft.svn.core.wc2.SvnOperationFactory.run(SvnOperationFactory.java:1239)
18:04:53    at org.tmatesoft.svn.core.wc2.SvnOperation.run(SvnOperation.java:294)
18:04:53    at hudson.scm.subversion.CheckoutUpdater$SubversionUpdateTask.perform(CheckoutUpdater.java:133)
18:04:53 Caused: java.io.IOException: Failed to check out https://hydsvnuat.icicibankltd.com/svn/T11_2293_Digitalbanking/DevOps/EKYC-UTF8/ekycupdate
18:04:53    at hudson.scm.subversion.CheckoutUpdater$SubversionUpdateTask.perform(CheckoutUpdater.java:144)
18:04:53    at hudson.scm.subversion.WorkspaceUpdater$UpdateTask.delegateTo(WorkspaceUpdater.java:168)
18:04:53    at hudson.scm.subversion.WorkspaceUpdater$UpdateTask.delegateTo(WorkspaceUpdater.java:176)
18:04:53    at hudson.scm.subversion.UpdateUpdater$TaskImpl.perform(UpdateUpdater.java:134)
18:04:53    at hudson.scm.subversion.WorkspaceUpdater$UpdateTask.delegateTo(WorkspaceUpdater.java:168)
18:04:53    at hudson.scm.SubversionSCM$CheckOutTask.perform(SubversionSCM.java:1041)
18:04:53    at hudson.scm.SubversionSCM$CheckOutTask.invoke(SubversionSCM.java:1017)
18:04:53    at hudson.scm.SubversionSCM$CheckOutTask.invoke(SubversionSCM.java:990)
18:04:53    at hudson.FilePath.act(FilePath.java:1042)
18:04:53    at hudson.FilePath.act(FilePath.java:1025)
18:04:53    at hudson.scm.SubversionSCM.checkout(SubversionSCM.java:937)
18:04:53    at hudson.scm.SubversionSCM.checkout(SubversionSCM.java:864)
18:04:53    at hudson.scm.SCM.checkout(SCM.java:504)
18:04:53    at hudson.model.AbstractProject.checkout(AbstractProject.java:1208)
18:04:53    at hudson.model.AbstractBuild$AbstractBuildExecution.defaultCheckout(AbstractBuild.java:574)
18:04:53    at jenkins.scm.SCMCheckoutStrategy.checkout(SCMCheckoutStrategy.java:86)
18:04:53    at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:499)
18:04:53    at hudson.model.Run.execute(Run.java:1798)
18:04:53    at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43)
18:04:53    at hudson.model.ResourceController.execute(ResourceController.java:97)
18:04:53    at hudson.model.Executor.run(Executor.java:429)

有任何想法吗?

注意:我们的 Jenkins 在 Docker 容器中运行,由于公司政策,我最近从 Git 转换到 SVN。

标签: jenkinssvncontinuous-integrationvisualsvn-serverrequest-timed-out

解决方案


对于所有读者来说,问题在于我们组织的身份验证策略。用户必须在我们的组织中每 30 天更新一次密码。

用户必须已更改密码且未在 Jenkins 中更新密码。结果连接超时。

一旦在 Jenkins 中更新了 SVN 用户的密码,该问题也得到了解决。

问候


推荐阅读