-
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
get
: fails to clone because "no valid credentials provided"
#7670
Comments
Hi, Since you're saying that this started happening recently was this changed to private (deleted?) recently? |
Thanks @dtrifiro, this repo has always been private. I've been using it for several weeks already with no problem. Here's the whole debugging story FYI:
|
Can confirm this is happening, starting from #7554 |
`fetch_all_exp` was being invoked with url set to "origin", which caused any credentials in the provided url to be ignored Fixes iterative#7670
`fetch_all_exp` was being invoked with url set to "origin", which caused any credentials in the provided url to be ignored Fixes iterative#7670
`fetch_all_exp()` in `clone()` was called with `url="origin"`, which resulted in the operation being performed with the remote URL defined in the cloned repo's config, which did not include any credentials initially provided to clone. Fixes iterative#7670
`fetch_all_exp()` in `clone()` was called with `url="origin"`, which resulted in the operation being performed with the remote URL defined in the cloned repo's config, which did not include any credentials initially provided to clone. Fixes #7670
This comment was marked as outdated.
This comment was marked as outdated.
Here's what I get on a private dagshub repo:
What else is expected here? |
I'm facing the same problem on macOS while there's no problem on Linux (Ubuntu 20.04).
I'm using DVC v2.34.2. It would be great if this problem could get fixed with high priority because it prevents our macOS users from using DVC. 🙁 |
@sisp Thanks for reporting. It's hard to tell in which scenarios this breaks, but it's clear at this point that it's causing enough issues that we need to change the credential handling, and it's been made a high priority. In the meantime, can you try this workaround?
Originally posted by @shcheklein in #7702 (comment) |
@dberenbaum Thanks for hinting at the possible workaround. I've forwarded your comment to @dekromp who is using a Mac and got this error. We'll report back. Good to know this is a priority. |
It seems like maybe the current implementation fails to retrieve credentials from the OSX keychain. Another possible workaround mentioned above is to try |
Hi @dberenbaum, Output of
|
Hi @dekromp and @sisp, sorry for taking so long to get back to you but I was out sick. What credential helper are you using on mac? I can't seem to reproduce using |
My OS is Windows 11 and also has this problem.
Try to
Retry with
Verbose output of `dvc import`:
|
Hi @Heegreis, what helper is configured in the global git config? Does |
Hi @dtrifiro, I succeeded after trying the following.
Setting global git credential.helper to
Setting global git credential.helper to
In addition, the above three settings are all available for |
Thanks @dtrifiro for the proposal. If I understood it correctly the credential helpers are meant for cloning with http urls. Unfortunately, we are required to clone via ssh. Regarding your question if |
@dekromp I see. Since this discussion has mostly been about http git remotes and git credential helpers, would you mind creating a new issue with details about your setup so that I can close this one? Thanks. |
From our testing, http auth seems to be working. Let's open a separate issue for ssh. @avivio If you continue to have problems, please follow up with your auth setup 🙏 . |
@dberenbaum Unfortunately none of these workarounds work for me :-( My original config when I started
What happened here is that when I ran dvc update .... I got a prompt to enter my user and password every time I updated after setting
Still got prompt for password and username after setting global git credential.helper to
This lead to the previos message
I can reset the whole behavior to the prompt for user and password by going to the repo I'm importing and update from and running Output of
|
I'm not able to reproduce @avivio. Could you post the output of |
Hey @dberenbaum
an example of one of the
|
Is the last value in the above configs Can you check the following paths for any saved credentials and check whether they're valid? ~/.git-credentials |
Bug Report
Description
When executing
dvc get
ordvc update
, a "failed to clone repo" error appears, which originates from a "dulwich.client.HTTPUnauthorized: No valid credentials provided" error.This started happening without any clear reason, after several weeks of working with DVC with no problem.
Related issues: jelmer/dulwich#882, python-poetry/poetry#5428
Environment information
Output of
dvc doctor
:Additional Information (if any):
The text was updated successfully, but these errors were encountered: