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

SHA256 mismatch in bitcoin #21774

Closed
5 tasks done
alyssais opened this issue Dec 15, 2017 · 11 comments
Closed
5 tasks done

SHA256 mismatch in bitcoin #21774

alyssais opened this issue Dec 15, 2017 · 11 comments
Assignees
Labels
checksum mismatch SHA-256 doesn't match the download

Comments

@alyssais
Copy link
Contributor

alyssais commented Dec 15, 2017

  • Confirmed this is a problem with brew installing one, specific Homebrew/homebrew-core formula (not cask or tap) and not every time you run brew? If it's a general brew problem please file this issue at https://github.com/Homebrew/brew/issues/new. If it's a brew cask problem please file this issue at https://github.com/caskroom/homebrew-cask/issues/new. If it's a tap (e.g. Homebrew/homebrew-php) problem please file this issue at the tap.
  • Ran brew update and retried your prior step?
  • Ran brew doctor, fixed all issues and retried your prior step?
  • Ran brew gist-logs <formula> (where <formula> is the name of the formula that failed) and included the output link? No logs.
  • If brew gist-logs didn't work: ran brew config and brew doctor and included their output with your issue?

Tried on multiple Homebrew installations across multiple Macs on multiple network connections.

$ brew config
HOMEBREW_VERSION: 1.4.0-27-g67c4402
ORIGIN: https://github.com/Homebrew/brew
HEAD: 67c4402634e24400accdb59fa81cde9020dd0386
Last commit: 7 hours ago
Core tap ORIGIN: https://github.com/Homebrew/homebrew-core
Core tap HEAD: 841256fddd1f137bc43769ac0506165d1f2fd8dd
Core tap last commit: 2 hours ago
HOMEBREW_PREFIX: /usr/local
HOMEBREW_BINTRAY_USER: alyssais
HOMEBREW_BUILD_FROM_SOURCE: 1
HOMEBREW_DEVELOPER: 1
HOMEBREW_VERBOSE: 1
HOMEBREW_VISUAL: kak
CPU: quad-core 64-bit kabylake
Homebrew Ruby: 2.3.3 => /usr/local/Homebrew/Library/Homebrew/vendor/portable-ruby/2.3.3/bin/ruby
Clang: 9.0 build 900
Git: 2.14.3 => /Applications/Xcode.app/Contents/Developer/usr/bin/git
Curl: 7.54.0 => /usr/bin/curl
Perl: /usr/bin/perl
Python: /usr/local/opt/python/libexec/bin/python => /usr/local/Cellar/python/2.7.14/Frameworks/Python.framework/Versions/2.7/bin/python2.7
Ruby: /Users/qyliss/.rubies/ruby-2.4.2/bin/ruby
Java: N/A
macOS: 10.12.6-x86_64
Xcode: 9.2
CLT: 9.1.0.0.1.1508540944
X11: N/A
$ brew doctor
Please note that these warnings are just used to help the Homebrew maintainers
with debugging if you file an issue. If everything you use Homebrew for is
working fine: please don't worry or file an issue; just ignore this. Thanks!

Warning: You have HOMEBREW_BUILD_FROM_SOURCE set. This environment variable is
intended for use by Homebrew developers. If you are encountering errors,
please try unsetting this. Please do not file issues if you encounter
errors when using this environment variable.

Warning: A newer Command Line Tools release is available.
Update them from Software Update in the App Store.
$ brew install -vs bitcoin
/usr/bin/sandbox-exec -f /tmp/homebrew20171215-766-94yau6.sb nice /usr/local/Homebrew/Library/Homebrew/vendor/portable-ruby/2.3.3/bin/ruby -W0 -I /usr/local/Homebrew/Library/Homebrew -- /usr/local/Homebrew/Library/Homebrew/build.rb /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/bitcoin.rb --verbose
==> Downloading https://github.com/bitcoin/bitcoin/archive/v0.15.1.tar.gz
==> Downloading from https://codeload.github.com/bitcoin/bitcoin/tar.gz/v0.15.1
/usr/bin/curl --show-error --user-agent Homebrew/1.4.0-27-g67c4402 (Macintosh; Intel Mac OS X 10.12.6) curl/7.54.0 --fail --location --remote-time --continue-at - --output /Users/qyliss/Library/Caches/Homebrew/bitcoin-0.15.1.tar.gz.incomplete https://codeload.github.com/bitcoin/bitcoin/tar.gz/v0.15.1
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100 7370k  100 7370k    0     0  1137k      0  0:00:06  0:00:06 --:--:-- 1381k
==> Verifying bitcoin-0.15.1.tar.gz checksum
Error: SHA256 mismatch
Expected: e429d4f257f2b5b6d0caaf36ed1a5f5203e5918c57837efac00b0c322a1fef79
Actual: 98b3a98a67054123bef6714e4035e18f9250a1b6d63829258ad057906e75d8b1
Archive: /Users/qyliss/Library/Caches/Homebrew/bitcoin-0.15.1.tar.gz
To retry an incomplete download, remove the file above.
@alyssais
Copy link
Contributor Author

This looks like it could be related to #18044 but would be weird if so because it wasn't picked up at the time.

@ilovezfs
Copy link
Contributor

iMac-TMP:~ joe$ brew fetch -s bitcoin
==> Downloading https://github.com/bitcoin/bitcoin/archive/v0.15.1.tar.gz
==> Downloading from https://codeload.github.com/bitcoin/bitcoin/tar.gz/v0.15.1
######################################################################## 100.0%
Downloaded to: /Users/joe/Library/Caches/Homebrew/bitcoin-0.15.1.tar.gz
SHA256: e429d4f257f2b5b6d0caaf36ed1a5f5203e5918c57837efac00b0c322a1fef79
iMac-TMP:~ joe$ 

@sjackman
Copy link
Member

❯❯❯ brew fetch -s bitcoin
==> Downloading https://github.com/bitcoin/bitcoin/archive/v0.15.1.tar.gz
==> Downloading from https://codeload.github.com/bitcoin/bitcoin/tar.gz/v0.15.1
######################################################################## 100.0%
Downloaded to: /Users/sjackman/Library/Caches/Homebrew/bitcoin-0.15.1.tar.gz
SHA256: 98b3a98a67054123bef6714e4035e18f9250a1b6d63829258ad057906e75d8b1
Warning: Formula reports different SHA256: e429d4f257f2b5b6d0caaf36ed1a5f5203e5918c57837efac00b0c322a1fef79

@ilovezfs
Copy link
Contributor

can someone upload the "bad" tarball

@alyssais
Copy link
Contributor Author

bitcoin-0.15.1.tar.gz

@ilovezfs
Copy link
Contributor

iMac-TMP:bitcoin joe$ diff A/bitcoin-0.15.1/src/clientversion.cpp B/bitcoin-0.15.1/src/clientversion.cpp
48c48
< #define GIT_COMMIT_ID "7b57bc998f3"
---
> #define GIT_COMMIT_ID "7b57bc998f33"
iMac-TMP:bitcoin joe$

So their repo grew.

@alyssais
Copy link
Contributor Author

And they overwrote the release?

@ilovezfs
Copy link
Contributor

@ghost ghost assigned ilovezfs Dec 15, 2017
@ghost ghost added the in progress Stale bot should stay away label Dec 15, 2017
@ilovezfs
Copy link
Contributor

#21776

@alyssais
Copy link
Contributor Author

No. It's a git misfeature:

ewwwwww

@ghost ghost removed the in progress Stale bot should stay away label Dec 15, 2017
@alyssais
Copy link
Contributor Author

Thanks @ilovezfs!

@ilovezfs ilovezfs added the checksum mismatch SHA-256 doesn't match the download label Dec 17, 2017
@Homebrew Homebrew locked and limited conversation to collaborators May 4, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
checksum mismatch SHA-256 doesn't match the download
Projects
None yet
Development

No branches or pull requests

3 participants