com.atlassian.bamboo.task.TaskException: Failed to execute task

Atlassian JIRA | Sysop Team | 1 year ago
  1. 0

    We got some unexpected shutdowns of EC2 remote agents while a build job is running. The Bamboo server is located in a datacenter in Germany and the remote agents are running in EC2 region Ireland (EU_WEST_1). The system error pages has two different kind of messages for this event. First: Agent 'Elastic Agent on i-9b925636' went offline while building OC-JS-JOB1-1386. The results of that build will not be available. Second: {code} com.atlassian.bamboo.task.TaskException: Failed to execute task at com.atlassian.bamboo.plugins.ant.task.AntBuildTask.execute(AntBuildTask.java:106) at com.atlassian.bamboo.task.TaskExecutorImpl$3.call(TaskExecutorImpl.java:281) at com.atlassian.bamboo.task.TaskExecutorImpl$3.call(TaskExecutorImpl.java:278) at com.atlassian.bamboo.task.TaskExecutorImpl.executeTaskWithPrePostActions(TaskExecutorImpl.java:198) at com.atlassian.bamboo.task.TaskExecutorImpl.executeTasks(TaskExecutorImpl.java:278) at com.atlassian.bamboo.task.TaskExecutorImpl.execute(TaskExecutorImpl.java:105) at com.atlassian.bamboo.build.pipeline.tasks.ExecuteBuildTask.call(ExecuteBuildTask.java:75) at com.atlassian.bamboo.v2.build.agent.DefaultBuildAgent.build(DefaultBuildAgent.java:188) at com.atlassian.bamboo.v2.build.agent.BuildAgentControllerImpl.waitAndPerformBuild(BuildAgentControllerImpl.java:112) at com.atlassian.bamboo.v2.build.agent.DefaultBuildAgent$1.run(DefaultBuildAgent.java:110) at com.atlassian.bamboo.utils.BambooRunnables$1.run(BambooRunnables.java:49) at com.atlassian.bamboo.security.ImpersonationHelper.runWith(ImpersonationHelper.java:31) at com.atlassian.bamboo.security.ImpersonationHelper.runWithSystemAuthority(ImpersonationHelper.java:20) at com.atlassian.bamboo.security.ImpersonationHelper$1.run(ImpersonationHelper.java:52) at java.lang.Thread.run(Thread.java:662) Caused by: org.springframework.remoting.RemoteAccessException: Could not access JMS invoker queue [queue://com.atlassian.bamboo.administrationConfigurationAccessorQueue]; nested exception is javax.jms.JMSException: org.apache.activemq.transport.RequestTimedOutIOException at org.springframework.jms.remoting.JmsInvokerClientInterceptor.convertJmsInvokerAccessException(JmsInvokerClientInterceptor.java:433) at org.springframework.jms.remoting.JmsInvokerClientInterceptor.invoke(JmsInvokerClientInterceptor.java:206) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179) at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:207) at com.sun.proxy.$Proxy11.getAdministrationConfiguration(Unknown Source) at com.atlassian.bamboo.utils.BambooUrl.withBaseUrlFromConfiguration(BambooUrl.java:78) at com.atlassian.bamboo.variable.CustomVariableContextImpl.addVariables(CustomVariableContextImpl.java:526) at com.atlassian.bamboo.variable.CustomVariableContextImpl.getCommonBuildVariables(CustomVariableContextImpl.java:481) at com.atlassian.bamboo.variable.CustomVariableContextImpl.filterVariableContextByName(CustomVariableContextImpl.java:349) at com.atlassian.bamboo.variable.CustomVariableContextImpl.getVariables(CustomVariableContextImpl.java:262) at com.atlassian.bamboo.process.EnvironmentVariableAccessorImpl.getEnvironment(EnvironmentVariableAccessorImpl.java:85) at com.atlassian.bamboo.process.ProcessServiceImpl.createExternalProcess(ProcessServiceImpl.java:167) at com.atlassian.bamboo.process.ProcessServiceImpl.executeExternalProcess(ProcessServiceImpl.java:209) at com.atlassian.bamboo.plugins.ant.task.AntBuildTask.execute(AntBuildTask.java:76) ... 14 more 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.doSyncSendPacket(ActiveMQConnection.java:1459) at org.apache.activemq.ActiveMQConnection.syncSendPacket(ActiveMQConnection.java:1439) at org.apache.activemq.ActiveMQSession.send(ActiveMQSession.java:1809) at org.apache.activemq.ActiveMQMessageProducer.send(ActiveMQMessageProducer.java:289) at org.apache.activemq.ActiveMQMessageProducer.send(ActiveMQMessageProducer.java:224) at org.apache.activemq.jms.pool.PooledProducer.send(PooledProducer.java:77) at org.apache.activemq.jms.pool.PooledProducer.send(PooledProducer.java:60) at org.springframework.jms.remoting.JmsInvokerClientInterceptor.doExecuteRequest(JmsInvokerClientInterceptor.java:354) at org.springframework.jms.remoting.JmsInvokerClientInterceptor.executeRequest(JmsInvokerClientInterceptor.java:253) at org.springframework.jms.remoting.JmsInvokerClientInterceptor.invoke(JmsInvokerClientInterceptor.java:203) ... 26 more Caused by: org.apache.activemq.transport.RequestTimedOutIOException at org.apache.activemq.transport.FutureResponse.getResult(FutureResponse.java:54) at org.apache.activemq.transport.ResponseCorrelator.request(ResponseCorrelator.java:92) at org.apache.activemq.ActiveMQConnection.doSyncSendPacket(ActiveMQConnection.java:1446) ... 35 more {code} Attached screenshots from the error console and support zip. Our guess is that the job took to long and the agent doesn't recognise the running job. This does not occur every time. If it happens, then a couple of agents going down. Like 2 up to n. Where can we find settings to change timeouts or connections related settings to improve the behaviour?

    Atlassian JIRA | 1 year ago | Sysop Team
    com.atlassian.bamboo.task.TaskException: Failed to execute task
  2. 0

    We got some unexpected shutdowns of EC2 remote agents while a build job is running. The Bamboo server is located in a datacenter in Germany and the remote agents are running in EC2 region Ireland (EU_WEST_1). The system error pages has two different kind of messages for this event. First: Agent 'Elastic Agent on i-9b925636' went offline while building OC-JS-JOB1-1386. The results of that build will not be available. Second: {code} com.atlassian.bamboo.task.TaskException: Failed to execute task at com.atlassian.bamboo.plugins.ant.task.AntBuildTask.execute(AntBuildTask.java:106) at com.atlassian.bamboo.task.TaskExecutorImpl$3.call(TaskExecutorImpl.java:281) at com.atlassian.bamboo.task.TaskExecutorImpl$3.call(TaskExecutorImpl.java:278) at com.atlassian.bamboo.task.TaskExecutorImpl.executeTaskWithPrePostActions(TaskExecutorImpl.java:198) at com.atlassian.bamboo.task.TaskExecutorImpl.executeTasks(TaskExecutorImpl.java:278) at com.atlassian.bamboo.task.TaskExecutorImpl.execute(TaskExecutorImpl.java:105) at com.atlassian.bamboo.build.pipeline.tasks.ExecuteBuildTask.call(ExecuteBuildTask.java:75) at com.atlassian.bamboo.v2.build.agent.DefaultBuildAgent.build(DefaultBuildAgent.java:188) at com.atlassian.bamboo.v2.build.agent.BuildAgentControllerImpl.waitAndPerformBuild(BuildAgentControllerImpl.java:112) at com.atlassian.bamboo.v2.build.agent.DefaultBuildAgent$1.run(DefaultBuildAgent.java:110) at com.atlassian.bamboo.utils.BambooRunnables$1.run(BambooRunnables.java:49) at com.atlassian.bamboo.security.ImpersonationHelper.runWith(ImpersonationHelper.java:31) at com.atlassian.bamboo.security.ImpersonationHelper.runWithSystemAuthority(ImpersonationHelper.java:20) at com.atlassian.bamboo.security.ImpersonationHelper$1.run(ImpersonationHelper.java:52) at java.lang.Thread.run(Thread.java:662) Caused by: org.springframework.remoting.RemoteAccessException: Could not access JMS invoker queue [queue://com.atlassian.bamboo.administrationConfigurationAccessorQueue]; nested exception is javax.jms.JMSException: org.apache.activemq.transport.RequestTimedOutIOException at org.springframework.jms.remoting.JmsInvokerClientInterceptor.convertJmsInvokerAccessException(JmsInvokerClientInterceptor.java:433) at org.springframework.jms.remoting.JmsInvokerClientInterceptor.invoke(JmsInvokerClientInterceptor.java:206) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179) at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:207) at com.sun.proxy.$Proxy11.getAdministrationConfiguration(Unknown Source) at com.atlassian.bamboo.utils.BambooUrl.withBaseUrlFromConfiguration(BambooUrl.java:78) at com.atlassian.bamboo.variable.CustomVariableContextImpl.addVariables(CustomVariableContextImpl.java:526) at com.atlassian.bamboo.variable.CustomVariableContextImpl.getCommonBuildVariables(CustomVariableContextImpl.java:481) at com.atlassian.bamboo.variable.CustomVariableContextImpl.filterVariableContextByName(CustomVariableContextImpl.java:349) at com.atlassian.bamboo.variable.CustomVariableContextImpl.getVariables(CustomVariableContextImpl.java:262) at com.atlassian.bamboo.process.EnvironmentVariableAccessorImpl.getEnvironment(EnvironmentVariableAccessorImpl.java:85) at com.atlassian.bamboo.process.ProcessServiceImpl.createExternalProcess(ProcessServiceImpl.java:167) at com.atlassian.bamboo.process.ProcessServiceImpl.executeExternalProcess(ProcessServiceImpl.java:209) at com.atlassian.bamboo.plugins.ant.task.AntBuildTask.execute(AntBuildTask.java:76) ... 14 more 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.doSyncSendPacket(ActiveMQConnection.java:1459) at org.apache.activemq.ActiveMQConnection.syncSendPacket(ActiveMQConnection.java:1439) at org.apache.activemq.ActiveMQSession.send(ActiveMQSession.java:1809) at org.apache.activemq.ActiveMQMessageProducer.send(ActiveMQMessageProducer.java:289) at org.apache.activemq.ActiveMQMessageProducer.send(ActiveMQMessageProducer.java:224) at org.apache.activemq.jms.pool.PooledProducer.send(PooledProducer.java:77) at org.apache.activemq.jms.pool.PooledProducer.send(PooledProducer.java:60) at org.springframework.jms.remoting.JmsInvokerClientInterceptor.doExecuteRequest(JmsInvokerClientInterceptor.java:354) at org.springframework.jms.remoting.JmsInvokerClientInterceptor.executeRequest(JmsInvokerClientInterceptor.java:253) at org.springframework.jms.remoting.JmsInvokerClientInterceptor.invoke(JmsInvokerClientInterceptor.java:203) ... 26 more Caused by: org.apache.activemq.transport.RequestTimedOutIOException at org.apache.activemq.transport.FutureResponse.getResult(FutureResponse.java:54) at org.apache.activemq.transport.ResponseCorrelator.request(ResponseCorrelator.java:92) at org.apache.activemq.ActiveMQConnection.doSyncSendPacket(ActiveMQConnection.java:1446) ... 35 more {code} Attached screenshots from the error console and support zip. Our guess is that the job took to long and the agent doesn't recognise the running job. This does not occur every time. If it happens, then a couple of agents going down. Like 2 up to n. Where can we find settings to change timeouts or connections related settings to improve the behaviour?

    Atlassian JIRA | 1 year ago | Sysop Team
    com.atlassian.bamboo.task.TaskException: Failed to execute task
  3. 0

    [BAM-11756] Queued builds not showing in the build queue, not being picked up by agents - Atlassian JIRA

    atlassian.com | 7 months ago
    java.lang.RuntimeException: Uncategorized exception occured during JMS processing; nested exception is javax.jms.JMSException: org.apache.activemq.transport.RequestTimedOutIOException; nested exception is org.apache.activemq.transport.RequestTimedOutIOException
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    WSO2 ESB Performance Tuning For B2B example

    Stack Overflow | 4 years ago | vithya vijayan
    javax.jms.JMSException: org.apache.activemq.transport.RequestTimedOutIOException

  1. bpbhat77 23 times, last 5 months ago

Root Cause Analysis

  1. org.apache.activemq.transport.RequestTimedOutIOException

    No message provided

    at org.apache.activemq.transport.FutureResponse.getResult()
  2. AMQ HTTP
    ResponseCorrelator.request
    1. org.apache.activemq.transport.FutureResponse.getResult(FutureResponse.java:54)
    2. org.apache.activemq.transport.ResponseCorrelator.request(ResponseCorrelator.java:92)
    2 frames
  3. ActiveMQ :: Core
    ActiveMQMessageProducer.send
    1. org.apache.activemq.ActiveMQConnection.doSyncSendPacket(ActiveMQConnection.java:1446)
    2. org.apache.activemq.ActiveMQConnection.syncSendPacket(ActiveMQConnection.java:1439)
    3. org.apache.activemq.ActiveMQSession.send(ActiveMQSession.java:1809)
    4. org.apache.activemq.ActiveMQMessageProducer.send(ActiveMQMessageProducer.java:289)
    5. org.apache.activemq.ActiveMQMessageProducer.send(ActiveMQMessageProducer.java:224)
    5 frames
  4. AMQ bundle
    PooledProducer.send
    1. org.apache.activemq.jms.pool.PooledProducer.send(PooledProducer.java:77)
    2. org.apache.activemq.jms.pool.PooledProducer.send(PooledProducer.java:60)
    2 frames
  5. Spring Framework
    JmsInvokerClientInterceptor.invoke
    1. org.springframework.jms.remoting.JmsInvokerClientInterceptor.doExecuteRequest(JmsInvokerClientInterceptor.java:354)
    2. org.springframework.jms.remoting.JmsInvokerClientInterceptor.executeRequest(JmsInvokerClientInterceptor.java:253)
    3. org.springframework.jms.remoting.JmsInvokerClientInterceptor.invoke(JmsInvokerClientInterceptor.java:203)
    3 frames
  6. Spring AOP
    JdkDynamicAopProxy.invoke
    1. org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179)
    2. org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:207)
    2 frames
  7. com.sun.proxy
    $Proxy11.getAdministrationConfiguration
    1. com.sun.proxy.$Proxy11.getAdministrationConfiguration(Unknown Source)
    1 frame
  8. com.atlassian.bamboo
    ImpersonationHelper$1.run
    1. com.atlassian.bamboo.utils.BambooUrl.withBaseUrlFromConfiguration(BambooUrl.java:78)
    2. com.atlassian.bamboo.variable.CustomVariableContextImpl.addVariables(CustomVariableContextImpl.java:526)
    3. com.atlassian.bamboo.variable.CustomVariableContextImpl.getCommonBuildVariables(CustomVariableContextImpl.java:481)
    4. com.atlassian.bamboo.variable.CustomVariableContextImpl.filterVariableContextByName(CustomVariableContextImpl.java:349)
    5. com.atlassian.bamboo.variable.CustomVariableContextImpl.getVariables(CustomVariableContextImpl.java:262)
    6. com.atlassian.bamboo.process.EnvironmentVariableAccessorImpl.getEnvironment(EnvironmentVariableAccessorImpl.java:85)
    7. com.atlassian.bamboo.process.ProcessServiceImpl.createExternalProcess(ProcessServiceImpl.java:167)
    8. com.atlassian.bamboo.process.ProcessServiceImpl.executeExternalProcess(ProcessServiceImpl.java:209)
    9. com.atlassian.bamboo.plugins.ant.task.AntBuildTask.execute(AntBuildTask.java:76)
    10. com.atlassian.bamboo.task.TaskExecutorImpl$3.call(TaskExecutorImpl.java:281)
    11. com.atlassian.bamboo.task.TaskExecutorImpl$3.call(TaskExecutorImpl.java:278)
    12. com.atlassian.bamboo.task.TaskExecutorImpl.executeTaskWithPrePostActions(TaskExecutorImpl.java:198)
    13. com.atlassian.bamboo.task.TaskExecutorImpl.executeTasks(TaskExecutorImpl.java:278)
    14. com.atlassian.bamboo.task.TaskExecutorImpl.execute(TaskExecutorImpl.java:105)
    15. com.atlassian.bamboo.build.pipeline.tasks.ExecuteBuildTask.call(ExecuteBuildTask.java:75)
    16. com.atlassian.bamboo.v2.build.agent.DefaultBuildAgent.build(DefaultBuildAgent.java:188)
    17. com.atlassian.bamboo.v2.build.agent.BuildAgentControllerImpl.waitAndPerformBuild(BuildAgentControllerImpl.java:112)
    18. com.atlassian.bamboo.v2.build.agent.DefaultBuildAgent$1.run(DefaultBuildAgent.java:110)
    19. com.atlassian.bamboo.utils.BambooRunnables$1.run(BambooRunnables.java:49)
    20. com.atlassian.bamboo.security.ImpersonationHelper.runWith(ImpersonationHelper.java:31)
    21. com.atlassian.bamboo.security.ImpersonationHelper.runWithSystemAuthority(ImpersonationHelper.java:20)
    22. com.atlassian.bamboo.security.ImpersonationHelper$1.run(ImpersonationHelper.java:52)
    22 frames
  9. Java RT
    Thread.run
    1. java.lang.Thread.run(Thread.java:662)
    1 frame