Skip to content
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

how do i set http(s) proxy for elan? #117

Open
cartazio opened this issue Dec 27, 2023 · 12 comments
Open

how do i set http(s) proxy for elan? #117

cartazio opened this issue Dec 27, 2023 · 12 comments

Comments

@cartazio
Copy link

Hello, i'm trying to setup lean on a windows environment where i need to set an http proxy

is there some particular env variables that elan looks for? i dont see any documentations about this

$ elan default stable
info: syncing channel updates for 'stable'
thread 'main' panicked at 'called `Result::unwrap()` on an `Err` value: Error { description: "SSL connect error", code: 35, extra: Some("schannel: next InitializeSecurityContext failed: Unknown error (0x80092012) - The revocation function was unable to check revocation for the certificate.") }', src\elan-utils\src\utils.rs:514:32
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace

is the error i got

@Kha
Copy link
Member

Kha commented Dec 28, 2023

Hi, I believe https://rust-lang.github.io/rustup/network-proxies.html should be applicable to elan as well; also note the libcurl note at the end, which elan always uses. Feel free to add this information to the readme if it works.

@cartazio
Copy link
Author

So i'm doing that as best as I can discern. The issue i think lies with it being a corporate network proxy and I need to revocation checking! per The revocation function was unable to check revocation for the certificate.") part of the error message, and the rust docs dont seem to mention a way to do that.

libcurl has some flags for running in 'insecure mode', is there any hooks for passing flags into libcurl?

@Kha
Copy link
Member

Kha commented Jan 2, 2024

I don't know the first thing about proxies, but why wouldn't that be covered by http_proxy?

libcurl has some flags for running in 'insecure mode', is there any hooks for passing flags into libcurl?

I don't think so, http_proxy is one of the few ones supported out of the box https://curl.se/libcurl/c/libcurl-env.html

@cartazio
Copy link
Author

i set both SET CARGO_HTTP_PROXY= and HTTP_PROXY and i'm just seeing a connection time out.

$ elan toolchain install stable
info: syncing channel updates for 'stable'
thread 'main' panicked at 'called `Result::unwrap()` on an `Err` value: Error { description: "Timeout was reached", code: 28, extra: Some("Failed to connect to github.com port 443 after 21023 ms: Couldn't connect to server") }', src\elan-utils\src\utils.rs:514:32

@cartazio
Copy link
Author

is it possible that using port 443 is hard coded somewhere? this is in an environment where https needs to be proxied over a different port

@cartazio
Copy link
Author

ive also tried all the various cargo and curl style config files and no luck there :(

@Kha
Copy link
Member

Kha commented Jan 24, 2024

The quick answer is that I have no idea, about any of this. Sorry!

@cartazio
Copy link
Author

cartazio commented Jan 25, 2024 via email

@cartazio
Copy link
Author

cartazio commented Jan 27, 2024 via email

@Kha
Copy link
Member

Kha commented Jan 29, 2024

If it solves your issue when http_proxy (note the casing!) doesn't, then yes

@cartazio
Copy link
Author

cartazio commented Jan 29, 2024 via email

@kim-em
Copy link
Contributor

kim-em commented Jan 30, 2024

Just noting that there has been recent discussion on zulip about this issue. I haven't followed the details but if you're interested in this it is probably worth reading.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants