python webpy bad argument to internal function,webpyargument,使用supervisor


使用supervisorctl + webpy + uwsgi时抛出如下错误:

Traceback (most recent call last):  File "/usr/local/lib/python2.7/dist-packages/web.py-0.37-py2.7.egg/web/application.py", line 271, in wsgi    self._cleanup()  File "/usr/local/lib/python2.7/dist-packages/web.py-0.37-py2.7.egg/web/application.py", line 112, in _cleanup    utils.ThreadedDict.clear_all()  File "/usr/local/lib/python2.7/dist-packages/web.py-0.37-py2.7.egg/web/utils.py", line 1213, in clear_all    for t in list(ThreadedDict._instances):SystemError: ../Objects/tupleobject.c:142: bad argument to internal function

这个问题只是偶尔发生,发生后重启supervisorctl中的进程可以解决问题,但是没有找到根源问题。

评论关闭