Link to home
Start Free TrialLog in
Avatar of craigdev
craigdev

asked on

VSS and CruiseControl.NET

I have a problem with accessing VSS from CruiseControl.NET. When I run cruise as a console it works perfectly but when I start CC as a windows service I get errors in the log that no source safe database was found.

Have tried running the CC service as my own account and as a separate cruise account, none of which seems to work.

Any ideas?


The error I get is "ThoughtWorks.CruiseControl.Core.CruiseControlException: Source control operation failed: No VSS database (srcsafe.ini) found.  Set the SSDIR environment variable to the path of srcsafe.ini for your VSS database."  - which I have tried.

Full exception
 
----------
ThoughtWorks.CruiseControl.Core.CruiseControlException: Source control operation failed: No VSS database (srcsafe.ini) found.  Set the SSDIR environment variable to the path of srcsafe.ini for your VSS database.
. Process command: C:\Program Files\Microsoft Visual SourceSafe\ss.exe history "$/External Dependencies/XUnit" -R -Vd10/02/2009;9:54~09/02/2009;17:03 -Y, -I-Y "-O@C:\Documents and Settings\myacct\Local Settings\Temp\tmp47.tmp"
   at ThoughtWorks.CruiseControl.Core.Sourcecontrol.ProcessSourceControl.Execute(ProcessInfo processInfo)
   at ThoughtWorks.CruiseControl.Core.Sourcecontrol.Vss.GetModifications(IIntegrationResult from, IIntegrationResult to, String tempOutputFileName)
   at ThoughtWorks.CruiseControl.Core.Sourcecontrol.Vss.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)
   at ThoughtWorks.CruiseControl.Core.IntegrationRunner.Integrate(IntegrationRequest request)
   at ThoughtWorks.CruiseControl.Core.Project.Integrate(IntegrationRequest request)
   at ThoughtWorks.CruiseControl.Core.ProjectIntegrator.Integrate()
   at ThoughtWorks.CruiseControl.Core.ProjectIntegrator.Run()
----------

Open in new window

Avatar of Hecatonchires
Hecatonchires

I've recently been bitten by the 'Windows Services cannot access mapped drives' problem.  Is your VSS repository access via a mapped drive?

Is the CC Service running as LocalService, or via credentials that allow access to the repository?
ASKER CERTIFIED SOLUTION
Avatar of snydermathew
snydermathew

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial