Terraform: grpc: received message larger than max

Created on 30 Mar 2019  ยท  6Comments  ยท  Source: hashicorp/terraform

I'm building a provider for Kubernetes and am getting this error

>terraform providers schema -json

Error: Failed to retrieve schema from provider "k8s": rpc error: code = ResourceExhausted desc = grpc: received message larger than max (4377699 vs. 4194304)

It looks like I'm hitting the default max here https://github.com/grpc/grpc-go/blob/3910b873d3af01925d2ab2820206eae340541df5/clientconn.go#L92

Please either increase the max or give me a cli/env option to increase it.

enhancement provider-sdk

Most helpful comment

I'm getting this error on 0.12:

$ ./terraform version
Terraform v0.12.0
+ provider.archive v1.2.2
+ provider.aws v2.11.0
+ provider.local v1.2.2
+ provider.null v2.1.2
data.local_file.compiled_func: Refreshing state...

Error: rpc error: code = ResourceExhausted desc = grpc: received message larger than max (25532983 vs. 4194304)

All 6 comments

confirm fixed

I'm getting this error on 0.12:

$ ./terraform version
Terraform v0.12.0
+ provider.archive v1.2.2
+ provider.aws v2.11.0
+ provider.local v1.2.2
+ provider.null v2.1.2
data.local_file.compiled_func: Refreshing state...

Error: rpc error: code = ResourceExhausted desc = grpc: received message larger than max (25532983 vs. 4194304)

I'm seeing the same - am wondering if it's due to me moving to the new terraform remote backend.

Hi @zegl!

Although the symptom looks similar, it seems that you've hit a problem in a different part of Terraform than where this was originally found. Could you please open a new issue for that and include the information requested by the new issue template? That way we can hopefully figure out which subsystem is generating the error.

@apparentlymart What about grpc provisioner? In #20906 changes only client-side.

I'm going to lock this issue because it has been closed for _30 days_ โณ. This helps our maintainers find and focus on the active issues.

If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

ronnix picture ronnix  ยท  3Comments

carl-youngblood picture carl-youngblood  ยท  3Comments

rjinski picture rjinski  ยท  3Comments

franklinwise picture franklinwise  ยท  3Comments

darron picture darron  ยท  3Comments