Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TLS handshake error while apply/plan #24667

Closed
anandmohan8 opened this issue Apr 14, 2020 · 2 comments
Closed

TLS handshake error while apply/plan #24667

anandmohan8 opened this issue Apr 14, 2020 · 2 comments

Comments

@anandmohan8
Copy link

We are getting below TLS exceptions (more often now) when the code is trying to make connection to backend config. This happens the first time we run the deploy job and when we re-run , it does not throw this exception. Do you know why would this exception be thrown for the first time. We use CircleCI for CICD.

data.terraform_remote_state.alb: data.terraform_remote_state.alb: error initializing backend: RequestError: send request failed
caused by: Post https://sts.amazonaws.com/: net/http: TLS handshake timeout

2020/03/31 23:35:09 [DEBUG] [aws-sdk-go] DEBUG: Send Request sts/GetCallerIdentity failed, not retrying, error RequestError: send request failed
caused by: Post https://sts.amazonaws.com/: net/http: TLS handshake timeout
2020/03/31 23:35:09 [DEBUG] plugin: waiting for all plugin processes to complete...
Failed to load backend:
Error configuring the backend "s3": RequestError: send request failed
caused by: Post https://sts.amazonaws.com/: net/http: TLS handshake timeout

@danieldreier
Copy link
Contributor

Hello @anandmohan8! Thanks for reaching out.

We use GitHub issues for tracking bugs and enhancements, rather than for questions. While we can sometimes help with certain simple problems here, it's better to use the community forum where there are more people ready to help. The GitHub issues here are monitored only by our few core maintainers.

From the information you've posted, it looks to me like for some reason, the S3 backend is unable to reach AWS at the network layer. This seems puzzling, and I imagine it's frustrating, but it's not evidence evidence of a bug in Terraform core. For what it's worth, we also use CircleCI in our own testing, and have not had similar problems.

I'm going to close this for now, because I think the community forum is the right approach. My recommendation is that when you post there, you include a few full output logs, as well as your terraform backend configuration, and as many details as you can about your CircleCI build environment, so that other community members can help reproduce the issue. If you do end up with evidence of a bug, please come back and report an issue using the standard issue template.

@ghost
Copy link

ghost commented May 15, 2020

I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues.

If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.

@ghost ghost locked and limited conversation to collaborators May 15, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants