Facing issue while installing remote agent on linux box

Hi Team,

I am trying to install the bamboo remote agent on my Linux box.But we are getting below issue while installing remote agent on the Linux box.

 

Error logs:


INFO | jvm 2 | 2017/12/06 11:07:36 | 2017-12-06 11:07:36,350 INFO [AgentRunnerThread] [AgentRegistrationBean] Registering agent on the server,
INFO | jvm 2 | 2017/12/06 11:11:51 | 2017-12-06 11:11:51,450 ERROR [ActiveMQ Task-1] [FailoverTransport] Failed to connect to [tcp://DUBV-ENGBAM05.dubeng.local:54663?wireFormat.maxInactivityDuration=300000] after: 10 attempt(s)
INFO | jvm 2 | 2017/12/06 11:11:51 | 2017-12-06 11:11:51,456 INFO [ActiveMQ Connection Executor: unconnected] [PooledConnectionFactory] Expiring connection ActiveMQConnection {id=ID:dubvpruekb-32801-1512558456382-1:1,clientId=ID:dubvpruekb-32801-1512558456382-0:1,started=false} on IOException: java.net.ConnectException: Connection refused (Connection refused)
INFO | jvm 2 | 2017/12/06 11:11:51 | Exiting due to fatal exception.
INFO | jvm 2 | 2017/12/06 11:11:51 | java.lang.reflect.InvocationTargetException
INFO | jvm 2 | 2017/12/06 11:11:51 | at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
INFO | jvm 2 | 2017/12/06 11:11:51 | at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
INFO | jvm 2 | 2017/12/06 11:11:51 | at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
INFO | jvm 2 | 2017/12/06 11:11:51 | at java.lang.reflect.Method.invoke(Method.java:498)
INFO | jvm 2 | 2017/12/06 11:11:51 | at com.atlassian.bamboo.agent.bootstrap.AgentRunner.run(AgentRunner.java:30)
INFO | jvm 2 | 2017/12/06 11:11:51 | at java.lang.Thread.run(Thread.java:748)
INFO | jvm 2 | 2017/12/06 11:11:51 | Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'agentRegistrationBean': Invocation of init method failed; nested exception is org.springframework.remoting.RemoteAccessException: Could not access JMS invoker queue [queue://com.atlassian.bamboo.registrationQueue]; nested exception is javax.jms.IllegalStateException: javax.jms.JMSException: Connection refused (Connection refused)
INFO | jvm 2 | 2017/12/06 11:11:51 | at org.springframework.beans.factory.annotation.InitDestroyAnnotationBeanPostProcessor.postProcessBeforeInitialization(InitDestroyAnnotationBeanPostProcessor.java:136)
INFO | jvm 2 | 2017/12/06 11:11:51 | at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyBeanPostProcessorsBeforeInitialization(AbstractAutowireCapableBeanFactory.java:407)
INFO | jvm 2 | 2017/12/06 11:11:51 | at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1545)
INFO | jvm 2 | 2017/12/06 11:11:51 | at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:539)
INFO | jvm 2 | 2017/12/06 11:11:51 | at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:475)
INFO | jvm 2 | 2017/12/06 11:11:51 | at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:302)
INFO | jvm 2 | 2017/12/06 11:11:51 | at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:228)
INFO | jvm 2 | 2017/12/06 11:11:51 | at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:298)
INFO | jvm 2 | 2017/12/06 11:11:51 | at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:193)
INFO | jvm 2 | 2017/12/06 11:11:51 | at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:703)
INFO | jvm 2 | 2017/12/06 11:11:51 | at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:760)
INFO | jvm 2 | 2017/12/06 11:11:51 | at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:482)
INFO | jvm 2 | 2017/12/06 11:11:51 | at org.springframework.context.support.ClassPathXmlApplicationContext.<init>(ClassPathXmlApplicationContext.java:139)
INFO | jvm 2 | 2017/12/06 11:11:51 | at org.springframework.context.support.ClassPathXmlApplicationContext.<init>(ClassPathXmlApplicationContext.java:105)
INFO | jvm 2 | 2017/12/06 11:11:51 | at com.atlassian.bamboo.v2.build.agent.remote.RemoteAgent.initApplicationContext(RemoteAgent.java:267)
INFO | jvm 2 | 2017/12/06 11:11:51 | at com.atlassian.bamboo.v2.build.agent.remote.RemoteAgent.start(RemoteAgent.java:77)
INFO | jvm 2 | 2017/12/06 11:11:51 | ... 6 more
INFO | jvm 2 | 2017/12/06 11:11:51 | Caused by: org.springframework.remoting.RemoteAccessException: Could not access JMS invoker queue [queue://com.atlassian.bamboo.registrationQueue]; nested exception is javax.jms.IllegalStateException: javax.jms.JMSException: Connection refused (Connection refused)
INFO | jvm 2 | 2017/12/06 11:11:51 | at org.springframework.jms.remoting.JmsInvokerClientInterceptor.convertJmsInvokerAccessException(JmsInvokerClientInterceptor.java:433)
INFO | jvm 2 | 2017/12/06 11:11:51 | at org.springframework.jms.remoting.JmsInvokerClientInterceptor.invoke(JmsInvokerClientInterceptor.java:206)
INFO | jvm 2 | 2017/12/06 11:11:51 | at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179)
INFO | jvm 2 | 2017/12/06 11:11:51 | at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:207)
INFO | jvm 2 | 2017/12/06 11:11:51 | at com.sun.proxy.$Proxy16.registerAgent(Unknown Source)
INFO | jvm 2 | 2017/12/06 11:11:51 | at com.atlassian.bamboo.v2.build.agent.remote.AgentRegistrationBean.registerAgent(AgentRegistrationBean.java:57)
INFO | jvm 2 | 2017/12/06 11:11:51 | at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
INFO | jvm 2 | 2017/12/06 11:11:51 | at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
INFO | jvm 2 | 2017/12/06 11:11:51 | at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
INFO | jvm 2 | 2017/12/06 11:11:51 | at java.lang.reflect.Method.invoke(Method.java:498)
INFO | jvm 2 | 2017/12/06 11:11:51 | at org.springframework.beans.factory.annotation.InitDestroyAnnotationBeanPostProcessor$LifecycleElement.invoke(InitDestroyAnnotationBeanPostProcessor.java:349)
INFO | jvm 2 | 2017/12/06 11:11:51 | at org.springframework.beans.factory.annotation.InitDestroyAnnotationBeanPostProcessor$LifecycleMetadata.invokeInitMethods(InitDestroyAnnotationBeanPostProcessor.java:300)
INFO | jvm 2 | 2017/12/06 11:11:51 | at org.springframework.beans.factory.annotation.InitDestroyAnnotationBeanPostProcessor.postProcessBeforeInitialization(InitDestroyAnnotationBeanPostProcessor.java:133)
INFO | jvm 2 | 2017/12/06 11:11:51 | ... 21 more
INFO | jvm 2 | 2017/12/06 11:11:51 | Caused by: javax.jms.IllegalStateException: javax.jms.JMSException: Connection refused (Connection refused)
INFO | jvm 2 | 2017/12/06 11:11:51 | at org.apache.activemq.jms.pool.ConnectionPool.createSession(ConnectionPool.java:134)
INFO | jvm 2 | 2017/12/06 11:11:51 | at org.apache.activemq.jms.pool.PooledConnection.createSession(PooledConnection.java:167)

