Agent not connecting: "javax.naming.CommunicationException: Failed to connect to server"
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
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:
OS Location Linux
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
- Restart the agent