Closed tlfzhylj closed 4 months ago
When upgrading to azurerm 3.90 from 3.50 it looks like it actual gives me an error I can read, and not just throw exit code null
. The error message says: The plugin.(*GRPCProvider).ConfigureProvider request was cancelled
See issue mentioned above.
I experienced the same error in another pipeline which had an older Terraform version.
To get the error message The plugin.(*GRPCProvider).ConfigureProvider request was cancelled
I also had to update Terraform version from 1.5 to 1.7.
I figured out the actual problem:
In my Terraform configuration I configure the azurerm provider several times to go against several Azure subscriptions. If I configured the azurerm provider six times against six different Azure subscriptions or more I got the error.
When configuring the provider so many times it looks like it uses more memory than on a normal run with one configured azurerm provider. My self-hosted Azure DevOps agent had 1 GB of memory. When increasing the memory to 2 GB everything works as expected.
So, the problem was actually that the Azure DevOps Agent ran out of memory.
I will probably hit the same error if configuring around 12 azurerm providers, after increasing the memory to 2 GB.
I’m glad you solved it. Thanks for letting us know.
Describe the bug In one of my pipelines I get an error during terraform plan saying:
##[error]Terraform command 'plan' failed with exit code 'null'.
##[error]TypeError: Cannot read property 'toString' of null
To Reproduce Can't understand what is actual does this, so I can't reproduce in another repo.
Expected behavior Terraform plan goes through without any errors.
Pipeline Logs
Logs with debug mode:
Agent Configuration
Additional context
The Azure pipeline task is looking like this.
I tried to comment out the
publishPlanResults
option, and the pipeline went through as expected. At next run I get the same error again.