terraform, error: could not load plugin

hi,

trying to provision k8s cluster,
terraform plan -var-file=terraform.tfvars

i get the below response ( i am using terraform cli 0.13 and 0.14 with same results)

===start===

Error: Could not load plugin

Plugin reinitialization required. Please run "terraform init".

Plugins are external binaries that Terraform uses to access and manipulate
resources. The configuration provided requires plugins which can't be located,
don't satisfy the version constraints, or are otherwise incompatible.

Terraform automatically discovers provider requirements from your
configuration, including providers used in child modules. To see the
requirements and constraints, run "terraform providers".

Failed to instantiate provider "registry.terraform.io/linode/linode" 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.

=====end===

$: terraform providers

Providers required by configuration:
.
└── provider[registry.terraform.io/linode/linode] 1.16.0

1 Reply

I think I found where some other folks were running into similar issues on the Terraform help site. From what I can tell, it looks like there was a change made starting with v13 that requires you to run state replace-provider to reassign provider source addresses for addresses starting with registry.terraform.io/-/. The post below from HashiCorp has the steps laid out:

Plugin reinitialization error after upgrade to Terraform 0.13

Hopefully this solves the issue!

Reply

Please enter an answer
Tips:

You can mention users to notify them: @username

You can use Markdown to format your question. For more examples see the Markdown Cheatsheet.

> I’m a blockquote.

I’m a blockquote.

[I'm a link] (https://www.google.com)

I'm a link

**I am bold** I am bold

*I am italicized* I am italicized

Community Code of Conduct