Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remote buildfarm build fails: Cannot run program "/bin/python3" #21578

Open
grihabor opened this issue Oct 27, 2024 · 1 comment
Open

Remote buildfarm build fails: Cannot run program "/bin/python3" #21578

grihabor opened this issue Oct 27, 2024 · 1 comment

Comments

@grihabor
Copy link
Contributor

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
@grihabor grihabor added the bug label Oct 27, 2024
@huonw huonw added the remote label Oct 28, 2024
@huonw
Copy link
Contributor

huonw commented Oct 28, 2024

There's a chance this may be related to #20731

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants