Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Bamboo Remote Agent Registering, but not successful

YY哥
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
January 1, 2021

2021-01-01 23:24:37,375 INFO [AgentRunnerThread] [RemoteAgent] Starting Bamboo Remote Agent...
2021-01-01 23:24:37,375 INFO [AgentRunnerThread] [RemoteAgent] Starting application context...
2021-01-01 23:24:37,405 INFO [AgentRunnerThread] [RemoteAgent$1] Refreshing com.atlassian.bamboo.v2.build.agent.remote.RemoteAgent$1@4069c049: startup date [Fri Jan 01 23:24:37 CST 2021]; root of context hierarchy
2021-01-01 23:24:38,586 INFO [AgentRunnerThread] [RemoteAgentHomeLocatorForBootstrap] Using agent home located at [/home/dxy/bamboo-agent-home]
2021-01-01 23:24:38,586 INFO [AgentRunnerThread] [RemoteAgentHomeDirectoryLayout] Plugin directory: /home/dxy/bamboo-agent-home/plugins
2021-01-01 23:24:38,586 INFO [AgentRunnerThread] [RemoteAgentHomeDirectoryLayout] Plugin cache directory: /home/dxy/bamboo-agent-home/caches/plugins
2021-01-01 23:24:38,613 INFO [AgentRunnerThread] [RemoteAgentHomeLocatorForBootstrap] Using agent home located at [/home/dxy/bamboo-agent-home]

2021-01-01 23:24:38,960 WARN [AgentRunnerThread] [AgentConfiguration] Configuration file does not exist. Creating File: bamboo-agent.cfg.xml

2021-01-01 23:24:38,984 INFO [AgentRunnerThread] [AgentUuidInitializer] Found agent UUID 'de02ff9c-b59c-47df-b079-3abd58456ed8' in temporary UUID file '/home/dxy/bamboo-agent-home/uuid-temp.properties'
2021-01-01 23:24:38,984 INFO [AgentRunnerThread] [AgentConfiguration] Setting UUID in main config file to 'de02ff9c-b59c-47df-b079-3abd58456ed8'
2021-01-01 23:24:39,007 INFO [AgentRunnerThread] [BambooActiveMQConnectionFactory] Setting broker URL to 'failover:(ssl://103.46.xxx.xx:54667?wireFormat.maxInactivityDuration=300000)?initialReconnectDelay=15000&maxReconnectAttempts=10'
2021-01-01 23:24:39,014 INFO [AgentRunnerThread] [BambooActiveMQConnectionFactory] Broker URI: ssl://103.46.xxx.xx:54667?wireFormat.maxInactivityDuration=300000 is valid.
2021-01-01 23:24:39,069 INFO [AgentRunnerThread] [JmsSslManagementUtils] Generating a new key store...
2021-01-01 23:24:40,051 INFO [AgentRunnerThread] [JmsSslManagementUtils] Savinag key store for future use...

2021-01-01 23:24:40,451 WARN [AgentRunnerThread] [ConfigurationFactory] No configuration found. Configuring ehcache from ehcache-failsafe.xml found in the classpath: jar:file:/home/dxy/bamboo-agent-home/classpath/ehcache-2.7.5.jar!/ehcache-failsafe.xml
2021-01-01 23:24:40,560 WARN [AgentRunnerThread] [EhCacheHelper] No PeerProviders configured in ehcache, replication cannot be configured for non-local cache
2021-01-01 23:24:40,714 WARN [AgentRunnerThread] [ResourceResolver] Unable to find resource bamboo-capabilities.properties
2021-01-01 23:24:40,715 INFO [AgentRunnerThread] [DefaultAgentCapabilityManagerImpl] Failed to load bamboo-capabilities.properties
2021-01-01 23:24:41,718 WARN [Felix:Startup] [DefaultComponentRegistrar] Host component buildDefinitionConverter of instance com.atlassian.bamboo.fieldvalue.BuildDefinitionConverter@5be959 has no interfaces

