-
Notifications
You must be signed in to change notification settings - Fork 252
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
dotnet restore, with HTTP_PROXY and HTTPS_PROXY (with user/password) broken again #6978
Comments
From @tebeco on May 28, 2018 14:15 Just to be clear ... i also tried also if i have to provide ANY user and password ... it is not compliant with any form of "Continuous" integration right ? setting up a proxy as an env var :
|
we have same problem :( after install dotnet sdk 2.1.300 |
Holy cow, not again please |
It’s been broken since alpha of now it is even worse since this is not working anymore in |
@livarcocc @anangaur |
i tried without the password it still break |
if only it was easy to create a docker images in order to diagnostic that |
After reading myself later deeply apologize about the way the things ended up here :s |
Not sure what's going wrong here. @tebeco Can you please try msbuild /t:restore? Not dotnet msbuild, but the VS built in one. |
Same problem here with 2.1.300 final release. |
@livarcocc Is that what we were talking about yesterday ? ==== |
is there anyone that knows if there's a |
Maybe this is an issue with the new SocketsHttpHandler. You can use the 2.0 http handler by setting |
I am also facing the same issue. I am struggling to find a solution for last two days. This is a blocker for me at the moment. I tried setting up the http_proxy/https_proxy with the username but still no luck. FROM microsoft/aspnetcore-build:2.0-nanoserver-sac2016 AS build FROM build AS publish FROM base AS final Output: Note: |
/cc: @rrelyea |
If nuget.exe works, but dotnet.exe restore doesn't (please make sure you clean all the caches as @tebeco That'll help us a lot toward diagnosing this issue. If you went through the above, and msbuild.exe works, please try setting |
@nkolev92 so if i set a proxy (using a PAC Script) in IE (Win10)
will test that today |
Trying the @tebeco and @nkolev92 proposed above thread I got this error on Unhandled Exception: System.TypeInitializationException: The type initializer for 'Ssl' threw an exception. ---> System.TypeInitializationException: The type initializer for 'SslInitializer' threw an exception. ---> Interop+Crypto+OpenSslCryptographicException: error:0B07C065:x509 certificate routines:X509_STORE_add_cert:cert already in hash table |
TL;DR) Details :
edit the
edit the csproj :
|
Is it possible to change the title to something that does not involve either something like this (there’s probably a better title ^^) : |
@tebeco |
last time i used it, it was from |
@tebeco Easiest approach is to go to the developer command prompt and run |
if i understand correctly this issue has been splitted into at least 2 issue ? do you need network trace for the |
@nkolev92 back from holidays, |
@tebeco Tracking issue on corefx side https://github.com/dotnet/corefx/issues/30354 |
hi again this photo is the result of my attempt after few investigation and playing around with fiddler, a colleague of mine pointed out that :
|
In my Windows 10, I run commands: |
i understand that on the paper it works. in reality you have 4-5 feed i’m order to do a and even with that it still not work properly as i understand that setup affect the all machine this is good in very limited scenario but it does not scale well i would love to have a simple way to customize this per feed because this is the only thing that matter, not a huge global state of rule affecting every single feed |
This my successful soulution:
i think the most important thing is the password need to set by |
or never enter either username and password. that way you never need to specify either a password or a username.
|
Looking at the code, it appears that only the user-level config works for proxy settings. This matches the behavior I see, at least on dotnet 2.2.401. |
Thanks @zarenner That could be the root cause of some of the issues in this thread (Unfortunately I'm not confident everyone on this thread is hitting the same issues. edit Of course I find it after I comment :D #747 |
This worked for me, thanks. |
@tebeco any clue / solution to get this working on CentOS, tried all the above methods. Setting DOTNET_SYSTEM_NET_HTTP_USESOCKETSHTTPHANDLER to zero gives authentication required. Unsetting gives an error related to GSSAPI error. Going crazy over this. Both dotnet 2.2 & 3 have the same error |
I'm not surprised, on windows disabling this one could help re-enable the
I'll be honest i have no idea what it is and that it existed. To be fair, i found literally no clean solution if the proxy is an explicit proxy. As we have hundreds of teams releasing nugets internally we had/have either It have LOTS of inconvenience ... like :
for regular and limited remote feed, that works, but it does not scale well. I often fork / clone repo like |
to be fair, this issue could potentially be fixed if there's a way to add specific code in the Windows binary to support PAC proxy and "IE Proxy" One of the Issue with HTTP_PROXY could be explicit proxy, and it could often be NTLM proxy (expliciy user/pass/domain in clear) It leads used toward custom alias / handling password changes every XX weeks / that could also trigger Account Locked because the password changed but you forgot that one script.
|
This helped me with this problem on Ubuntu - https://github.com/dotnet/core/blob/master/Documentation/linux-setup.md - specifically:
perhaps the equivalent on Windows will help the Windows folks |
Hey all, Thank you for this discussion. Apologies for not being able to get to all of your feedback. A few takeaways from what I am noticing:
As such I'm gonna to close this issue, as given the number of different directions we've gone it'd be difficult to get clarity on every single problem. Please file individual problems for the specific issues that you are facing. Please check the following 2 issues before filing: |
It's correlated, but not the same cenario here, but I would like to document for those on Linux. I'm on Fedora 35 using VsCode and dotnet sdk 6 installed To use
|
From @tebeco on May 28, 2018 14:11
Steps to reproduce
soooooo anyone know how to make
dotnet restore
works behind an NTLM proxy ?NUGET is OK
PAKET is OK (without any env var)
DOTNET ... was ok ... with only proxy URL
DOTNET is KO without env var
DOTNET is KO with env var
DOTNET is KO with env var + user / password in the NTLM proxy url (no special character in either user or password)
Expected behavior
... it should work
Actual behavior
Environment data
Copied from original issue: dotnet/cli#9358
The text was updated successfully, but these errors were encountered: