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

Irregular TLS handshake timeout #8

Closed
grv87 opened this issue Jun 17, 2017 · 1 comment
Closed

Irregular TLS handshake timeout #8

grv87 opened this issue Jun 17, 2017 · 1 comment

Comments

@grv87
Copy link
Contributor

grv87 commented Jun 17, 2017

Terraform Version: 0.9.8
Host OS: Windows 7 SP1 x64

Affected Resources: cloudflare_record

I try to create several DNS records. Terraform irregularly fails with the TLS handshake timeout error, the list of affected resources is always different.
Example of error message:

Error refreshing state: 7 error(s) occurred:

* cloudflare_record.ajaxhttpheaders: 1 error(s) occurred:

* cloudflare_record.ajaxhttpheaders: cloudflare_record.ajaxhttpheaders: Error finding zone "fidata.org": ListZones command failed: error from makeRequest: HTTP request failed: Get https://api.cloudflare.com/client/v4/zones?name=fidata.org: net/http: TLS handshake timeout
* cloudflare_record.website: 1 error(s) occurred:

* cloudflare_record.website: cloudflare_record.website: Error finding zone "fidata.org": ListZones command failed: error from makeRequest: HTTP request failed: Get https://api.cloudflare.com/client/v4/zones?name=fidata.org: net/http: TLS handshake timeout
* cloudflare_record.mail: 1 error(s) occurred:

* cloudflare_record.mail: cloudflare_record.mail: Error finding zone "fidata.org": ListZones command failed: error from makeRequest: HTTP request failed: Get https://api.cloudflare.com/client/v4/zones?name=fidata.org: net/http: TLS handshake timeout
* cloudflare_record.yandex_mail_verification: 1 error(s) occurred:

* cloudflare_record.yandex_mail_verification: cloudflare_record.yandex_mail_verification: Error finding zone "fidata.org": ListZones command failed: error from makeRequest: HTTP request failed: Get https://api.cloudflare.com/client/v4/zones?name=fidata.org: net/http: TLS handshake timeout
* cloudflare_record.artifactory: 1 error(s) occurred:

* cloudflare_record.artifactory: cloudflare_record.artifactory: Error finding zone "fidata.org": ListZones command failed: error from makeRequest: HTTP request failed: Get https://api.cloudflare.com/client/v4/zones?name=fidata.org: net/http: TLS handshake timeout
* cloudflare_record.yandex_mail_dkim: 1 error(s) occurred:

* cloudflare_record.yandex_mail_dkim: cloudflare_record.yandex_mail_dkim: Error finding zone "fidata.org": ListZones command failed: error from makeRequest: HTTP request failed: Get https://api.cloudflare.com/client/v4/zones?name=fidata.org: net/http: TLS handshake timeout
* cloudflare_record.google_verification: 1 error(s) occurred:

* cloudflare_record.google_verification: cloudflare_record.google_verification: Error finding zone "fidata.org": ListZones command failed: error from makeRequest: HTTP request failed: Get https://api.cloudflare.com/client/v4/zones?name=fidata.org: net/http: TLS handshake timeout

Whenever I get this error I try to manually delete records from Cloudflare and from tfstate file. Sometimes it helps, sometimes not. Sometimes the problem disappears by itself. So, I'm not sure this is a workaround.

Terraform configuration file and debug output: https://gist.github.com/grv87/905a43851000200c1872fe6ce952cd1f
Note that terraform runs under Gradle, so there is extra output from Gradle. I hope that doesn't confuse you.

@grv87
Copy link
Contributor Author

grv87 commented Jun 18, 2017

Sorry for disturbance. The problem was in firewall - it slows things very badly.

@grv87 grv87 closed this as completed Jun 18, 2017
simpsora pushed a commit to simpsora/terraform-provider-cloudflare that referenced this issue Jun 20, 2018
…le-bypass_cache_on_cookie

Add page rule bypass cache on cookie
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant