Can anyone suggest reasons as to why the default Build Agent would be unavailable in TeamCity?

5.1k Views Asked by At

I'm in the process of setting up a proper CI environment and am currently evaluation TeamCity. (So my TeamCity experience is non-existent.).

I've performed a default install of TeamCity 5.0.1 Professional in a clean Windows XP (for now) VM.

I've created my project and pointed it to my source repository and queued up a build.

However, I don't see any Build Agents installed/available via the Team City web interface. I've checked and there is a 'Team City Build Agent' service installed and it's running. I've also reviewed the log files in the buildAgent folder and don't see anything that would lead me to an error.

Is there a step or concept that I'm missing here on getting the default Build Agent to become available to Team City? I'm not trying to do anything complicated with the build. (at this point, I just want to pull my source down from the repository)

4

There are 4 best solutions below

1
On BEST ANSWER

Right after a clean install you should see one build agent - the local machine. I don't think this has anything to do with you even having to have a project defined. IMHO you something went wrong with the installation.

Filip

0
On

If your server is running on a machine with multiple IP addresses, the agent may fail to identify the correct IP address. You can explicitly set the IP address in the buildAgent/conf/buildAgent.properties file. You should see a section that is optional to set the IP of the buildAgent and the IP of the Teamcity server. I recommend trying both.

1
On

I had exactly the same problem. After going through settings, reinstalling the agent etc, I found that the problem was rather simple - the TeamCity agent placed a wrong teamcity URL in it's property (and other paths as well).

Find the buildagent.properties file ( buildAgentInstallDir\conf\buildagent.properties), and you'll probably see that all of the lines have 'escape' characters in them (e.g. serverUrl=http://localhost:8090/ )

Modify the file to remove escape chars (i.e. links should be plain like: serverUrl=http://localhost:8090/ , env.TEAMCITY_JRE=C:\Program Files\TeamCity\BuildAgentInstalled\jre and similar)

Hope this helps...

0
On

If you've changed the TeamCity server port in conf/server.xml like:

<Connector port="8222" protocol=".."/>

You should change the default agent configuration in buildAgent/conf/buildAgent.properties

serverUrl=http://SERVER-IP-HERE:8222/