dennybaa
3/3/2016 - 1:05 PM

-

AssertionError: do not call blocking functions from the mainloop
Traceback (most recent call last):
  File "/opt/stackstorm/st2/lib/python2.7/site-packages/gunicorn/arbiter.py", line 515, in spawn_worker
    worker.init_process()
  File "/opt/stackstorm/st2/lib/python2.7/site-packages/gunicorn/workers/base.py", line 126, in init_process
    self.run()
  File "/opt/stackstorm/st2/lib/python2.7/site-packages/gunicorn/workers/sync.py", line 119, in run
    self.run_for_one(timeout)
  File "/opt/stackstorm/st2/lib/python2.7/site-packages/gunicorn/workers/sync.py", line 81, in run_for_one
    self.wait(timeout)
  File "/opt/stackstorm/st2/lib/python2.7/site-packages/gunicorn/workers/sync.py", line 35, in wait
    ret = select.select(self.sockets, [], self.PIPE, timeout)
  File "/opt/stackstorm/st2/lib/python2.7/site-packages/eventlet/green/select.py", line 86, in select
    return hub.switch()
  File "/opt/stackstorm/st2/lib/python2.7/site-packages/eventlet/hubs/hub.py", line 294, in switch
    return self.greenlet.switch()
  File "/opt/stackstorm/st2/lib/python2.7/site-packages/eventlet/hubs/hub.py", line 346, in run
    self.wait(sleep_time)
  File "/opt/stackstorm/st2/lib/python2.7/site-packages/eventlet/hubs/poll.py", line 85, in wait
    presult = self.do_poll(seconds)
  File "/opt/stackstorm/st2/lib/python2.7/site-packages/eventlet/hubs/epolls.py", line 62, in do_poll
    return self.poll.poll(seconds)
  File "/opt/stackstorm/st2/lib/python2.7/site-packages/gunicorn/workers/base.py", line 170, in handle_quit
    time.sleep(0.1)
  File "/opt/stackstorm/st2/lib/python2.7/site-packages/eventlet/greenthread.py", line 31, in sleep
    assert hub.greenlet is not current, 'do not call blocking functions from the mainloop'
AssertionError: do not call blocking functions from the mainloop