2010-04-11 4 views
4

TeamCity 및 Subversion과의 지속적인 통합 환경 설정이 있습니다. TeamCity 은 svn에서 최신 소스를 가져오고 모든 커밋에서 빌드 (Visual Studio)를 수행합니다."svn : 서버에서 연결을 거부했습니다"라는 메시지가 나타나는 이유는 무엇입니까?

빌드가 실행될 때 때때로 다음과 같은 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 
+0

아파치 오류 로그에 액세스 할 수 있습니까 (여기에 오류 로그를 추가 할 수 있습니까?)? –

+0

Server Fault에 [Connection Refused] (http://serverfault.com/questions/725262/what-causes-the-connection-refused-message)에 대한 표준 질문이 있습니다. – Raedwald

답변

1

의 일부가 그 중 하나 SVN 서버처럼 보이는 사용할 수 없거나 오버로드 중 하나였다. 또한 동일한 저장소를 가리키는 svn : externals를 사용하는 경우 TeamCity 5.1 RC를 사용하는 것이 좋습니다.이 영역에는 svn 지원 + 최적화 관련 수정 사항이 많이 있습니다. 또한 질문을 TeamCity 포럼 here에 게시하는 것이 좋습니다.

관련 문제