simonw / datasette-psutil

Datasette plugin adding a /-/psutil debugging endpoint
https://datasette.io/plugins/datasette-psutil
Apache License 2.0
3 stars 0 forks source link

Bug: on Cloud Run process.open_files() fails #2

Open simonw opened 4 years ago

simonw commented 4 years ago

https://datasette-psutil-demo-j7hipcg4aq-uw.a.run.app/-/psutil works now - interestingly it was the first process.open_files() line that had the IndexError:

process.open_files()
  IndexError('list index out of range')

Originally posted by @simonw in https://github.com/simonw/datasette-psutil/issues/1#issuecomment-643691271

simonw commented 4 years ago

I'm stumped on why this is happening.

simonw commented 4 years ago

I'm just running the following:

    process = psutil.Process()
    process.open_files()
simonw commented 4 years ago

Presumably this can be replicated in a local Docker container.