terraform-provider-cloudflare icon indicating copy to clipboard operation
terraform-provider-cloudflare copied to clipboard

Error: The terraform-provider-cloudflare_v3.15.0 plugin crashed!

Open amitsrivastavaswissre opened this issue 3 years ago • 1 comments

Confirmation

  • [X] My issue isn't already found on the issue tracker.
  • [X] I have replicated my issue using the latest version of the provider and it is still present.

Terraform and Cloudflare provider version

Terraform v1.2.1 on linux_amd64

Affected resource(s)

Deployment of cloudflare resources is not working

Terraform configuration files

resource "cloudflare_access_application" "appname" {
  zone_id          = var.cloudflareConfig.zone
  name             = var.cloudflareConfig.appname
  domain           = var.cloudflareConfig.subDomainName != "" ? "${var.cloudflareConfig.subDomainName}.${var.cloudflareConfig.appname}.${var.cloudflareConfig.domain}" : "${var.cloudflareConfig.appname}.${var.cloudflareConfig.domain}"
  session_duration = "24h"
  allowed_idps = ["${var.cloudflareConfig.idp}"]
}

Debug output

google.golang.org/[email protected]/server.go:1282 +0xccf

google.golang.org/grpc.(*Server).handleStream(0xc00013a8c0, {0xf26ac0, 0xc0002c8000}, 0xc0002fab40, 0x0) google.golang.org/[email protected]/server.go:1619 +0xa1b google.golang.org/grpc.(*Server).serveStreams.func1.2() google.golang.org/[email protected]/server.go:921 +0x98 created by google.golang.org/grpc.(*Server).serveStreams.func1 google.golang.org/[email protected]/server.go:919 +0x28a

Error: The terraform-provider-cloudflare_v3.15.0 plugin crashed!

This is always indicative of a bug within the plugin. It would be immensely helpful if you could report the crash with the plugin's maintainers so that it can be fixed. The output above should help diagnose the issue.

Panic output

panic: runtime error: invalid memory address or nil pointer dereference [signal SIGSEGV: segmentation violation code=0x1 addr=0x48 pc=0xbeda3d]

Expected output

Deployment of Cloudflare resource using Terraform script using Azure DevOps pipeline

Actual output

Plugin did not respond │ │ with cloudflare_access_application.appname, │ on main.tf line 44, in resource "cloudflare_access_application" "appname": │ 44: resource "cloudflare_access_application" "appname" { │ │ The plugin encountered an error, and failed to respond to the │ plugin.(*GRPCProvider).ReadResource call. The plugin logs may contain more │ details.

Steps to reproduce

Run Azure DevOps yml pipeline using Terraform script

Additional factoids

No response

References

No response

amitsrivastavaswissre avatar May 30 '22 13:05 amitsrivastavaswissre

Thank you for reporting this issue! For maintainers to dig into issues it is required that all issues include the entirety of TF_LOG=DEBUG output to be provided. The only parts that should be redacted are your user credentials in the X-Auth-Key, X-Auth-Email and Authorization HTTP headers. Details such as zone or account identifiers are not considered sensitive but can be redacted if you are very cautious. This log file provides additional context from Terraform, the provider and the Cloudflare API that helps in debugging issues. Without it, maintainers are very limited in what they can do and may hamper diagnosis efforts.

This issue has been marked with triage/needs-information and is unlikely to receive maintainer attention until the log file is provided making this a complete bug report.

github-actions[bot] avatar May 30 '22 13:05 github-actions[bot]

Marking this issue as stale due to 90 days of inactivity. This helps our maintainers find and focus on the active issues. If this issue receives no comments in the next 7 days it will automatically be closed. Maintainers can also remove the lifecycle/stale label. If this issue was automatically closed and you feel this issue should be reopened, we encourage creating a new issue linking back to this one for added context. Thank you!

github-actions[bot] avatar Aug 29 '22 00:08 github-actions[bot]

This issue was closed because it has been stalled for 7 days with no activity.

github-actions[bot] avatar Sep 05 '22 00:09 github-actions[bot]