Warning: file_get_contents(/data/phpspider/zhask/data//catemap/0/svn/5.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
为什么我会得到;svn:服务器拒绝了连接;?_Svn_Integration_Teamcity_Continuous - Fatal编程技术网

为什么我会得到;svn:服务器拒绝了连接;?

为什么我会得到;svn:服务器拒绝了连接;?,svn,integration,teamcity,continuous,Svn,Integration,Teamcity,Continuous,我们有一个与TeamCity和subversion的持续集成环境。团队城市 从svn获取最新的源代码,并在每次提交时执行生成(Visual Studio) 有时,当构建运行时,我们会出现以下TeamCity错误。进行两次部队建设可以使TeamCity成功运行 **Build errors [12:35:24]: Patch is broken, can be found in file: C:\TeamCity\buildAgent\temp\cache\temp6036patch_803[12

我们有一个与TeamCity和subversion的持续集成环境。团队城市 从svn获取最新的源代码,并在每次提交时执行生成(Visual Studio)

有时,当构建运行时,我们会出现以下TeamCity错误。进行两次部队建设可以使TeamCity成功运行

**Build errors
[12:35:24]: Patch is broken, can be found in file: C:\TeamCity\buildAgent\temp\cache\temp6036patch_803[12:35:24]: RunBuildException when running build stage UpdateSourcesFromServer: Failed to build patch for build 519 {build id=803}, VCS root: svn: https://svn.myDomain.com/repos/myApplication {id=2}, due to error: org.tmatesoft.svn.core.SVNException: svn: connection refused by the server
svn: REPORT request failed on '/repos/myApplication/!svn/vcc/default'**
你知道为什么会这样吗

这是构建日志的一部分

[12:58:39]:  [Updating sources: server side checkout...] Transferring cached clean patch for VCS root: [svn url]
[12:58:40]:  [Updating sources: server side checkout...] Building incremental patch over the cached patch
[12:59:30]:  [Updating sources: server side checkout...] Failed to build patch for build 146 {build id=806}, VCS root: svn: [svn url]{id=2}, due to error: org.tmatesoft.svn.core.SVNException: svn: connection refused by the server
svn: REPORT request failed on '[svn url]!svn/vcc/default'
[12:59:30]:  [Updating sources: server side checkout...] Repository sources transferred: 14.08Mb total
[12:59:30]:  [Updating sources: server side checkout...] Average transfer speed: 280.89Kb per second
[12:59:30]: Will repeat attempt when server will be available, number of attempts left: 2
[12:59:40]: Updating sources: server side checkout...


jetbrains.buildServer.agent.impl.patch.PatchDownloaderImpl$1: Server was not able to build correct patch, most likely due to VCS errors, will try again.
jetbrains.buildServer.agent.impl.patch.PatchDownloaderImpl$1: Server was not able to build correct patch, most likely due to VCS errors, will try again.
    at jetbrains.buildServer.agent.impl.patch.PatchDownloaderImpl.throwError(PatchDownloaderImpl.java:113)
    at jetbrains.buildServer.agent.impl.patch.PatchDownloaderImpl.checkPatch(PatchDownloaderImpl.java:103)
    at jetbrains.buildServer.agent.impl.patch.PatchDownloaderImpl.copyPatchAndCheck(PatchDownloaderImpl.java:64)
    at jetbrains.buildServer.agent.impl.patch.UpdateSourcesPatcherBase.copyPatchToTempFile(UpdateSourcesPatcherBase.java:65)
    at jetbrains.buildServer.agent.impl.patch.UpdateSourcesFromServer.updateSources(UpdateSourcesFromServer.java:58)
    at jetbrains.buildServer.agent.impl.patch.UpdateSourcesBuildStageBase.doSourceUpdate(UpdateSourcesBuildStageBase.java:74)
    at jetbrains.buildServer.agent.impl.patch.UpdateSourcesBuildStageBase.doRecoverableStage(UpdateSourcesBuildStageBase.java:52)
    at jetbrains.buildServer.agent.impl.runStages.RecoverableBuildStage.doLastAttempt(RecoverableBuildStage.java:101)
    at jetbrains.buildServer.agent.impl.runStages.RecoverableBuildStage.doBuildStage(RecoverableBuildStage.java:58)
    at jetbrains.buildServer.agent.impl.BuildRunAction.callRunStage(BuildRunAction.java:119)
    at jetbrains.buildServer.agent.impl.BuildRunAction.doStages(BuildRunAction.java:83)
    at jetbrains.buildServer.agent.impl.BuildRunAction.access$000(BuildRunAction.java:18)
    at jetbrains.buildServer.agent.impl.BuildRunAction$1.run(BuildRunAction.java:56)
    at java.lang.Thread.run(Thread.java:595)
Caused by: jetbrains.buildServer.vcs.patches.UnsuccessfulPatchException: Failed to build patch for build 146 {build id=806}, VCS root: svn: [svn url]{id=2}, due to error: org.tmatesoft.svn.core.SVNException: svn: connection refused by the server
svn: REPORT request failed on '[svn url]!svn/vcc/default'
    at jetbrains.buildServer.vcs.patches.AbstractPatcher$1.fail(AbstractPatcher.java:93)
    at jetbrains.buildServer.vcs.patches.LowLevelPatcher.readPatchStream(LowLevelPatcher.java:156)
    at jetbrains.buildServer.vcs.patches.LowLevelPatcher.applyPatch(LowLevelPatcher.java:79)
    at jetbrains.buildServer.vcs.patches.AbstractPatcher.applyPatch(AbstractPatcher.java:42)
    at jetbrains.buildServer.agent.impl.patch.PatchApplierImpl.applyPatch(PatchApplierImpl.java:18)
    at jetbrains.buildServer.agent.impl.patch.PatchDownloaderImpl.checkPatchInFileIsCompleted(PatchDownloaderImpl.java:83)
    at jetbrains.buildServer.agent.impl.patch.PatchDownloaderImpl.checkPatch(PatchDownloaderImpl.java:93)
    ... 12 more

从错误中可以看出,svn服务器不可用或过载。 此外,如果您使用的是指向同一存储库的svn:externals,我强烈建议您尝试TeamCity 5.1 RC-在这方面有许多与svn支持+优化相关的修复程序。
另外,最好将您的问题发布到TeamCity论坛。

您是否可以访问apaches错误日志(并可以在此处添加错误日志)?服务器故障有一个关于的规范问题。