terraform-provider-proxmox: Plugin Crash

Got this error after plugin crash. What does this mean?

`Stack trace from the terraform-provider-proxmox_v2.9.10 plugin:

panic: interface conversion: interface {} is nil, not []interface {}

goroutine 55 [running]: github.com/Telmate/proxmox-api-go/proxmox.(*Client).GetVmRefsByName(0xc3332a, {0xc0005aa510, 0x9}) github.com/Telmate/proxmox-api-go@v0.0.0-20220427175411-e25c3463f0db/proxmox/client.go:197 +0x625 github.com/Telmate/proxmox-api-go/proxmox.(*Client).GetVmRefByName(…) github.com/Telmate/proxmox-api-go@v0.0.0-20220427175411-e25c3463f0db/proxmox/client.go:187 github.com/Telmate/terraform-provider-proxmox/proxmox.resourceVmQemuCreate(0xc000507100, {0xae93c0, 0xc000165bd0}) github.com/Telmate/terraform-provider-proxmox/proxmox/resource_vm_qemu.go:795 +0x1385 github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema.(*Resource).create(0xd1df00, {0xd1df00, 0xc0007a89f0}, 0xd, {0xae93c0, 0xc000165bd0}) github.com/hashicorp/terraform-plugin-sdk/v2@v2.14.0/helper/schema/resource.go:695 +0x178 github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema.(*Resource).Apply(0xc0003dc700, {0xd1df00, 0xc0007a89f0}, 0xc0001411e0, 0xc000506f80, {0xae93c0, 0xc000165bd0}) github.com/hashicorp/terraform-plugin-sdk/v2@v2.14.0/helper/schema/resource.go:837 +0xc29 github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema.(*GRPCProviderServer).ApplyResourceChange(0xc000305140, {0xd1de58, 0xc000502680}, 0xc0003143c0) github.com/hashicorp/terraform-plugin-sdk/v2@v2.14.0/helper/schema/grpc_provider.go:1021 +0xe3c github.com/hashicorp/terraform-plugin-go/tfprotov5/tf5server.(*server).ApplyResourceChange(0xc00036c3c0, {0xd1df00, 0xc0007a81e0}, 0xc0001c01c0) github.com/hashicorp/terraform-plugin-go@v0.9.0/tfprotov5/tf5server/server.go:812 +0x56b github.com/hashicorp/terraform-plugin-go/tfprotov5/internal/tfplugin5._Provider_ApplyResourceChange_Handler({0xbe2c80, 0xc00036c3c0}, {0xd1df00, 0xc0007a81e0}, 0xc00043c1e0, 0x0) github.com/hashicorp/terraform-plugin-go@v0.9.0/tfprotov5/internal/tfplugin5/tfplugin5_grpc.pb.go:385 +0x170 google.golang.org/grpc.(*Server).processUnaryRPC(0xc000326700, {0xd2b6c0, 0xc000102d00}, 0xc00057c000, 0xc0003fac30, 0x120cfa0, 0x0) google.golang.org/grpc@v1.46.0/server.go:1283 +0xcf2 google.golang.org/grpc.(*Server).handleStream(0xc000326700, {0xd2b6c0, 0xc000102d00}, 0xc00057c000, 0x0) google.golang.org/grpc@v1.46.0/server.go:1620 +0xa2a google.golang.org/grpc.(*Server).serveStreams.func1.2() google.golang.org/grpc@v1.46.0/server.go:922 +0x98 created by google.golang.org/grpc.(*Server).serveStreams.func1 google.golang.org/grpc@v1.46.0/server.go:920 +0x294

Error: The terraform-provider-proxmox_v2.9.10 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. `

About this issue

  • Original URL
  • State: closed
  • Created 2 years ago
  • Comments: 17 (2 by maintainers)

Most upvoted comments

Priv Separation was my problem too. That solved it. Thanks!

@mleone87 I uncheck the privilege separation and the vm creation still working. Thanks for you help

@UmanGarbag nice! the other way is to DO NOT USE privilege separation, like in the first image!