03-23-2023 09:58 AM
Hi,
I'm using databricks-cli to configure a newly-deployed Azure Databricks instance. The ARM deployment works fine, and then the databricks cli commands to create a secrets scope and add users also works just fine.
Then I add a GitCredential to Databricks -- a username/PAT pair for Azure DevOps Repos access, and try to run `databricks repos create --url <url> --provider azureDevOpsServices --path /Repos/ParentDir/RepoName`.
This fails with the error:
Error: b'{"error_code":"INVALID_STATE","message":"Failed to clone repo. Repo may be incomplete. Failure reason: Operation failed: \\"Server failed to authenticate the request. Make sure the value of Authorization header is formed correctly including the signature.\\", 403, PUT, https://*redacted*.dfs.core.windows.net/jobs/420349711802780/workspace-files/0680a075-b8be-4fa6-a3d7..., AuthenticationFailed, \\"Server failed to authenticate the request. Make sure the value of Authorization header is formed correctly including the signature. RequestId:988c44fd-a01f-0023-5ba7-5d893f000000 Time:2023-03-23T16:48:33.5781637Z\\""}'
This looks like Databricks is unable to write the repo's content to the workspace storage account, which is really weird. Weird because, if I then log in to the instance, I can actually see the files from the repo under the Repos menu!
But, when clicking into the Repos directories -- although I can see the repo content, the branch button isn't present on the repo browser header. I can click the Git... menu option and successfully re-do a pull, and then the branch button appears.
I'm at a bit of a loss here as to what's happening -- any help appreciated.
Chris
03-24-2023 11:52 PM
@Chris Platts :
The error message you are seeing suggests that there is an issue with the authorization header when trying to clone the repository to the workspace storage account. This may be due to an issue with the GitCredential you added for Azure DevOps Repos access. Here are a few troubleshooting steps you can try:
Hope this helps!
03-24-2023 11:52 PM
@Chris Platts :
The error message you are seeing suggests that there is an issue with the authorization header when trying to clone the repository to the workspace storage account. This may be due to an issue with the GitCredential you added for Azure DevOps Repos access. Here are a few troubleshooting steps you can try:
Hope this helps!
03-27-2023 02:16 AM
Thanks for the reply, suteja!
This is utterly bizarre, but it started working fine the next day, with no changes at all.
But to address your points, just for anyone else in a similar position to refer to:
I think maybe the fact that the accounts/principals used were 'brand-new' may have contributed to the error, perhaps? Given a few hours, it did eventually begin working. Perhaps Azure just needed to shake it out a bit.
03-25-2023 10:54 PM
Hi @Chris Platts
Help us build a vibrant and resourceful community by recognizing and highlighting insightful contributions. Mark the best answers and show your appreciation!
Thanks and Regards
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