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

Not "yielded from" coroutine when using latest aiohttp with gunicorn and uvloop #1739

Closed
jnosal opened this issue Mar 21, 2017 · 2 comments
Closed
Labels

Comments

@jnosal
Copy link

jnosal commented Mar 21, 2017

Environment

Python 3.6
Alpine Linux
aiohttp==2.0.1
gunicorn=19.7.1

Problem

After upgrading aiohttp to version 2.0.1 and running my application using aiohttp.worker.GunicornUVLoopWebWorker with PYTHONASYNCIODEBUG=1 I see following errors (or be it warning since they don't appear when asyncio debug is switched off):

<CoroWrapper Signal.send() running at /usr/local/lib/python3.6/site-packages/aiohttp/signals.py:38, created at /usr/local/lib/python3.6/site-packages/aiohttp/web.py:116> was never yielded from Coroutine object created at (most recent call last): File "/usr/local/bin/gunicorn", line 11, in <module> sys.exit(run()) File "/usr/local/lib/python3.6/site-packages/gunicorn/app/wsgiapp.py", line 74, in run WSGIApplication("%(prog)s [OPTIONS] [APP_MODULE]").run() File "/usr/local/lib/python3.6/site-packages/gunicorn/app/base.py", line 203, in run super(Application, self).run() File "/usr/local/lib/python3.6/site-packages/gunicorn/app/base.py", line 72, in run Arbiter(self).run() File "/usr/local/lib/python3.6/site-packages/gunicorn/arbiter.py", line 202, in run self.manage_workers() File "/usr/local/lib/python3.6/site-packages/gunicorn/arbiter.py", line 544, in manage_workers self.spawn_workers() File "/usr/local/lib/python3.6/site-packages/gunicorn/arbiter.py", line 611, in spawn_workers self.spawn_worker() File "/usr/local/lib/python3.6/site-packages/gunicorn/arbiter.py", line 578, in spawn_worker worker.init_process() File "/usr/local/lib/python3.6/site-packages/aiohttp/worker.py", line 238, in init_process super().init_process() File "/usr/local/lib/python3.6/site-packages/aiohttp/worker.py", line 38, in init_process super().init_process() File "/usr/local/lib/python3.6/site-packages/gunicorn/workers/base.py", line 131, in init_process self.run() File "/usr/local/lib/python3.6/site-packages/aiohttp/worker.py", line 46, in run self.loop.run_until_complete(self._runner) File "/usr/local/lib/python3.6/asyncio/coroutines.py", line 125, in send return self.gen.send(value) File "/usr/local/lib/python3.6/site-packages/aiohttp/worker.py", line 102, in _run handler = self.make_handler(self.wsgi) File "/usr/local/lib/python3.6/site-packages/aiohttp/worker.py", line 62, in make_handler self.cfg.access_log_format)) File "/usr/local/lib/python3.6/site-packages/aiohttp/web.py", line 224, in make_handler self._set_loop(loop) File "/usr/local/lib/python3.6/site-packages/aiohttp/web.py", line 116, in _set_loop self._on_loop_available.send()

for previous version of aiohttp (< 2.0) everything worked fine

@fafhrd91
Copy link
Member

fixed in master and 2.0 branch, will make new release later today

@lock
Copy link

lock bot commented Oct 28, 2019

This thread has been automatically locked since there has not been
any recent activity after it was closed. Please open a new issue for
related bugs.

If you feel like there's important points made in this discussion,
please include those exceprts into that new issue.

@lock lock bot added the outdated label Oct 28, 2019
@lock lock bot locked as resolved and limited conversation to collaborators Oct 28, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

2 participants