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
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)
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
set up "Bamboo administration >> Build resources >> Linked repositories" using "Stash" repository
set up Plan configuration by adding "Linked Repository" under "Repositories" tab
set up "Source Code Checkout" task by selecting the Stash repository set up
run build in Bamboo
check in the logs for Timeout Exception
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.
Was this helpful?