Failed to start build agent on Fedora 15
Hi,
We are trying to run a build agent on our Fedora 15 linux box, but the build agent kept crashing during initialization.
We had installed the latest java runtime from http://www.java.com/en/download/linux_manual.jsp, and the following was our log:
1 [2011-09-06 03:37:18,307] INFO - jetbrains.buildServer.SERVER - Starting TeamCity agent
2 [2011-09-06 03:37:18,313] INFO - s.buildServer.agent.AgentMain2 - Agent home is /mnt/buildAgent
3 [2011-09-06 03:37:18,353] INFO - buildServer.agent.AgentMain2$1 - Refreshing jetbrains.buildServer.agent.AgentMain2$1@e32802: display name [jetbrains.buildServer.agent.AgentMain2$1@e32802]; startup date [Tue Sep 06 03:37:18 CST 2011]; root of context hierarchy
4 [2011-09-06 03:37:18,764] INFO - buildServer.agent.AgentMain2$1 - Bean factory for application context [jetbrains.buildServer.agent.AgentMain2$1@e32802]: org.springframework.beans.factory.support.DefaultListableBeanFactory@ed662d
5 [2011-09-06 03:37:19,162] INFO - jetbrains.buildServer.AGENT - Calculating plugins signature for possible upgrade
6 [2011-09-06 03:37:19,163] INFO - jetbrains.buildServer.AGENT - Build Agent version: 15772, plugins signature: 0
7 [2011-09-06 03:37:19,297] WARN - jetbrains.buildServer.AGENT - Calculating CPU benchmark index...
8 [2011-09-06 03:37:25,459] WARN - jetbrains.buildServer.AGENT - CPU benchmark index is set to 522
9 [2011-09-06 03:37:25,548] INFO - rver.plugins.PluginManagerImpl - ===========================================================
10 [2011-09-06 03:37:25,548] INFO - rver.plugins.PluginManagerImpl - Scanning plugin folder: /mnt/buildAgent/plugins
11 [2011-09-06 03:37:25,550] INFO - rver.plugins.PluginsCollection - Found plugin amazonEC2
12 [2011-09-06 03:37:25,551] INFO - rver.plugins.PluginManagerImpl - Found 1 plugins: [amazonEC2]
13 [2011-09-06 03:37:25,551] INFO - rver.plugins.PluginManagerImpl - Start intializing plugins...
14 [2011-09-06 03:37:25,551] INFO - rver.plugins.PluginsCollection - No plugins were loaded with standalone classloaders
15 [2011-09-06 03:37:25,551] INFO - rver.plugins.PluginsCollection - Load shared classloader for 1 plugins [amazonEC2]
16 [2011-09-06 03:37:25,620] INFO - rver.plugins.PluginManagerImpl - Loaded 1 plugins: [amazonEC2]
17 [2011-09-06 03:37:25,620] INFO - rver.plugins.PluginManagerImpl - ===========================================================
18 [2011-09-06 03:37:28,677] INFO - t.AmazonInstanceMetadataReader - Amazon is not available. Amazon EC2 integration is not active: Failed to connect to http://169.254.169.254/2009-04-04. Read timed outRead timed out
19 [2011-09-06 03:37:28,678] INFO - .amazon.agent.AmazonProperties - Fetched AmazonEC2 instance metadata:
20 [2011-09-06 03:37:28,681] INFO - zon.agent.AmazonMetadataChecks - Amazon EC instance metadata contains no keys
21 [2011-09-06 03:37:28,681] WARN - .amazon.agent.AmazonProperties - Fetched Amazon EC2 instance metadata does not contains required values. Probably this agent was not started inside Amazon EC2. Is proxy server used?
22 [2011-09-06 03:37:28,687] INFO - jetbrains.buildServer.AGENT - Start build agent
23 [2011-09-06 03:37:28,711] ERROR - s.buildServer.agent.AgentMain2 - Failed to start build agent
24 java.lang.RuntimeException: SD3VLINUX: SD3VLINUX
25 at org.apache.xmlrpc.WebServer2.start(WebServer2.java:166)
26 at org.apache.xmlrpc.WebServer2.createStartedServer(WebServer2.java:81)
27 at jetbrains.buildServer.agent.impl.BuildAgentImpl.startAgentWebServer(BuildAgentImpl.java:670)
28 at jetbrains.buildServer.agent.impl.BuildAgentImpl.start(BuildAgentImpl.java:388)
29 at jetbrains.buildServer.agent.AgentMain2.startAgent(AgentMain2.java:110)
30 at jetbrains.buildServer.agent.AgentMain2.main(AgentMain2.java:27)
31 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
32 at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
33 at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
34 at java.lang.reflect.Method.invoke(Unknown Source)
35 at jetbrains.buildServer.agent.AgentMain.main(AgentMain.java:41)
36 [2011-09-06 03:39:09,381] INFO - jetbrains.buildServer.SERVER - Starting TeamCity agent
37 [2011-09-06 03:39:09,386] INFO - s.buildServer.agent.AgentMain2 - Agent home is /mnt/buildAgent
38 [2011-09-06 03:39:09,416] INFO - buildServer.agent.AgentMain2$1 - Refreshing jetbrains.buildServer.agent.AgentMain2$1@141b571: display name [jetbrains.buildServer.agent.AgentMain2$1@141b571]; startup date [Tue Sep 06 03:39:09 CST 2011]; root of context hierarchy
39 [2011-09-06 03:39:09,828] INFO - buildServer.agent.AgentMain2$1 - Bean factory for application context [jetbrains.buildServer.agent.AgentMain2$1@141b571]: org.springframework.beans.factory.support.DefaultListableBeanFactory@1bde4
Any help is appreciated. Thanks!
Please sign in to leave a comment.
could you please post full teamcity-afent.log and upgrade.log please.
We couldn't find upgrade.log in the logs directory. Maybe it's because we didn't upgrade our build agent?
I attached the teamcity-agent.log and error.log instead. Curiously, there is a "UnknownHostException" shown up in error.log, but I still don't know how to solve it.
Thanks!
Attachment(s):
error.log.zip
teamcity-agent.log.zip
James,
TeamCity build agent tries to resolve it's host name by calling java.net.InetAddress.getLocalHost. The call is failed. Most likely this means that you have slightly misconfigured OS.
There was a fix for the issue. Please consider updating to the latest TeamCity 6.5.x or fix network configuration issue.
Hi Eugene,
Thanks for your tip. I found our /etc/hosts was indeed misconfigured.
The build agent works fine now : )