-
Notifications
You must be signed in to change notification settings - Fork 815
process_collector.py assumes /proc/self/fd is readable for process_open_fds #95
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
So annoying, also an issue with Ubuntu 12.04 built in uwsgi init.d service. I assume this is a problem whenever uwsgi does its own priviledge deescalation When used in https://github.com/korfuri/django-prometheus the stacktrace looks like this:
|
< 9F42 details-menu class="dropdown-menu dropdown-menu-sw show-more-popover color-fg-default" style="width:185px" src="" preload >
Thanks @RalphCorderoy for the patch, it fixed the problem for me (I assume at the expense of file handle information) - I committed it here if anyone wants to try it: https://github.com/prometheus/client_python/compare/master...hedgepigdaniel:ignore-fd-permissions?expand=1 |
Apache with prefork MPM, not threaded, runs process_collector.py as the chosen non-root user, but /proc/self/fd/ is still owned by root:root so its 0500 permissions cause an OSError exception, e.errno == EACCES, on the os.listdir() attempt. A patch to give up on that metric when that occurs: process_open_fds.txt
The text was updated successfully, but these errors were encountered: