-
Notifications
You must be signed in to change notification settings - Fork 893
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
error: could not download file from 'https://static.rust-lang.org/dist/channel-rust-stable.toml.sha256' to [...] #4050
Comments
I wondered if it might be a proxy server issue. The laptop's proxy server is configured via a PAC file. So, I used:
to get the URL to the PAC file. Downloaded it, opened it up in Notepad and found the IP address/Port of one of the proxy servers at the bottom of the file. Opened up PowerShell and ran:
where 12.34.56.7880 was the ipaddress & port from the PAC file. Then, in the same PowerShell, ran:
Selected option (1) as before and, this time, it took about 20 seconds to give this output:
|
@ssg47 Thanks for filing this issue! Given that there's a download backend change upfront (#3806), are you interested in trying our bleeding-edge build and see if it changes anything? Many thanks in advance! 🙏 |
Gladly. Didn't work, though I'm afraid:
I think it's failing to authenticate with the proxy server. I guess I'm going to have to get the URL(s) whitelisted (for me, at least). Is there a complete list of URLs anywhere? |
@ssg47 The error message is definitely different though, so looks like we're making progress. Is there something wrong with your DNS config?
That's subject to change. However, I'm sure that almost all files related to toolchain installation are downloaded from a specific distribution server, so: Line 961 in 3db381b
has covered most cases. Its default value, of course, is Line 47 in 3db381b
Also, if it sounds okay to you, you might use unofficial mirrors instead. For example, if you're located in mainland China, the TUNA mirror might be interesting to look at. |
When I raised the ticket, I was in the office. Now, I'm working from home but using the corporate VPN. The proxy is Zscaler (for all locations). I think there is some kind of split/bypass implemented. So, I think, (some) web traffic goes direct, rather then through the VPN and then out. For completeness, running from a PowerShell window, using the original download, with no proxy environment variables configured, I get this:
The bleeding-edge build also gives:
Both errors are generated within a second or so. After configuring
where 12.34.56.7880 was the ipaddress & port from the PAC file, the standard build gives:
and, likewise, the bleeding edge build gives:
As before, both return after around thirty seconds. You asked about DNS. I can run
and get
so I think DNS is fine. [I'm not in mainland China.] I'll request https://static.rust-lang.org is whitelisted. I wonder how long that will take... |
The networking team came back to me after eight (8) days and said I'd used the wrong form! So, I filled out the right one, and waited some more. Then they said, 'Your application is not using the system proxy settings. It needs to be fixed. Nothing can be downloaded without going through the proxy server. |
Never mind. They found a different proxy server url with an obscure port (not 80, not 443, not 8080 or any of the other ones you see used elsewhere) and it worked [sigh]. |
Verification
Problem
I'm trying to install on a corporate Windows 10 laptop using the current version of
rustup-init.exe
which I've just downloaded.I'm seeing this:
Steps
rustup-init.exe
to my Downloads folder.rustup-init.exe
to execute.(1) Proceed with standard installation (default - just press enter)
When I do this, it returns the error within a second.
Possible Solution(s)
No response
Notes
No response
Rustup version
rustup-init 1.27.1 (54dd3d0 2024-04-24)
Installed toolchains
N/a
OS version
Win10 22H2 (OS Build 19045.4894)
The text was updated successfully, but these errors were encountered: