Uploaded image for project: 'Bamboo Data Center'
  1. Bamboo Data Center
  2. BAM-22413

ActiveMq warning message

XMLWordPrintable

    • Icon: Suggestion Suggestion
    • Resolution: Unresolved
    • None
    • Agents
    • None
    • 0
    • 3
    • Our product teams collect and evaluate feedback from a number of different sources. To learn more about how we use customer feedback in the planning process, check out our new feature policy.

      Summary

      As part of a remote agent startup process,  Bamboo Server Broker URL is tested for validity.

      INFO   | jvm 1    | 2023/07/04 16:10:10 | 2023-07-04 16:10:10,343 INFO [AgentRunnerThread] [BambooActiveMQConnectionFactory] Broker URI: ssl://ip-192-168-1-89.us-west-2.compute.internal:54663?socket.verifyHostName=false&wireFormat.maxInactivityDuration=300000 is valid.
      

      When the test is complete, the agent closes the connection which causes ActiveMq to raise an exception, which logs a warning message in the Bamboo server log.

      [ActiveMQ BrokerService[bamboo] Task-130] [TransportConnector$1] Could not accept connection from tcp://1.1.1.0:39452: Connection or outbound has closed (Connection or outbound has closed). 

      Note: The exception is a harmless one that can be safely ignored.

      Suggestion

      Find a method to test the Broker URL without raising an exception.

      Workaround

      Add custom Log4J entries on the Bamboo server by changing the default WARN log level to ERROR on the following classes:

      • org.apache.activemq.broker.TransportConnector
      • org.apache.activemq.broker.TransportConnection

      It is recommended to add the entries to the <bamboo-Install>/atlassian-bamboo/WEB-INF/classes/log4j2.properties file so the custom configuration can survive an application restart. E.g.:

      Log4j2 properties file
      logger.activemq-added-TransportConnector.level = ERROR
      logger.activemq-added-TransportConnector.name = org.apache.activemq.broker.TransportConnector
      logger.activemq-added-TransportConnection.level = ERROR
      logger.activemq-added-TransportConnection.name = org.apache.activemq.broker.TransportConnection
      

              Unassigned Unassigned
              voseghale VICTOR-OSEGHALE (Inactive)
              Votes:
              2 Vote for this issue
              Watchers:
              6 Start watching this issue

                Created:
                Updated: