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

make dev broken (gunicorn ssl error) #2273

Closed
seanh opened this Issue Jun 3, 2015 · 3 comments

Comments

Projects
None yet
2 participants
@seanh
Contributor

seanh commented Jun 3, 2015

On master for me today:

seanh@mistakenot ~/P/h/h make dev
2015-06-03 12:18:51,646 [8573] [gunicorn.error:INFO] Starting gunicorn 19.3.0
2015-06-03 12:18:51,646 [8573] [gunicorn.error:INFO] Listening at: http://127.0.0.1:5000 (8573)
2015-06-03 12:18:51,647 [8573] [gunicorn.error:INFO] Using worker: h.server.Worker
2015-06-03 12:18:51,648 [8580] [gunicorn.error:INFO] Booting worker with pid: 8580
2015-06-03 12:18:51,655 [8580] [gunicorn.error:ERROR] Exception in worker process:
Traceback (most recent call last):
  File "/home/seanh/.virtualenvs/h/local/lib/python2.7/site-packages/gunicorn/arbiter.py", line 507, in spawn_worker
    worker.init_process()
  File "/home/seanh/.virtualenvs/h/local/lib/python2.7/site-packages/gunicorn/workers/ggevent.py", line 185, in init_process
    self.patch()
  File "/home/seanh/.virtualenvs/h/local/lib/python2.7/site-packages/gunicorn/workers/ggevent.py", line 65, in patch
    monkey.patch_all(subprocess=True)
  File "/home/seanh/.virtualenvs/h/local/lib/python2.7/site-packages/gevent/monkey.py", line 200, in patch_all
    patch_ssl()
  File "/home/seanh/.virtualenvs/h/local/lib/python2.7/site-packages/gevent/monkey.py", line 146, in patch_ssl
    patch_module('ssl')
  File "/home/seanh/.virtualenvs/h/local/lib/python2.7/site-packages/gevent/monkey.py", line 62, in patch_module
    gevent_module = getattr(__import__('gevent.' + name), name)
  File "/home/seanh/.virtualenvs/h/local/lib/python2.7/site-packages/gevent/ssl.py", line 5, in <module>
    from gevent import _sslgte279 as _source
  File "/home/seanh/.virtualenvs/h/local/lib/python2.7/site-packages/gevent/_sslgte279.py", line 46, in <module>
    orig_SSLContext = __ssl__.SSLContext
AttributeError: 'module' object has no attribute 'SSLContext'
Traceback (most recent call last):
  File "/home/seanh/.virtualenvs/h/local/lib/python2.7/site-packages/gunicorn/arbiter.py", line 507, in spawn_worker
    worker.init_process()
  File "/home/seanh/.virtualenvs/h/local/lib/python2.7/site-packages/gunicorn/workers/ggevent.py", line 185, in init_process
    self.patch()
  File "/home/seanh/.virtualenvs/h/local/lib/python2.7/site-packages/gunicorn/workers/ggevent.py", line 65, in patch
    monkey.patch_all(subprocess=True)
  File "/home/seanh/.virtualenvs/h/local/lib/python2.7/site-packages/gevent/monkey.py", line 200, in patch_all
    patch_ssl()
  File "/home/seanh/.virtualenvs/h/local/lib/python2.7/site-packages/gevent/monkey.py", line 146, in patch_ssl
    patch_module('ssl')
  File "/home/seanh/.virtualenvs/h/local/lib/python2.7/site-packages/gevent/monkey.py", line 62, in patch_module
    gevent_module = getattr(__import__('gevent.' + name), name)
  File "/home/seanh/.virtualenvs/h/local/lib/python2.7/site-packages/gevent/ssl.py", line 5, in <module>
    from gevent import _sslgte279 as _source
  File "/home/seanh/.virtualenvs/h/local/lib/python2.7/site-packages/gevent/_sslgte279.py", line 46, in <module>
    orig_SSLContext = __ssl__.SSLContext
AttributeError: 'module' object has no attribute 'SSLContext'
2015-06-03 12:18:51,656 [8580] [gunicorn.error:INFO] Worker exiting (pid: 8580)
Traceback (most recent call last):
  File "/home/seanh/.virtualenvs/h/bin/gunicorn", line 11, in <module>
    sys.exit(run())
  File "/home/seanh/.virtualenvs/h/local/lib/python2.7/site-packages/gunicorn/app/wsgiapp.py", line 74, in run
    WSGIApplication("%(prog)s [OPTIONS] [APP_MODULE]").run()
  File "/home/seanh/.virtualenvs/h/local/lib/python2.7/site-packages/gunicorn/app/base.py", line 189, in run
    super(Application, self).run()
  File "/home/seanh/.virtualenvs/h/local/lib/python2.7/site-packages/gunicorn/app/base.py", line 72, in run
    Arbiter(self).run()
  File "/home/seanh/.virtualenvs/h/local/lib/python2.7/site-packages/gunicorn/arbiter.py", line 174, in run
    self.manage_workers()
  File "/home/seanh/.virtualenvs/h/local/lib/python2.7/site-packages/gunicorn/arbiter.py", line 477, in manage_workers
    self.spawn_workers()
  File "/home/seanh/.virtualenvs/h/local/lib/python2.7/site-packages/gunicorn/arbiter.py", line 541, in spawn_workers
    time.sleep(0.1 * random.random())
  File "/home/seanh/.virtualenvs/h/local/lib/python2.7/site-packages/gunicorn/arbiter.py", line 214, in handle_chld
    self.reap_workers()
  File "/home/seanh/.virtualenvs/h/local/lib/python2.7/site-packages/gunicorn/arbiter.py", line 459, in reap_workers
    raise HaltServer(reason, self.WORKER_BOOT_ERROR)
gunicorn.errors.HaltServer: <HaltServer 'Worker failed to boot.' 3>
make: *** [dev] Error 1

Seems to be this commit c3c9918

@seanh

This comment has been minimized.

Show comment
Hide comment
@seanh

seanh Jun 3, 2015

Contributor

(Getting a coffee then looking into this...)

Contributor

seanh commented Jun 3, 2015

(Getting a coffee then looking into this...)

@seanh

This comment has been minimized.

Show comment
Hide comment
@seanh

seanh Jun 3, 2015

Contributor

For now I've disabled this by wrapping the recent gunicorn.conf.py changes in if sys.version_info.micro >= 9 (I have Python 2.7.6).

Contributor

seanh commented Jun 3, 2015

For now I've disabled this by wrapping the recent gunicorn.conf.py changes in if sys.version_info.micro >= 9 (I have Python 2.7.6).

seanh added a commit that referenced this issue Jun 3, 2015

seanh added a commit that referenced this issue Jun 3, 2015

@nickstenning nickstenning closed this in #2277 Jun 3, 2015

@nickstenning

This comment has been minimized.

Show comment
Hide comment
@nickstenning

nickstenning Jun 3, 2015

Contributor

Fixed by #2277.

Contributor

nickstenning commented Jun 3, 2015

Fixed by #2277.

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