https://pantsbuild.org/ logo
w

wide-zoo-86070

04/05/2022, 4:56 PM
I am getting the following error while running ./pants dependencies in linux env.
Copy code
$ ./pants --version
12:52:37.48 [INFO] waiting for pantsd to start...
12:52:40.09 [INFO] pantsd started
12:52:40.38 [INFO] Initializing scheduler...
12:52:40.81 [INFO] Scheduler initialized.
2.10.0+gitb27a00dd
$ ./pants dependencies ::
12:52:57.67 [WARN] DEPRECATED: scope download-pex-bin will be removed in version 2.11.0.dev0.

Use scope pex-cli instead (options: url_template)
12:52:58.07 [ERROR] 1 Exception encountered:

  Exception: Got hash collision reading from store - digest Digest { hash: Fingerprint<cdb957cf4b2a21d8788d0ad4062eccb75e313411ba17b3999e4eeb1c94504aad>, size_bytes: 67 } was requested, but retrieved bytes with that fingerprint had length 8. Congratulations, you may have broken sha256! Underlying bytes: [33, 130, 76, 98, 0, 0, 0, 0]
đź‘€ 1
w

witty-crayon-22786

04/05/2022, 5:02 PM
2.11.0.dev0
is fairly old at this point (we do 3 or 4 dev releases, and then start doing release candidates: `rc`s), and some significant changes to storage happened in there: are you able to reproduce this on
2.11.0rc1
?
(we’d generally not recommend consuming
dev
releases unless you’re trying to pick up a bug fix that isn’t in a stable or rc release)
did you use any other
dev
releases in the 2.11.x series?
my recommendation would be: 1. move to
2.11.0rc1
and see whether it reproduces 2. if it does, stay on
2.11.0rc1
, but move
~/.cache/pants/lmdb_store
somewhere else, to clear the storage. 3. if the issue doesn’t reproduce after you’ve cleared the storage, we would be interested in seeing the contents of the
~/.cache/pants/lmdb_store
that you saved (if you’re comfortable sharing it)
đź‘Ť 1
also, is there anything interesting about where
$HOME
is mounted? perhaps on NFS?
w

wide-zoo-86070

04/05/2022, 6:27 PM
it seems it goes back to normal after cleaning the cache. I believe I might just have some stale pex cache.
12 Views