Transferring an old (9.17) TC server to a new Windows server

I'm sure I'm about 99% of the way there, but the problem is that whenever I start the new TC server, it wants to create a whole new account/project whereas I migrated over to C:\ProgramData\JetBrains\TeamCity.  TeamCity itself is installed in C:\TeamCity.  I've tried to set the TEAMCITY_DATA_PATH within the Windows system variables, and while this works if I run TeamCity manually if I install the service, it doesn't work (as I suspect the System account doesn't have access to the variable).

So the question is: how best to tell TeamCity regardless of manual startup or service where the default data directory lives?

Many thanks,

Martyn

0
1 comment

Hi Martyn,

 

just as you mentioned, the issue is because the user running the service is different. You would need to add the environment variable to the respective user's environment. You could also add it to the startup scripts, but you will need to remember to keep it updated whenever it gets updated.

0

Please sign in to leave a comment.