Remote agent fails to connect to Bamboo with javax.naming.CommunicationException: Failed to connect to server

お困りですか?

アトラシアン コミュニティをご利用ください。

コミュニティに質問

プラットフォームについて: Server および Data Center のみ。この記事は、Server および Data Center プラットフォームのアトラシアン製品にのみ適用されます。

Support for Server* products ended on February 15th 2024. If you are running a Server product, you can visit the Atlassian Server end of support announcement to review your migration options.

*Fisheye および Crucible は除く

要約

Remote agent is unable to reach the server where Bamboo is running. The <bamboo-agent-home>/atlassian-bamboo-agent.log file shows an error similar to the following pointing to a DNS problem:

javax.naming.CommunicationException: Failed to connect to server my-bamboo.net

環境

All Bamboo versions.

診断

The remote agent is unable to resolve Bamboo's Base URL. In the example above the hostname is my-bamboo.net. Try pinging Bamboo's hostname from the server where the agent is installed. For example:

ping my-bamboo.net

原因

This is likely a DNS problem. If the remote agent cannot reach Bamboo the connection between the agent and Bamboo cannot be established.

ソリューション

ソリューション 1

  1. Update the appropriate DNS records to include the Bamboo Base URL/ address that the remote agent needs to use to connect to Bamboo.
  2. Restart the remote agent.

ソリューション 2

  1. Update the hosts file on the server where the remote agent is running:

    オペレーティング システム場所
    Linux/etc/hosts
    WindowsC:\Windows\System32\drivers\etc\hosts
  2. Ensure the correct IP address and hostname the agent needs to use to connect to Bamboo are added to the file. For example:

    <IP address>	<hostname>
    192.168.1.123	my-bamboo-net
  3. Restart the remote agent.


最終更新日 2022 年 9 月 21 日

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

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