Timeout has expired for waiting for tunnel to instance
Platform Notice: Data Center - This article applies to Atlassian products on the Data Center platform.
Note that this knowledge base article was created for the Data Center version of the product. Data Center knowledge base articles 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
Platform Notice: Data Center - This article applies to Atlassian products on the Data Center platform.
Note that this knowledge base article was created for the Data Center version of the product. Data Center knowledge base articles 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
The elastic agents are not coming up and the Bamboo server logs register the following log message:
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:
Run the following from the Bamboo host:
telnet elastic-agent-ip-here 26224
nmap -p 26224 elastic-agent-ip-here
netstat -nat | grep LISTEN
- Are there any security settings in EC2 that may have blocked that port?
- Open the ports as needed depending on the output of the above.
- Contact the Atlassian Support sharing your findings if this issue persists.