[1492] Dynamic IP on build agent

Hello, I have the TeamCity beta installed on a server connected to
internet using an ADSL connection that resets itself (changing its IP) in
intervals of twelve hours.

The default agent registers itself with the build server using the public
facing IP address, and when that changes, the server can't reconnect with
the agent, and shows this (filtered) messages:

java.lang.RuntimeException: Agent Default agent already exists since
8/1/06 3:40 PM
at
jetbrains.buildServer.serverSide.impl.BuildServerImpl.registerAgent(BuildServerImpl.java:191)
...
INFO - erverSide.impl.BuildServerImpl - Agent Default
agent has been unregistered. Id: 47
INFO - erverSide.impl.BuildServerImpl - Running build
saved to DB: 40 Acceptance
INFO - de.impl.XmlRpcClientBasedAgent -
Agent.getVersion() returned non-string value: Target:
http://201.217.173.111:9090
jetbrains.buildServer.xmlrpc.RemoteCallException: Call
http://201.217.173.111:9090/RPC2 buildAgent.getVersion:
java.net.NoRouteToHostException: No route to host: connect

At that time I need to restart the server.

I suppose tgus is a bug, but as a workaround, I would like to know if
there's a way to configure the default agent to use localhost as it's IP,
as to don't have this problems..

Regards,
Pablo
--

--

Forget about the question of just who wears the trousers in your
household.
-- More things to do as preparation for life as a mermaid.

Pablo Montilla
www.odyssey.com.uy


2 comments
Comment actions Permalink

Pablo Montilla wrote:

Hello, I have the TeamCity beta installed on a server connected to
internet using an ADSL connection that resets itself (changing its IP)
in intervals of twelve hours.

The default agent registers itself with the build server using the
public facing IP address, and when that changes, the server can't
reconnect with the agent, and shows this (filtered) messages:

java.lang.RuntimeException: Agent Default agent already exists since
8/1/06 3:40 PM
at
jetbrains.buildServer.serverSide.impl.BuildServerImpl.registerAgent(BuildServerImpl.java:191)

...
INFO - erverSide.impl.BuildServerImpl - Agent Default
agent has been unregistered. Id: 47
INFO - erverSide.impl.BuildServerImpl - Running build
saved to DB: 40 Acceptance
INFO - de.impl.XmlRpcClientBasedAgent -
Agent.getVersion() returned non-string value: Target:
http://201.217.173.111:9090
jetbrains.buildServer.xmlrpc.RemoteCallException: Call
http://201.217.173.111:9090/RPC2 buildAgent.getVersion:
java.net.NoRouteToHostException: No route to host: connect

At that time I need to restart the server.

I suppose tgus is a bug, but as a workaround, I would like to know if
there's a way to configure the default agent to use localhost as it's
IP, as to don't have this problems..


In buildAgent/bin/buildAgent.properties file, you may specify:

ownAddress=127.0.0.1

Hope, this helps,

Kind regards,
KIR

--
Kirill Maximov
Software Developer
JetBrains, Inc.
http://www.jetbrains.com
"Develop with pleasure!"

0
Comment actions Permalink

On Wed, 02 Aug 2006 05:43:33 -0300, Kirill Maximov (JetBrains)
<Kirill.Maximov@jetbrains.com> wrote:

ownAddress=127.0.0.1

Thanks!

Pablo

--

Will hack unix for food.

Pablo Montilla
www.odyssey.com.uy

0

Please sign in to leave a comment.