Skip to content

Instantly share code, notes, and snippets.

@wyardley
Last active September 9, 2024 23:44
Show Gist options
  • Save wyardley/3a3632946973138e54087bbf808f8cad to your computer and use it in GitHub Desktop.
Save wyardley/3a3632946973138e54087bbf808f8cad to your computer and use it in GitHub Desktop.
cloudflare provider debug output
2024-09-09T16:42:43.812-0700 [INFO] OpenTofu version: 1.8.1
2024-09-09T16:42:43.812-0700 [DEBUG] using github.com/hashicorp/go-tfe v1.36.0
2024-09-09T16:42:43.812-0700 [DEBUG] using github.com/opentofu/hcl/v2 v2.0.0-20240416130056-03228b26f391
2024-09-09T16:42:43.812-0700 [DEBUG] using github.com/hashicorp/terraform-svchost v0.1.1
2024-09-09T16:42:43.812-0700 [DEBUG] using github.com/zclconf/go-cty v1.14.4
2024-09-09T16:42:43.812-0700 [INFO] Go runtime version: go1.22.6
2024-09-09T16:42:43.812-0700 [INFO] CLI args: []string{"tofu", "import", "cloudflare_ruleset.github", "zone/95e944b155994eb2a5de858382b12219/13dcaea12b0c4d419eb6a260e11d257d"}
2024-09-09T16:42:43.812-0700 [DEBUG] Attempting to open CLI config file: /Users/myusername/.tofurc
2024-09-09T16:42:43.812-0700 [DEBUG] File doesn't exist, but doesn't need to. Ignoring.
2024-09-09T16:42:43.812-0700 [INFO] Loading CLI configuration from /Users/myusername/.terraform.d/credentials.tfrc.json
2024-09-09T16:42:43.812-0700 [DEBUG] ignoring non-existing provider search directory terraform.d/plugins
2024-09-09T16:42:43.812-0700 [DEBUG] ignoring non-existing provider search directory /Users/myusername/.terraform.d/plugins
2024-09-09T16:42:43.813-0700 [DEBUG] ignoring non-existing provider search directory /Users/myusername/Library/Application Support/io.terraform/plugins
2024-09-09T16:42:43.813-0700 [DEBUG] ignoring non-existing provider search directory /Library/Application Support/io.terraform/plugins
2024-09-09T16:42:43.813-0700 [DEBUG] Found the config directory: /Users/myusername/.terraform.d
2024-09-09T16:42:43.813-0700 [INFO] CLI command args: []string{"import", "cloudflare_ruleset.github", "zone/95e944b155994eb2a5de858382b12219/13dcaea12b0c4d419eb6a260e11d257d"}
2024-09-09T16:42:43.813-0700 [DEBUG] New state was assigned lineage "ecb23341-6794-a2df-cfa9-aef29dae9bbd"
2024-09-09T16:42:43.845-0700 [DEBUG] checking for provisioner in "."
2024-09-09T16:42:43.845-0700 [DEBUG] checking for provisioner in "/opt/homebrew/bin"
2024-09-09T16:42:43.846-0700 [DEBUG] Building and walking import graph
2024-09-09T16:42:43.846-0700 [DEBUG] Not attaching any node states: overall state is nil
2024-09-09T16:42:43.846-0700 [DEBUG] No state, no orphan outputs
2024-09-09T16:42:43.846-0700 [DEBUG] ProviderTransformer: "cloudflare_ruleset.github (expand)" (*tofu.nodeExpandPlannableResource) needs provider["registry.opentofu.org/cloudflare/cloudflare"]
2024-09-09T16:42:43.846-0700 [DEBUG] created provider logger: level=debug
2024-09-09T16:42:43.846-0700 [INFO] provider: configuring client automatic mTLS
2024-09-09T16:42:43.852-0700 [DEBUG] provider: starting plugin: path=.terraform/providers/registry.opentofu.org/cloudflare/cloudflare/4.40.0/darwin_arm64/terraform-provider-cloudflare_v4.40.0 args=[".terraform/providers/registry.opentofu.org/cloudflare/cloudflare/4.40.0/darwin_arm64/terraform-provider-cloudflare_v4.40.0"]
2024-09-09T16:42:43.855-0700 [DEBUG] provider: plugin started: path=.terraform/providers/registry.opentofu.org/cloudflare/cloudflare/4.40.0/darwin_arm64/terraform-provider-cloudflare_v4.40.0 pid=36587
2024-09-09T16:42:43.855-0700 [DEBUG] provider: waiting for RPC address: path=.terraform/providers/registry.opentofu.org/cloudflare/cloudflare/4.40.0/darwin_arm64/terraform-provider-cloudflare_v4.40.0
2024-09-09T16:42:44.407-0700 [INFO] provider.terraform-provider-cloudflare_v4.40.0: configuring server automatic mTLS: timestamp=2024-09-09T16:42:44.406-0700
2024-09-09T16:42:44.413-0700 [DEBUG] provider: using plugin: version=6
2024-09-09T16:42:44.413-0700 [DEBUG] provider.terraform-provider-cloudflare_v4.40.0: plugin address: address=/var/folders/0z/yrnglm6n1l5_q19dv1yy0w3c0000gn/T/plugin3533017363 network=unix timestamp=2024-09-09T16:42:44.413-0700
2024-09-09T16:42:44.435-0700 [DEBUG] provider.stdio: received EOF, stopping recv loop: err="rpc error: code = Unavailable desc = error reading from server: EOF"
2024-09-09T16:42:44.435-0700 [DEBUG] provider: plugin process exited: path=.terraform/providers/registry.opentofu.org/cloudflare/cloudflare/4.40.0/darwin_arm64/terraform-provider-cloudflare_v4.40.0 pid=36587
2024-09-09T16:42:44.435-0700 [DEBUG] provider: plugin exited
2024-09-09T16:42:44.436-0700 [DEBUG] ReferenceTransformer: "cloudflare_ruleset.github (expand)" references: []
2024-09-09T16:42:44.436-0700 [DEBUG] ReferenceTransformer: "provider[\"registry.opentofu.org/cloudflare/cloudflare\"]" references: []
2024-09-09T16:42:44.436-0700 [DEBUG] Starting graph walk: walkImport
2024-09-09T16:42:44.436-0700 [DEBUG] created provider logger: level=debug
2024-09-09T16:42:44.436-0700 [INFO] provider: configuring client automatic mTLS
2024-09-09T16:42:44.439-0700 [DEBUG] provider: starting plugin: path=.terraform/providers/registry.opentofu.org/cloudflare/cloudflare/4.40.0/darwin_arm64/terraform-provider-cloudflare_v4.40.0 args=[".terraform/providers/registry.opentofu.org/cloudflare/cloudflare/4.40.0/darwin_arm64/terraform-provider-cloudflare_v4.40.0"]
2024-09-09T16:42:44.441-0700 [DEBUG] provider: plugin started: path=.terraform/providers/registry.opentofu.org/cloudflare/cloudflare/4.40.0/darwin_arm64/terraform-provider-cloudflare_v4.40.0 pid=36588
2024-09-09T16:42:44.441-0700 [DEBUG] provider: waiting for RPC address: path=.terraform/providers/registry.opentofu.org/cloudflare/cloudflare/4.40.0/darwin_arm64/terraform-provider-cloudflare_v4.40.0
2024-09-09T16:42:44.457-0700 [INFO] provider.terraform-provider-cloudflare_v4.40.0: configuring server automatic mTLS: timestamp=2024-09-09T16:42:44.457-0700
2024-09-09T16:42:44.463-0700 [DEBUG] provider.terraform-provider-cloudflare_v4.40.0: plugin address: address=/var/folders/0z/yrnglm6n1l5_q19dv1yy0w3c0000gn/T/plugin2895204007 network=unix timestamp=2024-09-09T16:42:44.463-0700
2024-09-09T16:42:44.463-0700 [DEBUG] provider: using plugin: version=6
2024-09-09T16:42:44.471-0700 [INFO] provider.terraform-provider-cloudflare_v4.40.0: cloudflare Client configured for user: : @module=cloudflare tf_mux_provider=tf5to6server.v5tov6Server tf_req_id=f18e052b-3207-97eb-158e-cb5b83577dae tf_rpc=ConfigureProvider @caller=github.com/cloudflare/terraform-provider-cloudflare/internal/sdkv2provider/config.go:39 tf_provider_addr=registry.terraform.io/cloudflare/cloudflare timestamp=2024-09-09T16:42:44.471-0700
2024-09-09T16:42:44.471-0700 [INFO] provider.terraform-provider-cloudflare_v4.40.0: cloudflare Client configured for user: : @module=cloudflare @caller=github.com/cloudflare/terraform-provider-cloudflare/internal/framework/provider/config.go:38 tf_mux_provider="*proto6server.Server" tf_provider_addr=registry.terraform.io/cloudflare/cloudflare tf_req_id=f18e052b-3207-97eb-158e-cb5b83577dae tf_rpc=ConfigureProvider timestamp=2024-09-09T16:42:44.471-0700
2024-09-09T16:42:44.472-0700 [DEBUG] ReferenceTransformer: "cloudflare_ruleset.github (import id \"zone/95e944b155994eb2a5de858382b12219/13dcaea12b0c4d419eb6a260e11d257d\")" references: []
cloudflare_ruleset.github: Importing from ID "zone/95e944b155994eb2a5de858382b12219/13dcaea12b0c4d419eb6a260e11d257d"...
cloudflare_ruleset.github: Import prepared!
Prepared cloudflare_ruleset for import
cloudflare_ruleset.github: Refreshing state... [id=13dcaea12b0c4d419eb6a260e11d257d]
2024-09-09T16:42:44.475-0700 [DEBUG] provider.terraform-provider-cloudflare_v4.40.0: 2024/09/09 16:42:44
2024-09-09T16:42:44.475-0700 [DEBUG] provider.terraform-provider-cloudflare_v4.40.0: GET /client/v4/zones/95e944b155994eb2a5de858382b12219/rulesets/13dcaea12b0c4d419eb6a260e11d257d HTTP/1.1
2024-09-09T16:42:44.475-0700 [DEBUG] provider.terraform-provider-cloudflare_v4.40.0: Host: api.cloudflare.com
2024-09-09T16:42:44.475-0700 [DEBUG] provider.terraform-provider-cloudflare_v4.40.0: User-Agent: terraform-provider-cloudflare/4.40.0 terraform-plugin-framework/1.11.0 terraform/1.8.1
2024-09-09T16:42:44.475-0700 [DEBUG] provider.terraform-provider-cloudflare_v4.40.0: Authorization: Bearer [redacted]
2024-09-09T16:42:44.475-0700 [DEBUG] provider.terraform-provider-cloudflare_v4.40.0: Content-Type: application/json
2024-09-09T16:42:44.475-0700 [DEBUG] provider.terraform-provider-cloudflare_v4.40.0: Accept-Encoding: gzip
2024-09-09T16:42:44.475-0700 [DEBUG] provider.terraform-provider-cloudflare_v4.40.0
2024-09-09T16:42:44.729-0700 [DEBUG] provider.terraform-provider-cloudflare_v4.40.0: 2024/09/09 16:42:44
2024-09-09T16:42:44.729-0700 [DEBUG] provider.terraform-provider-cloudflare_v4.40.0: HTTP/2.0 403 Forbidden
2024-09-09T16:42:44.729-0700 [DEBUG] provider.terraform-provider-cloudflare_v4.40.0: Cf-Auditlog-Id: 0191d92b-13a1-7c71-bb26-0bfdfbaa096b
2024-09-09T16:42:44.729-0700 [DEBUG] provider.terraform-provider-cloudflare_v4.40.0: Cf-Cache-Status: DYNAMIC
2024-09-09T16:42:44.729-0700 [DEBUG] provider.terraform-provider-cloudflare_v4.40.0: Cf-Ray: 8c0b09588cc5524b-LAX
2024-09-09T16:42:44.729-0700 [DEBUG] provider.terraform-provider-cloudflare_v4.40.0: Content-Type: application/json
2024-09-09T16:42:44.729-0700 [DEBUG] provider.terraform-provider-cloudflare_v4.40.0: Date: Mon, 09 Sep 2024 23:42:44 GMT
2024-09-09T16:42:44.729-0700 [DEBUG] provider.terraform-provider-cloudflare_v4.40.0: Server: cloudflare
2024-09-09T16:42:44.729-0700 [DEBUG] provider.terraform-provider-cloudflare_v4.40.0: Set-Cookie: __cflb=0H28vgHxwvgAQtjUGUFqYFDiSDreGJnUoKptHkRMLoo; SameSite=Lax; path=/; expires=Tue, 10-Sep-24 02:12:45 GMT; HttpOnly
2024-09-09T16:42:44.730-0700 [DEBUG] provider.terraform-provider-cloudflare_v4.40.0: Set-Cookie: __cf_bm=5ixIW_jeVxUCZF3ZmaTYzpoiy7KEpFFhC_js9w_Ak4s-1725925364-1.0.1.1-M85hZu8U7_dL8tyih982gGrxkmTrb0oTwFDjxGGBXOpO2eN7xLVxoyb4GKIN79YQYdUEqdkHQEb0Hqad5YIW5Q; path=/; expires=Tue, 10-Sep-24 00:12:44 GMT; domain=.api.cloudflare.com; HttpOnly; Secure; SameSite=None
2024-09-09T16:42:44.730-0700 [DEBUG] provider.terraform-provider-cloudflare_v4.40.0: Set-Cookie: __cfruid=602759e15b3676e3b82b69fc11342adb5f4aebcd-1725925364; path=/; domain=.api.cloudflare.com; HttpOnly; Secure; SameSite=None
2024-09-09T16:42:44.730-0700 [DEBUG] provider.terraform-provider-cloudflare_v4.40.0: Vary: Accept-Encoding
2024-09-09T16:42:44.730-0700 [DEBUG] provider.terraform-provider-cloudflare_v4.40.0
2024-09-09T16:42:44.730-0700 [DEBUG] provider.terraform-provider-cloudflare_v4.40.0: {"success":false,"errors":[{"code":10000,"message":"Authentication error"}]}
2024-09-09T16:42:44.733-0700 [ERROR] provider.terraform-provider-cloudflare_v4.40.0: Response contains error diagnostic: diagnostic_detail="Authentication error (10000)" diagnostic_summary="error reading ruleset ID \"13dcaea12b0c4d419eb6a260e11d257d\"" tf_proto_version=6.6 @caller=github.com/hashicorp/terraform-plugin-go@v0.23.0/tfprotov6/internal/diag/diagnostics.go:58 @module=sdk.proto diagnostic_severity=ERROR tf_provider_addr=registry.terraform.io/cloudflare/cloudflare tf_req_id=8563477a-a660-58b7-4952-038645e27243 tf_resource_type=cloudflare_ruleset tf_rpc=ReadResource timestamp=2024-09-09T16:42:44.733-0700
2024-09-09T16:42:44.734-0700 [ERROR] vertex "import cloudflare_ruleset.github result" error: error reading ruleset ID "13dcaea12b0c4d419eb6a260e11d257d"
2024-09-09T16:42:44.734-0700 [ERROR] vertex "cloudflare_ruleset.github (import id \"zone/95e944b155994eb2a5de858382b12219/13dcaea12b0c4d419eb6a260e11d257d\")" error: error reading ruleset ID "13dcaea12b0c4d419eb6a260e11d257d"
2024-09-09T16:42:44.734-0700 [ERROR] vertex "cloudflare_ruleset.github (expand)" error: error reading ruleset ID "13dcaea12b0c4d419eb6a260e11d257d"
│ Error: error reading ruleset ID "13dcaea12b0c4d419eb6a260e11d257d"
│ Authentication error (10000)
2024-09-09T16:42:44.736-0700 [DEBUG] provider.stdio: received EOF, stopping recv loop: err="rpc error: code = Unavailable desc = error reading from server: EOF"
2024-09-09T16:42:44.738-0700 [DEBUG] provider: plugin process exited: path=.terraform/providers/registry.opentofu.org/cloudflare/cloudflare/4.40.0/darwin_arm64/terraform-provider-cloudflare_v4.40.0 pid=36588
2024-09-09T16:42:44.738-0700 [DEBUG] provider: plugin exited
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment