Your browser was unable to load all of the resources. They may have been blocked by your firewall, proxy or browser configuration.
Press Ctrl+F5 or Ctrl+Shift+R to have your browser try again.

How to manually define hostnames for agents ? #3888

rpallares ·

Hello,

On the 7.0.29 Quickbuild version, we regurlary have an NoRouteToHostException exception at the end of long running processes:

com.pmease.quickbuild.grid.GridJob - Error connecting task node 'LOCALMACHINE:8811', will cancel running job...
com.caucho.hessian.client.HessianRuntimeException: java.net.NoRouteToHostException: No route to host: connect

That exception is probably caused by a misconfiguration of our local network and a proxy problem.

To resolve this issue we want to manually define our Windows Build Agents host names from 'LOCALMACHINE:8811' to 'LOCALMACHINE.local.domain:8811' and have a native proxy bypass.
We noticed that as Build agents are named correctly for Linux and Mac platforms.

We tried to:

  • add the ip property to the file <BUILDAGENT>\conf\node.properties file. But that not change the host name, only the IP and we don't think that it will resolve our issue
  • Add the wrapper.java.additional.3=-DHOSTNAME="%COMPUTERNAME%.%USERDNSDOMAIN%" property in <BUILDAGENT>\conf\wrapper.conf
  • Add the set.WRAPPER_HOSTNAME="%COMPUTERNAME%.%USERDNSDOMAIN%" property in <BUILDAGENT>\conf\wrapper.conf
  • Add the set.WRAPPER_HOST_NAME="%COMPUTERNAME%.%USERDNSDOMAIN%" property in <BUILDAGENT>\conf\wrapper.conf
  • Add the set.HOSTNAME="%COMPUTERNAME%.%USERDNSDOMAIN%" property in <BUILDAGENT>\conf\wrapper.conf

Then restart the service.
But none of these changes were taken into account by Quickbuild. Builds agents still displayed 'LOCALMACHINE:8811' into the grid page.

How can we manually define the hostname for an agent?

Regards,
Rafael

  • replies 1
  • views 991
  • stars 0
robinshen ADMIN ·

The host name is only for displaying purpose. QuickBuild actually uses ip address to talk to agents. So you may specify the ip property in node.properties file.