We are trying to replace our old TeamCity Agents running on Windows 2008r2 with TeamCity agents running on Windows 2012. We can't seem to get the agent to use a different workDir and tempDir. Below you can see a snippet from the agent log.
[2014-05-15 08:06:24,221] INFO - dAgentConfigurationInitializer - Loading build agent configuration from ..\conf\buildAgent.properties
[2014-05-15 08:06:24,221] WARN - ig.BuildAgentConfigurablePaths - Failed to set tempDir from 'T:\Build\Agent\temp'. Cannot create directory: T:\Build\Agent\temp. Default value '../temp' will be used.
[2014-05-15 08:06:24,221] WARN - ig.BuildAgentConfigurablePaths - Failed to set workDir from 'T:\Build\Agent\work'. Cannot create directory: T:\Build\Agent\work. Default value '../work' will be used.
[2014-05-15 08:06:24,237] INFO - s.buildServer.agent.AgentMain2 - Working dir: C:\Program Files (x86)\BuildAgent\work
[2014-05-15 08:06:24,237] INFO - s.buildServer.agent.AgentMain2 - Temp dir: C:\Program Files (x86)\BuildAgent\temp
We have installed the Team City Agent software in C:\Program Files (x86)\BuildAgent\, which is the default when installing the agent software. We then set the workDir and tempDir to anothter location, in our case T:\Build\Agent ...
When the agent starts up we get the Warning above.
The agent is configured to run as a Windows Service as a specific user. We need to run as this user for connection to other systems. This always worked on Windows 2008r2.
Any advice would be appriciated.