Open grinapo opened 2 weeks ago
Thanks for the report. I haven't found any of those in my logs yet.
That said, I'm not too happy on how the application hard codes gunicorn internals. On the other hand, I hesitate to expose all of that as configuration, since it shouldn't be necessary to tweak this stuff in order to reliably run this service.
Maybe there is a way to refactor the code such that pve exporter can be run as a wsgi app. That would make it easier to swap out the wsgi server when needed (or adapt its configuration).
It is running under apparmor and cgroup and various other evil magic, so it is very well possible that the error will not manifest for you. Googling that revealed that it is known but usually rare, and related to gunicorn behaving.
Ok, good to know.
After upgrading from a pretty old version the exporter started to die repeatedly with
Seems it's related to gunicorn and its worker configuration, but I am not familiar with its internals. Nor am I aware how it could be configured from outside, so I started to patch
cli.py
until it worked (based on various discussions like https://github.com/benoitc/gunicorn/issues/1877):(Obviously this requires
gevent
as a dependency.) This works for me but I am not sure this is a proper solution of the problem.It's been started under
runit
here (aka. daemontools next gen), but otherwise it's apipx
install with no additional modifications.