Closed tienphan181 closed 4 weeks ago
Could you activate the provider debug and share it?
provider "meraki" {
meraki_debug = "true"
}
export TF_LOG="DEBUG"
I test it and it works for me.
I got this new crashed plugin logs when trying to create a new sensor alert profile:
`module.test-Terraform-sensor-alerts.meraki_networks_sensor_alerts_profiles.sensor-alerts: Creating...
╷ │ Error: Plugin did not respond │ │ The plugin encountered an error, and failed to respond to the │ plugin6.(GRPCProvider).ApplyResourceChange call. The plugin logs may │ contain more details. ╵ ╷ │ Error: Plugin did not respond │ │ The plugin encountered an error, and failed to respond to the │ plugin6.(GRPCProvider).ApplyResourceChange call. The plugin logs may │ contain more
Stack trace from the terraform-provider-meraki_v0.2.6-alpha plugin:
panic: runtime error: invalid memory address or nil pointer dereference [signal SIGSEGV: segmentation violation code=0x1 addr=0x18 pc=0xd26386]
goroutine 12 [running]: github.com/cisco-open/terraform-provider-meraki/internal/provider.(NetworksSensorAlertsProfilesResource).Create(0xc000092508, {0x18c6008, 0xc0004d4030}, {{{{0x18cdc90, 0xc00057f4d0}, {0x1355760, 0xc00060fc80}}, {0x18dff60, 0xc0000c0910}}, {{{0x18cdc90, ...}, ...}, ...}, ...}, ...) github.com/cisco-open/terraform-provider-meraki/internal/provider/resource_meraki_networks_sensor_alerts_profiles.go:1024 +0x6c6 github.com/hashicorp/terraform-plugin-framework/internal/fwserver.(Server).CreateResource(0xc00020d040, {0x18c6008, 0xc0004d4030}, 0xc0009a3580, 0xc0009a3520) github.com/hashicorp/terraform-plugin-framework@v1.7.0/internal/fwserver/server_createresource.go:101 +0x578 github.com/hashicorp/terraform-plugin-framework/internal/fwserver.(Server).ApplyResourceChange(0xc0006076d8?, {0x18c6008, 0xc0004d4030}, 0xc00069a820, 0xc0009a36d8) github.com/hashicorp/terraform-plugin-framework@v1.7.0/internal/fwserver/server_applyresourcechange.go:57 +0x4a5 github.com/hashicorp/terraform-plugin-framework/internal/proto6server.(Server).ApplyResourceChange(0xc00020d040, {0x18c6008?, 0xc0004c7c50?}, 0xc00069a780) github.com/hashicorp/terraform-plugin-framework@v1.7.0/internal/proto6server/server_applyresourcechange.go:55 +0x3e5 github.com/hashicorp/terraform-plugin-go/tfprotov6/tf6server.(server).ApplyResourceChange(0xc00023c8c0, {0x18c6008?, 0xc0005ff770?}, 0xc000210620) github.com/hashicorp/terraform-plugin-go@v0.23.0/tfprotov6/tf6server/server.go:865 +0x3d0 github.com/hashicorp/terraform-plugin-go/tfprotov6/internal/tfplugin6._Provider_ApplyResourceChange_Handler({0x157eba0?, 0xc00023c8c0}, {0x18c6008, 0xc0005ff770}, 0xc000128080, 0x0) github.com/hashicorp/terraform-plugin-go@v0.23.0/tfprotov6/internal/tfplugin6/tfplugin6_grpc.pb.go:518 +0x169 google.golang.org/grpc.(Server).processUnaryRPC(0xc0001c9000, {0x18c6008, 0xc0005ff6e0}, {0x18de3d8, 0xc000400000}, 0xc000570fc0, 0xc000323980, 0x215a1b8, 0x0) google.golang.org/grpc@v1.63.2/server.go:1369 +0xe23 google.golang.org/grpc.(Server).handleStream(0xc0001c9000, {0x18de3d8, 0xc000400000}, 0xc000570fc0) google.golang.org/grpc@v1.63.2/server.go:1780 +0x1016 google.golang.org/grpc.(Server).serveStreams.func2.1() google.golang.org/grpc@v1.63.2/server.go:1019 +0x8b created by google.golang.org/grpc.(*Server).serveStreams.func2 in goroutine 23 google.golang.org/grpc@v1.63.2/server.go:1030 +0x135
Error: The terraform-provider-meraki_v0.2.6-alpha 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. `
Thanks!
Hi @tienphan181 please pass me DEBUG of provider.
Hi @fmunozmiranda,
I attached the Debug logs. fefb7a1d-fe79-41c2-8d5c-df3ff9ff45d7-opentofu_apply.log
@tienphan181 please try it again with new version and update us.
Closed due inacticity.
Describe the bug This issue was reported fix in 0.2.4-alpha Changelog but I am still seeing the issue when trying on to run it on both 0.2.4-alpha and 0.2.5-alpha.
│ Error: Failure when executing CreateNetworkSensorAlertsProfile │ │ with meraki_networks_sensor_alerts_profiles.sensor-alerts, │ on sensors-alerts.tf line 16, in resource "meraki_networks_sensor_alerts_profiles" "sensor-alerts": │ 16: resource "meraki_networks_sensor_alerts_profiles" "sensor-alerts" { │ │ error with operation CreateNetworkSensorAlertsProfile
Expected behavior I would expect the new sensor profile resource to be created with no error.
Environment (please complete the following information):