Timeout has expired for waiting for tunnel to instance

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

The elastic agents are not coming up and the Bamboo server logs register the following log message:

1 Timeout has expired for waiting for tunnel to instance [i-HASH], terminating [Tunnel ##.##.##.##:1234 - (##.##.##.##:26224) - 0.0.0.0:54663] Error: Connection refused

Resolution

Make sure the tunnel port 26224 is open and accessible.

Troubleshooting steps:

  1. Run the following from the Bamboo host:

    1. telnet elastic-agent-ip-here 26224

    2. nmap -p 26224 elastic-agent-ip-here

    3. netstat -nat | grep LISTEN

  2. Are there any security settings in EC2 that may have blocked that port?

  3. Open the ports as needed depending on the output of the above.

  4. Contact the Atlassian Support sharing your findings if this issue persists.

Updated on April 8, 2025

Still need help?

The Atlassian Community is here for you.