Loading...
Loading...
### Terraform Version ```shell !!!!!!!!!!!!!!!!!!!!!!!!!!! TERRAFORM CRASH !!!!!!!!!!!!!!!!!!!!!!!!!!!! panic: Failed to serialize resource instance in state: Instance proxmox_virtual_environment_vm.test[2] has status ObjectStatus(0), which cannot be saved in state. goroutine 154 [running]: runtime/debug.Stack() runtime/debug/stack.go:26 +0x83 github.com/hashicorp/terraform/internal/logging.PanicHandler() github.com/hashicorp/terraform/internal/logging/panic.go:84 +0x148 panic({0xbe5d160, 0x1240ee20}) runtime/panic.go:860 +0x10b github.com/hashicorp/terraform/internal/terraform.(*Graph).walk.func1.1() github.com/hashicorp/terraform/internal/terraform/graph.go:59 +0x46d panic({0xbe5d160, 0x1240ee20}) runtime/panic.go:860 +0x10b github.com/hashicorp/terraform/internal/states/statefile.StatesMarshalEqual(0x123b45e0, 0x12033820) github.com/hashicorp/terraform/internal/states/statefile/marshal_equal.go:34 +0x172 github.com/hashicorp/terraform/internal/states/statemgr.(*Filesystem).writeState(0x11ff1800, 0x123b45e0, 0x0) github.com/hashicorp/terraform/internal/states/statemgr/filesystem.go:154 +0xcc github.com/hashicorp/terraform/internal/states/statemgr.(*Filesystem).WriteState(0x11ff1800, 0x123b45e0) github.com/hashicorp/terraform/internal/states/statemgr/filesystem.go:140 +0x97 github.com/hashicorp/terraform/internal/backend/local.(*StateHook).PostStateUpdate(0x11ff17c0, 0x123b45e0) github.com/hashicorp/terraform/internal/backend/local/hook_state.go:55 +0x136 github.com/hashicorp/terraform/internal/terraform.updateStateHook.func1({0xc263558, 0x11ff17c0}) github.com/hashicorp/terraform/internal/terraform/update_state_hook.go:16 +0x2c github.com/hashicorp/terraform/internal/terraform.(*BuiltinEvalContext).Hook(0x11cdaaa8, 0x1265bd00) github.com/hashicorp/terraform/internal/terraform/eval_context_builtin.go:139 +0x69 github.com/hashicorp/terraform/internal/terraform.updateStateHook({0xc2686e4, 0x11cdaaa8}) github.com/hashicorp/terraform/internal/terraform/update_state_hook.go:15 +0xd1 github.com/hashicorp/terraform/internal/terraform.(*NodeApplyableResourceInstance).managedResourceExecute(0x125f2110, {0xc2686e4, 0x11cdaaa8}) github.com/hashicorp/terraform/internal/terraform/node_resource_apply_instance.go:380 +0x20d9 github.com/hashicorp/terraform/internal/terraform.(*NodeApplyableResourceInstance).Execute(0x125f2110, {0xc2686e4, 0x11cdaaa8}, 0x1) github.com/hashicorp/terraform/internal/terraform/node_resource_apply_instance.go:96 +0x8b github.com/hashicorp/terraform/internal/terraform.(*ContextGraphWalker).Execute(0x12012ea8, {0xc2686e4, 0x11cdaaa8}, {0xb7a8d0a0, 0x125f2110}) github.com/hashicorp/terraform/internal/terraform/graph_walk_context.go:173 +0xa6 github.com/hashicorp/terraform/internal/terraform.(*Graph).walk.func1({0xbf39760, 0x125f2110}) github.com/hashicorp/terraform/internal/terraform/graph.go:143 +0xc81 github.com/hashicorp/terraform/internal/dag.(*Walker).walkVertex(0x121b90c0, {0xbf39760, 0x125f2110}, 0x12588e20) github.com/hashicorp/terraform/internal/dag/walk.go:412 +0x2c0 created by github.com/hashicorp/terraform/internal/dag.(*Walker).Update in goroutine 120 github.com/hashicorp/terraform/internal/dag/walk.go:331 +0xe66 ``` ### Terraform Configuration Files ```terraform ...terraform config... ``` ### Debug Output ``` ...debug output, or link to a gist... ``` ### Expected Behavior apply ### Actual Behavior crashed Enter a value: yes proxmox_virtual_environment_vm.test[0]: Creating... proxmox_virtual_environment_vm.test[1]: Creating... proxmox_virtual_environment_vm.test[2]: Creating... proxmox_virtual_environment_vm.test[0]: Still creating... [00m10s elapsed] proxmox_virtual_environment_vm.test[1]: Still creating... [00m10s elapsed] proxmox_virtual_environment_vm.test[2]: Still creating... [00m10s elapsed] !!!!!!!!!!!!!!!!!!!!!!!!!!! TERRAFORM CRASH !!!!!!!!!!!!!!!!!!!!!!!!!!!! Terraform crashed! This is always indicative of a bug within Terraform. Please report the crash with Terraform[1] so that we can fix this. When reporting bugs, please include your terraform version, the stack trace shown below, and any additional information which may help replicate the issue. [1]: https://github.com/hashicorp/terraform/issues !!!!!!!!!!!!!!!!!!!!!!!!!!! TERRAFORM CRASH !!!!!!!!!!!!!!!!!!!!!!!!!!!! panic: Failed to serialize resource instance in state: Instance proxmox_virtual_environment_vm.test[2] has status ObjectStatus(0), which cannot be saved in state. goroutine 154 [running]: runtime/debug.Stack() runtime/debug/stack.go:26 +0x83 github.com/hashicorp/terraform/internal/logging.PanicHandler() github.com/hashicorp/terraform/internal/logging/panic.go:84 +0x148 panic({0xbe5d160, 0x1240ee20}) runtime/panic.go:860 +0x10b github.com/hashicorp/terraform/internal/terraform.(*Graph).walk.func1.1() github.com/hashicorp/terraform/internal/terraform/graph.go:59 +0x46d panic({0xbe5d160, 0x1240ee20}) runtime/panic.go:860 +0x10b github.com/hashicorp/terraform/internal/states/statefile.StatesMarshalEqual(0x123b45e0, 0x12033820) github.com/hashicorp/terraform/internal/states/statefile/marshal_equal.go:34 +0x172 github.com/hashicorp/terraform/internal/states/statemgr.(*Filesystem).writeState(0x11ff1800, 0x123b45e0, 0x0) github.com/hashicorp/terraform/internal/states/statemgr/filesystem.go:154 +0xcc github.com/hashicorp/terraform/internal/states/statemgr.(*Filesystem).WriteState(0x11ff1800, 0x123b45e0) github.com/hashicorp/terraform/internal/states/statemgr/filesystem.go:140 +0x97 github.com/hashicorp/terraform/internal/backend/local.(*StateHook).PostStateUpdate(0x11ff17c0, 0x123b45e0) github.com/hashicorp/terraform/internal/backend/local/hook_state.go:55 +0x136 github.com/hashicorp/terraform/internal/terraform.updateStateHook.func1({0xc263558, 0x11ff17c0}) github.com/hashicorp/terraform/internal/terraform/update_state_hook.go:16 +0x2c github.com/hashicorp/terraform/internal/terraform.(*BuiltinEvalContext).Hook(0x11cdaaa8, 0x1265bd00) github.com/hashicorp/terraform/internal/terraform/eval_context_builtin.go:139 +0x69 github.com/hashicorp/terraform/internal/terraform.updateStateHook({0xc2686e4, 0x11cdaaa8}) github.com/hashicorp/terraform/internal/terraform/update_state_hook.go:15 +0xd1 github.com/hashicorp/terraform/internal/terraform.(*NodeApplyableResourceInstance).managedResourceExecute(0x125f2110, {0xc2686e4, 0x11cdaaa8}) github.com/hashicorp/terraform/internal/terraform/node_resource_apply_instance.go:380 +0x20d9 github.com/hashicorp/terraform/internal/terraform.(*NodeApplyableResourceInstance).Execute(0x125f2110, {0xc2686e4, 0x11cdaaa8}, 0x1) github.com/hashicorp/terraform/internal/terraform/node_resource_apply_instance.go:96 +0x8b github.com/hashicorp/terraform/internal/terraform.(*ContextGraphWalker).Execute(0x12012ea8, {0xc2686e4, 0x11cdaaa8}, {0xb7a8d0a0, 0x125f2110}) github.com/hashicorp/terraform/internal/terraform/graph_walk_context.go:173 +0xa6 github.com/hashicorp/terraform/internal/terraform.(*Graph).walk.func1({0xbf39760, 0x125f2110}) github.com/hashicorp/terraform/internal/terraform/graph.go:143 +0xc81 github.com/hashicorp/terraform/internal/dag.(*Walker).walkVertex(0x121b90c0, {0xbf39760, 0x125f2110}, 0x12588e20) github.com/hashicorp/terraform/internal/dag/walk.go:412 +0x2c0 created by github.com/hashicorp/terraform/internal/dag.(*Walker).Update in goroutine 120 github.com/hashicorp/terraform/internal/dag/walk.go:331 +0xe66 ### Steps to Reproduce terraform apply ### Additional Context _No response_ ### References _No response_ ### Generative AI / LLM assisted development? _No response_
Click on a version to see all relevant bugs
Terraform Integration
Learn more about where this data comes from
BugZero Plan
Streamline upgrades with automated vendor bug scrubs
BugZero Prevent
Wish you caught this bug sooner? Get proactive today.