Agent not connecting: "javax.naming.CommunicationException: Failed to connect to server"

Still need help?

The Atlassian Community is here for you.

Ask the community

 

Problem

The agent is not able to ping the server. Agent log shows an error similar to the following, pointing to a DNS problem:

javax.naming.CommunicationException: Failed to connect to server localhost:8085

 

Resolution

 

  1. Update the DNS records to include the appropriate server name & IP used in the configuration file. If updating the DNS server is impossible
    Similar results can be achieved by updating the hosts file on the Bamboo server itself (local administrator rights on the server are needed).
    Common file location based on OS:

    OSLocation
    Linux/etc/hosts
    WindowsC:\Windows\System32\drivers\etc\hosts


    Make sure the entry must contain an IP address and corresponding server name:  

    <IP of server>    <host name of server>
    192.168.1.123     atlassian.com
  2. Restart the agent

 

 

Last modified on Nov 30, 2017

Was this helpful?

Yes
No
Provide feedback about this article
Powered by Confluence and Scroll Viewport.