Running into an issue with pants in CI. Anyone see...
# general
l
Running into an issue with pants in CI. Anyone seen this?
Copy code
Engine traceback:
  in Update all BUILD files
  in Finding the `bash` binary
  in Scheduling: Searching for `bash` on PATH=/usr/bin:/bin:/usr/local/bin

Exception: Failed to execute: Process {
    argv: [
        "./find_binary.sh",
        "bash",
    ],
    env: {
        "PATH": "/usr/bin:/bin:/usr/local/bin",
    },
...
    description: "Searching for `bash` on PATH=/usr/bin:/bin:/usr/local/bin",
    ...
}

Error launching process: Os { code: 13, kind: PermissionDenied, message: "Permission denied" }
h
Does bash exist on one of those paths? Does the user this is running under have execute permissions on it?
l
Confirmed it's at normal locations. Nothing should be stopping it from executing bash, but I can confirm with a prior step that it's available.
Confirmed bash is working in a previous step
is
find_binary.sh
a part of pants? Having a hard time tracking it down
w
yes, built in.
is there anything unusual about the environment that you’re running in?
b
just to follow up on this as we ran into the same problem. Most CI systems have the /tmp filesystem mounted
noexec
. The current scripts appear to write their contents to this location, then try to execute it. In order to get around this we needed to set the
local_execution_root_dir
to a place on the filesystem where it was mounted
exec
.
h
Good tip! Would you be able to submit a PR adding this as a tip in https://www.pantsbuild.org/docs/using-pants-in-ci ?
👍 1