Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error: Plugin did not respond #2218

Open
kendalldavila opened this issue Oct 15, 2024 · 2 comments
Open

Error: Plugin did not respond #2218

kendalldavila opened this issue Oct 15, 2024 · 2 comments
Labels
awaiting-affected-resources Please Provide the affected resource name in description. ex. Affected resource - oci_core_instance bug

Comments

@kendalldavila
Copy link

kendalldavila commented Oct 15, 2024

Community Note

  • Please vote on this issue by adding a 👍 reaction to the original issue to help the community and maintainers prioritize this request
  • Please do not leave "+1" or "me too" comments, they generate extra noise for issue followers and do not help prioritize the request
  • If you are interested in working on this issue or have submitted a pull request, please leave a comment

Terraform Version and Provider Version

Affected Resource(s)

affected_resources = oci_database_db_home

Terraform Configuration Files

  required_providers {
    oci = {
      source  = "oracle/oci"
      version = "6.13.0"
    }
    vault = {
      source  = "hashicorp/vault"
      version = "4.4.0"
    }
  }
}

#VARIABLES DBHOME
db_home_db_version = "19.24.0.0.0"
db_home_display_name = "dbhome-flxclprd"
db_home_pdb_name = "flxclprd"
defined_tags = {
          "FIF-LABELS_STANDARDS.country" = "cl",
          "FIF-LABELS_STANDARDS.bu" = "bfa",
          "FIF-LABELS_STANDARDS.ind" = "fif",
          
          "FIF-LABELS_STANDARDS.env" = "prod",
           
          
          "FIF-LABELS_STANDARDS.aplication" = "flexcube"
            
  }



resource "oci_database_db_home" "db_home" {
    db_version         = var.db_home_db_version
    display_name    = var.db_home_display_name
    source                 = "VM_CLUSTER_NEW"
    vm_cluster_id    = oci_database_cloud_vm_cluster.vmcluster.id
    defined_tags     = var.defined_tags
}

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...

  • db_exadata in .terraform/modules/db_exadata
    Initializing provider plugins...
  • Reusing previous version of hashicorp/vault from the dependency lock file
  • Reusing previous version of hashicorp/oci from the dependency lock file
  • Reusing previous version of hashicorp/random from the dependency lock file
  • Reusing previous version of oracle/oci from the dependency lock file
  • Installing hashicorp/vault v4.4.0...
  • Installed hashicorp/vault v4.4.0 (signed by HashiCorp)
  • Installing hashicorp/oci v6.13.0...
  • Installed hashicorp/oci v6.13.0 (signed by HashiCorp)
  • Installing hashicorp/random v3.6.3...
  • Installed hashicorp/random v3.6.3 (signed by HashiCorp)
  • Installing oracle/oci v6.12.0...
  • Installed oracle/oci v6.12.0 (signed by a HashiCorp partner, key ID 1533A49284137CEB)
    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:
  • For users on Terraform 0.13 or greater, this provider has moved to
    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

  1. terraform init -backend-config="access_key=${TFSTATE_ACCESS_KEY_OCI}" -backend-config="secret_key=${TFSTATE_SECRET_KEY_OCI}" -no-color -input=false
  2. terraform apply -input=false -auto-approve tfplan

Important Factoids

References

@tf-oci-pub
Copy link
Member

Thank you for reporting the issue. We observed the affected resources are not provided in the description or it's incorrect. We request you to add it in issue description as mentioned in below format.
Example: affected_resources = oci_core_instance , oci_core_instances

If it's not related to any particular resource then mention affected resource as terraform.
Example: affected_resources = terraform

As this works through automation, request you to follow exact syntax.

@tf-oci-pub tf-oci-pub added the awaiting-affected-resources Please Provide the affected resource name in description. ex. Affected resource - oci_core_instance label Oct 15, 2024
@kendalldavila
Copy link
Author

Please we need a prompt response, review and solution to the reported bug, this affects a new implementation in the production environment

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
awaiting-affected-resources Please Provide the affected resource name in description. ex. Affected resource - oci_core_instance bug
Projects
None yet
Development

No branches or pull requests

2 participants