-
Notifications
You must be signed in to change notification settings - Fork 258
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
NuGet won't authenticate with server on Linux #6876
Comments
@nkolev92 is this a known issue with auth in mono? |
Not aware of any specific issues. It seems like an issue with the specific credential provider. NuGet itself doesn't prompt but it defers to the credential provider itself. I'd guess it's one of the following 2:
|
No update? I've added my feed to nuget and works in a macOS and a Windows machine but not on the Linux build server.
But when I try to fetch
While if I run this in macOS or Windows it works and returns packages. On windows it asks for credentials every time though. UPDATE: I tried a symbolic link I found in some stack overflow
Now it outputs this:
Again, this doesn't give 404 on macOS or Windows. |
Have you tried using a feed to NuGet 2? I had a very similar problem, and I resolved it by using nuget/v2 instead of nuget/v3/index.json. Your feed might not support it, but perhaps worth a try. So in your case, you should use
|
@larsjr V2 feeds are significantly slower than V3 feeds. I wouldn't normally expect that to make a difference. |
Looking at this issue again it's probably related to #2869. |
Details about Problem
NuGet product used (NuGet.exe | VS UI | Package Manager Console | dotnet.exe):
NuGet.exe
NuGet version (x.x.x.xxx):
4.6.2.5055 (via mono) and 2.8.6 (via apt-get)
dotnet.exe --version (if appropriate):
n/a
VS version (if appropriate):
n/a
OS version (i.e. win10 v1607 (14393.321)):
Description: Ubuntu 18.04 LTS (bionic)
Worked before? If so, with which NuGet version:
3.4.3.855 (windows)
Detailed repro steps so we can see the same problem
Install mono. Download latest NuGet.exe. Run nuget commands to add sources:
mono nuget.exe sources add -name FEED_NAME -source <feed url> -UserName<username> -Password"<password>"
Try to run
mono nuget.exe list -source FEED_NAME
Response is 401 and thus prompts for username/password. All credentials fail.
...
Other suggested things
apt package
with mostly the same results when trying to list packages-- when run with mono, I always get prompted for username/password but they always fail
-- when run with the apt-get package (2.8), I get "warning: no access to the given key" followed by "no packages found".
Verbose Logs
Please include verbose logs (NuGet.exe -verbosity detailed | dotnet.exe --verbosity diag | etc...)
Sample Project
n/a
The text was updated successfully, but these errors were encountered: