-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Azure OAuth failure #9833
Comments
Hi @ctafabiano could you try setting See https://dvc.org/doc/command-reference/remote/modify#example-some-azure-authentication-methods |
That works fine (same as using |
Coming from iterative/dvc-azure#43 (comment), I see a similar issue but only for I have a config like this:
Here's the
|
Another user ran into this: https://discord.com/channels/485586884165107732/485596304961962003/1106179670799552584 |
Hm, not able to reproduce right away. I wonder if there is some common problem with, maybe, |
🤦 You are right @efiop. Thanks for looking into it! I can confirm that reinstalling azure-cli in my virtual env fixes it. Let's close it then. |
@dberenbaum Definitely worth documenting in azure and probably troubleshooting sections. Created iterative/dvc.org#4652 for now |
@ctafabiano Could you check if you have the same problem of lib mismatch, please? |
Hi @efiop , I'm seeing a similar issue to this. Notes:
These are the exact steps that reproduce my issue (running on Ubuntu 20.04).
This is the error:
|
@smarais Does it happen only when using version-aware? |
Same issue for me. edit : confirmed on both windows and Ubuntu |
@efiop I'm not sure if it's a regression or I tested something differently when we closed this, but I can reproduce the issue with |
Hi @dberenbaum - I just ran a test without version aware and can also confirm it worked without and failed again with version aware enabled. |
Transferred to dvc for more visibility and since it directly impacts dvc usage. |
Ok, can reproduce as well now (not sure why I wasn't the last time, maybe used an admin account by accident or something). Seems like we need to add some other role than just EDIT: nope, giving |
Btw, just for the record: a workaround is to use another auth mechanism (e.g. connection string). |
@ctafabiano @smarais Hey folks, could you please upgrade Turns out there was a bug in |
Hi @efiop, this seems to have resolved the issue for me. |
Bug Report
Description
When using OAuth authentication to connect to Azure with DVC and executing push/pull operations the following error is returned:
ERROR: unexpected error - Cannot combine AUTHORIZATION header with AUTH argument or credentials encoded in URL
This behaviour has been reported in a similar case: #5589, but the error we receive is a new one.
We are currently following Iterative's guide for configuring DVC<>Azure: https://iterative.ai/blog/azure-remotes-in-dvc
When trying any of the suggested workarounds we still receive the same error. It is possible we are doing something wrong or our Azure accounts config is not right, but in that case it would be helpful to have a different error message or update the guide :)
Related links we found around:
#2200
iterative/dvc.org#462
Azure/azure-sdk-for-python#18012
Reproduce
If doing pull from an already uploaded DVC repo on Azure, we get the same error message:
ERROR: unexpected error - Cannot combine AUTHORIZATION header with AUTH argument or credentials encoded in URL
Expected
Files on
data
folder to be uploaded to Azure.We are currently able to work fine (push and pull) with token authentication using
AZURE_STORAGE_KEY
, but this is a temporary solution for us and would like to move to full OAuth.Environment information
Output of
dvc doctor
:The text was updated successfully, but these errors were encountered: