-
Notifications
You must be signed in to change notification settings - Fork 2.6k
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
SDK install gives HTTP 407 (Proxy authentication required) #309
Comments
Thank you for opening a new ticket (this will make it much easier to find for others with similar issues). As to 407, it seems that this means the proxy authentication failed: https://en.wikipedia.org/wiki/List_of_HTTP_status_codes#407 So... can you tell us a bit more context, in particular about your proxy setup? |
I have no further information about this proxy but as mentioned above Git 2.5.0 (Windows and Cygwin) somehow manage to download files through the proxy anonymously. |
Hmm. So maybe Pacman has problems to install with the proxy? But you specified the proxy when installing the SDK, yes? Maybe it would be easier to help you if you could paste the output of the SDK when it fails. (If there is too personal info, please edit instead of removing) |
This is what I get when running git-sdk-installer-1.0.0-64.7z.exe:
|
Could you try with an empty user name and password in the Proxy specification? I.e. if your proxy is |
Same result ... |
What kind of proxy and proxy authentication do you use? |
Seems to be an NTLM proxy. |
@tacker66 you would not happen to know which NTLM proxy (I am trying to reproduce here...). |
Sorry, this is not really my area of expertise ... what do you mean by "which" proxy? |
Right. I have troubles replicating this scenario here... :-( |
BTW which WIndows version is your client (just so I can try my best to make as similar a setup to yours here as possible)? |
@tacker66 Actually, there is one thing I would like you to try first: could you download (manually) https://github.com/git-for-windows/build-extra/releases/download/tmp-sdk-installer-extra/curl-extra.zip and unpack it into the SDK installer directory (there should still be pacman -Sy and paste the output here? |
@madbonez I fear you mistook this issue; it is not about Git itself, but about the SDK installer (and the reporter actually mentioned that 2.5.0 works for them... |
@dscho: how do I specify http_config/https_config? In the environment? |
In the environment, as it is done in the SDK installer: https://github.com/git-for-windows/build-extra/blob/350624b44b3224605d0da0a7f8a8ceb1b1d796d4/sdk-installer/setup-git-sdk.bat#L34-L38 |
Here the result (there is no usr/etc/pacman.conf but a etc/pacman.conf):
|
Is your proxy a HTTPS proxy or an HTTP proxy? You should use that protocol, not different ones for the two environment variables. The Also, could you specify |
Same result with
|
Bummer. So if you start |
With "Git Bash here" same result as above (and also the same when setting https_config). |
Oooh, I think we're getting somewhere. Git configures a couple of flags to be able to use NTLM authentication IIRC. So that sent me on a StackOverflow search, and it looks as if this post has the answer: curl --proxy-ntlm --proxy %PROXY_URL%:%PORT% %SITE_URL% Does that work in Git Bash? If so, does it work if you set |
works in Git Bash :-) But setting the proxy via environment doesn't :-( |
Okay, let's go one step further... Can you edit the |
I didn't notice, that you silently switched from "https_config" to "https_proxy" ;-)
|
Aha! So it works ;-) Yeah, the The only unclear thing before we can go and implement a fix (which I will ask you to test!) is: does |
Ooooh! I just found the |
So... @tacker66 it is testing time! Please download the (temporary) installer from https://github.com/git-for-windows/build-extra/releases/download/tmp-sdk-installer-extra/git-sdk-installer-1.0.1-64.7z.exe -- I would like you to install it and report back whether it
Thanks! |
After timing out the first time it asks for the proxy and then fails with
|
Hmm. Could you open a usr\bin\pacman -Syv --debug --verbose and paste the output here? |
I tried again with a clean install, and now it worked :-) |
Yeah! Thank you for reporting back! |
And new SDK installers have been uploaded, too: https://github.com/git-for-windows/build-extra/releases/tag/git-sdk-1.0.1 |
Same problems e.g. with conda package manager or NetBeans updater.
The mechanism git itself uses (http.proxy) for fetching through the proxy
works.
The text was updated successfully, but these errors were encountered: