views:

728

answers:

1

I'm getting an exception from Cruise Control about not being able to connect to the server. However, if I force a build it works just fine. I've also tried using the repo-browser to connect to the server without any problems so I know that the server is up and running. I'm running CCNET 1.4.4 and SlikSVN 1.5.3. Below is the exception from the CCNET log:

ThoughtWorks.CruiseControl.Core.CruiseControlException:
Source control operation failed: svn: OPTIONS of 'https://some-server.com/trunk': could not connect to server (https://some-server.com) .
Process command: C:\Program\SlikSvn\bin\svn.exe log https://some-server.com/trunk -r "{2009-06-23T01:36:19Z}:{2009-06-23T07:20:25Z}" --verbose --xml --username ccnet --password auto --non-interactive --no-auth-cache
at ThoughtWorks.CruiseControl.Core.Sourcecontrol.ProcessSourceControl.Execute(ProcessInfo processInfo) 
at ThoughtWorks.CruiseControl.Core.Sourcecontrol.Svn.GetModifications(IIntegrationResult from, IIntegrationResult to)
at ThoughtWorks.CruiseControl.Core.Sourcecontrol.MultiSourceControl.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) vid ThoughtWorks.CruiseControl.Core.IntegrationRunner.Integrate(IntegrationRequest request)

Any ideas would be much appreciated!

+1  A: 

I finally got it working again and this is what I've done.

  • Set maxSourceControlRetries to 10 in my CCNET-config
  • Set sourceControlErrorHandling to ReportOnEveryRetryAmount in my CCNET-config
  • Switched to the latest version of CollabNet client

As it turns out, CCNET swallowed sourcecontrol-errors like this in previous versions so I might have had troubles even before I updated to CCNET 1.4.4 but was unaware of it.

Thanks for your comments!

Kristoffer Ahl
Hey, I have the same problem, but not sure really how to fix it. After the changes that you have done, are you not getting the exception anymore at all or is it actually forcebuilding everyime you get the exception?
I might still be getting the error but not more the 10 times in a row as I am not receiving any error reports from CruiseControl any more. The build seems just fine now! And no, I am not forcing the build every time.
Kristoffer Ahl