Closed NassaDevops closed 2 years ago
Similar issue here too:
Terraform v1.2.2
on linux_amd64
+ provider registry.terraform.io/hashicorp/azuread v1.6.0
+ provider registry.terraform.io/hashicorp/azurerm v3.8.0
+ provider registry.terraform.io/hashicorp/external v2.2.2
+ provider registry.terraform.io/hashicorp/random v3.2.0
+ provider registry.terraform.io/hashicorp/tls v3.4.0
╷
│ Error: Plugin did not respond
│
│ with azurerm_marketplace_agreement.linux_license_agreement[0],
│ on main.tf line 210, in resource "azurerm_marketplace_agreement" "linux_license_agreement":
│ 210: resource "azurerm_marketplace_agreement" "linux_license_agreement" {
│
│ The plugin encountered an error, and failed to respond to the
│ plugin.(*GRPCProvider).ReadResource call. The plugin logs may contain more
│ details.
╵
╷
│ Error: Plugin did not respond
│
│ with module.cassandravm.data.azurerm_resources.management,
│ on .terraform/modules/cassandravm/data.tf line 3, in data "azurerm_resources" "management":
│ 3: data "azurerm_resources" "management" {
│
│ The plugin encountered an error, and failed to respond to the
│ plugin.(*GRPCProvider).ReadDataSource call. The plugin logs may contain
│ more details.
╵
╷
│ Error: Plugin did not respond
│
│ with module.ea.data.azurerm_backup_policy_vm.backup[0],
│ on .terraform/modules/ea/backup.tf line 74, in data "azurerm_backup_policy_vm" "backup":
│ 74: data "azurerm_backup_policy_vm" "backup" {
│
│ The plugin encountered an error, and failed to respond to the
│ plugin.(*GRPCProvider).ReadDataSource call. The plugin logs may contain
│ more details.
╵
╷
│ Error: Plugin did not respond
│
│ with module.ea.azurerm_windows_virtual_machine.windows_vm[0],
│ on .terraform/modules/ea/main.tf line 67, in resource "azurerm_windows_virtual_machine" "windows_vm":
│ 67: resource "azurerm_windows_virtual_machine" "windows_vm" {
│
│ The plugin encountered an error, and failed to respond to the
│ plugin.(*GRPCProvider).ReadResource call. The plugin logs may contain more
│ details.
╵
Stack trace from the terraform-provider-azurerm_v3.8.0_x5 plugin:
panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0x0 pc=0x4e0215f]
goroutine 611 [running]:
github.com/hashicorp/terraform-provider-azurerm/internal/services/recoveryservices.dataSourceBackupPolicyVmRead(0x7ff0b3e98f50?, {0x554dfc0?, 0xc0002ea700?})
github.com/hashicorp/terraform-provider-azurerm/internal/services/recoveryservices/backup_policy_vm_data_source.go:49 +0x55f
github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema.(*Resource).read(0x5e7b3c1?, {0x65da938?, 0xc0016fd680?}, 0xc001634f00?, {0x554dfc0?, 0xc0002ea700?})
github.com/hashicorp/terraform-plugin-sdk/v2@v2.10.1/helper/schema/resource.go:346 +0x178
github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema.(*Resource).ReadDataApply(0xc0001fa000, {0x65da938, 0xc0016fd680}, 0xc0019d3c80, {0x554dfc0, 0xc0002ea700})
github.com/hashicorp/terraform-plugin-sdk/v2@v2.10.1/helper/schema/resource.go:569 +0xf7
github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema.(*GRPCProviderServer).ReadDataSource(0xc00000c090, {0x65da938, 0xc0016fd680}, 0xc001eec820)
github.com/hashicorp/terraform-plugin-sdk/v2@v2.10.1/helper/schema/grpc_provider.go:1133 +0x339
github.com/hashicorp/terraform-plugin-go/tfprotov5/tf5server.(*server).ReadDataSource(0xc0001d5900, {0x65da9e0?, 0xc001634750?}, 0xc0022e0f00)
github.com/hashicorp/terraform-plugin-go@v0.5.0/tfprotov5/tf5server/server.go:478 +0x31b
github.com/hashicorp/terraform-plugin-go/tfprotov5/internal/tfplugin5._Provider_ReadDataSource_Handler({0x5abd740?, 0xc0001d5900}, {0x65da9e0, 0xc001634750}, 0xc001c708a0, 0x0)
github.com/hashicorp/terraform-plugin-go@v0.5.0/tfprotov5/internal/tfplugin5/tfplugin5_grpc.pb.go:416 +0x170
google.golang.org/grpc.(*Server).processUnaryRPC(0xc000231180, {0x65ebad8, 0xc0001a0900}, 0xc001883200, 0xc001454750, 0xa52c970, 0x0)
google.golang.org/grpc@v1.39.0/server.go:1292 +0xc6f
google.golang.org/grpc.(*Server).handleStream(0xc000231180, {0x65ebad8, 0xc0001a0900}, 0xc001883200, 0x0)
google.golang.org/grpc@v1.39.0/server.go:1617 +0xa1b
google.golang.org/grpc.(*Server).serveStreams.func1.2()
google.golang.org/grpc@v1.39.0/server.go:940 +0x98
created by google.golang.org/grpc.(*Server).serveStreams.func1
google.golang.org/grpc@v1.39.0/server.go:938 +0x28a
Error: The terraform-provider-azurerm_v3.8.0_x5 plugin crashed!
Odd that it fails only on a single environment (out of 3). The referenced resources above have all been created before using AzureRM 2.x, brownfields.
I've worked around this environment (aka not getting any love anymore).
Exact same problem here
This functionality has been released in v3.11.0 of the Terraform Provider. Please see the Terraform documentation on provider versioning or reach out if you need any assistance upgrading.
For further feature requests or bug reports with this functionality, please create a new GitHub issue following the template. Thank you!
I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues. If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.
Is there an existing issue for this?
Community Note
Terraform Version
1.2.1
AzureRM Provider Version
3.8.0
Affected Resource(s)/Data Source(s)
azurerm_linux_function_app_slot
Terraform Configuration Files
Debug Output/Panic Output
Expected Behaviour
Expected plan as usual
Actual Behaviour
Error: The terraform-provider-azurerm_v3.8.0_x5 plugin crashed!
Steps to Reproduce
We switched from resource "azurerm_function_app" to resource "azurerm_linux_function_app" terraform plan
Important Factoids
no
References
No response