-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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
Cargo download dependency failed "send: no filter connected" #12202
Comments
Hello. Looks like you're using Rust 1.68.2. Can you try the prerelease stable version to see if the issue persists? We had some significant problems with curl 7.87 and 7.88. In Rust 1.70.0, we bumped curl to 8.0.1. |
@weihanglo Thanks , but the rust toolchain configuration is written via
I think it is hard to modify this file. |
Could you provide a minimal reproducible example for it? I am a bit astray without any actual example 😅. It would also be better if you could share the full version info via |
@weihanglo sure
|
Sorry I am a bit confused.
|
|
I try to minimal a project to reproduce this, But this problem is gone.
I have a |
This comes from a big open source project , I didn't know how to minimal it. |
more project have this issue now on my local machine.
|
Have you ever configured any HTTP Proxies like |
I think I have not define proxy server. |
Can you verify which version of Cargo you're using. Perhaps run |
|
Something from the previous issue #11746 that could help the investigation.
|
I installed toolchain from here.
|
How can I try another version of |
Download them and try something like |
|
@weihanglo Sorry more projects not working now.
|
Looking into your log provided here. You were still using a proxy perhaps.
Could you try again with either
Please share what you find after your attempts. |
I experienced the same problem after using |
When I quit my proxy server
I checked my
|
Sorry. |
I set the mirror source: [source.ustc] and finally solve the problem with unset proxy in zsh (registry export https_proxy=` and `export HTTP_PROXY= export HTTPS_PROXY=` maybe this will help. |
It looks like a bug mostly for macOS since it's shipped with curl v7.88.1 on the latest Ventura 13.4. And curl v7.88.1 has some bugs mentioned in #11746. For me |
@XOR-op @weihanglo Thanks, |
I'm on the latest MacOS, and observe the same problem. It manifest itself with a few crates, but not with all of them - which is surprising to me. I have correctly configured proxy, which works for Git and everything else. My curl is 8.1.2 - latest stable, installed via Macports. I haven't tried yet |
@mouse07410 That is because you have added the PATH of curl 8.1.2 to your shell. However, for libcurl, I doubt whether cargo will follow any of the environment variable suggests. I guess it uses the OS-default curl directly, whose version is 7.88.1. |
It might also be some crates are already cached. |
I hear you - but I doubt that updated crates being installed via
That's rather unpleasant. Is there anything we (I - via local config, or you - via cargo sources) can do to remedy this? |
It depends. Some
I am collecting information and working on a possible workaround. Please help confirm whether |
I understand, but:
I fail to see how, if a crate on the server got updated since my last refresh, and I'm trying to upgrade my local set, that updated crate would somehow be already downloaded to my machine.
Would be happy to. Two obstacles, however:
|
Hi, all! The beta backport of #12234 just got merged — rust-lang/rust#112421. If everything goes well, |
@weihanglo Thanks. |
Hello everyone. The fix should be available in |
This fixed the issue on my side. |
OK, my (final) feedback on the released (1.70..0) toolchain:
Looking forward to seeing 1.71.0 released. ;-) |
…ked via the Cargo auth proxy task. This is to work around an issue with Cargo HTTP/2 multi-plexing (see rust-lang/cargo#12202).
…ked via the Cargo auth proxy task. This is to work around an issue with Cargo HTTP/2 multi-plexing (see rust-lang/cargo#12202). (#75) * kraken-std/: improvement: Add `--no-http2` to the mitmproxy when invoked via the Cargo auth proxy task. This is to work around an issue with Cargo HTTP/2 multi-plexing (see rust-lang/cargo#12202). * Updated PR references in 0 changelogs. skip-checks: true --------- Co-authored-by: GitHub Action <[email protected]>
This is a work-around for charm build failures resulting in: "Cargo download dependency failed "send: no filter connected". This is documented in the following upstream issue: rust-lang/cargo#12202 This affects lunar builds where the curl version is 7.88.1. Thanks to Colin Watson for help with figuring this out. Closes-Bug: #2037589 Change-Id: I8d48de1e7f7c9f517f6759139610b2451c131c80
* Update charm-octavia-diskimage-retrofit from branch 'master' to bbd0e0e253de88bce458ca297495eb7005d2479c - Work-around for Cargo download dependency failed This is a work-around for charm build failures resulting in: "Cargo download dependency failed "send: no filter connected". This is documented in the following upstream issue: rust-lang/cargo#12202 This affects lunar builds where the curl version is 7.88.1. Thanks to Colin Watson for help with figuring this out. Closes-Bug: #2037589 Change-Id: I8d48de1e7f7c9f517f6759139610b2451c131c80
I'm behind a corporate proxy and was hitting a `Curl 2 (...) [CONN-1-0] send: no filter connected` error when trying to download some packages. Some google research led me to rust-lang/cargo#12202 and its fix rust-lang/cargo#12234. This PR backports this fix to composer. > In certain versions of libcurl when proxy is in use with HTTP/2 multiplexing, connections will continue stacking up. This was fixed in libcurl 8.0.0 in curl/curl@821f6e2
I'm behind a corporate proxy and was hitting a `Curl 2 (...) [CONN-1-0] send: no filter connected` error when trying to download some packages. Some google research led me to rust-lang/cargo#12202 and its fix rust-lang/cargo#12234. This PR backports this fix to composer. > In certain versions of libcurl when proxy is in use with HTTP/2 multiplexing, connections will continue stacking up. This was fixed in libcurl 8.0.0 in curl/curl@821f6e2
* disable multiplexing for some versions of curl I'm behind a corporate proxy and was hitting a `Curl 2 (...) [CONN-1-0] send: no filter connected` error when trying to download some packages. Some google research led me to rust-lang/cargo#12202 and its fix rust-lang/cargo#12234. This PR backports this fix to composer. > In certain versions of libcurl when proxy is in use with HTTP/2 multiplexing, connections will continue stacking up. This was fixed in libcurl 8.0.0 in curl/curl@821f6e2 * fix has proxy condition
Problem
Cargo download dependency failed
This issue I filed on rust forum before, But I didn't get enough useful information.
Edited by a maintainer
The error may look like:
This is due to a bug in some bad versions of libcurl, whose HTTP/2 multiplexing is not compatible with http proxy settings. The affected versions are:
If you're on macOS and your system libcurl is included, we suggest
1.71
,beta-2023-06-09
,nightly-2023-06-11
or newerhttp.multiplexing
manually in.cargo/config.toml
orCARGO_HTTP_MULTIPLEXING=false
.The text was updated successfully, but these errors were encountered: