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

14k views Asked by At

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

And all the workers are being booted.

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

It was working fine a week back or so and now I'm starting to have the problem.

3

There are 3 answers

1
studioj On BEST ANSWER
2
Chandan On

The issue is resolved with gevent version 22.10.2 with greenlet version 2.0.1

1
Madhav Mansuriya On

Here's the combination that worked for me, as I was getting this error on Mac OS 13[M1(ARM)], if your env is other than this the latest version of Greenlet will work.

give it a try for Mac (ARM)

gevent==21.8.0
greenlet==1.1.3
gunicorn==20.1.0