AIX remote agents with SSL error: "Remote host closed connection during handshake"

Platform Notice: Data Center Only - This article only applies to Atlassian products on the Data Center platform.

Note that this KB was created for the Data Center version of the product. Data Center KBs for non-Data-Center-specific features may also work for Server versions of the product, however they have not been tested. Support for Server* products ended on February 15th 2024. If you are running a Server product, you can visit the Atlassian Server end of support announcement to review your migration options.

*Except Fisheye and Crucible

Problem

AIX remote agents not able to connect with Bamboo server when the server uses SSL.

Environment

  • Agents machine runs IBM AIX with IBM JDK

  • Bamboo server running linux with Oracle JDK

Diagnostic Steps

  • The following can be seen in the agent startup logs:

    1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 2018-09-04 10:44:25,705 INFO [main] [AgentContext] Authenticating against Bamboo server at https://<BAMBOO_URL>/agentServer/ Exiting due to fatal exception. javax.net.ssl.SSLHandshakeException: Remote host closed connection during handshake at com.ibm.jsse2.av.a(av.java:599) at com.ibm.jsse2.av.i(av.java:869) at com.ibm.jsse2.av.a(av.java:19) at com.ibm.jsse2.av.startHandshake(av.java:672) at org.apache.http.conn.ssl.SSLConnectionSocketFactory.createLayeredSocket(SSLConnectionSocketFactory.java:396) at org.apache.http.conn.ssl.SSLConnectionSocketFactory.connectSocket(SSLConnectionSocketFactory.java:355) at org.apache.http.impl.conn.DefaultHttpClientConnectionOperator.connect(DefaultHttpClientConnectionOperator.java:142) at org.apache.http.impl.conn.PoolingHttpClientConnectionManager.connect(PoolingHttpClientConnectionManager.java:373) at org.apache.http.impl.execchain.MainClientExec.establishRoute(MainClientExec.java:381) at org.apache.http.impl.execchain.MainClientExec.execute(MainClientExec.java:237) at org.apache.http.impl.execchain.ProtocolExec.execute(ProtocolExec.java:185) at org.apache.http.impl.execchain.RetryExec.execute(RetryExec.java:89) at org.apache.http.impl.execchain.RedirectExec.execute(RedirectExec.java:111) at org.apache.http.impl.client.InternalHttpClient.doExecute(InternalHttpClient.java:185) at org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:83) at org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:108) at org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:56) at com.atlassian.bamboo.agent.bootstrap.AgentContext.initFingerprint(AgentContext.java:114) at com.atlassian.bamboo.agent.bootstrap.AgentContext.initServerSession(AgentContext.java:101) at com.atlassian.bamboo.agent.bootstrap.AgentContext.run(AgentContext.java:88) at com.atlassian.bamboo.agent.bootstrap.AgentBootstrap.run(AgentBootstrap.java:111) at com.atlassian.bamboo.agent.bootstrap.AgentBootstrap.main(AgentBootstrap.java:50) Caused by: java.io.EOFException: SSL peer shut down incorrectly at com.ibm.jsse2.b.a(b.java:131) at com.ibm.jsse2.av.a(av.java:562) ... 21 more

Resolution

The IBM JDK is not supported. Please switch to supported version of OpenJDK to fix this issue.

Updated on April 11, 2025

Still need help?

The Atlassian Community is here for you.