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

Still need help?

The Atlassian Community is here for you.

Ask the community

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:

    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.


Last modified on Oct 18, 2018

Was this helpful?

Yes
No
Provide feedback about this article
Powered by Confluence and Scroll Viewport.