cargo: "Object not found" updating registry

cargo test --verbose
    Updating registry `https://github.com/rust-lang/crates.io-index`
error: failed to load source for a dependency on `interpolate_idents`

Caused by:
  Unable to update registry https://github.com/rust-lang/crates.io-index

Caused by:
  failed to fetch `https://github.com/rust-lang/crates.io-index`

Caused by:
  [9/-3] Object not found - no match for id (ad11335f47604b5f394994354204323098310754)

version: cargo 0.19.0-nightly (fa7584c14 2017-04-26)

About this issue

  • Original URL
  • State: closed
  • Created 7 years ago
  • Reactions: 5
  • Comments: 22 (8 by maintainers)

Commits related to this issue

Most upvoted comments

Hm is this persistent? In the sense does it reproduce if you try again?

Also, if you blow away $CARGO_HOME/registry does it reproduce?

(ah, as per https://github.com/rust-lang/cargo/issues/4245, rm -rf ~/.cargo/registry fixed it. How strange…)

Same issue in v1.41.0 & Linux. Clearing the registry did fix it:

    Updating crates.io index
error: failed to fetch `https://github.com/rust-lang/crates.io-index`

Caused by:
  object not found - no match for id (05707ea64ba70866ac7211b5fde456a239e21f55); class=Odb (9); code=NotFound (-3)