Getting CruiseCcontrol.Net error message "svn: Can't get username or password"

2.3k views Asked by At

I have set up a second project in CCNet and on the second project I get the following error

Source control operation failed: svn: Can't get username or password
. Process command: svn log svn://unit-e-2/*<projectName>* -r
"{2012-01-13T20:15:50Z}:{2012-01-16T10:38:45Z}" --verbose --xml
--no-auth-cache --non-interactive

I have run the above command from the command line from the working directory of the project and it runs as expected. Also the originals project still builds and doesn't have any errors.

I have also checked all the paths in the config file and they are correct

The versions of the software are
CCNet Version : 1.6.7981.1
SVN Version 1.6.13

Does anyone have any suggestions on what could be the cause of the problem?

[Edit]
The ccnet.config file (sorry about the formatting Markdown is not playing nice with all the xml)

<?xml version="1.0" encoding="utf-8" ?>
<cruisecontrol xmlns:cb="urn:ccnet.config.builder">
<project>
<name>MyRegistry</name>
<category>Continuous Builds</category>
<artifactDirectory>C:\CruiseControlBuilds\artifacts</artifactDirectory>
<webURL>http://ENB0111D46842S/ccnet/server/local/project/MyRegistry/ViewProjectReport.aspx</webURL>
<triggers>
<intervalTrigger name="continuous" seconds="60" buildCondition="IfModificationExists" />
</triggers>
<state type="state" directory="C:\CruiseControlBuilds\State" />
<labeller type="assemblyVersionLabeller">
<major>2</major>
<minor>1</minor>
<incrementOnFailure>false</incrementOnFailure>
</labeller>
<modificationDelaySeconds>2</modificationDelaySeconds>
<sourcecontrol type="svn">
<executable>svn</executable>
<workingDirectory>C:\MyRegistry\trunk</workingDirectory>
<trunkUrl>svn://unit-e-2/MyRegistry/trunk</trunkUrl>
</sourcecontrol>
<tasks>
<msbuild>
<executable>c:\Windows\Microsoft.Net\Framework\v3.5\MSBuild.exe</executable>
<workingDirectory>C:\MyRegistry\trunk</workingDirectory>
<projectFile>MyRegistry.sln</projectFile>
<buildArgs>/t:Rebuild /p:Configuration=Release /v:m</buildArgs>
<targets>Clean;Build</targets>
<timeout>1200</timeout>
</msbuild>
</tasks>
<publishers>
<merge>
<files>
<file>C:\CruiseControlBuilds\artifacts\msbuild-results.xml</file>
</files>
</merge>
<xmllogger />
</publishers>
</project>
<project>
<name>SendStudentInfoToNHHG</name>
<category>Continuous Builds</category>
<artifactDirectory>C:\CruiseControlBuilds\artifacts\SendStudentInfoToNHHG</artifactDirectory>
<webURL>http://ENB0111D46842S/ccnet/server/local/project/SendStudentInfoToNHHG/ViewProjectReport.aspx</webURL>
<triggers>
<intervalTrigger name="continuous" seconds="60" buildCondition="IfModificationExists" />
</triggers>
<state type="state" directory="C:\CruiseControlBuilds\State" />
<labeller type="assemblyVersionLabeller">
<major>2</major>
<minor>1</minor>
<incrementOnFailure>false</incrementOnFailure>
</labeller>
<modificationDelaySeconds>2</modificationDelaySeconds>
<sourcecontrol type="svn">
<executable>svn.exe</executable>
<workingDirectory>C:\SendStudentInfoToNHHG\trunk</workingDirectory>
<trunkUrl>svn://unit-e-2/SendStudentInfoToNHHG/trunk</trunkUrl>
</sourcecontrol>
<tasks>
<msbuild>
<executable>c:\Windows\Microsoft.Net\Framework\v4.0.30319\MSBuild.exe</executable>
<workingDirectory>C:\SendStudentInfoToNHHG\trunk\SendStudentInfoToNHHG</workingDirectory>
<projectFile>SendStudentInfoToNHHG.sln</projectFile>
<buildArgs>/t:Rebuild /p:Configuration=Release /v:m</buildArgs>
<targets>Clean;Build</targets>
<timeout>1200</timeout>
</msbuild>
</tasks>
<publishers>
<merge>
<files>
<file>C:\CruiseControlBuilds\artifacts\SendStudentInfoToNHHG\msbuild-results.xml</file>
</files>
</merge>
<xmllogger />
</publishers>
</project>
</cruisecontrol>

1

There are 1 answers

4
Rami A. On BEST ANSWER

I recommend running the ccnet windows service as a different user account, run svn info svn://unit-e-2, and then enter the username and password to cache them.

See DilbertDave's answer here: