[5275] cannot start default agent

When I run TC, the server is attempting to connect/upgrade the default agent
(bundled in the distribution) but it is unsuccessful.

The error I get is : ERROR - rocesses.ProcessTreeTerminator - Cannot load native JNIWrapper library (libjniwrap.so)

Other agents connected to the server are updated correctly.

What gives?

Bonny

PS: Here's a capture of output.log in the buildAgent area:

Fri Oct 12 11:45:36 EST 2007 ==> Start launch
Add plugin to classpath /home/teamcity/tc5725/buildAgent/plugins/dotnetPlugin/lib
Add plugin to classpath /home/teamcity/tc5725/buildAgent/plugins/duplicatePlugin/lib
Add plugin to classpath /home/teamcity/tc5725/buildAgent/plugins/idea/lib
/usr/java/jdk1.5.0_11/jre/bin/java -ea -Xmx384m -Dteamcity_logs=../logs/ -Dlog4j.configuration=file:../conf/teamcity-agent-log4j.xml -classpath /home/teamcity/tc5725/buildAgent/lib/agentInstaller-UI.jar:/home/teamcity/tc5725/buildAgent/lib/agentInstaller.jar:/home/teamcity/tc5725/buildAgent/lib/annotations.jar:/home/teamcity/tc5725/buildAgent/lib/buildServerAgent.jar:/home/teamcity/tc5725/buildAgent/lib/buildServerCommon.jar:/home/teamcity/tc5725/buildAgent/lib/buildServerCommonRuntime.jar:/home/teamcity/tc5725/buildAgent/lib/buildServerMessages.jar:/home/teamcity/tc5725/buildAgent/lib/buildServerRemoteServerProxy.jar:/home/teamcity/tc5725/buildAgent/lib/buildServerRuntimeUtil.jar:/home/teamcity/tc5725/buildAgent/lib/buildServerServerLogging.jar:/home/teamcity/tc5725/buildAgent/lib/buildServerServerModel.jar:/home/teamcity/tc5725/buildAgent/lib/buildServerXmlRpcWrapper.jar:/home/teamcity/tc5725/buildAgent/lib/commons-beanutils-core.jar:/home/teamcity/tc5725/buildAgent/lib/commons-codec-1.3.jar:/home/teamcity/tc5725/buildAgent/lib/commons-httpclient-3.0.1.jar:/home/teamcity/tc5725/buildAgent/lib/commons-logging.jar:/home/teamcity/tc5725/buildAgent/lib/extensions.jar:/home/teamcity/tc5725/buildAgent/lib/idea-settings.jar:/home/teamcity/tc5725/buildAgent/lib/ivy-1.4.1.jar:/home/teamcity/tc5725/buildAgent/lib/jakarta-oro-2.0.8.jar:/home/teamcity/tc5725/buildAgent/lib/jdk-searcher.jar:/home/teamcity/tc5725/buildAgent/lib/jdom.jar:/home/teamcity/tc5725/buildAgent/lib/jniwrap-3.6.1.jar:/home/teamcity/tc5725/buildAgent/lib/junit-4.1.jar:/home/teamcity/tc5725/buildAgent/lib/log4j-1.2.12.jar:/home/teamcity/tc5725/buildAgent/lib/nanocontainer-1.0-RC-1.jar:/home/teamcity/tc5725/buildAgent/lib/openapi.jar:/home/teamcity/tc5725/buildAgent/lib/patches-impl.jar:/home/teamcity/tc5725/buildAgent/lib/patches.jar:/home/teamcity/tc5725/buildAgent/lib/picocontainer-1.2.jar:/home/teamcity/tc5725/buildAgent/lib/trove4j.jar:/home/teamcity/tc5725/buildAgent/lib/utils.jar:/home/teamcity/tc5725/buildAgent/lib/winpack.jar:/home/teamcity/tc5725/buildAgent/lib/xmlrpc-2.0.1.jar:/home/teamcity/tc5725/buildAgent/lib/xpp3_min-1.1.3.4.M.jar:/home/teamcity/tc5725/buildAgent/lib/xstream-1.2.1.jar:/home/teamcity/tc5725/buildAgent/lib/latest/launcher.jar:/home/teamcity/tc5725/buildAgent/plugins/dotnetPlugin/lib/DotNetCommon.jar:/home/teamcity/tc5725/buildAgent/plugins/dotnetPlugin/lib/dotNet-searcher.jar:/home/teamcity/tc5725/buildAgent/plugins/dotnetPlugin/lib/dotNetCommonRuntime.jar:/home/teamcity/tc5725/buildAgent/plugins/dotnetPlugin/lib/msBuildRunner.jar:/home/teamcity/tc5725/buildAgent/plugins/dotnetPlugin/lib/nantRunner.jar:/home/teamcity/tc5725/buildAgent/plugins/dotnetPlugin/lib/solution2003Runner.jar:/home/teamcity/tc5725/buildAgent/plugins/dotnetPlugin/lib/solution2005Runner.jar:/home/teamcity/tc5725/buildAgent/plugins/duplicatePlugin/lib/buildServerDuplicateRunner.jar:/home/teamcity/tc5725/buildAgent/plugins/duplicatePlugin/lib/buildServerDuplicateServer.jar:/home/teamcity/tc5725/buildAgent/plugins/idea/lib/alloy.jar:/home/teamcity/tc5725/buildAgent/plugins/idea/lib/annotations.jar:/home/teamcity/tc5725/buildAgent/plugins/idea/lib/asm-commons.jar:/home/teamcity/tc5725/buildAgent/plugins/idea/lib/asm.jar:/home/teamcity/tc5725/buildAgent/plugins/idea/lib/boot.jar:/home/teamcity/tc5725/buildAgent/plugins/idea/lib/bootstrap.jar:/home/teamcity/tc5725/buildAgent/plugins/idea/lib/cglib-nodep-2.1_3.jar:/home/teamcity/tc5725/buildAgent/plugins/idea/lib/commons-codec-1.3.jar:/home/teamcity/tc5725/buildAgent/plugins/idea/lib/commons-collections.jar:/home/teamcity/tc5725/buildAgent/plugins/idea/lib/emma-agent.jar:/home/teamcity/tc5725/buildAgent/plugins/idea/lib/emma.jar:/home/teamcity/tc5725/buildAgent/plugins/idea/lib/extensions.jar:/home/teamcity/tc5725/buildAgent/plugins/idea/lib/forms_rt.jar:/home/teamcity/tc5725/buildAgent/plugins/idea/lib/icons.jar:/home/teamcity/tc5725/buildAgent/plugins/idea/lib/idea.jar:/home/teamcity/tc5725/buildAgent/plugins/idea/lib/idea_rt.jar:/home/teamcity/tc5725/buildAgent/plugins/idea/lib/j2ee.jar:/home/teamcity/tc5725/buildAgent/plugins/idea/lib/jasper2_rt.jar:/home/teamcity/tc5725/buildAgent/plugins/idea/lib/javac2.jar:/home/teamcity/tc5725/buildAgent/plugins/idea/lib/javaee.jar:/home/teamcity/tc5725/buildAgent/plugins/idea/lib/jaxen.jar:/home/teamcity/tc5725/buildAgent/plugins/idea/lib/jdom.jar:/home/teamcity/tc5725/buildAgent/plugins/idea/lib/jgoodies-forms.jar:/home/teamcity/tc5725/buildAgent/plugins/idea/lib/jna-utils.jar:/home/teamcity/tc5725/buildAgent/plugins/idea/lib/jna.jar:/home/teamcity/tc5725/buildAgent/plugins/idea/lib/jsf-api.jar:/home/teamcity/tc5725/buildAgent/plugins/idea/lib/jsp-api.jar:/home/teamcity/tc5725/buildAgent/plugins/idea/lib/junit-4.4.jar:/home/teamcity/tc5725/buildAgent/plugins/idea/lib/junit.jar:/home/teamcity/tc5725/buildAgent/plugins/idea/lib/log4j.jar:/home/teamcity/tc5725/buildAgent/plugins/idea/lib/microba.jar:/home/teamcity/tc5725/buildAgent/plugins/idea/lib/nanoxml-2.2.3.jar:/home/teamcity/tc5725/buildAgent/plugins/idea/lib/openapi.jar:/home/teamcity/tc5725/buildAgent/plugins/idea/lib/oromatcher.jar:/home/teamcity/tc5725/buildAgent/plugins/idea/lib/picocontainer.jar:/home/teamcity/tc5725/buildAgent/plugins/idea/lib/resolver.jar:/home/teamcity/tc5725/buildAgent/plugins/idea/lib/resources.jar:/home/teamcity/tc5725/buildAgent/plugins/idea/lib/resources_en.jar:/home/teamcity/tc5725/buildAgent/plugins/idea/lib/saxpath.jar:/home/teamcity/tc5725/buildAgent/plugins/idea/lib/servlet-api.jar:/home/teamcity/tc5725/buildAgent/plugins/idea/lib/trove4j.jar:/home/teamcity/tc5725/buildAgent/plugins/idea/lib/trove4j_src.jar:/home/teamcity/tc5725/buildAgent/plugins/idea/lib/velocity.jar:/home/teamcity/tc5725/buildAgent/plugins/idea/lib/xerces.jar:/home/teamcity/tc5725/buildAgent/plugins/idea/lib/xml-apis.jar:/home/teamcity/tc5725/buildAgent/plugins/idea/lib/xmlrpc-2.0.jar:/home/teamcity/tc5725/buildAgent/plugins/idea/lib/xpp3-1.1.3.4d_b4_min.jar:/home/teamcity/tc5725/buildAgent/plugins/idea/lib/xstream.jar jetbrains.buildServer.agent.AgentMain -file ../conf/buildAgent.properties
Log4J configuraiton file /home/teamcity/tc5725/buildAgent/bin/../conf/teamcity-agent-log4j.xml will be monitored with interval 10 seconds.
Too short run time, most likely there is some installation problem: 3.819 sec.
Launcher failed, exiting
Launcher has died

Message was edited by:
Bonny Rais

5 comments

Hello Bonny,

What OS, platform is it?
Could you please send up build agent logs (from ]]>/logs )

Thanks!

--
Eugene Petrenko
JetBrains, Inc
http://www.jetbrains.com
"Develop with pleasure!"

When I run TC, the server is attempting to connect/upgrade the default
agent (bundled in the distribution) but it is unsuccessful.

The error I get is : ERROR - rocesses.ProcessTreeTerminator - Cannot
load native JNIWrapper library (libjniwrap.so)

Other agents connected to the server are updated correctly.

What gives?

Bonny



0

well, TC is running on RHEL3; the contents of the previous message is the contents of the output.log file. There is NOTHING in the teamcity-agent.log.
The error.log file contents are below. I've tried to run the same agent (i.e. copied
the files over to the /tmp directory) and that seems to work fine, with the same
configuration.


Cheers,

Bonny

Exception in thread "main" java.lang.NoClassDefFoundError: [Ljetbrains/buildServer/agent/ant/AntTaskExtension;
at java.lang.Class.getDeclaredConstructors0(Native Method)
at java.lang.Class.privateGetDeclaredConstructors(Class.java:2357)
at java.lang.Class.getDeclaredConstructors(Class.java:1808)
at org.picocontainer.defaults.ConstructorInjectionComponentAdapter$3.run(ConstructorInjectionComponentAdapter.java:286)
at java.security.AccessController.doPrivileged(Native Method)
at org.picocontainer.defaults.ConstructorInjectionComponentAdapter.getConstructors(ConstructorInjectionComponentAdapter.java:284)
at org.picocontainer.defaults.ConstructorInjectionComponentAdapter.getSortedMatchingConstructors(ConstructorInjectionComponentAdapter.java:264)
at org.picocontainer.defaults.ConstructorInjectionComponentAdapter.getGreediestSatisfiableConstructor(ConstructorInjectionComponentAdapter.java:148)
at org.picocontainer.defaults.ConstructorInjectionComponentAdapter$1.run(ConstructorInjectionComponentAdapter.java:210)
at org.picocontainer.defaults.ThreadLocalCyclicDependencyGuard.observe(ThreadLocalCyclicDependencyGuard.java:53)
at org.picocontainer.defaults.ConstructorInjectionComponentAdapter.getComponentInstance(ConstructorInjectionComponentAdapter.java:248)
at org.picocontainer.defaults.DecoratingComponentAdapter.getComponentInstance(DecoratingComponentAdapter.java:60)
at org.picocontainer.defaults.CachingComponentAdapter.getComponentInstance(CachingComponentAdapter.java:58)
at org.picocontainer.defaults.DefaultPicoContainer.getInstance(DefaultPicoContainer.java:395)
at org.picocontainer.defaults.DefaultPicoContainer.getComponentInstance(DefaultPicoContainer.java:375)
at org.picocontainer.defaults.CollectionComponentParameter.getArrayInstance(CollectionComponentParameter.java:268)
at org.picocontainer.defaults.CollectionComponentParameter.resolveInstance(CollectionComponentParameter.java:127)
at org.picocontainer.defaults.ComponentParameter.resolveInstance(ComponentParameter.java:116)
at org.picocontainer.defaults.ConstructorInjectionComponentAdapter.getConstructorArguments(ConstructorInjectionComponentAdapter.java:257)
at org.picocontainer.defaults.ConstructorInjectionComponentAdapter$1.run(ConstructorInjectionComponentAdapter.java:217)
at org.picocontainer.defaults.ThreadLocalCyclicDependencyGuard.observe(ThreadLocalCyclicDependencyGuard.java:53)
at org.picocontainer.defaults.ConstructorInjectionComponentAdapter.getComponentInstance(ConstructorInjectionComponentAdapter.java:248)
at org.picocontainer.defaults.DecoratingComponentAdapter.getComponentInstance(DecoratingComponentAdapter.java:60)
at org.picocontainer.defaults.CachingComponentAdapter.getComponentInstance(CachingComponentAdapter.java:58)
at org.picocontainer.defaults.DefaultPicoContainer.getInstance(DefaultPicoContainer.java:395)
at org.picocontainer.defaults.DefaultPicoContainer.getComponentInstanceOfType(DefaultPicoContainer.java:383)
at jetbrains.buildServer.agent.AgentMain.main(AgentMain.java:13)

0

Hello Bonny,

It seems agent upgrade has failed. Could you please stop build agent, remove
backup/plugins folders and than start
it again. Build agent should download itself from the server.
BTW. What folders were in the agent directory?

--
Eugene Petrenko
JetBrains, Inc
http://www.jetbrains.com
"Develop with pleasure!"

well, TC is running on RHEL3; the contents of the previous message is
the contents of the output.log file. There is NOTHING in the
teamcity-agent.log.

The error.log file contents are below. I've tried to run the same
agent (i.e. copied

the files over to the /tmp directory) and that seems to work fine,
with the same

configuration.

Cheers,

Bonny

Exception in thread "main" java.lang.NoClassDefFoundError:
[Ljetbrains/buildServer/agent/ant/AntTaskExtension;
at java.lang.Class.getDeclaredConstructors0(Native Method)
at
java.lang.Class.privateGetDeclaredConstructors(Class.java:2357)
at java.lang.Class.getDeclaredConstructors(Class.java:1808)
at
org.picocontainer.defaults.ConstructorInjectionComponentAdapter$3.run(
ConstructorInjectionComponentAdapter.java:286)
at java.security.AccessController.doPrivileged(Native Method)
at
org.picocontainer.defaults.ConstructorInjectionComponentAdapter.getCon
structors(ConstructorInjectionComponentAdapter.java:284)
at
org.picocontainer.defaults.ConstructorInjectionComponentAdapter.getSor
tedMatchingConstructors(ConstructorInjectionComponentAdapter.java:264)
at
org.picocontainer.defaults.ConstructorInjectionComponentAdapter.getGre
ediestSatisfiableConstructor(ConstructorInjectionComponentAdapter.java
:148)
at
org.picocontainer.defaults.ConstructorInjectionComponentAdapter$1.run(
ConstructorInjectionComponentAdapter.java:210)
at
org.picocontainer.defaults.ThreadLocalCyclicDependencyGuard.observe(Th
readLocalCyclicDependencyGuard.java:53)
at
org.picocontainer.defaults.ConstructorInjectionComponentAdapter.getCom
ponentInstance(ConstructorInjectionComponentAdapter.java:248)
at
org.picocontainer.defaults.DecoratingComponentAdapter.getComponentInst
ance(DecoratingComponentAdapter.java:60)
at
org.picocontainer.defaults.CachingComponentAdapter.getComponentInstanc
e(CachingComponentAdapter.java:58)
at
org.picocontainer.defaults.DefaultPicoContainer.getInstance(DefaultPic
oContainer.java:395)
at
org.picocontainer.defaults.DefaultPicoContainer.getComponentInstance(D
efaultPicoContainer.java:375)
at
org.picocontainer.defaults.CollectionComponentParameter.getArrayInstan
ce(CollectionComponentParameter.java:268)
at
org.picocontainer.defaults.CollectionComponentParameter.resolveInstanc
e(CollectionComponentParameter.java:127)
at
org.picocontainer.defaults.ComponentParameter.resolveInstance(Componen
tParameter.java:116)
at
org.picocontainer.defaults.ConstructorInjectionComponentAdapter.getCon
structorArguments(ConstructorInjectionComponentAdapter.java:257)
at
org.picocontainer.defaults.ConstructorInjectionComponentAdapter$1.run(
ConstructorInjectionComponentAdapter.java:217)
at
org.picocontainer.defaults.ThreadLocalCyclicDependencyGuard.observe(Th
readLocalCyclicDependencyGuard.java:53)
at
org.picocontainer.defaults.ConstructorInjectionComponentAdapter.getCom
ponentInstance(ConstructorInjectionComponentAdapter.java:248)
at
org.picocontainer.defaults.DecoratingComponentAdapter.getComponentInst
ance(DecoratingComponentAdapter.java:60)
at
org.picocontainer.defaults.CachingComponentAdapter.getComponentInstanc
e(CachingComponentAdapter.java:58)
at
org.picocontainer.defaults.DefaultPicoContainer.getInstance(DefaultPic
oContainer.java:395)
at
org.picocontainer.defaults.DefaultPicoContainer.getComponentInstanceOf
Type(DefaultPicoContainer.java:383)
at
jetbrains.buildServer.agent.AgentMain.main(AgentMain.java:13)



0

Eugene,

THis is my bad - I had not realised the agent was running out of disk space as a
result of the update (it was installed into a device with little room left).

I know this is not a common occurence, but maybe you should log it better to aid
trouble shooting (if possible)?

Cheers,

Bonny

0

Hello Bonny,

Thank you. I've filed the Jira issue to the problem.
http://www.jetbrains.net/jira/browse/TW-3609

--
Eugene Petrenko
JetBrains, Inc
http://www.jetbrains.com
"Develop with pleasure!"

Eugene,

THis is my bad - I had not realised the agent was running out of disk
space as a result of the update (it was installed into a device with
little room left).

I know this is not a common occurence, but maybe you should log it
better to aid trouble shooting (if possible)?

Cheers,

Bonny



0

Please sign in to leave a comment.