Details
-
Suggestion
-
Resolution: Timed out
-
None
-
0
-
Description
This issue prevents Bamboo Remote Agent to communicate with Bamboo Server
Summary
1. Issue
According to Securing your remote agents under Step 3. Configure your Bamboo server to use SSL section only the Broker URL needs to be updated from tcp to ssl. However, it is required to update Broker Client URL and Broker URL to ssl.
According to Running the Setup Wizard documentation, the Bamboo Setup Wizard provides the option to setup Broker URL, however Bamboo requires either Broker Client URL and Broker URL to be set as ssl if attempting on Securing your remote agents (please, notice there is a request to update documentation https://jira.atlassian.com/browse/BAM-16837)
2. Expected Results
When setting up both broker (Broker Client URL and Broker URL) to ssl under "<bamboo-home>/bamboo.cfg.xml" or "Bamboo administration >> Overview >> System >> General configuration" it is possible to establish communication using the SSL protocol.
<!-- please, notice 'broker.client' and 'broker' are setup as 'ssl' --> <property name="bamboo.jms.broker.client.uri">failover:(ssl://127.0.0.1:54663?wireFormat.maxInactivityDuration=300000)?initialReconnectDelay=15000&maxReconnectAttempts=10</property> <property name="bamboo.jms.broker.uri">ssl://0.0.0.0:54663?wireFormat.maxInactivityDuration=300000</property>
The below exception is thrown in the "<bamboo-agent-home>/atlassian-bamboo.agent.log file:
INFO | jvm 1 | 2015/11/18 12:26:51 | 2015-11-18 12:26:51,295 INFO [Thread-0] [AgentRegistrationBean] Definition from the server: com.atlassian.bamboo.v2.build.agent.RemoteAgentDefinitionImpl@1c2ade40[7438337,127.0.0.1]
3. Actual Results
When setting up only Broker URL to ssl during Bamboo Setup Wizard or under "<bamboo-home>/bamboo.cfg.xml" or "Bamboo administration >> Overview >> System >> General configuration" the communication is broken.
<!-- please, notice only 'broker' is setup as 'ssl' --> <property name="bamboo.jms.broker.client.uri">failover:(tcp://127.0.0.1:54663?wireFormat.maxInactivityDuration=300000)?initialReconnectDelay=15000&maxReconnectAttempts=10</property> <property name="bamboo.jms.broker.uri">ssl://0.0.0.0:54663?wireFormat.maxInactivityDuration=300000</property>
The below exception is thrown in the "<bamboo-agent-home>/atlassian-bamboo.agent.log file:
INFO | jvm 1 | 2015/11/18 12:31:54 | 2015-11-18 12:31:53,991 WARN [ActiveMQ Transport: tcp://broker.client.url/127.0.0.1:54663@52829] [FailoverTransport] Transport (tcp://127.0.0.1:54663) failed, reason: java.io.EOFException, attempting to automatically reconnect