-
Notifications
You must be signed in to change notification settings - Fork 1.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
OSError gunicorn.util in write Bad file descriptor guincorn v 21.0.1 #3025
Comments
@revanthmahesh how to reproduce it? |
We got the same issue today in Production and have reduced the version back to 20.1.0 to fix things. |
@SaravEasy I doin't reproduce it. Can you provide more info on how to reproduce it or in which context? |
@benoitc, let me try to reproduce this issue in a local environment and share more information shortly. |
Environment DetailsPython Version : 3.6 Our API server started throwing the following exceptions intermittently and we noticed this issue and we reduced the version and it worked. We did not take the open socket or file descriptors at that time or could not find the pattern. Hope this helps you get started in the right direction. @benoitc Stack Trace - Error[2023-07-18 13:59:48 +0000] [18681] [ERROR] Exception in worker process |
Similar thing in my project. Downgraded and it works fine. ERROR 2023-07-18T20:37:26.355415Z Traceback (most recent call last): File "/usr/local/lib/python3.11/site-packages/gunicorn/workers/gthread.py", line 285, in handle keepalive = self.handle_request(req, conn) |
Please test #3033 and let me know how it behaves after it. |
Tested using the script below in docker with os FROM ubuntu:20.04 RUN pip install git+https://github.com/benoitc/gunicorn.git@fix-gthread Issue is fixed now @benoitc |
I also tested the fix-gthread branch with the Python 3.11 Debian Docker image, and I did not encounter any errors @benoitc |
Thank you @benoitc -- this also affected us. |
change applied in master. Thaks for the feedback! |
This happening with latest gunicorn release, using previous versions is working fine
The text was updated successfully, but these errors were encountered: