Error when verifying

help for this error please

  • cargo test --package kubos-app-service
    Updating crates.io index
    error: failed to get nosengine-rust as a dependency of package rust-i2c v0.1.0 (/home/dtis/kubos/hal/rust-hal/rust-i2c)

Caused by:
failed to load source for dependency nosengine-rust

Caused by:
Unable to update registry crates-io

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

Caused by:
process didn't exit successfully: git fetch --force --update-head-ok 'https://github.com/rust-lang/crates.io-index' '+HEAD:refs/remotes/origin/HEAD' (exit status: 128)
--- stderr
warning: redirecting to GitHub - rust-lang/crates.io-index: Registry index for crates.io
error: RPC failed; curl 18 transfer closed with outstanding read data remaining
error: 5919 bytes of body are still expected
fetch-pack: unexpected disconnect while reading sideband packet
fatal: early EOF
fatal: fetch-pack: invalid index-pack output

No idea what this could be, but cargo obviously isn't reaching crates.io. Try disabling any VPNs or proxies (or try enabling one if you aren't using one), checking firewalls, etc. Maybe try from a different device or network?

thank you for your concern, let me try to do so

You seem to have a very old version of Rust that uses a big slow git index.

If you update Rust, you will get a much faster registry access, and it might also avoid the git protocol incompatibility you're seeing. (run rustup update, and if that doesn't work, uninstall Rust and use https://rustup.rs).

2 Likes

thank you i will try it

This topic was automatically closed 90 days after the last reply. We invite you to open a new topic if you have further questions or comments.