Agent has unregistered (will upgrade)

Hello,

I'm using Teamcity 6.5.3 (build 17985) and due to a server restart agents seem to be stuck in the upgrade state.

In the UI I see this for the involved agent: Agent has unregistered (will upgrade) . From what I see in the logs it keeps looping for this update.
Any idea what the problem is?

I've attached a log from the agent logs dir.



Attachment(s):
teamcityagent.log.zip
2 comments
Comment actions Permalink

According to launcher.log :

[2012-07-16 13:25:33,451]  DEBUG - .buildServer.agent.JavaChooser - Current JRE version is 1.6
[2012-07-16 13:25:33,452]   INFO - ldServer.agent.run.AgentRunner - Launching agent with command:  /usr/java/jdk1.6.0_29/jre/bin/java -ea -Xmx384m -Dteamcity_logs=../logs/ -Dlog4j.configuration=file:../conf/teamcity-agent-log4j.xml -classpath /build/teamcity/buildAgent/lib/xpp3_min-1.1.4c.jar:/build/teamcity/buildAgent/lib/server-logging.jar:/build/teamcity/buildAgent/lib/commons-httpclient-3.1.jar:/build/teamcity/buildAgent/lib/commons-io-1.3.2.jar:/build/teamcity/buildAgent/lib/ehcache-1.6.0.jar:/build/teamcity/buildAgent/lib/agent-openapi.jar:/build/teamcity/buildAgent/lib/serviceMessages.jar:/build/teamcity/buildAgent/lib/freemarker.jar:/build/teamcity/buildAgent/lib/slf4j-api-1.5.11.jar:/build/teamcity/buildAgent/lib/commons-compress-1.1-SNAPSHOT.jar:/build/teamcity/buildAgent/lib/xmlrpc-2.0.1.jar:/build/teamcity/buildAgent/lib/patches-impl.jar:/build/teamcity/buildAgent/lib/jdk-searcher.jar:/build/teamcity/buildAgent/lib/utils.jar:/build/teamcity/buildAgent/lib/commons-beanutils-core.jar:/build/teamcity/buildAgent/lib/joda-time-1.5.2.jar:/build/teamcity/buildAgent/lib/jakarta-oro-2.0.8.jar:/build/teamcity/buildAgent/lib/slf4j-simple-1.5.11.jar:/build/teamcity/buildAgent/lib/ehcache-1.6.0-patch.jar:/build/teamcity/buildAgent/lib/duplicator-util.jar:/build/teamcity/buildAgent/lib/common.jar:/build/teamcity/buildAgent/lib/agent.jar:/build/teamcity/buildAgent/lib/agentInstaller-UI.jar:/build/teamcity/buildAgent/lib/processesTerminator.jar:/build/teamcity/buildAgent/lib/runtime-util.jar:/build/teamcity/buildAgent/lib/log4j-1.2.12.jar:/build/teamcity/buildAgent/lib/coverage-report.jar:/build/teamcity/buildAgent/lib/resources_en.jar:/build/teamcity/buildAgent/lib/agentInstaller.jar:/build/teamcity/buildAgent/lib/inspections-util.jar:/build/teamcity/buildAgent/lib/coverage-agent-common.jar:/build/teamcity/buildAgent/lib/xstream-1.3.1.jar:/build/teamcity/buildAgent/lib/patches.jar:/build/teamcity/buildAgent/lib/commons-codec-1.3.jar:/build/teamcity/buildAgent/lib/launcher.jar:/build/teamcity/buildAgent/lib/openapi.jar:/build/teamcity/buildAgent/lib/xercesImpl.jar:/build/teamcity/buildAgent/lib/spring.jar:/build/teamcity/buildAgent/lib/common-runtime.jar:/build/teamcity/buildAgent/lib/idea-settings.jar:/build/teamcity/buildAgent/lib/commons-logging.jar:/build/teamcity/buildAgent/lib/ivy-2.1.0.jar:/build/teamcity/buildAgent/lib/trove4j.jar:/build/teamcity/buildAgent/lib/util.jar:/build/teamcity/buildAgent/lib/annotations.jar:/build/teamcity/buildAgent/lib/xml-rpc-wrapper.jar:/build/teamcity/buildAgent/lib/agent-launcher.jar:/build/teamcity/buildAgent/lib/messages.jar:/build/teamcity/buildAgent/lib/jaxen-1.1.1.jar:/build/teamcity/buildAgent/lib/jdom.jar:/build/teamcity/buildAgent/lib/common-impl.jar:/build/teamcity/buildAgent/lib/commons-collections-3.2.1.jar jetbrains.buildServer.agent.AgentMain -file ../conf/buildAgent.properties -launcher.version 17985
[2012-07-16 13:25:51,345]   INFO - ldServer.agent.run.AgentRunner - Agent process finished
[2012-07-16 13:25:51,345]   INFO - ldServer.agent.run.AgentRunner - Agent has exited with code: 10
[2012-07-16 13:25:51,346]   INFO - ldServer.agent.run.AgentRunner - Updates directory exists
[2012-07-16 13:25:51,361]   INFO - er.agent.upgrade.UpdateChecker - Update files check succeeded


