Skip to content

rustup: When local date is later than server date, nightly can't be downloaded #21270

@mkpankov

Description

@mkpankov
➜  rust git:(master) src/etc/rustup.sh --prefix=$HOME/install --save
rustup: CFG_CURL             := /usr/bin/curl (7.35.0)
rustup: CFG_TAR              := /bin/tar (1.27.1)
rustup: CFG_FILE             := /usr/bin/file (5.14)
rustup: CFG_SHA256SUM        := /usr/bin/sha256sum (256sum)
rustup: CFG_SHASUM           := /usr/bin/shasum (5.84)
rustup: 
rustup: processing src/etc/rustup.sh args
rustup: 
rustup: CFG_PREFIX           := /home/mpankov/install 
rustup: CFG_DATE             :=  
rustup: CFG_SAVE             := 1 
rustup: 
rustup: validating src/etc/rustup.sh args
rustup: 
rustup: host triple: x86_64-unknown-linux-gnu
rustup: Downloading https://static.rust-lang.org/dist/2015-01-17/rust-nightly-x86_64-unknown-linux-gnu.tar.gz to /home/mpankov/.rustup/2015-01-17/rust-nightly-x86_64-unknown-linux-gnu.tar.gz
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
  0     0    0     0    0     0      0      0 --:--:--  0:00:02 --:--:--     0
curl: (22) The requested URL returned error: 404 Not Found
rustup: error: failed to download installer

The issue here is, I believe, that local time is later than time of where Rust is built. Considering a big part of the world is significantly to the East of main build server (up to about 12 hours of time differences), running rustup.sh late at night in Europe will frequenly break.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions