Windows 7 / The build agent is always unregistered
Hello all,
I've just installed the latest release of TeamCity, and I have a problem with the build agent.
It is always in the Disconnected Agents section, with Agent has unregistered (will upgrade) as Inactivity Reason.
I've followed the various posts here and uncommented the debug comments in the config file, I've set the ownAddress field in the properties file. I've tried to run it with the script file instead as a service, but I can't make it work.
I've noticed in the log a strange thing: it downloads some plugins, but it seems it doesn't succeed in copying them in the plugins directory, and then starts to stop and start continuously.
The log file is in attachment, I hope this will help you to find what's wrong
Thanks in advance
Mike
Attachment(s):
teamcity-agent.log.zip
Please sign in to leave a comment.
Could you please attach all logs?
OK, here are the logs. I hope they are those you want to see
Attachment(s):
wrapper.log.zip
teamcity-server.log.zip
buildAgent.properties.zip
It seems that server drops connection when agent tries to download updates. How is the server configured? Do you have some proxy between agent and server? Do you use Apache in front of TeamCity Tomcat servlet container?
Downloading the updates works fine, I can see them in the update/plugins/ folder of the buildAgent.
Anyway, the server has the default configuration. There is no proxy, the build agent and the server are on the same machine. And I don't use Apache.
I just followed a default installation, nothing fancy
Could you please check that all *.zip and *.jar files in the update/plugins on the agent are the same as on the server: webapps/ROOT/update/plugins ?
Mmmm no, the content of the directories aren't the same.
Here is webapps/ROOT/update/plugins:
And the buildAgent/update/plugins directory, just before all was deleted
Hope that helps
According to logs "connection reset" error occurs during idea_dist.jar downloading. And in fact the size of this jar is smaller on the agent. Do you have some antivirus software installed?
Oh! That was that! Thanks a lot!
I would never have found that alone
Does this update occurs everytime the agent connects to the server, or just on the first connection? And which executable should I allow in my antivirus to avoid turning it off during the update process?
The update occurs only once on each server upgrade. As for antivirus - the java process needs to be allowed. But I would completely disable antivirus software on the agent, otherwise you may face various random failures in your builds.