Problem with setting up second build agent

I'm having problem setting up second build agent in TeamCity.

Primary build agent is set up on the same machine as TeamCity server and everything works great. However I cannot make second build agent to run.

I've manage to install build agent on second server and after sorting out permission problems I got it Connected. The problem is that when I try to authorize the connected agent it doesn't work. Can't find anything going wrong in log files either. Firewall is set up correctly; agent account is admin on the machine.

The Unauthorized tab in Agents looks like this:


Agent Authorize Is connected Last communication date Inactivity reason
LECHT
192.168.3.9
Unauthorized
Unauthorized by Wojciech Markowski 14 minutes ago
Comment: Initial Authorization
Connected 23 Apr 10 11:34
LECHT
192.168.3.9
Unauthorized
Unauthorized by Wojciech Markowski 14 minutes ago
Comment: Initial Authorization
Disconnected 23 Apr 10 11:33

Agent logfiles in attachment.



Attachment(s):
wrapper.log.zip
launcher.log.zip
upgrade.log.zip
teamcity-agent.log.zip
10 comments

Hello Wojciech,

Sorry for the delay.

Is it possible that you have a first agent running and using the same port and name which is configured for the new agent? Try to change them for the new agent.
If it is not the case please send us config files of the agents.

Hope thie help,
Marina

0

Hi again

First agent (the one that is authorized and works fine) is set up to on the same machine as TeamCity server:

name: App-Dev-01

port: 9090

Second agent runs on different machine:

name: Lecht

port 9090



Attachment(s):
lecht_buildAgent.properties.zip
app_buildAgent.properties.zip
0

Wojciech,

Could you please provide agent logs of the second agent with name Lecht. Please check build agent has it's port opened in the firewal.

Thanks,
Marina

0

Wojciech,

Unfortunately logs did not bring anything new. Could you please enable debug logging, try again and provide teamcity server and agent log files?

Thanks,
Marina

0

Hi

I've enabled debug logging and tried authorizate agent.

Logs from agent (teamcity-agent, teamcity-xmlrpc) and server (teamcity-server) with debug in attachment.

Many Thanks

Wojciech



Attachment(s):
teamcity-xmlrpc.log.zip
teamcity-server.log.zip
teamcity-agent.log.zip
0

Hello,

Do you have antivirus software working on the agent computer? If so, please try installing/starting build agent with disabled antivirus.
Could you please also attach screenshots of the following pages:

  • connected agents
  • disconnected agents
  • unauthorized agents
  • agent summary


Kind regards,
Marina

0

Marina

I've tried to authorize agent without Antivirus but it makes no difference.

Screenshots attached.

Regards

Wojciech.



Attachment(s):
Unauthorized.JPG
Disconnected.JPG
Connected.JPG
Agent-Lecht.JPG
0

Sorry for the long delay.

From screenshot there is two agent with the same name and IP address at Unauthorized tab. Is it possible that there are two agent process running at the same time? May I ask you to try again with clean logs and with all java processes killed on the agent machine?

Please also try to uninstall antivirus and then run the agent? Certain antivirus software like Kaspersky Internet Security can result in Java process crashes or other misbehavior like inability to access files.

Kind regards,
Marina

0

Hi Marina

Finally I found some time to fix the build problem. I've uninstalled LECHT build agent and reinstalled it with different name. It fixed the problem. I 'm still getting information about 'old' agent being disconnected so there must be something wrong either with database or some trace of the old process (however old build agent has been uninstalled, machine rebooted and I can;t find any build agent process running on the machine).

Anyway problem solved.

Many thanks for your help.

Wojciech.

0

Please sign in to leave a comment.