1.0.1 infinte upgrade loop

I am getting an infinite loop of the agent trying to upgrade itself with the tomcat install:

Agent/lib/agentInstaller-UI.jar:/home/teamcity/buildAgent/lib/agentInstaller.jar:/home/teamcity/buildAgent/lib/annotations.jar:/home/teamcity/buildAgent/lib/buildServerAgent.jar:/home/teamcity/buildAgent/lib/buildServerCommon.jar:/home/teamcity/buildAgent/lib/buildServerCommonRuntime.jar:/home/teamcity/buildAgent/lib/buildServerMessages.jar:/home/teamcity/buildAgent/lib/buildServerRemoteServerProxy.jar:/home/teamcity/buildAgent/lib/buildServerRuntimeUtil.jar:/home/teamcity/buildAgent/lib/buildServerServerLogging.jar:/home/teamcity/buildAgent/lib/buildServerServerModel.jar:/home/teamcity/buildAgent/lib/buildServerXmlRpcWrapper.jar:/home/teamcity/buildAgent/lib/commons-beanutils-core.jar:/home/teamcity/buildAgent/lib/commons-codec-1.3.jar:/home/teamcity/buildAgent/lib/commons-collections-3.2.jar:/home/teamcity/buildAgent/lib/commons-dbcp-1.2.1.jar:/home/teamcity/buildAgent/lib/commons-httpclient-3.0-rc4.jar:/home/teamcity/buildAgent/lib/commons-logging.jar:/home/teamcity/buildAgent/lib/commons-pool-1.3.jar:/home/teamcity/buildAgent/lib/jdk-searcher.jar:/home/teamcity/buildAgent/lib/jdom.jar:/home/teamcity/buildAgent/lib/jmock-SNAPSHOT.jar:/home/teamcity/buildAgent/lib/junit-3.8.1.jar:/home/teamcity/buildAgent/lib/log4j-1.2.12.jar:/home/teamcity/buildAgent/lib/mail.jar:/home/teamcity/buildAgent/lib/nanocontainer-1.0-RC-1.jar:/home/teamcity/buildAgent/lib/openapi.jar:/home/teamcity/buildAgent/lib/patches-impl.jar:/home/teamcity/buildAgent/lib/patches.jar:/home/teamcity/buildAgent/lib/picocontainer-1.1.jar:/home/teamcity/buildAgent/lib/resources.jar:/home/teamcity/buildAgent/lib/shaj-0.5.jar:/home/teamcity/buildAgent/lib/resources_en.jar:/home/teamcity/buildAgent/lib/testng-5.2-jdk15.jar:/home/teamcity/buildAgent/lib/trove4j.jar:/home/teamcity/buildAgent/lib/utils.jar:/home/teamcity/buildAgent/lib/winpack.jar:/home/teamcity/buildAgent/lib/xmlrpc-2.0.1.jar:/home/teamcity/buildAgent/lib/xpp3_min-1.1.3.4.M.jar:/home/teamcity/buildAgent/lib/xstream-1.1.2.jar jetbrains.buildServer.agent.AgentMain -file ../conf/buildAgent.properties
Runner FakeBuildAgent was not registered
Will upgrade when become idle
Registered 345 on http://localhost:8111/ with name 'Default agent' on IP 10.0.0.213:9090
Exit for upgrade
Build agent shutdown
Updates directory exists
Copy /home/teamcity/buildAgent/lib to /home/teamcity/buildAgent/backup/lib
Copy /home/teamcity/buildAgent/plugins to /home/teamcity/buildAgent/backup/plugins
Removing files from /home/teamcity/buildAgent/lib
Copy /home/teamcity/buildAgent/update/lib to /home/teamcity/buildAgent/lib
Copy /home/teamcity/buildAgent/update/bin to /home/teamcity/buildAgent/bin
Removing files from /home/teamcity/buildAgent/plugins

7 comments
Comment actions Permalink

I have the same issue with 3.1 build 6828. I uninstalled it and reinstalled it using the tomcat distribution. Somehow, it remembered all the web app settings and configuration (not good) and now the agent says it keeps getting an upgrade notification from the server so it stops, upgrades, starts, repeat.

0
Comment actions Permalink

Please try to do the following:

- ensure that directory TeamCity/webapps/ROOT/update/plugins has only the following 15 files (this is content for TeamCity distribution):

ant.jar
antPlugin.zip
coveragePlugin.zip
cvsAgent.zip
dotnetPlugin.zip
duplicatePlugin.zip
idea_dist.jar
inspectionPlugin.zip
iprPlugin.zip
maven.jar
mavenPlugin.zip
rcodedupPlugin.zip
stacktracesPlugin.zip
svnAgent.zip
testNGPlugin.zip


- stop build agent
- remove buildAgent/plugins directory
- start build agent (it should upgrade, but only once)

Hope this helps,
KIR

0
Comment actions Permalink

Hi Kirill,

we have the same problem (with the same TeamCity build number). We checked the list of files -- and we have exactly the same list as you specified.

Any other hints? Can we turn on logging of the upgrade process?
Or can we turn off the upgrade process completely?


--A.

Edited by: Alex Schwartz on Jun 26, 2008 1:26 PM

0
Comment actions Permalink

Please attach ]]>/logs/upgrade.log

What OS do you use? If it is windows, do you use windows service?

Thanks!

0
Comment actions Permalink

I am evaluating TeamCity 3.1.1 (build 6828) and experiencing this same problem as well. I installed from the windows .exe and originally used the Windows Services created steps. To take the Services out of the equation I came back and reinstalled with just the consoles.

So the attached log is from running the Server and Agent from Windows XP Professional Console.

I am using Java 1.5.0_11

I hope this is useful information.

Thanks



Attachment(s):
upgrade.log
0
Comment actions Permalink

Chris,

The agent cannot unpack downloaded archives.
Can you please check the agent computer has enough disk space? Can there be other processes that prevent the agent process form unpacking the files?

Does any of the other log files has any errors corresponding to the time agent tries upgrading and fails?

As to preventing infinite upgrade loop, watch/vote http://jetbrains.net/tracker/issue/TW-2770

--
Best regards,

Yegor Yarko
Project Manager
JetBrains, Inc
http://www.jetbrains.com
"Develop with pleasure!"

0
Comment actions Permalink

The windows machine would seem to have plenty of space at about 5gb. I eventually want to put this on a Unix box so I switched over to my OSX laptop to make progress on my evaluation. It installed cleanly the first time and I've already setup five builds with Maven2 and Perforce as the VCS. It took a bit of tinkering to get things setup the way I want, but I have to give props to TeamCity as the best when it comes to clean and easy integration with Perforce.

Thank You

0

Please sign in to leave a comment.