Skip to content

Useless error when ca-certificates are missing #48443

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

Closed
glandium opened this issue Feb 22, 2018 · 2 comments
Closed

Useless error when ca-certificates are missing #48443

glandium opened this issue Feb 22, 2018 · 2 comments

Comments

@glandium
Copy link
Contributor

I was trying to cargo build something in a newly created chroot and got the following output:

    Updating registry `https://github.com/rust-lang/crates.io-index`
warning: spurious network error (2 tries remaining): curl error: 
; class=Net (12)
warning: spurious network error (1 tries remaining): curl error: 
; class=Net (12)
error: failed to fetch `https://github.com/rust-lang/crates.io-index`           

Caused by:
  curl error: 
; class=Net (12)

Even with colors, this is not a great error message.
Strace hinted me that /etc/ssl/certs/ca-certificates.crt was missing, and sure enough, it worked after installing the ca-certificates package. But that wasn't thanks to cargo's error message.

@kennytm
Copy link
Member

kennytm commented Feb 22, 2018

This is a cargo issue and should be filed at https://github.com/rust-lang/cargo/issues.

@glandium
Copy link
Contributor Author

Gah, sorry. I should have known better. Refiled as rust-lang/cargo#5065

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