Subversion, Cruise Control, NUnit & MSBuild
ThoughtWorks.CruiseControl.Core.CruiseControlException: Source control operation failed: svn: OPTIONS of ‘https://myservername:8443/svn/MySolution’: Server certificate verification failed: issuer is not trusted (https://myservername:8443)
ThoughtWorks.CruiseControl.Core.CruiseControlException: Source control operation failed: svn: OPTIONS of ‘https://myservername:8443/svn/MySolution: authorization failed (https://myservername.local:8443).
Checking the sourcecontrol tags details with the Cruise Control documentation resulted in me modding the sourcecontrol tag in ccnet.config to add user id and password attributes:
<sourcecontrol type="svn" username="MyServiceAcc" password="xxxxxxx">
This resulted in another error
ThoughtWorks.CruiseControl.Core.CruiseControlException: Source control operation failed: svn: Server sent unexpected return value (403 Forbidden) in response to OPTIONS request for ‘https://myservername:8443/svn/MySolution’
. Process command: svn.exe log https://myservername:8443/svn/MySolution -r "{2008-11-29T17:06:33Z}:{2008-11-30T17:07:01Z}" –verbose –xml –username MyServiceAcc –password xxxxxxx –non-interactive –no-auth-cache
Googling again brought me more info and I gave the CC service user full control to the directory where Subversion deploys the repositories.
Still not fixed.
I took the command line that CC creates for the sourcecontrol task and changed it to use my credentials – it worked. I spent another half hour or so changing the password of the SVN user which CC runs as without fixing the problem (it must be permissions related) before deciding to add my credentials to the ccnet.config – NOT BEST PRACTICE! I’ll look at this again when I get it all working :-).
On to the next issue:
ThoughtWorks.CruiseControl.Core.CruiseControlException: Unable to load the output from svn: <?xml version="1.0"?>
<log>
<logentry
revision="11">
This turned out to be a known issue that has been fixed :
http://confluence.public.thoughtworks.org/display/CCNET/Welcome+to+CruiseControl.NET
so I downloaded it and installed it and it went away.
I also installed the SMTP component of IIS to allow the CC config to send email results of the build – not really needed as CC comes with a utility (CC Tray) which allows you to monitor the state of the builds on the build server but I thought I’d do it anyway in case we ever meet a need to support interested parties who don’t want the tray.
I had to forward port 8443 through the Belkin router to allow external access to Subversion and that was that – internal and external access to Subversion and continuous integration up and running.
Since I drafted this I’ve used this setup for a number of other development projects and it’s great – simpler and lighter than Team Foundation Server (which I will return to at some point). It’s ran without a blink since then ……
Hi Buddy, I got the "Server certificate verification failed: issuer is not trusted" for the same reason you did, so reading your blog helped me out.Thanks!Anders, Denmark
Anders - September 8, 2009 at 16:44 |