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

installation fails on "failed to authenticate when downloading repository" #2422

Closed
cyisfor opened this issue Feb 29, 2016 · 7 comments
Closed

Comments

@cyisfor
Copy link

cyisfor commented Feb 29, 2016

using rustc 1.8.0-dev, can't install cargo. Default build fails unconditionally.

to reproduce:

  1. clone cargo
  2. ./configure
  3. make

target/snapshot/bin/cargo build --target x86_64-unknown-linux-gnu --release
Updating registry https://github.com/rust-lang/crates.io-index
An unknown error occurred

Caused by:
failed to authenticate when downloading repository

@alexcrichton
Copy link
Member

Could you re-run that command with -v to get some more error information as well?

@tristanwietsma
Copy link

Running into the same issue. With verbose on,

$ make
/Users/taw/local/bin/rustc -V
rustc 1.9.0-dev (c9629d61c 2016-03-10)
target/snapshot/bin/cargo --version
cargo 0.9.0-nightly (c4c6f39 2016-01-30)
target/snapshot/bin/cargo build --verbose --target x86_64-apple-darwin --release
    Updating registry `https://github.com/rust-lang/crates.io-index`
failed to fetch `https://github.com/rust-lang/crates.io-index`

Caused by:
  failed to authenticate when downloading repository

Caused by:
  [23/-1] error authenticating:
make: *** [cargo-x86_64-apple-darwin] Error 101

Additional Notes:

  • I have a valid token in my global gitconfig.

@alexcrichton
Copy link
Member

@tristanwietsma is the error intermittent or reproducible? Failing to authenticate with a connection that doesn't need authentication is odd indeed!

@tristanwietsma
Copy link

Reproducible; never succeeds.

@alexcrichton
Copy link
Member

Oh what does your global .gitconfig look like? I think this error only shows up when cloning SSH repositories and that may be happening if something is being redirected with the gitconfig

@tristanwietsma
Copy link

yup, that was it. I had this for go getting private repos over SSH:

[url "[email protected]:"]
    insteadOf = https://github.com/

Removing solved it. Thanks.

@alexcrichton
Copy link
Member

Ah ok, in that case I'm gonna close this in favor of #2078 as I think it's a dupe of that. Thanks for the investigation though!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants