0
votes

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
What are the specific differences between the first project and the second?Rami A.
@RamiA. The first project is ASP.Net, the second is console app. The config file for CCNet they are essentially the same, except for the name of the project and the paths to the directories. Both projects live on the same svn server. Would you like me to post the ccnet.config xml for the second project?TheLukeMcCarthy
It seems you are not passing in the username or password through the command line. Where does svn.exe get that information from the first project?Rami A.
Posting the ccnet.config xml for both projects will help troubleshoot the issue.Rami A.
What happens if you specify the username and password in the ccnet.config and not rely on the cache?Rami A.

1 Answers

3
votes

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: