Anyway into getting more visibility into the sourc...
# development
w
Anyway into getting more visibility into the source of the error in the thread (custom goal_rule, v1.30)?
Copy code
17:32:34 [ERROR] 1 Exception encountered:

Engine traceback:
  in `deploy` goal
Traceback (most recent call last):
  File "/Users/jerkelens/.cache/pants/setup/bootstrap-Darwin-x86_64/1.30.0_py37/lib/python3.7/site-packages/pants/engine/process.py", line 216, in fallible_to_exec_result_or_raise
    description.value,
pants.engine.process.ProcessExecutionFailure: Process 'Deploy CF stack' failed with exit code 1.
stdout:
Error: TypeError: expected str, bytes or os.PathLike object, not NoneType


stderr:


Traceback (most recent call last):
  File "/Users/jerkelens/.cache/pants/setup/bootstrap-Darwin-x86_64/1.30.0_py37/lib/python3.7/site-packages/pants/bin/local_pants_runner.py", line 356, in run
    engine_result = self._maybe_run_v2(v2)
  File "/Users/jerkelens/.cache/pants/setup/bootstrap-Darwin-x86_64/1.30.0_py37/lib/python3.7/site-packages/pants/bin/local_pants_runner.py", line 236, in _maybe_run_v2
    return self._maybe_run_v2_body(goals, poll=False)
  File "/Users/jerkelens/.cache/pants/setup/bootstrap-Darwin-x86_64/1.30.0_py37/lib/python3.7/site-packages/pants/bin/local_pants_runner.py", line 260, in _maybe_run_v2_body
    poll_delay=(0.1 if poll else None),
  File "/Users/jerkelens/.cache/pants/setup/bootstrap-Darwin-x86_64/1.30.0_py37/lib/python3.7/site-packages/pants/init/engine_initializer.py", line 256, in run_goal_rules
    goal_product, params, poll=poll, poll_delay=poll_delay
  File "/Users/jerkelens/.cache/pants/setup/bootstrap-Darwin-x86_64/1.30.0_py37/lib/python3.7/site-packages/pants/engine/internals/scheduler.py", line 510, in run_goal_rule
    self._raise_on_error([t for _, t in throws])
  File "/Users/jerkelens/.cache/pants/setup/bootstrap-Darwin-x86_64/1.30.0_py37/lib/python3.7/site-packages/pants/engine/internals/scheduler.py", line 474, in _raise_on_error
    wrapped_exceptions=tuple(t.exc for t in throws),
pants.engine.internals.scheduler.ExecutionError: 1 Exception encountered:

Engine traceback:
  in `deploy` goal
Traceback (most recent call last):
  File "/Users/jerkelens/.cache/pants/setup/bootstrap-Darwin-x86_64/1.30.0_py37/lib/python3.7/site-packages/pants/engine/process.py", line 216, in fallible_to_exec_result_or_raise
    description.value,
pants.engine.process.ProcessExecutionFailure: Process 'Deploy CF stack' failed with exit code 1.
stdout:
Error: TypeError: expected str, bytes or os.PathLike object, not NoneType


stderr:
w
@wonderful-iron-54019: that is the stdout and stderr from the process that you were running: if you turn up the output or logging from the process that you are running it should give you more info
w
gotcha
yeah i just realized that a plit second before you answered 🙈
w
Copy code
pants.engine.process.ProcessExecutionFailure: Process 'Deploy CF stack' failed with exit code 1.
stdout:
Error: TypeError: expected str, bytes or os.PathLike object, not NoneType
stderr:
w
usually that process is a little more verbose
w
but if it would help to be able to dive in and poke it more directly, you can use ``--[no-]process-execution-cleanup-local-dirs``
👍 1
--[no-]process-execution-cleanup-local-dirs
PANTS_PROCESS_EXECUTION_CLEANUP_LOCAL_DIRS
process_execution_cleanup_local_dirs
default:
True
Whether or not to cleanup directories used for local process execution (primarily useful for e.g. debugging).
w
excellent thanks
h
Added: https://www.pantsbuild.org/v2.0/docs/rules-api-tips#debugging-look-inside-the-chroot Along with an entry that explains how Pants caching works, specifically writing to
lmdb_store
vs. memoization