ripe-magazine-21370
05/13/2025, 9:34 PM.pants.d/pids This happens to us most commonly when we're running pants on SLURM machines with the pants directory on a shared, mounted, home folder. Users may have multiple terminals on the same node, and even multiple nodes, all running with the same home folder mounted.
I suspect something about our set up is causing pants corruption to be very common (eg once a day) and wondering if this is a known issue, and if there's anything we can do to workaroundripe-magazine-21370
05/13/2025, 9:36 PMEngine traceback:
in `export` goal
IntrinsicError: Couldn't find file contents for "playground/src/components/playground/BUILD": Got hash collision reading from store - digest Digest { hash: Fingerprint<3e40830e1c1aa7488a5e93d134299bd4d7e0e627858fa6145780f10777776966>, size_bytes:
70 } was requested, but retrieved bytes with that fingerprint had length 8. Congratulations, you may have broken sha256! Underlying bytes: [162, 206, 35, 104, 0, 0, 0, 0]ripe-magazine-21370
05/13/2025, 9:37 PMpants export --py-resolve-format=symlinked_immutable_virtualenv --resolve=python-default and the source dist/export/... to activate a virtual env, and then run PYTHONPATH=. python path-to-my-script.py in order to iterate locallybroad-processor-92400
05/14/2025, 12:35 AMthe pants directoryJust to be 100% sure, which pants directory is this?
.pants.d/ or something else?ripe-magazine-21370
05/14/2025, 12:37 AM~/.cache/pants and ~/my_repo/.pants.dbroad-processor-92400
05/14/2025, 1:51 AMripe-magazine-21370
05/14/2025, 2:16 AMgorgeous-winter-99296
05/14/2025, 7:04 AMripe-magazine-21370
05/14/2025, 4:59 PMdf -T ~ reports nfs.gorgeous-winter-99296
05/14/2025, 5:01 PMgorgeous-winter-99296
05/14/2025, 5:02 PMripe-magazine-21370
05/14/2025, 10:05 PMripe-magazine-21370
05/14/2025, 10:06 PMripe-magazine-21370
05/14/2025, 10:06 PMgorgeous-winter-99296
05/14/2025, 10:19 PMripe-magazine-21370
05/14/2025, 10:34 PMgorgeous-winter-99296
05/15/2025, 7:28 AMDo not use LMDB databases on remote filesystems, even between processes on the same host. This breaks flock() on some OSes, possibly memory map sync, and certainly sync between programs on different hosts.
gorgeous-winter-99296
05/15/2025, 7:32 AMripe-magazine-21370
05/15/2025, 3:32 PMripe-magazine-21370
05/15/2025, 3:37 PM/tmp is formatted as xfs, Maybe I can try sticking .cache/pants there, if I can find the configuration optionripe-magazine-21370
05/15/2025, 3:49 PMgorgeous-winter-99296
05/15/2025, 3:57 PMripe-magazine-21370
05/15/2025, 4:00 PMripe-magazine-21370
05/15/2025, 4:01 PM/tmp/pants-$USER/lmdb_store or something