cancel
Showing results for 
Search instead for 
Did you mean: 
Community Platform Discussions
Connect with fellow community members to discuss general topics related to the Databricks platform, industry trends, and best practices. Share experiences, ask questions, and foster collaboration within the community.
cancel
Showing results for 
Search instead for 
Did you mean: 

Failed deploying bundle via gitlab - Request failed for POST

samsonite
New Contributor

I'm encountering an issue in my .gitlab-ci.yml file when attempting to execute databricks bundle deploy -t prod. The error message I receive is:

 

Error: Request failed for POST <path>/state/deploy.lock

Interestingly, when I run the same command locally for the prod environment, it works without any issues. Additionally, deploying from GitLab to staging works as expected.

I've tried using --force-lock as well, but unfortunately, it hasn't resolved the issue.

Could someone advise on how to further debug the cause of this failure?

1 REPLY 1

Kaniz_Fatma
Community Manager
Community Manager

Hi @samsoniteThe error message you’re encountering seems related to a lock request. 

  • Ensure that the credentials and permissions used for deploying to the production environment are correct. Differences in credentials between local and CI/CD environments can sometimes cause issues.
  • Verify that the GitLab runner or the CI/CD pipeline has the necessary permissions to deploy to the production Databricks workspace.

 Also, if you’re interested in learning more about Databricks Asset Bundles and their use cases, check out the official documentation.

Connect with Databricks Users in Your Area

Join a Regional User Group to connect with local Databricks users. Events will be happening in your city, and you won’t want to miss the chance to attend and share knowledge.

If there isn’t a group near you, start one and help create a community that brings people together.

Request a New Group