cancel
Showing results for 
Search instead for 
Did you mean: 
Data Engineering
Join discussions on data engineering best practices, architectures, and optimization strategies within the Databricks Community. Exchange insights and solutions with fellow data engineers.
cancel
Showing results for 
Search instead for 
Did you mean: 

"databricks bundle deploy" "Error: Failed to unzip with error: invalid compression method (400 <nil>

Th0rs7en
New Contributor

When trying to deploy a DAB (in WSL Terminal) 
I get the following error:

Error: Failed to unzip with error: invalid compression method (400 <nil>)

How to fix this?

1 REPLY 1

balajij8
Contributor III

Its typically caused due to incompatibility. You can follow below

Upgrade CLI to the latest version since you are in WSL

curl -fsSL https://raw.githubusercontent.com/databricks/setup-cli/main/install.sh | sh

If the CLI version is below 0.230 the upgrade, above will solve it as "invalid compression method" error was addressed  later. You can clear bundle cache before pushing the deploy again

cd /path/bundle

rm -rf .databricks

databricks bundle deploy