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

Comments

Projects
None yet
2 participants
@playpauseandstop

playpauseandstop commented Feb 4, 2015

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

@benoitc benoitc added this to the R19.2 19.2.1 milestone Feb 4, 2015

@benoitc benoitc closed this in dacb275 Feb 4, 2015

@playpauseandstop

This comment has been minimized.

Show comment
Hide comment
@playpauseandstop

playpauseandstop Feb 4, 2015

Thanks! This totally fixed my issue!

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

playpauseandstop commented Feb 4, 2015

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

fix debug mode in gaiohttp worker
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

This comment has been minimized.

Show comment
Hide comment
@benoitc

benoitc Feb 4, 2015

Owner

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

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