docker 中的 Greenlet 运行时错误和部署的应用程序不断引导所有工作人员

Greenlet runtime error and deployed app in docker keeps booting all the workers

RuntimeWarning: greenlet.greenlet size changed, may indicate binary incompatibility. Expected 144 from C header, got 152 from PyObject

并且所有的工人都在被引导。

2020-09-28T14:09:41.864089908Z [2020-09-28 14:09:41 +0000] [31] [INFO] Booting worker with pid: 31 2020-09-28T14:09:43.933141974Z [2020-09-28 14:09:43 +0000] [32] [INFO] Booting worker with pid: 32 2020-09-28T14:09:44.317436676Z [2020-09-28 14:09:44 +0000] [33] [INFO] Booting worker with pid: 33 2020-09-28T14:09:44.795236476Z [2020-09-28 14:09:44 +0000] [34] [INFO] Booting worker with pid: 34

大约一周前它工作正常,现在我开始遇到问题了。

作为https://discuss.redash.io/t/binary-compatibility-issue-with-greenlet/7237 表明 解决方法是 greenlet==0.4.16 或将您的 gevent 升级到 20.9.0

greenlet github 页面上建议了以下修复方法

https://github.com/python-greenlet/greenlet/issues/178#issuecomment-697342964

另请参阅以下问题