Error: Plugin did not respond #2218
Labels
awaiting-affected-resources
Please Provide the affected resource name in description. ex. Affected resource - oci_core_instance
bug
Community Note
Terraform Version and Provider Version
Affected Resource(s)
affected_resources = oci_database_db_home
Terraform Configuration Files
Debug Output
Panic Output
$ terraform init -backend-config="access_key=${TFSTATE_ACCESS_KEY_OCI}" -backend-config="secret_key=${TFSTATE_SECRET_KEY_OCI}" -no-color -input=false
Initializing the backend...
Successfully configured the backend "s3"! Terraform will automatically
use this backend unless the backend configuration changes.
Initializing modules...
Downloading git::https://gitlab.falabella.tech/fif/core/infraestructura/oci/modules/oracle_exadataDB.git for db_exadata...
Initializing provider plugins...
Partner and community providers are signed by their developers.
If you'd like to know more about provider signing, you can read about it here:
https://www.terraform.io/docs/cli/plugins/signing.html
Warning: Additional provider information from registry
The remote registry returned warnings for
registry.terraform.io/hashicorp/oci:
oracle/oci. Please update your source in required_providers.
Terraform has been successfully initialized!
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.
$ export TF_VAR_ssh_public_key=/opt/keys/fif_cl.pub
$ export TF_VAR_ssh_private_key=/opt/keys/fif_cl
$ terraform apply -input=false -auto-approve tfplan
module.db_exadata.oci_database_db_home.db_home: Modifying... [id=ocid1.dbhome.oc1.sa-santiago-1.anzwgljr4oomvbqagjsofpf743ghdaobbcraarq7uhpvsxvlelkzp3e7esm2oq]
╷
│ Error: Plugin did not respond
│
│ with module.db_exadata.oci_database_db_home.db_home,
│ on .terraform/modules/db_exadata/dbhome.tf line 24, in resource "oci_database_db_home" "db_home":
│ 24: resource "oci_database_db_home" "db_home" {
│
│ The plugin encountered an error, and failed to respond to the
│ plugin.(*GRPCProvider).ApplyResourceChange call. The plugin logs may
│ contain more details.
╵
Stack trace from the terraform-provider-oci_v6.13.0 plugin:
panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0x0 pc=0x4dbbd0a]
goroutine 26 [running]:
github.com/oracle/terraform-provider-oci/internal/service/database.(*DatabaseDbHomeResourceCrud).Update(0xc003e3a9c0)
github.com/oracle/terraform-provider-oci/internal/service/database/database_db_home_resource.go:605 +0x30a
github.com/oracle/terraform-provider-oci/internal/tfresource.UpdateResource({0x87ac0f0, 0xc003dd0800}, {0x873a018, 0xc003e3a9c0})
github.com/oracle/terraform-provider-oci/internal/tfresource/crud_helpers.go:359 +0x134
github.com/oracle/terraform-provider-oci/internal/service/database.updateDatabaseDbHome(0xc003dd0800, {0x7dfd600, 0xc002b9cd98})
github.com/oracle/terraform-provider-oci/internal/service/database/database_db_home_resource.go:1560 +0x10c
github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema.(*Resource).update(0x879da28?, {0x879da28?, 0xc003dc2c00?}, 0xd?, {0x7dfd600?, 0xc002b9cd98?})
github.com/hashicorp/terraform-plugin-sdk/v2@v2.33.0/helper/schema/resource.go:800 +0x15f
github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema.(*Resource).Apply(0xc0026142a0, {0x879da28, 0xc003dc2c00}, 0xc003de05b0, 0xc003dd0600, {0x7dfd600, 0xc002b9cd98})
github.com/hashicorp/terraform-plugin-sdk/v2@v2.33.0/helper/schema/resource.go:919 +0x83a
github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema.(*GRPCProviderServer).ApplyResourceChange(0xc002b9c678, {0x879da28?, 0xc003dc2b40?}, 0xc003dc0460)
github.com/hashicorp/terraform-plugin-sdk/v2@v2.33.0/helper/schema/grpc_provider.go:1078 +0xd5c
github.com/hashicorp/terraform-plugin-go/tfprotov5/tf5server.(*server).ApplyResourceChange(0xc000142aa0, {0x879da28?, 0xc003dc2180?}, 0xc0002c33b0)
github.com/hashicorp/terraform-plugin-go@v0.22.0/tfprotov5/tf5server/server.go:846 +0x3d0
github.com/hashicorp/terraform-plugin-go/tfprotov5/internal/tfplugin5._Provider_ApplyResourceChange_Handler({0x7a91d00, 0xc000142aa0}, {0x879da28, 0xc003dc2180}, 0xc002c39b80, 0x0)
github.com/hashicorp/terraform-plugin-go@v0.22.0/tfprotov5/internal/tfplugin5/tfplugin5_grpc.pb.go:518 +0x1a6
google.golang.org/grpc.(*Server).processUnaryRPC(0xc000228e00, {0x879da28, 0xc003dc20f0}, {0x87b2600, 0xc002cc0000}, 0xc003da9e60, 0xc002bba7e0, 0xcadaff8, 0x0)
google.golang.org/grpc@v1.61.1/server.go:1385 +0xdd1
google.golang.org/grpc.(*Server).handleStream(0xc000228e00, {0x87b2600, 0xc002cc0000}, 0xc003da9e60)
google.golang.org/grpc@v1.61.1/server.go:1796 +0xfb8
google.golang.org/grpc.(*Server).serveStreams.func2.1()
google.golang.org/grpc@v1.61.1/server.go:1029 +0x8b
created by google.golang.org/grpc.(*Server).serveStreams.func2 in goroutine 55
google.golang.org/grpc@v1.61.1/server.go:1040 +0x125
Error: The terraform-provider-oci_v6.13.0 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.
Cleaning up project directory and file based variables
00:01
ERROR: Job failed: command terminated with exit code 1
Expected Behavior
Actual Behavior
Steps to Reproduce
terraform init -backend-config="access_key=${TFSTATE_ACCESS_KEY_OCI}" -backend-config="secret_key=${TFSTATE_SECRET_KEY_OCI}" -no-color -input=false
terraform apply -input=false -auto-approve tfplan
Important Factoids
References
The text was updated successfully, but these errors were encountered: