pysys-test icon indicating copy to clipboard operation
pysys-test copied to clipboard

Process monitor gives weird error if ps not installed (linux)

Open ben-c8y opened this issue 1 year ago • 0 comments

Describe the bug On some machines (especially a docker container), "ps" is not installed. This often shows up as this somewhat misleading exception:

if len(info) <= 1: raise Exception('No matching processes found from ps; perhaps process has terminated')

Expected behavior A better error message saying that "ps" could not be executed OR read the process list from /proc without relying on "ps" beinhg present

Affected version(s)

  • PySys version(s): 2.2
  • Operating System(s): e,g. RHEL8

ben-c8y avatar Apr 07 '25 09:04 ben-c8y