I'm using CC.NET 1.5 and the Mercurial Source Control Block with
Bitbucket.org. I'm having a problem where intermittently I get
exceptions in the build with the following error:
BUILD EXCEPTION
Error Message: ThoughtWorks.CruiseControl.Core.CruiseControlException:
Source control operation failed: abort: error: A connection attempt
failed because the connected party did not properly respond after a
period of time, or established connection failed because connected
host has failed to respond
. Process command: C:\Program Files (x86)\Mercurial\hg.exe pull --
noninteractive <url_to_bitbucket.org>
at
ThoughtWorks.CruiseControl.Core.Sourcecontrol.ProcessSourceControl.Execute(ProcessInfo
processInfo)
at
ThoughtWorks.CruiseControl.Core.Sourcecontrol.Mercurial.Mercurial.GetModifications(IIntegrationResult
from, IIntegrationResult to)
at
ThoughtWorks.CruiseControl.Core.Sourcecontrol.QuietPeriod.GetModificationsWithLogging(ISourceControl
sc, IIntegrationResult from, IIntegrationResult to)
at
ThoughtWorks.CruiseControl.Core.Sourcecontrol.QuietPeriod.GetModifications(ISourceControl
sourceControl, IIntegrationResult lastBuild, IIntegrationResult
thisBuild)
at
ThoughtWorks.CruiseControl.Core.IntegrationRunner.GetModifications(IIntegrationResult
from, IIntegrationResult to)
at
ThoughtWorks.CruiseControl.Core.IntegrationRunner.Integrate(IntegrationRequest
request)
Sometimes they look like this:
BUILD EXCEPTION
Error Message: ThoughtWorks.CruiseControl.Core.CruiseControlException:
Source control operation failed: abort: unexpected response:
'\x1f\x8b
\x08\x00\x00\x00\x00\x00\x00\x03\x03\x00\x00\x00\x00\x00\x00\x00\x00\x00HTTP/
1.1 401 UNAUTHORIZEDServer: nginx/0.7.65\r\nDate: Wed, 25 Aug 2010
10:30:06 GMT\r\nContent-Type: text/html; charset=utf-8\r\nTransfer-
Encoding: chunked\r\nConnection: keep-alive\r\nVary: Host, User-Agent,
Cookie\r\nWWW-Authenticate: Digest realm="Bitbucket.org HTTP",
nonce="5034d7c41efe076caebb2cc44b51546c", qop="auth",
opaque="3dc43c5203d0a94c5ac415158a884de0"\r\n\r\n0\r\n\r\n'
. Process command: C:\Program Files (x86)\Mercurial\hg.exe pull --
noninteractive <url_to_bitbucket.org>
at
ThoughtWorks.CruiseControl.Core.Sourcecontrol.ProcessSourceControl.Execute(ProcessInfo
processInfo)
at
ThoughtWorks.CruiseControl.Core.Sourcecontrol.Mercurial.Mercurial.GetModifications(IIntegrationResult
from, IIntegrationResult to)
at
ThoughtWorks.CruiseControl.Core.Sourcecontrol.QuietPeriod.GetModificationsWithLogging(ISourceControl
sc, IIntegrationResult from, IIntegrationResult to)
at
ThoughtWorks.CruiseControl.Core.Sourcecontrol.QuietPeriod.GetModifications(ISourceControl
sourceControl, IIntegrationResult lastBuild, IIntegrationResult
thisBuild)
at
ThoughtWorks.CruiseControl.Core.IntegrationRunner.GetModifications(IIntegrationResult
from, IIntegrationResult to)
at
ThoughtWorks.CruiseControl.Core.IntegrationRunner.Integrate(IntegrationRequest
request)
I'm using:
CC.NET: 1.5.7256.1
Mercurial: xx
Bitbucket.org
My ccnet.config project (trigger and source control block):
<triggers>
<filterTrigger startTime="3:00" endTime="6:00">
<trigger type="intervalTrigger" seconds="60"
buildCondition="IfModificationExists" />
</filterTrigger>
</triggers>
<sourcecontrol type="hg">
<autoGetSource>true</autoGetSource>
<repo>https://username:[email protected]/joe/projectx</repo>
<workingDirectory>C:\CCNET_Build\projectx\dev\source</
workingDirectory>
<executable>C:\Program Files (x86)\Mercurial\hg.exe</executable>
<tagOnSuccess>false</tagOnSuccess>
<timeout units="minutes">10</timeout>
</sourcecontrol>
Anyone know what might be causing these intermittent errors/
exceptions? I'm thinking it may just be a problem with bitbucket.org
and the fact that I'm polling their server so often that it sometimes
doesn't respond (can't handle that many requests). Maybe I should
slow down the polling of the trigger interval?
Doug