Hi, I suddenly experience errors with `pants packa...
# general
e
Hi, I suddenly experience errors with
pants package ::
:
Copy code
Engine traceback:
  in select
  in pants.core.goals.package.package_asset
  in pants.backend.python.goals.package_pex_binary.package_pex_binary (apps/semantic-tagging-manager-service)
  in pants.backend.python.util_rules.pex.two_step_create_pex
  in pants.backend.python.util_rules.pex.create_pex (__requirements.pex)
  in pants.engine.process.fallible_to_exec_result_or_raise
Traceback (most recent call last):
  File "/home/cue/.cache/pants/setup/bootstrap-Linux-x86_64/2.2.0_py38/lib/python3.8/site-packages/pants/engine/process.py", line 255, in fallible_to_exec_result_or_raise
    raise ProcessExecutionFailure(
pants.engine.process.ProcessExecutionFailure: Process 'Resolving 4 requirements: fastapi==0.63.0, hypercorn==0.11.2, pydantic==1.7.3; python_version >= "3.6", requests==2.25.1' failed with exit code -9.
stdout:

stderr:
I haven’t changed any setup or requirements. Any ideas why this is suddenly happening?
Restart made the problem go away… 😂
🤦 2
h
Ooof, sorry for the inconvenience. I'm not sure what could have caused that.
h
The exit code gives a hint. I think out of memory, right? https://stackoverflow.com/questions/40888164/c-program-crashes-with-exit-code-9-sigkill
h
yes this seems to hit us sporadically as well, restarts seem to solve it. it’s not great, but it’s a workaround
h
@helpful-lunch-92084 when it hits you, is it specifically with pip resolve runs, or processes in general?
Wondering if there's a knob we need to tune
h
i’m not sure. it seems random but there could be a common thread. here are few reported examples to me from end users
Copy code
raise ProcessExecutionFailure(
pants.engine.process.ProcessExecutionFailure: Process 'Searching for `bash` on PATH=/usr/bin:/bin:/usr/local/bin' failed with exit code -9.
stdout:
another was
Copy code
raise ProcessExecutionFailure(
pants.engine.process.ProcessExecutionFailure: Process 'Searching for `python2` on PATH=/usr/local/opt/bzip2/bin:/Users/REDACTED/.pyenv/shims:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/Library/Apple/usr/bin' failed with exit code -9.
h
Hmm, those seem unrelated to pip, so maybe some general OOM issue.
1
How much RAM on those machines?
h
i’m not sure, let me ask
One dev i asked says 32gb