Actions
Bug #3995
closedCurrent setup doesn't allow multi-threaded gunicorn configuration
Start date:
08.06.2016
Due date:
% Done:
0%
Estimated time:
Sorting:
Commit Number:
Affected Version:
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
Updated by Johannes Bornhold over 8 years ago
- Status changed from New to In Progress
Updated by Johannes Bornhold over 8 years ago
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.
]
Updated by Johannes Bornhold over 8 years ago
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.
Updated by Marcin Kuzminski [CTO] over 8 years ago
yes ! sorry for not posting it to the ticket. That's the main problem, we should bundle futures with gunicorn
Updated by Johannes Bornhold over 8 years ago
Updated by Johannes Bornhold over 8 years ago
- Status changed from In Progress to Resolved
Updated by Marcin Kuzminski [CTO] over 8 years ago
- Status changed from Resolved to Closed
confirmed, and tested.
Actions