-
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
Odd crash in gthread after page served #3029
Comments
i will try. That maybe related to the python version |
I tried on both Downgrading to gunicorn 20 resolved the issue for me. |
I noticed this occurring intermittently for one of my servers today as well, and the timing seems consistent with the first build of a container image that uses gunicorn 21. It doesn't occur on every request, but when it occurs my downstream proxy (nginx) drops the backend for a bit, saying I'm using Python 3.11 and running a Django app, but the logs show the same traceback as Dale shared. |
under Python 3.8 and sup exception is ValueError when fd has already been cleared by the system. fix #3029
I reproduced it thanks; This should be fixed in 86d85cb |
21.1.0 has been released with the fix #3031 |
I just started to see this after rebuilding an older app after making some small changes.
I was not sure if I was causing it, so I started up a very simple Flask app and was able to reproduce. It serves the home page fine, but a moment later I see the above and the worker restarts.
Command
gunicorn --worker-tmp-dir /dev/shm --workers=1 --threads=4 --worker-class=gthread --log-level=debug --access-logfile=gunicorn_access.log --reload --bind 0.0.0.0:4000 frontend:app
Environment
Will revert to a previous version and see if the error persists.
The text was updated successfully, but these errors were encountered: