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

[Bug]: Error: Failed to instantiate provider "aws" to obtain schema: Unrecognized remote plugin message: This usually means that the plugin is either invalid or simply needs to be recompiled to support the latest protocol. #37342

Open
magnum31415 opened this issue May 8, 2024 · 2 comments
Labels
bug Addresses a defect in current functionality. provider Pertains to the provider itself, rather than any interaction with AWS.

Comments

@magnum31415
Copy link

magnum31415 commented May 8, 2024

Terraform Core Version

0.12.31

AWS Provider Version

v4.67.0

Affected Resource(s)

When I launch a simple terraform plan -var-file=xxx.tfvars -out=plan.out it crashes with this error:

Failed to instantiate provider "aws" to obtain schema: Unrecognized remote plugin message:

It only crashes when I launch terraform (0.12.31) in a Intel Mac Laptop, in windows laptop the same command in the same tf repo works perfectly.

I use tfenv, with other TF versions and they work perfectly in my Intel Mac with similar repos.

The issue only appears with : Intel Mac Laptop + terraform (0.12.31)

Expected Behavior

The correct plan execution

Actual Behavior

Error: Failed to instantiate provider "aws" to obtain schema: Unrecognized remote plugin message: 

This usually means that the plugin is either invalid or simply
needs to be recompiled to support the latest protocol._

Enabling debug it complains about this error

2024-05-08T09:31:49.217+0200 [TRACE] plugin.stdio: waiting for stdio data
2024-05-08T09:31:49.218+0200 [WARN]  plugin.stdio: received EOF, stopping recv loop: err="rpc error: code = Unimplemented desc = unknown service plugin.GRPCStdio"
2024/05/08 09:31:49 [TRACE] GRPCProvider: Close
2024-05-08T09:31:49.222+0200 [DEBUG] plugin: plugin process exited: path=/Users/xxxxx/Documents/12.AWS/1.python/Productos/pentera-corp/.terraform/plugins/darwin_amd64/terraform-provider-template_v2.2.0_x4 pid=94976
2024-05-08T09:31:49.222+0200 [DEBUG] plugin: plugin exited
2024/05/08 09:31:49 [TRACE] LoadSchemas: retrieving schema for provisioner "local-exec"
2024-05-08T09:31:49.222+0200 [DEBUG] plugin: starting plugin: path=/Users/xxxxx/.tfenv/versions/0.12.31/terraform args=[/Users/xxxxxx/.tfenv/versions/0.12.31/terraform, internal-plugin, provisioner, local-exec]
2024-05-08T09:31:49.229+0200 [DEBUG] plugin: plugin started: path=/Users/xxxxxx/.tfenv/versions/0.12.31/terraform pid=94977
2024-05-08T09:31:49.229+0200 [DEBUG] plugin: waiting for RPC address: path=/Users/xxxxx/.tfenv/versions/0.12.31/terraform
2024-05-08T09:31:51.639+0200 [DEBUG] plugin.terraform: 2024/05/08 09:31:51 [INFO] Terraform version: 0.12.31  
2024-05-08T09:31:51.640+0200 [DEBUG] plugin.terraform: 2024/05/08 09:31:51 [INFO] Go runtime version: go1.12.13
2024-05-08T09:31:51.640+0200 [DEBUG] plugin.terraform: 2024/05/08 09:31:51 [INFO] CLI args: []string{"/Users/xxxxx/.tfenv/versions/0.12.31/terraform", "internal-plugin", "provisioner", "local-exec"}
2024-05-08T09:31:51.640+0200 [DEBUG] plugin.terraform: 2024/05/08 09:31:51 [DEBUG] Attempting to open CLI config file: /Users/xxxxx/.terraformrc
2024-05-08T09:31:51.640+0200 [DEBUG] plugin.terraform: 2024/05/08 09:31:51 [DEBUG] File doesn't exist, but doesn't need to. Ignoring.
2024-05-08T09:31:51.642+0200 [DEBUG] plugin.terraform: 2024/05/08 09:31:51 [INFO] CLI command args: []string{"internal-plugin", "provisioner", "local-exec"}
2024-05-08T09:31:51.642+0200 [DEBUG] plugin.terraform: local-exec-provisioner (internal) 2024/05/08 09:31:51 [INFO] Starting provisioner plugin local-exec
2024-05-08T09:31:51.645+0200 [DEBUG] plugin.terraform: plugin address: address=/var/folders/b4/s0cy45wd55qfhk6fcc89qfnh0000gn/T/plugin801772193 network=unix timestamp=2024-05-08T09:31:51.644+0200
2024-05-08T09:31:51.645+0200 [DEBUG] plugin: using plugin: version=5
**2024-05-08T09:31:51.646+0200 [TRACE] plugin.stdio: waiting for stdio data
2024-05-08T09:31:51.650+0200 [WARN]  plugin.stdio: received EOF, stopping recv loop: err="rpc error: code = Unavailable desc = transport is closing"**
2024-05-08T09:31:51.654+0200 [DEBUG] plugin: plugin process exited: path=/Users/xxxxx/.tfenv/versions/0.12.31/terraform pid=94977
2024-05-08T09:31:51.654+0200 [DEBUG] plugin: plugin exited

Relevant Error/Panic Output Snippet

No response

Terraform Configuration Files

provider "aws" {
  alias   = "corp"
  region  = "eu-west-1"
  version = "~> 4.20"
}

Steps to Reproduce

terraform plan -var-file=app.tfvars -out=plan.out

Debug Output

No response

Panic Output

No response

Important Factoids

No response

References

v

Would you like to implement a fix?

None

@magnum31415 magnum31415 added the bug Addresses a defect in current functionality. label May 8, 2024
Copy link

github-actions bot commented May 8, 2024

Community Note

Voting for Prioritization

  • Please vote on this issue by adding a 👍 reaction to the original post to help the community and maintainers prioritize this request.
  • Please see our prioritization guide for information on how we prioritize.
  • Please do not leave "+1" or other comments that do not add relevant new information or questions, they generate extra noise for issue followers and do not help prioritize the request.

Volunteering to Work on This Issue

  • If you are interested in working on this issue, please leave a comment.
  • If this would be your first contribution, please review the contribution guide.

@terraform-aws-provider terraform-aws-provider bot added the needs-triage Waiting for first response or review from a maintainer. label May 8, 2024
@justinretzolk justinretzolk added provider Pertains to the provider itself, rather than any interaction with AWS. and removed needs-triage Waiting for first response or review from a maintainer. labels May 8, 2024
@justinretzolk
Copy link
Member

Similar #30088

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Addresses a defect in current functionality. provider Pertains to the provider itself, rather than any interaction with AWS.
Projects
None yet
Development

No branches or pull requests

2 participants