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

Builder got stuck on "Updating crates.io index" #64248

Closed
Centril opened this issue Sep 7, 2019 · 18 comments
Closed

Builder got stuck on "Updating crates.io index" #64248

Centril opened this issue Sep 7, 2019 · 18 comments
Labels
A-spurious Area: Spurious failures in builds (spuriously == for no apparent reason) C-bug Category: This is a bug. T-infra Relevant to the infrastructure team, which will review and decide on the PR/issue.

Comments

@Centril
Copy link
Contributor

Centril commented Sep 7, 2019

In #64246 (comment), the test-various builder got stuck (https://dev.azure.com/rust-lang/rust/_build/results?buildId=7573):

2019-09-07T06:17:08.8395892Z extracting /checkout/obj/build/cache/2019-08-13/cargo-beta-x86_64-unknown-linux-gnu.tar.gz
2019-09-07T06:17:10.0973441Z     Updating crates.io index
2019-09-07T10:24:09.3054360Z ##[error]The operation was canceled.
2019-09-07T10:24:09.3072651Z ##[section]Finishing: Run build

cc @pietroalbini

@Centril Centril added T-infra Relevant to the infrastructure team, which will review and decide on the PR/issue. C-bug Category: This is a bug. labels Sep 7, 2019
@pietroalbini pietroalbini added the A-spurious Area: Spurious failures in builds (spuriously == for no apparent reason) label Sep 7, 2019
@Centril Centril changed the title Builder got stuck on updating crates.io index Builder got stuck on "Updating crates.io index" Sep 7, 2019
@markwitt1
Copy link

i have the same issue

@pipehappy1
Copy link

I have the same issue on some network. Is this related to some network problem?

@pietroalbini
Copy link
Member

The crates.io index is downloaded from GitHub, so I would contact GitHub support to ask about it.

@Canoir
Copy link

Canoir commented Mar 5, 2021

I have the same issue, any resolve for that?

@mk30
Copy link

mk30 commented May 12, 2021

based on rust-lang/cargo#7662 (comment), i cleared the contents of ~/.cargo/registry/*. the crates.io index updated successfully after that.

(cc @Canoir )

@JohnTitor
Copy link
Member

Triage: I presume this aims to track our CI issues and it doesn't happen on recent our CI builds. The cargo issue itself should go to the cargo repo (like rust-lang/cargo#7662). Therefore I'm going to close.

@blueglyph
Copy link

blueglyph commented Jun 6, 2022

Same problem here when I added num = "0.4" in the dependencies.
It takes a lot of time, or freezes, on "Updating crates.io index".

Rust 0.4.171.4656-221
toolchain 1.61.0
IntelliJ IDEA 2022.1.1 (Ultimate Edition)
Build #IU-221.5591.52, built on May 10, 2022

@JohnTitor
Copy link
Member

@blueglyph Note that this issue is about our CI builder.

@ArikRahman
Copy link

I had this issue too, I simply changed directory from the terminal into the registry file@mk30 specified and CLion resumed the build.

@Rtoax
Copy link

Rtoax commented Sep 30, 2022

+ cd ceaos-coreos-pinger-0.0.4
+ /usr/bin/env CARGO_HOME=.cargo /usr/bin/cargo build --release -j32
    Updating crates.io index

Could i just skip the cargo build procudure?

@felipelalli
Copy link

felipelalli commented Nov 23, 2022

Same issue here. Maybe proxy issue?

EDIT: it worked after tip of #64248 (comment)

@0xpr03
Copy link

0xpr03 commented Dec 10, 2022

Same here with 3GB and ~400000 files in the .cargo/registry on windows (using a SSD).

@ddjerqq
Copy link

ddjerqq commented Dec 12, 2022

make sure to run your IDE as admin or sudo. it fixed for me. also clean the registry cache as per this comment

@EarthCitizen
Copy link

The solution by @mk30 worked for me. It was hanging at a certain percentage, but after I did what @mk30 suggested above, it instantly started working. Could there be some kind of corruption issue with the index?

@jalbiero
Copy link

I am experiencing the same issue when building a very simple project (its only dependency is Rocket) inside a docker (it is a fresh environment, the cargo registry is empty)

@mohit310
Copy link

having same issue on linux

@nuclyk
Copy link

nuclyk commented Sep 26, 2023

the same issue on Mac

@deltakid0
Copy link

Same issue, Debian Stretch 32-bit, I'm trying to add num-bigint crate manually but still the same problem, no solution so far?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-spurious Area: Spurious failures in builds (spuriously == for no apparent reason) C-bug Category: This is a bug. T-infra Relevant to the infrastructure team, which will review and decide on the PR/issue.
Projects
None yet
Development

No branches or pull requests