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

Still need help?

The Atlassian Community is here for you.

Ask the community



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




  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:


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

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



Last modified on Nov 30, 2017

Was this helpful?

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