cancel
Showing results forย 
Search instead forย 
Did you mean:ย 
Get Started Discussions
Start your journey with Databricks by joining discussions on getting started guides, tutorials, and introductory topics. Connect with beginners and experts alike to kickstart your Databricks experience.
cancel
Showing results forย 
Search instead forย 
Did you mean:ย 

Terraform error deploying Databricks Asset Bundle

armandovl
New Contributor

Hi all ๐Ÿ‘‹,

I am deploying a very simple DAB from an Azure DevOps Pipeline with an self hosted agent, there is no error messages but in the Databricks workspace there is nothing deployed and the files of the bundle are uploaded in the workspace. ๐Ÿค”

When I put the --debug parameter in the deploy I get this error message:

"Error: terraform : fork/exec C:\Users\<username>\agent\<path>\<Bundlename>\.databricks\bundle\dev\bin\terraform.exe: The process cannot access the file because it is being used by another process."

Anyone knows how to proceed? 

I have tried to generate a new example bundle, stop remaining processes in the agent, authenticate with other user, change directories of root path, delete the directories, deploy a new Databricks workspace ๐Ÿ˜‚, etc.

1 REPLY 1

SP_6721
Contributor III

Hi @armandovl ,

Try pointing your Databricks bundle to a system-installed Terraform binary. In your bundle config file, configure it to use the systemโ€™s Terraform instead of the bundled one.
Also, ensure the Terraform binary is available in the agentโ€™s PATH.
Lastly, make sure there are no leftover Terraform processes running, and clean the build workspace between deployments. This typically resolves the issue you're encountering.