Loading...
Loading...
### Terraform Version ```shell Terraform v1.15.0 on linux_amd64 + provider registry.terraform.io/hashicorp/aws v5.100.0 + provider registry.terraform.io/hashicorp/external v2.3.5 + provider registry.terraform.io/oracle/oci v5.47.0 ``` ### Terraform Configuration Files ```terraform internal repository that we cannot share. ``` ### Debug Output ``` !!!!!!!!!!!!!!!!!!!!!!!!!!! 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: must not call MapVal with empty map goroutine 2359 [running]: runtime/debug.Stack() runtime/debug/stack.go:26 +0x5e github.com/hashicorp/terraform/internal/logging.PanicHandler() github.com/hashicorp/terraform/internal/logging/panic.go:84 +0x16a panic({0x3be11a0?, 0x4d85770?}) runtime/panic.go:783 +0x132 github.com/hashicorp/terraform/internal/terraform.(*Graph).walk.func1.1() github.com/hashicorp/terraform/internal/terraform/graph.go:59 +0x4c5 panic({0x3be11a0?, 0x4d85770?}) runtime/panic.go:783 +0x132 github.com/zclconf/go-cty/cty.MapVal(0x6?) github.com/zclconf/go-cty@v1.18.0/cty/value_init.go:211 +0x485 github.com/hashicorp/terraform/internal/terraform.(*evaluationStateData).GetModule(0xc003299d40, {{}, {0xc000f014b8?, 0x0?}}, {{0xc000bc1f00, 0x33}, {0x2, 0xb, 0x28}, {0x2, ...}}) github.com/hashicorp/terraform/internal/terraform/evaluate.go:596 +0x1279 github.com/hashicorp/terraform/internal/lang.(*Scope).evalContext(0xc00444fc20, {0xc0025dfa58, 0x1, 0x1}, {0x0, 0x0}) github.com/hashicorp/terraform/internal/lang/eval.go:392 +0x1c63 github.com/hashicorp/terraform/internal/lang.(*Scope).EvalContext(...) github.com/hashicorp/terraform/internal/lang/eval.go:248 github.com/hashicorp/terraform/internal/lang.(*Scope).EvalExpr(0xc00444fc20, {0x4df06f8, 0xc000dc0780}, {{0x4df0cd8?, 0x73c3340?}}) github.com/hashicorp/terraform/internal/lang/eval.go:173 +0x8c github.com/hashicorp/terraform/internal/terraform.(*BuiltinEvalContext).EvaluateExpr(0xc002767248?, {0x4df06f8, 0xc000dc0780}, {{0x4df0cd8?, 0x73c3340?}}, {0x0?, 0x0?}) github.com/hashicorp/terraform/internal/terraform/eval_context_builtin.go:353 +0xab github.com/hashicorp/terraform/internal/terraform.evalOutputValue({0x4e2c420, 0xc003f6c5a0}, {0x4df06f8, 0xc000dc0780}, {{0x4df0cd8?, 0x73c3340?}}, 0x0) github.com/hashicorp/terraform/internal/terraform/node_output.go:557 +0x8c github.com/hashicorp/terraform/internal/terraform.(*NodeApplyableOutput).Execute(0xc0032a9200, {0x4e2c420, 0xc003f6c5a0}, 0x58?) github.com/hashicorp/terraform/internal/terraform/node_output.go:453 +0x6e6 github.com/hashicorp/terraform/internal/terraform.(*ContextGraphWalker).Execute(0xc0065454a0, {0x4e2c420, 0xc003f6c5a0}, {0x7f4ca3a040c8, 0xc0032a9200}) github.com/hashicorp/terraform/internal/terraform/graph_walk_context.go:170 +0xaf github.com/hashicorp/terraform/internal/terraform.(*Graph).walk.func1({0x430bba0, 0xc0032a9200}) github.com/hashicorp/terraform/internal/terraform/graph.go:143 +0x755 github.com/hashicorp/terraform/internal/dag.(*Walker).walkVertex(0xc0068a9560, {0x430bba0, 0xc0032a9200}, 0xc002dfce00) github.com/hashicorp/terraform/internal/dag/walk.go:393 +0x2d1 created by github.com/hashicorp/terraform/internal/dag.(*Walker).Update in goroutine 1671 github.com/hashicorp/terraform/internal/dag/walk.go:316 +0xf13 Error: Terraform exited with code 11. ╷ │ Error: Failed to read the given file as a state or plan file │ │ State read error: Error loading statefile: open tfplan: no such file or │ directory │ │ Plan read error: couldn't load the provided path as either a local plan │ file (open tfplan: no such file or directory) or a saved cloud plan (open │ tfplan: no such file or directory) ╵ ``` ### Expected Behavior Plan should have reached the phase where it shows the changes. ### Actual Behavior Terraform crashed during state refresh. ```` You may now begin working with Terraform. Try running "terraform plan" to see any changes that are required for your infrastructure. All Terraform commands should now work. If you ever set or change modules or backend configuration for Terraform, rerun this command to reinitialize your working directory. If you forget, other commands will detect it and remind you to do so if necessary. Success! The configuration is valid. module.cloud_config.data.oci_objectstorage_object.aws_cloud_network[0]: Reading... module.cloud_config.data.oci_objectstorage_object.azure_cloud_network[0]: Reading... module.cloud_config.data.oci_objectstorage_object.azure_subscriptions[0]: Reading... module.cloud_config.data.oci_objectstorage_object.cloud_network[0]: Reading... module.cloud_config.data.oci_objectstorage_object.aws_accounts[0]: Reading... module.cloud_config.data.oci_objectstorage_object.oci_compartments[0]: Reading... module.cloud_config.data.oci_objectstorage_object.aws_cloud_network[0]: Read complete after 0s module.cloud_config.data.oci_objectstorage_object.azure_cloud_network[0]: Read complete after 0s module.cloud_config.data.oci_objectstorage_object.cloud_network[0]: Read complete after 0s module.cloud_config.data.oci_objectstorage_object.aws_accounts[0]: Read complete after 0s [id=ObjectStorageObjectDataSource-2116639164] module.cloud_config.data.oci_objectstorage_object.oci_compartments[0]: Read complete after 0s [id=ObjectStorageObjectDataSource-1051408083] !!!!!!!!!!!!!!!!!!!!!!!!!!! TERRAFORM CRASH !!!!!!!!!!!!!!!!!!!!!!!!!!!! ```` ### Steps to Reproduce 1. terraform init 2. terraform plan ### Additional Context Terraform is executed by a GitHub workflow on a GitHub runner. Other jobs using the same workflow are executed without errors. ### 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
Bug Scrub Advisor
Streamline upgrades with automated vendor bug scrubs
BugZero Enterprise
Wish you caught this bug sooner? Get proactive today.