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

rustup-init curl library problem #713

Closed
MrSpock opened this issue Sep 8, 2016 · 1 comment
Closed

rustup-init curl library problem #713

MrSpock opened this issue Sep 8, 2016 · 1 comment

Comments

@MrSpock
Copy link

MrSpock commented Sep 8, 2016

Hi,

I can't install rust using rustup on BeagleBone Black with latest Debian Jessie with all updates applied.
Here is system info:
Linux arm 4.1.15-bone-rt-r18 #1 Thu Jan 21 23:23:01 CET 2016 armv7l GNU/Linux (armhf)
I'm getting following certificate related error (-v passed for verbose mode):

verbose: installing toolchain 'stable-armv7-unknown-linux-gnueabihf'
verbose: toolchain directory: '/home/spock/.multirust/toolchains/stable-armv7-unknown-linux-gnueabihf'
info: syncing channel updates for 'stable-armv7-unknown-linux-gnueabihf'
verbose: creating temp file: /home/spock/.multirust/tmp/dsv5ds_h4q_rh6pl_file
verbose: downloading file from: 'https://static.rust-lang.org/dist/channel-rust-stable.toml.sha256'
verbose: downloading with curl
verbose: removing toolchain directory: '/home/spock/.multirust/toolchains/stable-armv7-unknown-linux-gnueabihf'
error: could not download file from 'https://static.rust-lang.org/dist/channel-rust-stable.toml.sha256' to '/home/spock/.multirust/tmp/dsv5ds_h4q_rh6pl_file
info: caused by: error during download
info: caused by: [60] Peer certificate cannot be authenticated with given CA certificates
info: backtrace:

stack backtrace:
   0: 0x7f7d4ac3 - backtrace::backtrace::trace::h20da0f9aefd67d85
   1: 0x7f7d51bb - backtrace::capture::Backtrace::new::h3a3d5e9defd7d407
   2: 0x7f7446e3 - download::curl::download::hed1e149a19be43ac
   3: 0x7f743293 - download::download_to_path_with_backend::h755f5d929d2daa7e
   4: 0x7f728d13 - rustup_utils::utils::download_file::h500b991b520d9db8
   5: 0x7f6ee8f3 - rustup_dist::dist::download_hash::h00d1dd7ea06b1fc6
   6: 0x7f6ed863 - rustup_dist::dist::download_and_check::h10ddb82a6c707a9f
   7: 0x7f6ef61f - rustup_dist::dist::update_from_dist_::hd149bbe4a20490eb
   8: 0x7f6ef00b - rustup_dist::dist::update_from_dist::hbe927742f91b89e4
   9: 0x7f6b9cab - rustup::toolchain::Toolchain::install::h452b54d48d67b241
  10: 0x7f6babef - rustup::toolchain::Toolchain::install_from_dist_inner::h485f954a61220fe1
  11: 0x7f6ba96f - rustup::toolchain::Toolchain::install_from_dist::h877a8892c3930f16
  12: 0x7f6899c7 - rustup_init::self_update::install::h2d0f6827788ef9dc
  13: 0x7f6971c3 - rustup_init::main::habce3d2a29c7553b
  14: 0x7f94745f - std::panicking::try::call::h94b205a774fa265c
  15: 0x7f94c1b3 - __rust_maybe_catch_panic
  16: 0x7f94674b - std::rt::lang_start::ha9a21237c3a23329
  17: 0xb6e3a631 - __libc_start_main
rustup: command failed: /tmp/tmp.bQ79Pxj44p/rustup-init -v

You are not using curl binary by some exec so it is impossible to pass -k curl option to ignore certificates verification.
Can't find any method to install rust on this platform.

@MrSpock
Copy link
Author

MrSpock commented Sep 8, 2016

Hah - I've trace source of a problem and for future reference here is solution:
Check your clock. My clock was 3 years in the past (2013) and if you encounter SSL cert with field "not valid before" in the future from system perspective (https://static.rust-lang.org is not valid before 6 August 2014 so it is future from my system point of view with wrong time) you will get this cryptic error :)
Problem solved - always check your clock when having certificate related problems.

@Diggsey Diggsey closed this as completed May 4, 2017
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

2 participants