Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.
Sign upChecksum failed (again) #346
Comments
This comment has been minimized.
This comment has been minimized.
|
Thanks for the report. I'd imagine this has resolved itself by now? It's probably not the same issue we saw over the weekend. We have constant problems with our CDN invalidating our binary artifacts at different times, causing the .sha256 files to disagree with the files they correspond to. I believe what you are seeing is the effects of this bug. It's super frustrating, but I've just taken another look at our CDN invalidation script and it looks right. Even though I think this is an upstream problem, I'm going to leave this open for others to find. |
This comment has been minimized.
This comment has been minimized.
|
After thinking about this further there is only one scenario where we should possibly be seeing these hash mismatches, and that's when comparing the manifest with its hash. Other hashes are all contained in the manifest themselves and refer to files with unique names that don't require CDN invalidation. It may be possible to tweak the manifest format further to avoid this problem. For example, the manifest itself could be a toml file prepended with a 60 byte sha. Could also just not validate the manifest and leave errors to happen during parsing and downloading of bins. |
This comment has been minimized.
This comment has been minimized.
|
Yes, it resolved something like 20 minutes after I filed it. |
This comment has been minimized.
This comment has been minimized.
|
I'm considering just not checking either the hash of the manifest or the hash of the self update, the two problematic hashes. I don't know anything that validating these two hashes accomplishes. As a checksum it's redundant since the HTTPS transfer will guarantee the bits get to us correctly. |
This comment has been minimized.
This comment has been minimized.
|
Heh. The hashes here let you check whether updates exist before downloading, an important function. I'm working on other workarounds. |
brson
added a commit
to brson/rustup.rs
that referenced
this issue
Apr 28, 2016
brson
referenced this issue
Apr 28, 2016
Merged
Don't make it an error for the self-update hash to be wrong #372
brson
added a commit
to brson/rustup.rs
that referenced
this issue
Apr 29, 2016
This comment has been minimized.
This comment has been minimized.
est31
commented
Jun 1, 2016
|
@brson what about using HTTP ETags for this? They were designed for precisely this purpose. |
brson
referenced this issue
Jun 3, 2016
Closed
Trying to set nightly override gives checksum failed error #507
This comment has been minimized.
This comment has been minimized.
|
@est31 From a quick googling I don't know that I can use etags to fix the syncing from S3 to CloudFront. Do you know how to do it? |
This comment has been minimized.
This comment has been minimized.
|
Yes, it's possible we could use etags instead of the sha for checking for updates. |
This comment has been minimized.
This comment has been minimized.
shivawu
commented
Jul 26, 2016
|
Happening to me with the nightly toolchain |
This comment has been minimized.
This comment has been minimized.
|
With some changes to the data layout we should be able to get rid of the drift. The idea is that each releases binaries are uploaded to a unique directory (the Rust and rustup archives already partially accomplish this), and there is a single Concretely, we have to change the scheme used in two places - the rustup bins and the rust manifests. For rustup we'll need to add a For rust, we'll need to add a To make this work on CloudFront we'll need to set up multiple origins. Some IRC conversation:
cc @eternaleye |
johnthagen
referenced this issue
Mar 11, 2017
Closed
Checksum error on beta-x86_64-pc-windows-msvc #979
Diggsey
added this to Infrastructure & website
in Issue Categorisation
May 4, 2017
Diggsey
moved this from Infrastructure & website
to Downloads
in Issue Categorisation
May 4, 2017
This comment has been minimized.
This comment has been minimized.
wrouesnel
commented
Jan 9, 2018
|
Happening to me now with 1.22. Worse: when it fails rustup insists that it installed something, but none of the right directories exist:
|
alexbool commentedApr 20, 2016
I don't know if this is related to previous bugs with the same name, so filing a new one.