1 answer

0 votes

Hi,

From the stack trace:

INFO | jvm 2 | 2017/12/06 11:11:51 | 2017-12-06 11:11:51,450 ERROR [ActiveMQ Task-1] [FailoverTransport] Failed to connect to [tcp://DUBV-ENGBAM05.dubeng.local:54663?wireFormat.maxInactivityDuration=300000] after: 10 attempt(s)
INFO | jvm 2 | 2017/12/06 11:11:51 | 2017-12-06 11:11:51,456 INFO [ActiveMQ Connection Executor: unconnected] [PooledConnectionFactory] Expiring connection ActiveMQConnection {id=ID:dubvpruekb-32801-1512558456382-1:1,clientId=ID:dubvpruekb-32801-1512558456382-0:1,started=false} on IOException: java.net.ConnectException: Connection refused (Connection refused)

It is clear that there is some connectivity issue and remote agents are not able to connect Bamboo.

Check the following things:

1. check "DUBV-ENGBAM05.dubeng.local" is correct.

2. Check that the port 54663 is open and not listening to any other service.

3. You can check the connectivity from the remote agent machine using telnet as well for the same hostname and port.

If you couldn't find anything, raise a support call.

 

Thanks!

Suggest an answer

Log in or Sign up to answer
Community showcase
Posted Tuesday in Statuspage

How do your teams prepare for really high (planned) traffic days like Cyber Monday?

Hi there! Shannon from Statuspage here.  👋  With Cyber Monday quickly approaching, we're looking to hear from Atlassian customers – specifically from teams who touch incident response li...

61 views 0 5
Join discussion

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you