Integration unable to reach Hipchat Server 2.0.4 or 2.0.7+ with SocketException: Connection reset

Still need help?

The Atlassian Community is here for you.

Ask the community

Platform notice: Server and Data Center only. This article only applies to Atlassian products on the Server and Data Center platforms.

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

This is for an outdated version of Hipchat Server

 This article applies to a version of Hipchat Server which will be deprecated soon. After that period the version will no longer be supported.

When will my version be deprecated?

The following versions have been deprecated:

  • Hipchat Server 1.3 (EOL Date: Aug 17, 2017)
  • Hipchat Server 2.0 (EOL Date: Jun 17, 2018)
  • Hipchat Server 2.1 (EOL Date: Dec 8, 2018)

The following version will be deprecated soon:

  • Hipchat Server 2.2 (EOL Date: May 30, 2019)

You can read more about Atlassian's End of Life policy here.

You should upgrade to a more recent version of Hipchat Server as soon as you can to take advantage of new features, and security and bug fixes.

 

The problem described in this article does not impact Hipchat Server 2.0.5 and 2.0.6. The Cause section explains this further.

Problem

We couldn't reach your server is displayed while trying to integrate your Atlassian Server application with Hipchat Server. This problem could impact any Java-based Atlassian Server product, namely:

  • Jira Server
  • Confluence Server
  • Bitbucket Server (formerly Stash)
  • Bamboo Server 

Below are screenshot examples from Confluence Server and Jira Server:

Confluence ServerJira Server

Diagnosis

The following exception will be thrown to atlassian-jira.logatlassian-confluence.log, atlassian-bitbucket.log or atlassian-bamboo.log:

Exception trace
2016-12-06 09:37:01,976 http-bio-8080-exec-6 WARN aver43 576x370x1 xo13de 14.140.116.135,172.18.13.73,172.18.14.164 /rest/hipchat/integration/latest/installation/ping [plugins.hipchat.rest.HipChatLinkResource] Failed to ping HipChat. com.sun.jersey.api.client.ClientHandlerException: java.net.SocketException: Connection reset com.sun.jersey.api.client.ClientHandlerException: java.net.SocketException: Connection reset
  • The -Dhttps.protocols=TLSv1 and -Djdk.tls.client.protocols=TLSv1 Java properties are present in your application's startup properties
  • No log entries related to the integration are found in the /var/log/hipchat/nginx.log file within Hipchat Server

Cause

  • The -Djdk.tls.client.protocols=TLSv1 and/or -Dhttps.protocols=TLSv1 Java properties force outbound connections to the TLSv1.0 protocol.

  • Connections over TLS v1.0 are no longer supported in Hipchat Server v2.0.4 and newer. Note that due to a regression, TLS v1.0 support was enabled back in versions 2.0.5 and 2.0.6 of Hipchat Server and became unsupported again in 2.0.7.

Resolution

Update the Java startup properties in setenv.sh/sentenv.bat to either:

  • remove the -Djdk.tls.client.protocols=TLSv1 and -Dhttps.protocols=TLSv1 properties

  • update the properties to -Djdk.tls.client.protocols=TLSv1,TLSv1.2 and -Dhttps.protocols=TLSv1,TLSv1.2 to enable TLSv1.1 and TLSv1.2 connections 

 

Last modified on Nov 2, 2018

Was this helpful?

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