-
-
Save lucymhdavies/8311ccac2e413a7147d26af02434ef53 to your computer and use it in GitHub Desktop.
terraform-provider-hcp bug
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2022-06-08T16:48:27.790+0100 [INFO] Terraform version: 1.2.2 | |
2022-06-08T16:48:27.790+0100 [DEBUG] using github.com/hashicorp/go-tfe v1.0.0 | |
2022-06-08T16:48:27.790+0100 [DEBUG] using github.com/hashicorp/hcl/v2 v2.12.0 | |
2022-06-08T16:48:27.790+0100 [DEBUG] using github.com/hashicorp/terraform-config-inspect v0.0.0-20210209133302-4fd17a0faac2 | |
2022-06-08T16:48:27.790+0100 [DEBUG] using github.com/hashicorp/terraform-svchost v0.0.0-20200729002733-f050f53b9734 | |
2022-06-08T16:48:27.790+0100 [DEBUG] using github.com/zclconf/go-cty v1.10.0 | |
2022-06-08T16:48:27.790+0100 [INFO] Go runtime version: go1.18.2 | |
2022-06-08T16:48:27.790+0100 [INFO] CLI args: []string{"terraform", "plan"} | |
2022-06-08T16:48:27.790+0100 [DEBUG] Attempting to open CLI config file: /Users/strawb/.terraform.d/credentials.tfrc.json | |
2022-06-08T16:48:27.790+0100 [INFO] Loading CLI configuration from /Users/strawb/.terraform.d/credentials.tfrc.json | |
2022-06-08T16:48:27.790+0100 [DEBUG] Not reading CLI config directory because config location is overridden by environment variable | |
2022-06-08T16:48:27.790+0100 [DEBUG] checking for credentials in "/Users/strawb/.terraform.d/plugins" | |
2022-06-08T16:48:27.790+0100 [DEBUG] ignoring non-existing provider search directory terraform.d/plugins | |
2022-06-08T16:48:27.790+0100 [DEBUG] will search for provider plugins in /Users/strawb/.terraform.d/plugins | |
2022-06-08T16:48:27.791+0100 [DEBUG] ignoring non-existing provider search directory /Users/strawb/Library/Application Support/io.terraform/plugins | |
2022-06-08T16:48:27.791+0100 [DEBUG] ignoring non-existing provider search directory /Library/Application Support/io.terraform/plugins | |
2022-06-08T16:48:27.792+0100 [INFO] CLI command args: []string{"plan"} | |
2022-06-08T16:48:27.793+0100 [DEBUG] New state was assigned lineage "d41b38eb-7346-e347-9f97-dcb7fcb58025" | |
2022-06-08T16:48:27.856+0100 [DEBUG] checking for provisioner in "." | |
2022-06-08T16:48:27.860+0100 [DEBUG] checking for provisioner in "/usr/local/bin" | |
2022-06-08T16:48:27.860+0100 [DEBUG] checking for provisioner in "/Users/strawb/.terraform.d/plugins" | |
2022-06-08T16:48:27.861+0100 [INFO] backend/local: starting Plan operation | |
2022-06-08T16:48:27.864+0100 [DEBUG] created provider logger: level=debug | |
2022-06-08T16:48:27.864+0100 [INFO] provider: configuring client automatic mTLS | |
2022-06-08T16:48:27.881+0100 [DEBUG] provider: starting plugin: path=.terraform/providers/registry.terraform.io/hashicorp/hcp/0.30.0/darwin_amd64/terraform-provider-hcp_v0.30.0_x5 args=[.terraform/providers/registry.terraform.io/hashicorp/hcp/0.30.0/darwin_amd64/terraform-provider-hcp_v0.30.0_x5] | |
2022-06-08T16:48:27.884+0100 [DEBUG] provider: plugin started: path=.terraform/providers/registry.terraform.io/hashicorp/hcp/0.30.0/darwin_amd64/terraform-provider-hcp_v0.30.0_x5 pid=46433 | |
2022-06-08T16:48:27.884+0100 [DEBUG] provider: waiting for RPC address: path=.terraform/providers/registry.terraform.io/hashicorp/hcp/0.30.0/darwin_amd64/terraform-provider-hcp_v0.30.0_x5 | |
2022-06-08T16:48:27.899+0100 [INFO] provider.terraform-provider-hcp_v0.30.0_x5: configuring server automatic mTLS: timestamp=2022-06-08T16:48:27.898+0100 | |
2022-06-08T16:48:27.933+0100 [DEBUG] provider: using plugin: version=5 | |
2022-06-08T16:48:27.933+0100 [DEBUG] provider.terraform-provider-hcp_v0.30.0_x5: plugin address: network=unix address=/var/folders/yp/70ygmdtn65x2c_jv9yf2w16c0000gn/T/plugin384906652 timestamp=2022-06-08T16:48:27.933+0100 | |
2022-06-08T16:48:27.971+0100 [DEBUG] provider.stdio: received EOF, stopping recv loop: err="rpc error: code = Unavailable desc = transport is closing" | |
2022-06-08T16:48:27.972+0100 [DEBUG] provider: plugin process exited: path=.terraform/providers/registry.terraform.io/hashicorp/hcp/0.30.0/darwin_amd64/terraform-provider-hcp_v0.30.0_x5 pid=46433 | |
2022-06-08T16:48:27.972+0100 [DEBUG] provider: plugin exited | |
2022-06-08T16:48:27.972+0100 [DEBUG] Building and walking validate graph | |
2022-06-08T16:48:27.973+0100 [DEBUG] ProviderTransformer: "hcp_hvn.network" (*terraform.NodeValidatableResource) needs provider["registry.terraform.io/hashicorp/hcp"] | |
2022-06-08T16:48:27.973+0100 [DEBUG] ReferenceTransformer: "hcp_hvn.network" references: [] | |
2022-06-08T16:48:27.973+0100 [DEBUG] ReferenceTransformer: "provider[\"registry.terraform.io/hashicorp/hcp\"]" references: [] | |
2022-06-08T16:48:27.973+0100 [DEBUG] Starting graph walk: walkValidate | |
2022-06-08T16:48:27.973+0100 [DEBUG] created provider logger: level=debug | |
2022-06-08T16:48:27.973+0100 [INFO] provider: configuring client automatic mTLS | |
2022-06-08T16:48:27.990+0100 [DEBUG] provider: starting plugin: path=.terraform/providers/registry.terraform.io/hashicorp/hcp/0.30.0/darwin_amd64/terraform-provider-hcp_v0.30.0_x5 args=[.terraform/providers/registry.terraform.io/hashicorp/hcp/0.30.0/darwin_amd64/terraform-provider-hcp_v0.30.0_x5] | |
2022-06-08T16:48:27.995+0100 [DEBUG] provider: plugin started: path=.terraform/providers/registry.terraform.io/hashicorp/hcp/0.30.0/darwin_amd64/terraform-provider-hcp_v0.30.0_x5 pid=46434 | |
2022-06-08T16:48:27.995+0100 [DEBUG] provider: waiting for RPC address: path=.terraform/providers/registry.terraform.io/hashicorp/hcp/0.30.0/darwin_amd64/terraform-provider-hcp_v0.30.0_x5 | |
2022-06-08T16:48:28.010+0100 [INFO] provider.terraform-provider-hcp_v0.30.0_x5: configuring server automatic mTLS: timestamp=2022-06-08T16:48:28.009+0100 | |
2022-06-08T16:48:28.045+0100 [DEBUG] provider: using plugin: version=5 | |
2022-06-08T16:48:28.045+0100 [DEBUG] provider.terraform-provider-hcp_v0.30.0_x5: plugin address: address=/var/folders/yp/70ygmdtn65x2c_jv9yf2w16c0000gn/T/plugin109975729 network=unix timestamp=2022-06-08T16:48:28.045+0100 | |
2022-06-08T16:48:28.081+0100 [DEBUG] provider.stdio: received EOF, stopping recv loop: err="rpc error: code = Unavailable desc = transport is closing" | |
2022-06-08T16:48:28.082+0100 [DEBUG] provider: plugin process exited: path=.terraform/providers/registry.terraform.io/hashicorp/hcp/0.30.0/darwin_amd64/terraform-provider-hcp_v0.30.0_x5 pid=46434 | |
2022-06-08T16:48:28.082+0100 [DEBUG] provider: plugin exited | |
2022-06-08T16:48:28.082+0100 [INFO] backend/local: plan calling Plan | |
2022-06-08T16:48:28.082+0100 [DEBUG] Building and walking plan graph for NormalMode | |
2022-06-08T16:48:28.084+0100 [DEBUG] ProviderTransformer: "hcp_hvn.network (expand)" (*terraform.nodeExpandPlannableResource) needs provider["registry.terraform.io/hashicorp/hcp"] | |
2022-06-08T16:48:28.084+0100 [DEBUG] ReferenceTransformer: "hcp_hvn.network (expand)" references: [] | |
2022-06-08T16:48:28.084+0100 [DEBUG] ReferenceTransformer: "provider[\"registry.terraform.io/hashicorp/hcp\"]" references: [] | |
2022-06-08T16:48:28.084+0100 [DEBUG] Starting graph walk: walkPlan | |
2022-06-08T16:48:28.084+0100 [DEBUG] created provider logger: level=debug | |
2022-06-08T16:48:28.084+0100 [INFO] provider: configuring client automatic mTLS | |
2022-06-08T16:48:28.102+0100 [DEBUG] provider: starting plugin: path=.terraform/providers/registry.terraform.io/hashicorp/hcp/0.30.0/darwin_amd64/terraform-provider-hcp_v0.30.0_x5 args=[.terraform/providers/registry.terraform.io/hashicorp/hcp/0.30.0/darwin_amd64/terraform-provider-hcp_v0.30.0_x5] | |
2022-06-08T16:48:28.105+0100 [DEBUG] provider: plugin started: path=.terraform/providers/registry.terraform.io/hashicorp/hcp/0.30.0/darwin_amd64/terraform-provider-hcp_v0.30.0_x5 pid=46435 | |
2022-06-08T16:48:28.105+0100 [DEBUG] provider: waiting for RPC address: path=.terraform/providers/registry.terraform.io/hashicorp/hcp/0.30.0/darwin_amd64/terraform-provider-hcp_v0.30.0_x5 | |
2022-06-08T16:48:28.120+0100 [INFO] provider.terraform-provider-hcp_v0.30.0_x5: configuring server automatic mTLS: timestamp=2022-06-08T16:48:28.119+0100 | |
2022-06-08T16:48:28.154+0100 [DEBUG] provider.terraform-provider-hcp_v0.30.0_x5: plugin address: address=/var/folders/yp/70ygmdtn65x2c_jv9yf2w16c0000gn/T/plugin697761166 network=unix timestamp=2022-06-08T16:48:28.154+0100 | |
2022-06-08T16:48:28.154+0100 [DEBUG] provider: using plugin: version=5 | |
2022-06-08T16:48:28.192+0100 [WARN] ValidateProviderConfig from "provider[\"registry.terraform.io/hashicorp/hcp\"]" changed the config value, but that value is unused | |
2022-06-08T16:48:28.193+0100 [INFO] provider.terraform-provider-hcp_v0.30.0_x5: 2022/06/08 16:48:28 Unable complete request to verify HCP status: Get "https://status.hashicorp.com/api/v2/components.json": dial tcp 127.0.0.1:443: connect: connection refused: timestamp=2022-06-08T16:48:28.193+0100 | |
2022-06-08T16:48:28.195+0100 [DEBUG] provider.terraform-provider-hcp_v0.30.0_x5: panic: runtime error: invalid memory address or nil pointer dereference | |
2022-06-08T16:48:28.195+0100 [DEBUG] provider.terraform-provider-hcp_v0.30.0_x5: [signal SIGSEGV: segmentation violation code=0x1 addr=0x40 pc=0x19dec79] | |
2022-06-08T16:48:28.195+0100 [DEBUG] provider.terraform-provider-hcp_v0.30.0_x5: | |
2022-06-08T16:48:28.195+0100 [DEBUG] provider.terraform-provider-hcp_v0.30.0_x5: goroutine 67 [running]: | |
2022-06-08T16:48:28.195+0100 [DEBUG] provider.terraform-provider-hcp_v0.30.0_x5: github.com/hashicorp/terraform-provider-hcp/internal/provider.isHCPOperational(0x0, 0x0, 0x0) | |
2022-06-08T16:48:28.195+0100 [DEBUG] provider.terraform-provider-hcp_v0.30.0_x5: github.com/hashicorp/terraform-provider-hcp/internal/provider/provider.go:202 +0x1d9 | |
2022-06-08T16:48:28.195+0100 [DEBUG] provider.terraform-provider-hcp_v0.30.0_x5: github.com/hashicorp/terraform-provider-hcp/internal/provider.configure.func1(0x1d8d400, 0xc00019b5f0, 0xc0001f1680, 0x0, 0xc00019b530, 0x0, 0x0, 0x0) | |
2022-06-08T16:48:28.195+0100 [DEBUG] provider.terraform-provider-hcp_v0.30.0_x5: github.com/hashicorp/terraform-provider-hcp/internal/provider/provider.go:92 +0x6b | |
2022-06-08T16:48:28.195+0100 [DEBUG] provider.terraform-provider-hcp_v0.30.0_x5: github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema.(*Provider).Configure(0xc000280420, 0x1d8d400, 0xc00019b5f0, 0xc00019b530, 0x1c4964c, 0x12, 0x0) | |
2022-06-08T16:48:28.196+0100 [DEBUG] provider.terraform-provider-hcp_v0.30.0_x5: github.com/hashicorp/terraform-plugin-sdk/v2@v2.16.0/helper/schema/provider.go:297 +0x267 | |
2022-06-08T16:48:28.196+0100 [DEBUG] provider.terraform-provider-hcp_v0.30.0_x5: github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema.(*GRPCProviderServer).ConfigureProvider(0xc00000c078, 0x1d8d358, 0xc00009e200, 0xc00000d200, 0x1c4964c, 0x12, 0x0) | |
2022-06-08T16:48:28.196+0100 [DEBUG] provider.terraform-provider-hcp_v0.30.0_x5: github.com/hashicorp/terraform-plugin-sdk/v2@v2.16.0/helper/schema/grpc_provider.go:557 +0x4e5 | |
2022-06-08T16:48:28.196+0100 [DEBUG] provider.terraform-provider-hcp_v0.30.0_x5: github.com/hashicorp/terraform-plugin-go/tfprotov5/tf5server.(*server).Configure(0xc0000c80a0, 0x1d8d400, 0xc00019ac60, 0xc0004cdf00, 0x0, 0x0, 0x0) | |
2022-06-08T16:48:28.196+0100 [DEBUG] provider.terraform-provider-hcp_v0.30.0_x5: github.com/hashicorp/terraform-plugin-go@v0.9.0/tfprotov5/tf5server/server.go:555 +0x32f | |
2022-06-08T16:48:28.196+0100 [DEBUG] provider.terraform-provider-hcp_v0.30.0_x5: github.com/hashicorp/terraform-plugin-go/tfprotov5/internal/tfplugin5._Provider_Configure_Handler(0x1bf84e0, 0xc0000c80a0, 0x1d8d400, 0xc00019ac60, 0xc000113f80, 0x0, 0x1d8d400, 0xc00019ac60, 0xc000156210, 0x26) | |
2022-06-08T16:48:28.196+0100 [DEBUG] provider.terraform-provider-hcp_v0.30.0_x5: github.com/hashicorp/terraform-plugin-go@v0.9.0/tfprotov5/internal/tfplugin5/tfplugin5_grpc.pb.go:331 +0x214 | |
2022-06-08T16:48:28.196+0100 [DEBUG] provider.terraform-provider-hcp_v0.30.0_x5: google.golang.org/grpc.(*Server).processUnaryRPC(0xc000246380, 0x1d96338, 0xc000120000, 0xc00060c360, 0xc00009d350, 0x23cc4b8, 0x0, 0x0, 0x0) | |
2022-06-08T16:48:28.196+0100 [DEBUG] provider.terraform-provider-hcp_v0.30.0_x5: google.golang.org/grpc@v1.46.2/server.go:1283 +0x544 | |
2022-06-08T16:48:28.196+0100 [DEBUG] provider.terraform-provider-hcp_v0.30.0_x5: google.golang.org/grpc.(*Server).handleStream(0xc000246380, 0x1d96338, 0xc000120000, 0xc00060c360, 0x0) | |
2022-06-08T16:48:28.196+0100 [DEBUG] provider.terraform-provider-hcp_v0.30.0_x5: google.golang.org/grpc@v1.46.2/server.go:1620 +0xd0c | |
2022-06-08T16:48:28.196+0100 [DEBUG] provider.terraform-provider-hcp_v0.30.0_x5: google.golang.org/grpc.(*Server).serveStreams.func1.2(0xc000468270, 0xc000246380, 0x1d96338, 0xc000120000, 0xc00060c360) | |
2022-06-08T16:48:28.196+0100 [DEBUG] provider.terraform-provider-hcp_v0.30.0_x5: google.golang.org/grpc@v1.46.2/server.go:922 +0xab | |
2022-06-08T16:48:28.196+0100 [DEBUG] provider.terraform-provider-hcp_v0.30.0_x5: created by google.golang.org/grpc.(*Server).serveStreams.func1 | |
2022-06-08T16:48:28.196+0100 [DEBUG] provider.terraform-provider-hcp_v0.30.0_x5: google.golang.org/grpc@v1.46.2/server.go:920 +0x1fd | |
2022-06-08T16:48:28.197+0100 [ERROR] plugin.(*GRPCProvider).ConfigureProvider: error="rpc error: code = Unavailable desc = transport is closing" | |
2022-06-08T16:48:28.197+0100 [DEBUG] provider: plugin process exited: path=.terraform/providers/registry.terraform.io/hashicorp/hcp/0.30.0/darwin_amd64/terraform-provider-hcp_v0.30.0_x5 pid=46435 error="exit status 2" | |
2022-06-08T16:48:28.197+0100 [ERROR] vertex "provider[\"registry.terraform.io/hashicorp/hcp\"]" error: Plugin did not respond | |
2022-06-08T16:48:28.197+0100 [DEBUG] provider.stdio: received EOF, stopping recv loop: err="rpc error: code = Unavailable desc = transport is closing" | |
2022-06-08T16:48:28.197+0100 [INFO] backend/local: plan operation completed | |
╷ | |
│ Error: Plugin did not respond | |
│ | |
│ with provider["registry.terraform.io/hashicorp/hcp"], | |
│ on customer-config.tf line 10, in provider "hcp": | |
│ 10: provider "hcp" { | |
│ | |
│ The plugin encountered an error, and failed to respond to the plugin.(*GRPCProvider).ConfigureProvider call. The plugin logs may contain more details. | |
╵ | |
Stack trace from the terraform-provider-hcp_v0.30.0_x5 plugin: | |
panic: runtime error: invalid memory address or nil pointer dereference | |
[signal SIGSEGV: segmentation violation code=0x1 addr=0x40 pc=0x19dec79] | |
goroutine 67 [running]: | |
github.com/hashicorp/terraform-provider-hcp/internal/provider.isHCPOperational(0x0, 0x0, 0x0) | |
github.com/hashicorp/terraform-provider-hcp/internal/provider/provider.go:202 +0x1d9 | |
github.com/hashicorp/terraform-provider-hcp/internal/provider.configure.func1(0x1d8d400, 0xc00019b5f0, 0xc0001f1680, 0x0, 0xc00019b530, 0x0, 0x0, 0x0) | |
github.com/hashicorp/terraform-provider-hcp/internal/provider/provider.go:92 +0x6b | |
github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema.(*Provider).Configure(0xc000280420, 0x1d8d400, 0xc00019b5f0, 0xc00019b530, 0x1c4964c, 0x12, 0x0) | |
github.com/hashicorp/terraform-plugin-sdk/v2@v2.16.0/helper/schema/provider.go:297 +0x267 | |
github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema.(*GRPCProviderServer).ConfigureProvider(0xc00000c078, 0x1d8d358, 0xc00009e200, 0xc00000d200, 0x1c4964c, 0x12, 0x0) | |
github.com/hashicorp/terraform-plugin-sdk/v2@v2.16.0/helper/schema/grpc_provider.go:557 +0x4e5 | |
github.com/hashicorp/terraform-plugin-go/tfprotov5/tf5server.(*server).Configure(0xc0000c80a0, 0x1d8d400, 0xc00019ac60, 0xc0004cdf00, 0x0, 0x0, 0x0) | |
github.com/hashicorp/terraform-plugin-go@v0.9.0/tfprotov5/tf5server/server.go:555 +0x32f | |
github.com/hashicorp/terraform-plugin-go/tfprotov5/internal/tfplugin5._Provider_Configure_Handler(0x1bf84e0, 0xc0000c80a0, 0x1d8d400, 0xc00019ac60, 0xc000113f80, 0x0, 0x1d8d400, 0xc00019ac60, 0xc000156210, 0x26) | |
github.com/hashicorp/terraform-plugin-go@v0.9.0/tfprotov5/internal/tfplugin5/tfplugin5_grpc.pb.go:331 +0x214 | |
google.golang.org/grpc.(*Server).processUnaryRPC(0xc000246380, 0x1d96338, 0xc000120000, 0xc00060c360, 0xc00009d350, 0x23cc4b8, 0x0, 0x0, 0x0) | |
google.golang.org/grpc@v1.46.2/server.go:1283 +0x544 | |
google.golang.org/grpc.(*Server).handleStream(0xc000246380, 0x1d96338, 0xc000120000, 0xc00060c360, 0x0) | |
google.golang.org/grpc@v1.46.2/server.go:1620 +0xd0c | |
google.golang.org/grpc.(*Server).serveStreams.func1.2(0xc000468270, 0xc000246380, 0x1d96338, 0xc000120000, 0xc00060c360) | |
google.golang.org/grpc@v1.46.2/server.go:922 +0xab | |
created by google.golang.org/grpc.(*Server).serveStreams.func1 | |
google.golang.org/grpc@v1.46.2/server.go:920 +0x1fd | |
Error: The terraform-provider-hcp_v0.30.0_x5 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. | |
2022-06-08T16:48:28.198+0100 [DEBUG] provider: plugin exited |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment