canonical / prometheus-openstack-exporter

OpenStack exporter for the prometheus monitoring system
GNU General Public License v3.0
128 stars 113 forks source link

'greenlet.error: cannot switch to a different thread' stacktrace #126

Closed canonical-is closed 1 year ago

canonical-is commented 1 year ago

current stable 0.1.7 [1] stopped, with stacktrace "greenlet.error: cannot switch to a different thread" https://pastebin.ubuntu.com/p/ngxDcF8qzZ/

https://github.com/miguelgrinberg/Flask-SocketIO/issues/65 seems to indicate that it's a side effect of the removal of the gevent monkey-patching (with a potential fix)

[1] $ snap list |grep prometheus-openstack-exporter prometheus-openstack-exporter 0.1.7 34 latest/stable peppepetra86 - $

mert-kirpici commented 1 year ago

Hi, The link has a simple fix to this solution which I am inclined to propose, however for verification purposes, do you happen to have a reliable way to reproduce this issue? Or is it a sporadic issue?

canonical-is commented 1 year ago

Hi, this was sporadic (happened after running fine for months) and without a visible symptom (nothing in log or in dmesg)

Thanks Romain

mert-kirpici commented 1 year ago

Hi, I am closing issue since it is sporadic and there is no way of verifying it. Please reopen it if you encounter again.