Uploaded image for project: 'Bamboo'
  1. Bamboo
  2. BAM-20939

Local agent have JMS RequestTimedOutIOException

    XMLWordPrintable

Details

    Description

      Issue Summary

      Local agent have JMS RequestTimedOutIOException randomly

      Results

      The below exception is thrown in the atlassian-bamboo.log file:

      2020-05-06 09:06:47,674 FATAL [18-BAM::Default Agent::Agent:pool-38-thread-1] [ExecuteBuildTask] Failed to execute the build 'PROJ-PLAN-JOB-12'
      org.springframework.jms.UncategorizedJmsException: Uncategorized exception occurred during JMS processing; nested exception is javax.jms.JMSException: org.apache.activemq.transport.RequestTimedOutIOException
      	at org.springframework.jms.support.JmsUtils.convertJmsAccessException(JmsUtils.java:311)
      	at org.springframework.jms.support.JmsAccessor.convertJmsAccessException(JmsAccessor.java:185)
      	at org.springframework.jms.core.JmsTemplate.execute(JmsTemplate.java:507)
      	at org.springframework.jms.core.JmsTemplate.send(JmsTemplate.java:576)
      	at org.springframework.jms.core.JmsTemplate.convertAndSend(JmsTemplate.java:680)
      	at org.springframework.jms.core.JmsTemplate.convertAndSend(JmsTemplate.java:668)
      	at com.atlassian.bamboo.v2.build.agent.AgentCommandSenderImpl.send(AgentCommandSenderImpl.java:22)
      	at com.atlassian.bamboo.build.logger.DefaultBuildLoggerManager.getLogger(DefaultBuildLoggerManager.java:88)
      	at com.atlassian.bamboo.variable.substitutor.VariableSubstitutorImpl.getBuildLogger(VariableSubstitutorImpl.java:549)
      	at com.atlassian.bamboo.variable.substitutor.VariableSubstitutorImpl.filterVariableContextByName(VariableSubstitutorImpl.java:346)
      	at com.atlassian.bamboo.variable.substitutor.VariableSubstitutorImpl.substituteBambooVariables(VariableSubstitutorImpl.java:261)
      	at com.atlassian.bamboo.variable.substitutor.VariableSubstitutorImpl.substituteString(VariableSubstitutorImpl.java:180)
      	at com.atlassian.bamboo.variable.CustomVariableContextImpl.substituteString(CustomVariableContextImpl.java:47)
      	at com.atlassian.bamboo.task.TaskExecutorImpl.substituteConfigurationVariables(TaskExecutorImpl.java:399)
      	at com.atlassian.bamboo.task.TaskExecutorImpl.executeTasks(TaskExecutorImpl.java:294)
      	at com.atlassian.bamboo.task.TaskExecutorImpl.execute(TaskExecutorImpl.java:116)
      	at com.atlassian.bamboo.build.pipeline.tasks.ExecuteBuildTask.call(ExecuteBuildTask.java:73)
      	at com.atlassian.bamboo.v2.build.agent.DefaultBuildAgent.executeBuildPhase(DefaultBuildAgent.java:184)
      	at com.atlassian.bamboo.v2.build.agent.DefaultBuildAgent.build(DefaultBuildAgent.java:156)
      	at com.atlassian.bamboo.v2.build.agent.BuildAgentControllerImpl.lambda$waitAndPerformBuild$0(BuildAgentControllerImpl.java:130)
      	at com.atlassian.bamboo.variable.CustomVariableContextImpl.withVariableSubstitutor(CustomVariableContextImpl.java:118)
      	at com.atlassian.bamboo.v2.build.agent.BuildAgentControllerImpl.waitAndPerformBuild(BuildAgentControllerImpl.java:124)
      	at com.atlassian.bamboo.v2.build.agent.DefaultBuildAgent.lambda$start$0(DefaultBuildAgent.java:108)
      	at com.atlassian.bamboo.utils.BambooRunnables$1.run(BambooRunnables.java:48)
      	at com.atlassian.bamboo.security.ImpersonationHelper.runWith(ImpersonationHelper.java:26)
      	at com.atlassian.bamboo.security.ImpersonationHelper.runWithSystemAuthority(ImpersonationHelper.java:17)
      	at com.atlassian.bamboo.security.ImpersonationHelper$1.run(ImpersonationHelper.java:41)
      	at java.lang.Thread.run(Thread.java:748)
      Caused by: javax.jms.JMSException: org.apache.activemq.transport.RequestTimedOutIOException
      	at org.apache.activemq.util.JMSExceptionSupport.create(JMSExceptionSupport.java:72)
      	at org.apache.activemq.ActiveMQConnection.syncSendPacket(ActiveMQConnection.java:1421)
      	at org.apache.activemq.ActiveMQSession.send(ActiveMQSession.java:1972)
      	at org.apache.activemq.ActiveMQMessageProducer.send(ActiveMQMessageProducer.java:288)
      	at org.apache.activemq.ActiveMQMessageProducer.send(ActiveMQMessageProducer.java:223)
      	at org.apache.activemq.jms.pool.PooledProducer.send(PooledProducer.java:95)
      	at org.apache.activemq.jms.pool.PooledProducer.send(PooledProducer.java:71)
      	at org.springframework.jms.core.JmsTemplate.doSend(JmsTemplate.java:631)
      	at org.springframework.jms.core.JmsTemplate.doSend(JmsTemplate.java:608)
      	at org.springframework.jms.core.JmsTemplate.lambda$send$2(JmsTemplate.java:577)
      	at org.springframework.jms.core.JmsTemplate.execute(JmsTemplate.java:504)
      	... 25 more
      Caused by: org.apache.activemq.transport.RequestTimedOutIOException
      	at org.apache.activemq.transport.FutureResponse.getResult(FutureResponse.java:80)
      	at org.apache.activemq.transport.ResponseCorrelator.request(ResponseCorrelator.java:92)
      	at org.apache.activemq.ActiveMQConnection.syncSendPacket(ActiveMQConnection.java:1391)
      	... 34 more
      

      Note

      Dark feature disabling live log causing problem

      Workaround

      Currently there is no known workaround for this behavior. A workaround will be added here when available

      Attachments

        Issue Links

          Activity

            People

              jmajkutewicz Jan Majkutewicz
              klfoong Foong (Inactive)
              Votes:
              1 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: