ResponseConnectTimeoutException: The host did not accept the connection within timeout of 1500 ms

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

Symptoms

  1. set up "Bamboo administration >> Add-ons >> Application Links"

    • Trusted Apps authentication (disabled)

    • OAuth authentication (enabled)

      • Allow 2-Legged OAuth (enabled)

      • Allow user impersonation through 2-Legged OAuth (disabled)

    • Basic Auth authentication (disabled)

  2. set up "Bamboo administration >> Build resources >> Server capabilities"

    • Git capabilities:

      1 2 # the location will vary depending on Operational System and installation directory /usr/bin/git
  3. set up "Bamboo administration >> Build resources >> Linked repositories" using "Stash" repository

  4. set up Plan configuration by adding "Linked Repository" under "Repositories" tab

  5. set up "Source Code Checkout" task by selecting the Stash repository set up

  6. run build in Bamboo

  7. check in the logs for Timeout Exception

  8. attempt to clone repository from Terminal running from the same box where Bamboo is installed

    1 2 3 git clone http://[stash-base-url]/scm/[project]/[repository].git git clone ssh://git@[stash-base-url]:7999/[project]/[repository].git

The following appears in the atlassian-bamboo.log:

1 2 2015-03-03 07:37:55,698 INFO [scheduler_Worker-4] [RemoteConnectionTester] Exception requesting status for remote host STASH (406557d1-2525-3c45-8faa-c73aef170d33) http://stash-base-url:7990 com.atlassian.applinks.application.stash.StashApplicationTypeImpl@d625696 com.atlassian.sal.api.net.ResponseConnectTimeoutException: The host did not accept the connection within timeout of 1500 ms

Diagnosis

Please, make sure the following port number are opened in your Firewall and/or iptables:

  • 7990 (Stash default connector port number - <stash-install>/conf/server.xml)

  • 7999 (Stash administration >> Server >> Server settings)

    1 2 3 [x] SSH enabled [x] SSH access keys enabled SSH Port: 7999
  • 22 (Default SSH port number)

Resolution

Please, make sure port number described above are available for use.

Updated on April 8, 2025

Still need help?

The Atlassian Community is here for you.