Build Agent IP changed

I can't understand...

After installing TeamCity there was 1 build agent (local). It have local IP, like 192.168.0.4.That was corretly writen in build agent properties. But today it have IP '10.104.3.40', according to propeties. Why??

I found message in logs 'Agent Sevilia is unauthorized with comment: Agent host changed, was: 192.168.0.16, now: 10.104.3.40'

I don't know why it is changed. May be it is becouse our local network is connected to Internet through ADSL with dynamic IP?

But problem is that I can't change IP in build agent properties in server to correct one, and build agent now always is 'disconnected'

How can I change it?

Thanks.

4 comments

You don't need to change the IP. The only thing you need to do is authorizing the build agent (in Agent tab, then Unauthorized agents sub tab).

0

Nope. I authorize it, but it is in 'disconnected' state neverless.

'Ping failed' it said. Of course failed - it pings wrong IP...

0

Yesterday I've changed 'agent name', 'ownport' and 'onwaddress' in conf\buildagent.properties, it did nothing, even after restart all services, but today agent name and IP changed to new settings and it is avalible again.

I am still not sure what to do to prevent such behavior in future...

0

Sergey,

Seems, your agent machine can change its IP (or it has several interfaces).

There are two issues with that:
- when agent changes its IP it will be considered another agent and will be automatically unauthorized on the server. This behaviour is addressed in the current sources, and the fix will be available only in the next TeamCity version. The next EAP release will already have the fix.

- the agent may become disconnected from the server. You can get additional details on that in the server log. To prevent that, you should specify "ownAddress" property in the buildAgent.properties file and set it to the host name that is network-accessible form the server.

Generally speaking, it's good to ensure agent machine does not change it's IP address.

--
Best regards,

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

0

Please sign in to leave a comment.