Skip to content
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

Gunicorn 19.2.0 struggles with gaiohttp worker #977

Closed
playpauseandstop opened this issue Feb 4, 2015 · 2 comments
Closed

Gunicorn 19.2.0 struggles with gaiohttp worker #977

playpauseandstop opened this issue Feb 4, 2015 · 2 comments

Comments

@playpauseandstop
Copy link

I use gunicorn+gaiohttp+nginx for deploying my Python 3.4.2 application, and after update Gunicorn to 19.2.0, my application not more accessible from browser or command line

Script to run server is trivial:

(env)$ gunicorn -b 0.0.0.0:8208 -w 10 -t 60 -k gaiohttp package.module:app

It started well due to command line output:

playpauseandstop@shep:~/Projects/moneytracker$ env/bin/gunicorn -b 0.0.0.0:8208 -w 10 -t 60 -k gaiohttp moneytracker.manage:app
[2015-02-04 14:38:11 +0700] [18909] [INFO] Starting gunicorn 19.2.0
[2015-02-04 14:38:11 +0700] [18909] [INFO] Listening at: http://0.0.0.0:8208 (18909)
[2015-02-04 14:38:11 +0700] [18909] [INFO] Using worker: gaiohttp
[2015-02-04 14:38:11 +0700] [19034] [INFO] Booting worker with pid: 19034
[2015-02-04 14:38:11 +0700] [19035] [INFO] Booting worker with pid: 19035
[2015-02-04 14:38:11 +0700] [19036] [INFO] Booting worker with pid: 19036
[2015-02-04 14:38:12 +0700] [19037] [INFO] Booting worker with pid: 19037
[2015-02-04 14:38:12 +0700] [19038] [INFO] Booting worker with pid: 19038
[2015-02-04 14:38:12 +0700] [19039] [INFO] Booting worker with pid: 19039
[2015-02-04 14:38:12 +0700] [19043] [INFO] Booting worker with pid: 19043
[2015-02-04 14:38:12 +0700] [19046] [INFO] Booting worker with pid: 19046
[2015-02-04 14:38:12 +0700] [19066] [INFO] Booting worker with pid: 19066
[2015-02-04 14:38:12 +0700] [19072] [INFO] Booting worker with pid: 19072

But I cannot access 127.0.0.1:8208 via browser (as it freezes) or via requests (it freezes here too)

Freeze appears on both of aiohttp==0.13.1 and aiohttp==0.14.4 while using gunicorn==19.2.0, and doesn't appear at all for gunicorn==19.1.1

@playpauseandstop
Copy link
Author

Thanks! This totally fixed my issue!

Install fresh gunicorn master and it works with aiohttp==0.14.4

benoitc added a commit that referenced this issue Feb 4, 2015
The debug setting has been removed and now only the debug level can be used to know if
we are in debug mode or not. This change update the gaiohttp worker to handle
that. While I'm here, expose the loglevel from the Logger class.

fix #977
@benoitc
Copy link
Owner

benoitc commented Feb 4, 2015

19.2.1 has been released with this fix. Thanks for the feedback :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants