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 logfiles in attachment.
Attachment(s):
wrapper.log.zip
launcher.log.zip
upgrade.log.zip
teamcity-agent.log.zip
Please sign in to leave a comment.
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
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
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
Logs for second agent in attachment.
Firewall is switched off.
Attachment(s):
buildAgent.port.zip
launcher.log.zip
wrapper.log.zip
upgrade.log.zip
teamcity-agent.log.zip
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
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
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:
Kind regards,
Marina
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
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
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.