How to bypass the server proxy on remote agent connection

お困りですか?

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

コミュニティに質問

目的

It is possible to avoid agent communication problems bypassing the reverse proxy Bamboo uses.

If you are attempting this in order to fix artifact transfer problems (rejections, timeouts, etc.). Make sure the proxy server supports HTTP/1.1:  Agent upload of artifacts fails to set Content-Length in HTTP/1.1. Guiding questions:

  • Is HTTP/1.0 compatibility turned on? 
  • Are there any configuration options turned on related to chunked transfer encoding?

ソリューション

Remote agents

  1. Stop Bamboo
  2. Edit the <Bamboo_Install>/conf/server.xml file
  3. Add a new connector without the attributes (proxyName and proxyPort)
  4. Start Bamboo
  5. Stop the remote agent

  6. Update the <URL:PORT> used by your agent to match new connector added (How to update the Bamboo server URL on an installed agent)
  7. Restart the agent

Elastic agents

  1. Stop the Bamboo server
  2. Add the following system property in your Bamboo startup JVM (more details on  Configuring your system properties)

    setenv.sh
    -Dbamboo.ec2.agent.endpoint=http://localhost:8085

    (warning) Make sure you update the 8085 to match the Tomcat port configured in your Bamboo instance to receive HTTP connections. 
    (warning) You may need to update bamboo.jms.broker.client.uri to match the non-proxied URL.

  3. Restart your EC2 agent






最終更新日: 2019 年 12 月 6 日

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

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