Note that there are some explanatory texts on larger screens.

plurals
  1. POXmlRpcException during TeamCity build agent registration
    primarykey
    data
    text
    <p>I have installed the TeamCity build agent on my machine a few different ways- using Java Web Start and the manual .zip distribution. Both result in viable installations, as I have once or twice been able to connect and register properly with the TeamCity server. However, upon restarting (<code>&lt;install_location&gt;/bin/agent.sh stop</code>...<code>&lt;install_location&gt;/bin/agent.sh start</code>) I get the following error in teamcity-agent.log (with extra debugging turned on in the log4j config file). </p> <pre> [2013-04-03 09:05:09,870] DEBUG - jetbrains.buildServer.XMLRPC - faultStringjava.lang.RuntimeException: org.jdom.input.JDOMParseException: Error on line 28: XML document structures must start and end within the same entity.faultCode0 [2013-04-03 09:05:09,878] DEBUG - buildServer.AGENT.registration - jetbrains.buildServer.xmlrpc.RemoteCallException: Call http://teamcityserver:8080/RPC2 buildServer.registerAgent3: org.apache.xmlrpc.XmlRpcException: java.lang.RuntimeException: org.jdom.input.JDOMParseException: Error on line 28: XML document structures must start and end within the same entity. jetbrains.buildServer.xmlrpc.RemoteCallException: Call http://teamcityserver:8080/RPC2 buildServer.registerAgent3: org.apache.xmlrpc.XmlRpcException: java.lang.RuntimeException: org.jdom.input.JDOMParseException: Error on line 28: XML document structures must start and end within the same entity. at jetbrains.buildServer.xmlrpc.AbstractXmlRpcTarget.call(AbstractXmlRpcTarget.java:94) at jetbrains.buildServer.agent.impl.ServerXmlRpcProxy.registerAgent3(ServerXmlRpcProxy.java:62) at jetbrains.buildServer.agent.impl.BuildAgentImpl.doRegisterOnBuildServer(BuildAgentImpl.java:776) at jetbrains.buildServer.agent.impl.BuildAgentImpl.registerOnBuildServer(BuildAgentImpl.java:748) at jetbrains.buildServer.agent.impl.ServerMonitor.run(ServerMonitor.java:71) Caused by: org.apache.xmlrpc.XmlRpcException: java.lang.RuntimeException: org.jdom.input.JDOMParseException: Error on line 28: XML document structures must start and end within the same entity. at org.apache.xmlrpc.XmlRpcClientResponseProcessor.decodeException(XmlRpcClientResponseProcessor.java:104) at org.apache.xmlrpc.XmlRpcClientResponseProcessor.decodeResponse(XmlRpcClientResponseProcessor.java:71) at org.apache.xmlrpc.XmlRpcClientWorker.execute(XmlRpcClientWorker.java:73) at org.apache.xmlrpc.TCXmlRpcClient$1.execute(TCXmlRpcClient.java:89) at org.apache.xmlrpc.XmlRpcClient.execute(XmlRpcClient.java:194) at org.apache.xmlrpc.XmlRpcClient.execute(XmlRpcClient.java:185) at org.apache.xmlrpc.XmlRpcClient.execute(XmlRpcClient.java:178) at jetbrains.buildServer.xmlrpc.impl.CommonsXmlRpcTargetImpl$1.execute(CommonsXmlRpcTargetImpl.java:72) at jetbrains.buildServer.xmlrpc.AbstractXmlRpcTarget.call(AbstractXmlRpcTarget.java:84) ... 4 more [2013-04-03 09:05:09,878] WARN - buildServer.AGENT.registration - Call http://teamcityserver:8080/RPC2 buildServer.registerAgent3: org.apache.xmlrpc.XmlRpcException: java.lang.RuntimeException: org.jdom.input.JDOMParseException: Error on line 28: XML document structures must start and end within the same entity. [2013-04-03 09:05:09,878] WARN - buildServer.AGENT.registration - Connection to TeamCity server is probably lost. Will be trying to restore it. Take a look at logs/teamcity-agent.log for details (unless you're using custom logging). </pre> <p>This is the xml in question according to the logs with extra xmlrpc debugging:</p> <pre><code>&lt;?xml version="1.0"?&gt;&lt;methodCall&gt;&lt;methodName&gt;buildServer.registerAgent3&lt;/methodName&gt;&lt;params&gt;&lt;param&gt;&lt;value&gt;&lt;![CDATA[&lt;?xml version="1.0" encoding="UTF-8"?&gt; &lt;agentDetails agentName="aaronhbox_0" agentPort="9090" authToken="" osName="Linux, version 3.5.0-17-generic"&gt; &lt;alternativeAddresses&gt; &lt;address&gt;10.2.1.232&lt;/address&gt; &lt;address&gt;192.168.225.1&lt;/address&gt; &lt;address&gt;192.168.80.1&lt;/address&gt; &lt;/alternativeAddresses&gt; &lt;availableRunners&gt; &lt;runner runType="Ant" /&gt; &lt;runner runType="Duplicator" /&gt; &lt;runner runType="gradle-runner" /&gt; &lt;runner runType="Inspection" /&gt; &lt;runner runType="Ipr" /&gt; &lt;runner runType="JPS" /&gt; &lt;runner runType="Maven2" /&gt; &lt;runner runType="rake-runner" /&gt; &lt;runner runType="simpleRunner" /&gt; &lt;/availableRunners&gt; &lt;availableVcs&gt; &lt;vcs name="perforce" /&gt; &lt;vcs name="mercurial" /&gt; &lt;vcs name="jetbrains.git" /&gt; &lt;vcs name="svn" /&gt; &lt;vcs name="cvs" /&gt; &lt;/availableVcs&gt; &lt;buildParameters&gt; &lt;param name="env.COLORTERM" value="gnome-terminal" /&gt; &lt;param name="env.COMP_WORDBREAKS"&gt;&lt;![CDATA["'&gt;&lt;;|]]&gt;&lt;/value&gt;&lt;/param&gt;&lt;/params&gt;&lt;/methodCall&gt; </code></pre> <p>Only once have I been able to restart the agent and have it connect again properly. Generally, I can install it, have it run once, then restarting it gives this error. Any ideas?</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload