Hi everyone

Our Perforce server goes down for a full backup regularly (once a week). 
We've been using CruiseControl.NET 1.4.1 for years and this had never been 
a problem. I just upgraded to CruiseControl.NET 1.8.4 and now projects go 
into the "exception" state and send out e-mails every few minutes while the 
P4 server is down for backup.

Here an example log:

BUILD EXCEPTION  Error Message: 
ThoughtWorks.CruiseControl.Core.CruiseControlException: 
Perforce GetModifications failed: p4 -s -c 
build.runner_uk-v-br132_diw.9r0-bugfix.release changes -s submitted 
//team/9r0-bugfix/diw/...@2013/10/30:18:01:00,@2013/11/06:01:40:15 
//tools/9r0/main/...@2013/10/30:18:01:00,@2013/11/06:01:40:15 Error output 
from process was: Perforce client error: Connect to server failed; check 
$P4PORT. TCP connect to uk-v-perforce2:1666 failed. connect: 
uk-v-perforce2:1666: WSAECONNREFUSED exit: 1 at 
ThoughtWorks.CruiseControl.Core.Sourcecontrol.Perforce.P4.Execute(ProcessInfo 
process, String description) at 
ThoughtWorks.CruiseControl.Core.Sourcecontrol.Perforce.P4.GetModifications(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 already tried this:

  <sourcecontrol type="p4">
    <acceptableErrors>
      <string>file\(s\) up-to-date\.</string>
      <string>WSAECONNREFUSED</string>
    </acceptableErrors>


But that didn't make a difference. Interesting enough not ALL of the 
CruiseControl.NET projects go into exception. Some don't seem to even 
notice (i.e. no error logs, nothing).

Is there anything I can do to prevent this? I realize we could change the 
trigger to not run while the P4 server is down for backup, but we didn't 
have to do that with the old CruiseControl.NET version, so I'd rather not 
do that now.

Thanks
Oskar.

-- 

--- 
You received this message because you are subscribed to the Google Groups 
"ccnet-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to