What does exit code 10 mean?

0
Comment actions Permalink

I have the exact same problem on Mac OS X 10.8.3, with TeamCity 7.1.5, Java 1.7.0_21. The agent gets stuck when it's about to restart after the upgrade. If I './agent.sh stop' it wont, so I need to './agent.sh stop kill'. When after that I './agent.sh start' it start the upgrade all over again.

[2013-05-30 09:44:22,821]   INFO - ldServer.agent.run.AgentRunner - Launching agent with command:  /Library/Java/JavaVirtualMachines/jdk1.7.0_21.jdk/Contents/Home/jre/bin/java -ea -Xmx384m -Dteamcity_logs=../logs/ -Dlog4j.configuration=file:../conf/teamcity-agent-log4j.xml -classpath /Users/kristian/dev/TeamCity/buildAgent/lib/agent-launcher.jar:/Users/kristian/dev/TeamCity/buildAgent/lib/agent-openapi.jar:/Users/kristian/dev/TeamCity/buildAgent/lib/agent.jar:/Users/kristian/dev/TeamCity/buildAgent/lib/agentInstaller-UI.jar:/Users/kristian/dev/TeamCity/buildAgent/lib/agentInstaller.jar:/Users/kristian/dev/TeamCity/buildAgent/lib/annotations.jar:/Users/kristian/dev/TeamCity/buildAgent/lib/common-impl.jar:/Users/kristian/dev/TeamCity/buildAgent/lib/common-runtime.jar:/Users/kristian/dev/TeamCity/buildAgent/lib/common.jar:/Users/kristian/dev/TeamCity/buildAgent/lib/commons-beanutils-core.jar:/Users/kristian/dev/TeamCity/buildAgent/lib/commons-codec-1.3.jar:/Users/kristian/dev/TeamCity/buildAgent/lib/commons-collections-3.2.1.jar:/Users/kristian/dev/TeamCity/buildAgent/lib/commons-compress-1.3-SNAPSHOT.jar:/Users/kristian/dev/TeamCity/buildAgent/lib/commons-httpclient-3.1.jar:/Users/kristian/dev/TeamCity/buildAgent/lib/commons-io-1.3.2.jar:/Users/kristian/dev/TeamCity/buildAgent/lib/commons-logging.jar:/Users/kristian/dev/TeamCity/buildAgent/lib/coverage-agent-common.jar:/Users/kristian/dev/TeamCity/buildAgent/lib/coverage-report.jar:/Users/kristian/dev/TeamCity/buildAgent/lib/duplicator-util.jar:/Users/kristian/dev/TeamCity/buildAgent/lib/ehcache-1.6.0-patch.jar:/Users/kristian/dev/TeamCity/buildAgent/lib/ehcache-1.6.0.jar:/Users/kristian/dev/TeamCity/buildAgent/lib/freemarker.jar:/Users/kristian/dev/TeamCity/buildAgent/lib/idea-settings.jar:/Users/kristian/dev/TeamCity/buildAgent/lib/inspections-util.jar:/Users/kristian/dev/TeamCity/buildAgent/lib/ivy-2.1.0.jar:/Users/kristian/dev/TeamCity/buildAgent/lib/jakarta-oro-2.0.8.jar:/Users/kristian/dev/TeamCity/buildAgent/lib/jaxen-1.1.1.jar:/Users/kristian/dev/TeamCity/buildAgent/lib/jdk-searcher.jar:/Users/kristian/dev/TeamCity/buildAgent/lib/jdom.jar:/Users/kristian/dev/TeamCity/buildAgent/lib/joda-time-1.5.2.jar:/Users/kristian/dev/TeamCity/buildAgent/lib/launcher.jar:/Users/kristian/dev/TeamCity/buildAgent/lib/log4j-1.2.12.jar:/Users/kristian/dev/TeamCity/buildAgent/lib/messages.jar:/Users/kristian/dev/TeamCity/buildAgent/lib/openapi.jar:/Users/kristian/dev/TeamCity/buildAgent/lib/patches-impl.jar:/Users/kristian/dev/TeamCity/buildAgent/lib/patches.jar:/Users/kristian/dev/TeamCity/buildAgent/lib/processesTerminator.jar:/Users/kristian/dev/TeamCity/buildAgent/lib/resources_en.jar:/Users/kristian/dev/TeamCity/buildAgent/lib/runtime-util.jar:/Users/kristian/dev/TeamCity/buildAgent/lib/server-logging.jar:/Users/kristian/dev/TeamCity/buildAgent/lib/serviceMessages.jar:/Users/kristian/dev/TeamCity/buildAgent/lib/slf4j-api-1.5.11.jar:/Users/kristian/dev/TeamCity/buildAgent/lib/slf4j-simple-1.5.11.jar:/Users/kristian/dev/TeamCity/buildAgent/lib/spring.jar:/Users/kristian/dev/TeamCity/buildAgent/lib/trove4j.jar:/Users/kristian/dev/TeamCity/buildAgent/lib/util.jar:/Users/kristian/dev/TeamCity/buildAgent/lib/xercesImpl.jar:/Users/kristian/dev/TeamCity/buildAgent/lib/xml-rpc-wrapper.jar:/Users/kristian/dev/TeamCity/buildAgent/lib/xmlrpc-2.0.1.jar:/Users/kristian/dev/TeamCity/buildAgent/lib/xpp3-1.1.4c.jar:/Users/kristian/dev/TeamCity/buildAgent/lib/xstream-1.4-20110423.112604-3.jar jetbrains.buildServer.agent.AgentMain -file ../conf/buildAgent.properties -launcher.version 24400
[2013-05-30 09:44:31,851]   INFO - ldServer.agent.run.AgentRunner - Agent process finished
[2013-05-30 09:44:31,851]   INFO - ldServer.agent.run.AgentRunner - Agent has exited with code: 10
[2013-05-30 09:44:31,852]   INFO - ldServer.agent.run.AgentRunner - Updates directory exists
[2013-05-30 09:44:31,858]   INFO - er.agent.upgrade.UpdateChecker - Update files check succeeded
[2013-05-30 09:44:31,859]  DEBUG - .buildServer.agent.JavaChooser - Current Java runtime version is 1.7
[2013-05-30 09:44:31,859]   INFO - ildServer.agent.run.JavaRunner - Starting new process with command line ('|' arguments separator): /Library/Java/JavaVirtualMachines/jdk1.7.0_21.jdk/Contents/Home/jre/bin/java|-classpath|/Users/kristian/dev/TeamCity/buildAgent/update/launcher/lib/launcher.jar|jetbrains.buildServer.agent.upgrade.Upgrade|SH|/Users/kristian/dev/TeamCity/buildAgent|-ea|-Xmx384m|-Dteamcity_logs=../logs/|-Dlog4j.configuration=file:../conf/teamcity-agent-log4j.xml|jetbrains.buildServer.agent.AgentMain|-file|../conf/buildAgent.properties| in directory: /Users/kristian/dev/TeamCity/buildAgent
[2013-05-30 09:44:31,865]   INFO - ldServer.agent.run.AgentRunner - Launcher is waiting to be killed by upgrade process

0

Please sign in to leave a comment.