Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to deploy with a specific target name (working previously) #2047

Open
arielhgl opened this issue Dec 24, 2024 · 2 comments
Open

Unable to deploy with a specific target name (working previously) #2047

arielhgl opened this issue Dec 24, 2024 · 2 comments
Labels
Bug Something isn't working DABs DABs related issues

Comments

@arielhgl
Copy link

arielhgl commented Dec 24, 2024

Describe the issue

I am trying to deploy the bundle (python-template) with preprod target name. I am able to validate the preprod and dev target and deploy dev target name without running into any issues, but when I try to deploy preprod it fails.

Error message is "Error: failed to read schema for [my_job_name] in registry.terraform.io/databricks/databricks: failed to instantiate provider "registry.terraform.io/databricks/databricks" 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."

The issues are similar to [/issues/1613] but I am not able to fix with given suggestions.

I have no issues deploying the exact same command on other bundles, it just seems to fail under this the new created repo after updating to 2.5.0 VSCode extension. I have tried downgrading as well, but it seems there was some underlying change that the error is now persistent.

Additionally, when I change the Target name using the UI of the extension I get the error message:

Extension databricks.databricks has provided and invalid tree item.

Steps to reproduce the behavior

Create a new bundle with
databricks bundle init default-python
then run
databricks bundle deploy
then error.

Expected Behavior

bundle deploy results in "Deployment complete!"

Actual Behavior

bundle deploy results in "Error: failed to read schema for [my_job_name] in registry.terraform.io/databricks/databricks: failed to instantiate provider "registry.terraform.io/databricks/databricks" 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."

OS and CLI version

Windows
v0.236.0

Is this a regression?

Not sure.

Debug Logs

Error: failed to read schema for [my_job_name] in registry.terraform.io/databricks/databricks: failed to instantiate provider "registry.terraform.io/databricks/databricks" 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.

@arielhgl arielhgl added the DABs DABs related issues label Dec 24, 2024
@pietern
Copy link
Contributor

pietern commented Dec 27, 2024

Thanks for reporting.

Could you try to remove the .databricks directory in the bundle folder? This is a cache directory that includes, among other things, the Terraform-related binaries. By removing it, you'll force the CLI to re-initialize.

If the issue persists after doing this then something else must be going on...

@pietern pietern added the Bug Something isn't working label Dec 27, 2024
@arielhgl
Copy link
Author

I guess I should've mentioned this as well but yes I also tried removing the .databricks folder generated in the local repo bundle but the issue persists.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Something isn't working DABs DABs related issues
Projects
None yet
Development

No branches or pull requests

2 participants