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.

ソリューション

  1. Stop Bamboo

  2. Make sure that your hosts file is configured properly:

    127.0.0.1          localhost
    255.255.255.255    broadcasthost
    ::1                localhost
  3. Make sure there is no firewall blocking Bamboo.
  4. Try to ping the myhostname (whatever Bamboo complains about in the above error). Bamboo should be able to resolve that hostname

  5. Once the server hosting Bamboo can resolve the name you can start Bamboo

最終更新日 2019 年 9 月 19 日

この内容はお役に立ちましたか?

はい
いいえ
この記事についてのフィードバックを送信する
Powered by Confluence and Scroll Viewport.