views:

30

answers:

1

Hi, I am trying TeamCity as an alternative to CruiseControl.NET at the moment. However, I'm having real trouble with using it with Visual Sourcesafe (I know we'll be moving off this in near future!).

However in the VSS Settings in the "Path to srcsafe.ini" field I am getting the following error when I click on Test Connection:

Error: File does not exist. Please check TeamCity server user account has enough rights to access the path

I am running TeamCity in local machine/user account. The path to the file IS available if I put it into explorer url bar like so:

\\sourcesafe\source safe\AHV_RSLManager\srcsafe.ini

I copied this into the field and no luck. Tried removing the filename, slashes, but no luck so far! Fustrating to say the least as TeamCity looks to be a nicer, easier to use system then CC.NET. But at the moment it doesn't want to work!!

So what is going on with this?

+1  A: 

Do you run TeamCity as a service or as normal application from the command line as logged in user? Local services do not have access to the UNC paths.

CrazyCoder
As a service I think. I've not started the app from command line so I guess it is. If it is a service, does that rule out UNC paths altogether? Seems a little strange that the service won't allow network paths. How else am I supposed to connect to the sourcesafe server?
Jon
It may help if you change the service account from the default Local SYSTEM to NETWORK SERVICE account and restart the service. If it doesn't help, put a copy of the file on the server machine and specify the local path in the settings.
CrazyCoder
I tried making the BuildAgent and WebService both run as NETWORK SERVICE, but when I browse to TC admin site I'm now getting failed to connect to DB server error etc...something about lock files.Not sure what I'm doing here, I think I'm out of my depth. I thought it would be as simple as point the TC server at the source safe path. It seems now the whole thing is corrupted.
Jon
By default TeamCity data directory is placed under user profile directory. If you've changed the user, then you need to ensure that either the same directory is used or copy the directory to the new location. Also check the file permissions, they must be valid for the new user account. See http://confluence.jetbrains.net/display/TCD5/TeamCity+Data+Directory.
CrazyCoder
I might try and revisit this. I gave up in the end! Think I'll just go back to CruiseControl.NET as this seems to work out of the box and I know what I'm doing.
Jon