You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
Building a pex_binary on the buildfarm fails with Cannot run program "/bin/python3"
worker-1 | Oct 27, 2024 5:59:40 PM build.buildfarm.worker.Executor executeCommand
worker-1 | SEVERE: error starting process for shard/executions/349cddaa-6ce0-4a09-a7c7-7c08c2f5021c
worker-1 | java.io.IOException: Cannot run program "/bin/python3" (in directory "/tmp/worker/shard/executions/349cddaa-6ce0-4a09-a7c7-7c08c2f5021c"): error=2, No such file or directory
worker-1 | at java.base/java.lang.ProcessBuilder.start(ProcessBuilder.java:1170)
worker-1 | at java.base/java.lang.ProcessBuilder.start(ProcessBuilder.java:1089)
worker-1 | at build.buildfarm.common.ProcessUtils.threadSafeStart(ProcessUtils.java:46)
worker-1 | at build.buildfarm.worker.Executor.executeCommand(Executor.java:525)
worker-1 | at build.buildfarm.worker.Executor.executePolled(Executor.java:315)
worker-1 | at build.buildfarm.worker.Executor.runInterruptible(Executor.java:171)
worker-1 | at build.buildfarm.worker.Executor.run(Executor.java:406)
worker-1 | at build.buildfarm.worker.ExecuteActionStage.lambda$iterate$0(ExecuteActionStage.java:138)
worker-1 | at java.base/java.lang.Thread.run(Thread.java:1583)
worker-1 | Caused by: java.io.IOException: error=2, No such file or directory
worker-1 | at java.base/java.lang.ProcessImpl.forkAndExec(Native Method)
worker-1 | at java.base/java.lang.ProcessImpl.<init>(ProcessImpl.java:295)
worker-1 | at java.base/java.lang.ProcessImpl.start(ProcessImpl.java:225)
worker-1 | at java.base/java.lang.ProcessBuilder.start(ProcessBuilder.java:1126)
worker-1 | ... 8 more
Pants version
2.22.0
OS
Ubuntu 24.04
Additional info
Steps to reproduce
First, build and run buildfarm:
git clone -b use-python-image https://github.com/grihabor/buildfarm
docker compose up --build -d
Second, try to build a pex on the buildfarm:
git clone https://github.com/grihabor/pants-playground
cd try-buildfarm
pants package :bin
The text was updated successfully, but these errors were encountered:
Describe the bug
Building a
pex_binary
on thebuildfarm
fails withCannot run program "/bin/python3"
Pants version
2.22.0
OS
Ubuntu 24.04
Additional info
Steps to reproduce
First, build and run buildfarm:
Second, try to build a pex on the buildfarm:
git clone https://github.com/grihabor/pants-playground cd try-buildfarm pants package :bin
The text was updated successfully, but these errors were encountered: