polite-nail-30687
02/05/2025, 4:42 PMdocker_environment
I get a an error after pants installs its standalone python in the container. When i check in the bin dir the executables lack x
permissions. If i manually chmod +x
then the build proceeds as normal. The container is running as root
also.
16:37:06.23 [INFO] Initializing scheduler...
16:37:06.28 [INFO] Initializing Nailgun pool for 20 processes...
16:37:09.09 [INFO] Scheduler initialized.
16:37:32.58 [ERROR] 1 Exception encountered:
Engine traceback:
in `package` goal
ProcessExecutionFailure: Process 'Find interpreter for constraints: CPython<3.13,>=3.12.7' failed with exit code 126.
stdout:
OCI runtime exec failed: exec failed: unable to start container process: exec: "/pants-named-caches/python_build_standalone/5e8ca33b9f968d45c562dc4dbf5ea34945daef5bcc25e8a82eb02c25be4292c0/bin/python3": permission denied: unknown
stderr:
Use `--keep-sandboxes=on_failure` to preserve the process chroot for inspection.
fast-nail-55400
02/05/2025, 4:47 PMfast-nail-55400
02/05/2025, 4:47 PMpolite-nail-30687
02/05/2025, 5:15 PM{
"Type": "volume",
"Name": "pants-named-caches-4f4694b233a1",
"Source": "/var/lib/docker/volumes/pants-named-caches-4f4694b233a1/_data",
"Destination": "/pants-named-caches",
"Driver": "local",
"Mode": "z",
"RW": true,
"Propagation": ""
},
Looks like it's a volume mount if i'm not mistakenfast-nail-55400
02/05/2025, 5:27 PMfast-nail-55400
02/05/2025, 5:30 PMfast-nail-55400
02/05/2025, 5:31 PMpython_build_standalone/5e8ca33b9f968d45c562dc4dbf5ea34945daef5bcc25e8a82eb02c25be4292c0/bin/python3
) successfully.polite-nail-30687
02/05/2025, 5:34 PMubuntu:24.04
still get the same issue, for more context Im on mac running docker-desktop 4.37.2 with docker VMMpolite-nail-30687
02/05/2025, 5:34 PMdocker_environment(
name="build",
image="ubuntu:24.04",
)
fast-nail-55400
02/05/2025, 5:44 PMdocker run -ti --mount=type=volume,src=pants-named-caches-4f4694b233a1,dst=/named-caches ubuntu:24.04
. Then try executing /named-caches/python_build_standalone/5e8ca33b9f968d45c562dc4dbf5ea34945daef5bcc25e8a82eb02c25be4292c0/bin/python3
within that container.fast-nail-55400
02/05/2025, 5:46 PMpolite-nail-30687
02/05/2025, 5:47 PM/bin/sh: 4: /pants-named-caches/python_build_standalone/5e8ca33b9f968d45c562dc4dbf5ea34945daef5bcc25e8a82eb02c25be4292c0/bin/python3: Permission denied
polite-nail-30687
02/05/2025, 5:48 PMfast-nail-55400
02/05/2025, 5:54 PMpolite-nail-30687
02/05/2025, 6:10 PMfast-nail-55400
02/05/2025, 6:36 PMfast-nail-55400
02/05/2025, 6:36 PM