Open originalrkk opened 2 months ago
The second error is because 2.22 has not been released yet, that is https://github.com/pantsbuild/pants/releases/tag/release_2.22.0 will also 404. (There have been several RCs and we hope it is really close, but it is not out yet!)
I am unsure about the first error. When you say "all of our environments", do you mean that it happens in a variety of environments ( every developers workstation) or in a standardized environment (that is on with your
/bulk_data` mount).
I hesitate to recommend this, but is deleting the cache (.cache/nce
) among the things you have tried?
Ah, yes, that might have been a miscommunication. Forget about 2.22...
The main thing is: Tried tearing down .cache/nce
, actually all of .cache
and .pex
and /tmp/*pants*
, the whole box, but no go. 2.19.0 installs fine, 2.20 and 2.21 fail, always with the same ModuleNotFoundError
.
Just to be sure it wasn't some quirk of config in our repo, we even cleared everything out including any Pants binary and did the following:
curl --proto '=https' --tlsv1.2 -fsSL https://static.pantsbuild.org/setup/get-pants.sh | bash
mkdir test-pants
cd test-pants
echo '[GLOBAL]' > pants.toml
echo 'pants_version = "2.21.0"' >> pants.toml
pants repl .
And still see the same error on these boxes.
Any ideas how we could get this to spit out some more useful logs about what's happening perhaps?
Can you conform what version of the scie-pants bootloader this box has?
$ PANTS_BOOTSTRAP_VERSION=report pants
Any ideas how we could get this to spit out some more useful logs about what's happening perhaps?
I am not sure they would have much more that the earlier output, but you can try what is in find ~/.cache/nce/ -iname '*log'
(ex: install.log
)
This is what we see for the bootloader:
$ PANTS_BOOTSTRAP_VERSION=report pants
0.12.0
Only an install.log
(no configure.log
or pants-install.log
on this box like we see on a healthy system), and it just reiterates what's in the dump.
Okay, a bit more context: We were able to reproduce this on a completely clean Ubuntu image on AWS with a new Pants repo: ami-0d486650b94f4c69b. Not sure whether that's pointing to some networking configuration around it (perhaps it's failing to fetch something silently?).
We found the source of the issue. The Pants installer isn't correctly handling a symlinked home directory. In particular, in /etc/passwd
, the home directory was listed as a symlink /home/<user>
instead of /bulk_data/home/<user>
.
That looks frustratingly deep to debug; glad you found it!
Describe the bug The
pants
CLI works fine in all of our environments at version 2.19. When we change the version to 2.20 or 2.21 or 2.22, we see one of two errors, although it's not clear why some environments trigger one and some another, given that they're all on the same Ubuntu (perhaps quirks of the user setup):Or
Pants version 2.19 - 2.22
OS Linux:
Additional info We've tried a bit of flailing to fix this:
./get-pants.sh
SCIE_BOOT=update pants
(yieldsNo new releases of scie-pants were found.
)We tried to install Pex directly into the virtual environment using
pip
, but gotFWIW,
https://github.com/pantsbuild/pants/releases/download/release_2.22.0/pants.2.22.0-cp39-linux_x86_64.pex
is not an accessible address as far as I can tell.