Two terraforms cannot run in parallel

If Terraform task is already running and I’m trying to run something Terraform related I get this error:

Error: Failed to install provider

Error while installing hashicorp/azurerm v3.67.0: open
/var/opt/morpheus/morpheus-ui/workspace/terraform/plugin-cache/registry.terraform.io/hashicorp/azurerm/3.67.0/linux_amd64/terraform-provider-azurerm_v3.67.0_x5:
text file busy

Morpheus 6.0.1

This was actually resolved in a more recent version of morpheus. Try upgrading to 6.0.5 and it should function. The cause is actually due to the way the newer terraform builds handles caching and the cache is no longer shareable between parallel processes.