2021-01-01 23:24:41,965 INFO [FelixStartLevel] [ChainActivator] Blueprint API detected; enabling Blueprint Container functionality
2021-01-01 23:24:41,971 INFO [FelixStartLevel] [LoggingActivator] Starting [org.eclipse.gemini.blueprint.extender] bundle v.[2.0.0.BUILD-atlassian-m002]
2021-01-01 23:24:42,052 INFO [FelixStartLevel] [ExtenderConfiguration] Detected extender custom configurations at {bundle://12.0:0/META-INF/spring/extender/spring-event-bridge.xml}
2021-01-01 23:24:42,065 INFO [FelixStartLevel] [OsgiBundleXmlApplicationContext] Refreshing OsgiBundleXmlApplicationContext(bundle=org.eclipse.gemini.blueprint.extender, config=bundle://12.0:0/META-INF/spring/extender/spring-event-bridge.xml): startup date [Fri Jan 01 23:24:42 CST 2021]; root of context hierarchy
2021-01-01 23:24:42,080 INFO [FelixStartLevel] [OsgiBundleXmlApplicationContext] Application Context service already unpublished
2021-01-01 23:24:42,247 INFO [FelixStartLevel] [OsgiBundleXmlApplicationContext] Publishing application context as OSGi service with properties {org.eclipse.gemini.blueprint.context.service.name=org.eclipse.gemini.blueprint.extender, org.springframework.context.service.name=org.eclipse.gemini.blueprint.extender, Bundle-SymbolicName=org.eclipse.gemini.blueprint.extender, Bundle-Version=2.0.0.BUILD-atlassian-m002}
2021-01-01 23:24:42,267 INFO [FelixStartLevel] [EventAdminDispatcher] EventAdmin package not found; no Blueprint lifecycle events will be published
2021-01-01 23:24:42,537 INFO [AgentRunnerThread] [ClasspathBuilder] Syncing /home/dxy/bamboo-agent-home with http://36r4173.wp.vip:xx555/agentServer/bootstrap/system-provided-plugins/manifest
2021-01-01 23:24:42,573 INFO [AgentRunnerThread] [ClasspathBuilder] Server publishes 20 files, we need to download 20
2021-01-01 23:24:42,605 INFO [AgentRunnerThread] [ClasspathBuilder] Downloaded: plugins/system-provided/bamboo-scp-plugin-6.10.0.jar 677921 bytes
[DefaultOsgiApplicationContextCreator] Discovered configurations {osgibundle:/META-INF/spring/*.xml} in bundle [Atlassian Bamboo Jira Plugin (com.atlassian.bamboo.plugin.jira)]
2021-01-01 23:28:02,146 INFO [AgentRunnerThread] [DefaultOsgiApplicationContextCreator] Discovered configurations {osgibundle:/META-INF/spring/*.xml} in bundle [Bamboo AWS CodeDeploy Plugin (com.atlassian.bamboo.plugins.atlassian-bamboo-plugin-aws-codedeploy)]
2021-01-01 23:28:02,157 INFO [AgentRunnerThread] [DefaultOsgiApplicationContextCreator] Discovered configurations {osgibundle:/META-INF/spring/*.xml} in bundle [Atlassian Bamboo Mercurial Repository Plugin (com.atlassian.bamboo.plugins.atlassian-bamboo-plugin-mercurial)]

2021-01-01 23:28:02,161 WARN [ThreadPoolAsyncTaskExecutor::Thread 4] [ProductFilterUtil] Couldn't detect product, no known services found: will use ProductFilter.ALL

2021-01-01 23:28:02,163 INFO [AgentRunnerThread] [DefaultOsgiApplicationContextCreator] Discovered configurations {osgibundle:/META-INF/spring/*.xml} in bundle [Atlassian Bamboo Git Repository Plugin (com.atlassian.bamboo.plugins.atlassian-bamboo-plugin-git)]
2021-01-01 23:28:02,178 INFO [ThreadPoolAsyncTaskExecutor::Thread 3] [DependencyWaiterApplicationContextExecutor] No outstanding OSGi service dependencies, completing initialization for NonValidatingOsgiBundleXmlApplicationContext(bundle=com.atlassian.bamboo.plugins.atlassian-bamboo-plugin-aws-codedeploy, config=osgibundle:/META-INF/spring/*.xml)
2021-01-01 23:28:02,248 INFO [AgentRunnerThread] [DefaultOsgiApplicationContextCreator] Discovered configurations {osgibundle:/META-INF/spring/*.xml} in bundle [Atlassian Bamboo Bitbucket Repository Plugin (com.atlassian.bamboo.plugins.atlassian-bamboo-plugin-bitbucket)]
2021-01-01 23:28:02,249 INFO [AgentRunnerThread] [DefaultOsgiApplicationContextCreator] Discovered configurations {osgibundle:/META-INF/spring/*.xml} in bundle [Atlassian Bamboo Artifact Tasks (com.atlassian.bamboo.plugins.bamboo-artifact-downloader-plugin)]

2021-01-01 23:28:03,534 INFO [AgentRunnerThread] [StdSchedulerFactory] Using default implementation for ThreadExecutor
2021-01-01 23:28:03,548 INFO [AgentRunnerThread] [SchedulerSignalerImpl] Initialized Scheduler Signaller of type: class org.quartz.core.SchedulerSignalerImpl
2021-01-01 23:28:03,548 INFO [AgentRunnerThread] [QuartzScheduler] Quartz Scheduler v.2.2.3 created.
2021-01-01 23:28:03,549 INFO [AgentRunnerThread] [RAMJobStore] RAMJobStore initialized.
2021-01-01 23:28:03,549 INFO [AgentRunnerThread] [QuartzScheduler] Scheduler meta-data: Quartz Scheduler (v2.2.3) 'scheduler' with instanceId 'NON_CLUSTERED'
Scheduler class: 'org.quartz.core.QuartzScheduler' - running locally.
NOT STARTED.
Currently in standby mode.
Number of jobs executed: 0
Using thread pool 'com.atlassian.bamboo.quartz.SystemAuthorizedThreadPool' - with 10 threads.
Using job-store 'org.quartz.simpl.RAMJobStore' - which does not support persistence. and is not clustered.

2021-01-01 23:28:03,549 INFO [AgentRunnerThread] [StdSchedulerFactory] Quartz scheduler 'scheduler' initialized from an externally provided properties instance.
2021-01-01 23:28:03,550 INFO [AgentRunnerThread] [StdSchedulerFactory] Quartz scheduler version: 2.2.3
2021-01-01 23:28:03,550 INFO [AgentRunnerThread] [QuartzScheduler] JobFactory set to: com.atlassian.bamboo.quartz.AutowiringJobFactory@1d54d9f2
2021-01-01 23:28:03,618 INFO [AgentRunnerThread] [lifecycle] *******************************
2021-01-01 23:28:03,618 INFO [AgentRunnerThread] [lifecycle] * System information *
2021-01-01 23:28:03,618 INFO [AgentRunnerThread] [lifecycle] *******************************
2021-01-01 23:28:03,640 INFO [AgentRunnerThread] [lifecycle] com.atlassian.bamboo.configuration.SystemInfoImpl@2c0e263c[
userName=dxy
userTimezone=Asia/Shanghai
userLocale=English (United States)
systemEncoding=UTF-8
operatingSystem=Linux 4.4.0-151-generic
operatingSystemArchitecture=amd64
systemDate=Friday, 01 Jan 2021
systemTime=23:28:03
tempDir=/tmp
userHome=/home/dxy
totalMemory=319
freeMemory=61
usedMemory=257
availableProcessors=2
startupTimestamp=1609514883616
currentDirectory=/home/dxy/bamboo-agent-home/bin
applicationHome=/home/dxy/bamboo-agent-home
buildWorkingDirectory=/home/dxy/bamboo-agent-home/xml-data/build-dir
currentDate=Fri Jan 01 23:28:03 CST 2021
freeDiskSpace=21426880
hostName=alibox
ipAddress=172.16.214.225
]
2021-01-01 23:28:03,716 INFO [AgentRunnerThread] [AgentRegistrationBean] Current agent remote definition: alibox Remote agent on host alibox
2021-01-01 23:28:03,724 INFO [AgentRunnerThread] [PerforceManager] Could not find system variable. If you wish to use perforce please set the location as a capability.
2021-01-01 23:28:03,894 INFO [AgentRunnerThread] [AgentRegistrationBean] Registering agent on the server,

 

image.pngimage.png

2 answers

1 accepted

0 votes
Answer accepted
Gonchik Tsymzhitov
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
January 1, 2021

Hi! 

based on your log file, nothing special.

could you double check from remote agent the connectivity issue and do log review on remote agent side please?

https://confluence.atlassian.com/bamkb/troubleshooting-remote-agents-216957427.html

YY哥
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
January 2, 2021

Thanks for your suggestion. What's the difference between the server hostname and the Broker address? They are the same one for my configuration.

 

I did the 4 agent-side checks as follows:

image.pngimage.png

Like Gonchik Tsymzhitov likes this
Gonchik Tsymzhitov
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
January 2, 2021

Do you have a log info after that line?

2021-01-01 23:28:03,894 INFO [AgentRunnerThread] [AgentRegistrationBean] Registering agent on the server,

YY哥
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
January 2, 2021
2021-01-01 23:28:03,894 INFO [AgentRunnerThread] [AgentRegistrationBean] Registering agent on the server,
2021-01-01 23:32:19,940 ERROR [ActiveMQ Task-1] [FailoverTransport] Failed to connect to [ssl://100.4.100.21:54667?wireFormat.maxInactivityDuration=300000] after: 10 attempt(s)
2021-01-01 23:32:19,947 INFO [ActiveMQ Connection Executor: unconnected] [PooledConnectionFactory] Expiring connection ActiveMQConnection {id=ID:alibox-37368-1609514883917-1:1,clientId=ID:alibox-37368-1609514883917-0:1,started=false} on IOException: Remote host closed connection during handshake
2021-01-01 23:32:19,947 WARN [AgentRunnerThread] [RemoteAgent$1] Exception encountered during context initialization - cancelling refresh attempt: 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: Remote host closed connection during handshake
2021-01-01 23:32:19,948 INFO [AgentRunnerThread] [SVNClientManagerFactory] Destroying SVNClientManagerFactories...
2021-01-01 23:32:19,958 INFO [AgentRunnerThread] [QuartzScheduler] Scheduler scheduler_$_NON_CLUSTERED shutting down.
2021-01-01 23:32:19,958 INFO [AgentRunnerThread] [QuartzScheduler] Scheduler scheduler_$_NON_CLUSTERED paused.
2021-01-01 23:32:19,958 INFO [AgentRunnerThread] [QuartzScheduler] Scheduler scheduler_$_NON_CLUSTERED shutdown complete.
2021-01-01 23:32:19,977 FATAL [AgentRunnerThread] [AgentBootstrap] Exiting due to fatal exception.
java.lang.reflect.InvocationTargetException
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at com.atlassian.bamboo.agent.bootstrap.AgentRunner.run(AgentRunner.java:26)
at java.lang.Thread.run(Thread.java:748)
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: Remote host closed connection during handshake
at org.springframework.beans.factory.annotation.InitDestroyAnnotationBeanPostProcessor.postProcessBeforeInitialization(InitDestroyAnnotationBeanPostProcessor.java:139)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyBeanPostProcessorsBeforeInitialization(AbstractAutowireCapableBeanFactory.java:416)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1686)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:573)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:495)
at org.springframework.beans.factory.support.AbstractBeanFactory.lambda$doGetBean$0(AbstractBeanFactory.java:317)
at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222)
at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:315)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:199)
at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:759)
at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:867)
at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:548)
at org.springframework.context.support.ClassPathXmlApplicationContext.<init>(ClassPathXmlApplicationContext.java:144)
at org.springframework.context.support.ClassPathXmlApplicationContext.<init>(ClassPathXmlApplicationContext.java:95)
at com.atlassian.bamboo.v2.build.agent.remote.RemoteAgent$1.<init>(RemoteAgent.java:214)
at com.atlassian.bamboo.v2.build.agent.remote.RemoteAgent.initApplicationContext(RemoteAgent.java:214)
at com.atlassian.bamboo.v2.build.agent.remote.RemoteAgent.start(RemoteAgent.java:82)
... 6 more
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: Remote host closed connection during handshake
at org.springframework.jms.remoting.JmsInvokerClientInterceptor.convertJmsInvokerAccessException(JmsInvokerClientInterceptor.java:432)
at org.springframework.jms.remoting.JmsInvokerClientInterceptor.invoke(JmsInvokerClientInterceptor.java:207)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:185)
at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:212)
at com.sun.proxy.$Proxy24.registerAgent(Unknown Source)
at com.atlassian.bamboo.v2.build.agent.remote.AgentRegistrationBean.registerAgent(AgentRegistrationBean.java:51)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at org.springframework.beans.factory.annotation.InitDestroyAnnotationBeanPostProcessor$LifecycleElement.invoke(InitDestroyAnnotationBeanPostProcessor.java:366)
at org.springframework.beans.factory.annotation.InitDestroyAnnotationBeanPostProcessor$LifecycleMetadata.invokeInitMethods(InitDestroyAnnotationBeanPostProcessor.java:309)
at org.springframework.beans.factory.annotation.InitDestroyAnnotationBeanPostProcessor.postProcessBeforeInitialization(InitDestroyAnnotationBeanPostProcessor.java:136)
... 22 more
Caused by: javax.jms.IllegalStateException: javax.jms.JMSException: Remote host closed connection during handshake
at org.apache.activemq.jms.pool.ConnectionPool.createSession(ConnectionPool.java:162)
at org.apache.activemq.jms.pool.PooledConnection.createSession(PooledConnection.java:167)
at org.springframework.jms.remoting.JmsInvokerClientInterceptor.createSession(JmsInvokerClientInterceptor.java:281)
at org.springframework.jms.remoting.JmsInvokerClientInterceptor.executeRequest(JmsInvokerClientInterceptor.java:250)
at org.springframework.jms.remoting.JmsInvokerClientInterceptor.invoke(JmsInvokerClientInterceptor.java:204)
... 33 more
Caused by: javax.jms.JMSException: Remote host closed connection during handshake
at org.apache.activemq.util.JMSExceptionSupport.create(JMSExceptionSupport.java:72)
at org.apache.activemq.ActiveMQConnection.syncSendPacket(ActiveMQConnection.java:1421)
at org.apache.activemq.ActiveMQConnection.ensureConnectionInfoSent(ActiveMQConnection.java:1486)
at org.apache.activemq.ActiveMQConnection.createSession(ActiveMQConnection.java:329)
at org.apache.activemq.jms.pool.ConnectionPool.makeSession(ConnectionPool.java:112)
at org.apache.activemq.jms.pool.ConnectionPool$1.makeObject(ConnectionPool.java:82)
at org.apache.activemq.jms.pool.ConnectionPool$1.makeObject(ConnectionPool.java:78)
at org.apache.commons.pool2.impl.GenericKeyedObjectPool.create(GenericKeyedObjectPool.java:1041)
at org.apache.commons.pool2.impl.GenericKeyedObjectPool.borrowObject(GenericKeyedObjectPool.java:357)
at org.apache.commons.pool2.impl.GenericKeyedObjectPool.borrowObject(GenericKeyedObjectPool.java:279)
at org.apache.activemq.jms.pool.ConnectionPool.createSession(ConnectionPool.java:144)
... 37 more
Caused by: javax.net.ssl.SSLHandshakeException: Remote host closed connection during handshake
at sun.security.ssl.SSLSocketImpl.readRecord(SSLSocketImpl.java:1009)
at sun.security.ssl.SSLSocketImpl.performInitialHandshake(SSLSocketImpl.java:1388)
at sun.security.ssl.SSLSocketImpl.writeRecord(SSLSocketImpl.java:765)
at sun.security.ssl.AppOutputStream.write(AppOutputStream.java:123)
at org.apache.activemq.transport.tcp.TcpBufferedOutputStream.flush(TcpBufferedOutputStream.java:115)
at java.io.DataOutputStream.flush(DataOutputStream.java:123)
at org.apache.activemq.transport.tcp.TcpTransport.oneway(TcpTransport.java:194)
at org.apache.activemq.transport.AbstractInactivityMonitor.doOnewaySend(AbstractInactivityMonitor.java:335)
at org.apache.activemq.transport.AbstractInactivityMonitor.oneway(AbstractInactivityMonitor.java:317)
at org.apache.activemq.transport.WireFormatNegotiator.sendWireFormat(WireFormatNegotiator.java:181)
at org.apache.activemq.transport.WireFormatNegotiator.sendWireFormat(WireFormatNegotiator.java:84)
at org.apache.activemq.transport.WireFormatNegotiator.start(WireFormatNegotiator.java:74)
at org.apache.activemq.transport.failover.FailoverTransport.doReconnect(FailoverTransport.java:1017)
at org.apache.activemq.transport.failover.FailoverTransport$2.iterate(FailoverTransport.java:148)
at org.apache.activemq.thread.PooledTaskRunner.runTask(PooledTaskRunner.java:133)
at org.apache.activemq.thread.PooledTaskRunner$1.run(PooledTaskRunner.java:48)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
... 1 more
Caused by: java.io.EOFException: SSL peer shut down incorrectly
at sun.security.ssl.InputRecord.read(InputRecord.java:505)
at sun.security.ssl.SSLSocketImpl.readRecord(SSLSocketImpl.java:990)
... 18 more
2021-01-01 23:32:25,963 INFO [AgentRunnerThread] [RemoteAgent] Starting Bamboo Remote Agent...
2021-01-01 23:32:25,963 INFO [AgentRunnerThread] [RemoteAgent] Starting application context...
2021-01-01 23:32:25,994 INFO [AgentRunnerThread] [RemoteAgent$1] Refreshing com.atlassian.bamboo.v2.build.agent.remote.RemoteAgent$1@26c22677: startup date [Fri Jan 01 23:32:25 CST 2021]; root of context hierarchy
2021-01-01 23:32:27,160 INFO [AgentRunnerThread] [RemoteAgentHomeLocatorForBootstrap] Using agent home located at [/home/dxy/bamboo-agent-home]
2021-01-01 23:32:27,160 INFO [AgentRunnerThread] [RemoteAgentHomeDirectoryLayout] Plugin directory: /home/dxy/bamboo-agent-home/plugins
2021-01-01 23:32:27,160 INFO [AgentRunnerThread] [RemoteAgentHomeDirectoryLayout] Plugin cache directory: /home/dxy/bamboo-agent-home/caches/plugins
2021-01-01 23:32:27,215 INFO [AgentRunnerThread] [RemoteAgentHomeLocatorForBootstrap] Using agent home located at [/home/dxy/bamboo-agent-home]
0 votes
Gonchik Tsymzhitov
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
January 3, 2021

@YY哥 

Could you change the broker url from 

ssl://103.46.xxx.xx:54667?wireFormat.maxInactivityDuration=300000

into 

tcp://0.0.0.0:54663?wireFormat.maxInactivityDuration=300000

Then double check. 

 

Then reinstall using the link

https://{bamboo_url}/admin/agent/addRemoteAgent.action

 

Based on the log, I see problem with ssl termination

YY哥
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
February 14, 2021

I used the following configs to resolve the problem:

Bamboo Base URL:http://23jxx428.zicp.vip:43203

Broker configuration:

Broker URL: nio://192.168.0.103:54663?wireFormat.maxInactivityDuration=300000

Broker client URL: failover:(tcp://23jxx428.zicp.vip:59403?wireFormat.maxInactivityDuration=300000)?initialReconnectDelay=15000&maxReconnectAttempts=10 

Like John Hoffman likes this

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events