billowy-tiger-59247
07/21/2023, 10:12 AMpex_binary
which uses a docker_environment
(python:3.8-slim image) 👇
Engine traceback:
in `package` goal
ProcessExecutionFailure: Process 'Extract environment variables from the Docker image python:3.8-slim' failed with exit code 126.
stdout:
OCI runtime exec failed: exec failed: unable to start container process: chdir to cwd ("/pants-sandbox/pants-sandbox-L2koQA") set in config.json failed: no such file or directory: unknown
stderr:
I *exec*ed into the container that was created and confirmed that indeed the referred folder /pants-sandbox/pants-sandbox-L2koQA
did not exist. The image attached shows the folders within the container that were mounted by pants during creation.
Have any of you experienced something similar? I’m accepting suggestions on how to debug it further 🙏billowy-tiger-59247
07/21/2023, 10:18 AMpants-sandbox/pants-sandbox-{suffix}
folder is not there, which is probably causing the issue
"Mounts": [
{
"Type": "bind",
"Source": "/private/var/folders/vj/chbx1tms2c93nmnnp2gw4wh80000gq/T",
"Destination": "/pants-sandbox",
"Mode": "",
"RW": true,
"Propagation": "rprivate"
},
{
"Type": "volume",
"Name": "pants-named-caches-cc370ef311d3",
"Source": "/var/lib/docker/volumes/pants-named-caches-cc370ef311d3/_data",
"Destination": "/pants-named-caches",
"Driver": "local",
"Mode": "z",
"RW": true,
"Propagation": ""
},
{
"Type": "bind",
"Source": "/private/var/folders/vj/chbx1tms2c93nmnnp2gw4wh80000gq/T/immutable_inputsxFxvB8",
"Destination": "/pants-immutable-inputs",
"Mode": "",
"RW": true,
"Propagation": "rprivate"
}
]
victorious-zebra-49010
10/04/2023, 7:10 PMbillowy-tiger-59247
10/06/2023, 3:11 PMbillowy-tiger-59247
02/05/2024, 9:46 AM~
and /tmp/colima
inside the VM where the container runtime is executed. Since pants’ temporary working directory that is shared with the container lives on /private/var/folders
, I had to set that additional mount on colima’s config explicitly. After that, things started working as expected. 😃victorious-zebra-49010
02/05/2024, 5:41 PM