Bamboo fails to startup due to misconfigured hosts file
Bamboo fails to start and shows the following error:
2017-11-07 11:59:24,393 WARN [localhost-startStop-1] [InetAddressBean] Cannot determine local host name; using "localhost". java.net.UnknownHostException: myhostname: myhostname: Name or service not known at java.net.InetAddress.getLocalHost(InetAddress.java:1505) at com.atlassian.bamboo.configuration.InetAddressBean.getLocalCanonicalHostName(InetAddressBean.java:40) at com.atlassian.bamboo.setup.DefaultBootstrapManager.<clinit>(DefaultBootstrapManager.java:54) ... Caused by: java.net.UnknownHostException: myhostname: Name or service not known at java.net.Inet4AddressImpl.lookupAllHostAddr(Native Method) at java.net.InetAddress$2.lookupAllHostAddr(InetAddress.java:928) ...
Misconfiguration in the hosts file.
Make sure that your
hostsfile is configured properly:
127.0.0.1 localhost 255.255.255.255 broadcasthost ::1 localhost
- Make sure there is no firewall blocking Bamboo.
Try to ping the myhostname (whatever Bamboo complains about in the above error). Bamboo should be able to resolve that hostname
- Once the server hosting Bamboo can resolve the name you can start Bamboo