Skip to content

Instantly share code, notes, and snippets.

@mmorejon
Created November 22, 2022 10:44
Show Gist options
  • Save mmorejon/b0a65a19019e4f3b75e3306c85119ff3 to your computer and use it in GitHub Desktop.
Save mmorejon/b0a65a19019e4f3b75e3306c85119ff3 to your computer and use it in GitHub Desktop.
Harness Terraform provider - Create user
harness_user.manuel_morejon: Creating...
│ Error: Plugin did not respond
│ with harness_user.manuel_morejon,
│ on main.tf line 36, in resource "harness_user" "manuel_morejon":
│ 36: resource "harness_user" "manuel_morejon" {
│ The plugin encountered an error, and failed to respond to the plugin.(*GRPCProvider).ApplyResourceChange call. The plugin logs may contain
│ more details.
Stack trace from the terraform-provider-harness_v0.8.3 plugin:
panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x2 addr=0x60 pc=0x1016b9c38]
goroutine 67 [running]:
github.com/harness/terraform-provider-harness/internal/service/cd/user.resourceUserCreate({0x101bcc2a0?, 0x1400068c0f0?}, 0x0?, {0x101a7c600?, 0x140003b65c0?})
github.com/harness/terraform-provider-harness/internal/service/cd/user/user.go:98 +0x218
github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema.(*Resource).create(0x14000323180, {0x101bcc2a0, 0x1400068c0f0}, 0xd?, {0x101a7c600, 0x140003b65c0})
github.com/hashicorp/terraform-plugin-sdk/[email protected]/helper/schema/resource.go:707 +0xec
github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema.(*Resource).Apply(0x14000323180, {0x101bcc2a0, 0x1400068c0f0}, 0x14000692340, 0x14000698200, {0x101a7c600, 0x140003b65c0})
github.com/hashicorp/terraform-plugin-sdk/[email protected]/helper/schema/resource.go:837 +0x874
github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema.(*GRPCProviderServer).ApplyResourceChange(0x140001280c0, {0x101bcc2a0?, 0x1400087d2c0?}, 0x14000808dc0)
github.com/hashicorp/terraform-plugin-sdk/[email protected]/helper/schema/grpc_provider.go:1021 +0xb94
github.com/hashicorp/terraform-plugin-go/tfprotov5/tf5server.(*server).ApplyResourceChange(0x1400017c000, {0x101bcc2a0?, 0x1400087cab0?}, 0x14000879f10)
github.com/hashicorp/[email protected]/tfprotov5/tf5server/server.go:818 +0x3c0
github.com/hashicorp/terraform-plugin-go/tfprotov5/internal/tfplugin5._Provider_ApplyResourceChange_Handler({0x101b774e0?, 0x1400017c000}, {0x101bcc2a0, 0x1400087cab0}, 0x14000879ea0, 0x0)
github.com/hashicorp/[email protected]/tfprotov5/internal/tfplugin5/tfplugin5_grpc.pb.go:385 +0x174
google.golang.org/grpc.(*Server).processUnaryRPC(0x1400046a000, {0x101bcee60, 0x140002b7d40}, 0x14000355c20, 0x140005394a0, 0x1021aa840, 0x0)
google.golang.org/[email protected]/server.go:1340 +0xb90
google.golang.org/grpc.(*Server).handleStream(0x1400046a000, {0x101bcee60, 0x140002b7d40}, 0x14000355c20, 0x0)
google.golang.org/[email protected]/server.go:1713 +0x840
google.golang.org/grpc.(*Server).serveStreams.func1.2()
google.golang.org/[email protected]/server.go:965 +0x88
created by google.golang.org/grpc.(*Server).serveStreams.func1
google.golang.org/[email protected]/server.go:963 +0x298
Error: The terraform-provider-harness_v0.8.3 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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment