Bug #3995
closed
Current setup doesn't allow multi-threaded gunicorn configuration
Added by Marcin Kuzminski [CTO] over 8 years ago.
Updated over 8 years ago.
Description
Set threads = 2 via gunicorn and watch things explode. We should fix that to make sure upgrades are smooth for people that use this option. Else it make rhodecode not start when upgrading from 3.X to 4.X
- Status changed from New to In Progress
Seeing this error:
nix-shell:~/w/rhodecode-enterprise-ce]$ gunicorn --paste dev-3995.ini
Error: class uri 'gunicorn.workers.gthread.ThreadWorker' invalid or not found:
[Traceback (most recent call last):
File "/nix/store/m1hm23ii13bbadjjjkdwh00jrzf5laj7-python2.7-gunicorn-19.6.0/lib/python2.7/site-packages/gunicorn/util.py", line 142, in load_class
mod = import_module('.'.join(components))
File "/nix/store/d3bfgbmvfghl0ii24rz7qawavzssi0cj-python-2.7.11/lib/python2.7/importlib/__init__.py", line 37, in import_module
__import__(name)
File "/nix/store/m1hm23ii13bbadjjjkdwh00jrzf5laj7-python2.7-gunicorn-19.6.0/lib/python2.7/site-packages/gunicorn/workers/gthread.py", line 37, in <module>
""")
RuntimeError:
You need to install the 'futures' package to use this worker with this
Python version.
]
It seems that we have to bundle the needed runtime dependencies and we should be fine if this is the same error which you observed.
yes ! sorry for not posting it to the ticket. That's the main problem, we should bundle futures with gunicorn
- Status changed from In Progress to Resolved
- Status changed from Resolved to Closed
Also available in: Atom
PDF