Project

General

Profile

Bug #3995

Current setup doesn't allow multi-threaded gunicorn configuration

Added by Marcin Kuzminski [staff] over 3 years ago. Updated over 3 years ago.

Status:
Closed
Priority:
Normal
Category:
-
Target version:
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

History

#1 Updated by Johannes Bornhold over 3 years ago

  • Status changed from New to In Progress

#2 Updated by Johannes Bornhold over 3 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.

]

#3 Updated by Johannes Bornhold over 3 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.

#4 Updated by Marcin Kuzminski [staff] over 3 years ago

yes ! sorry for not posting it to the ticket. That's the main problem, we should bundle futures with gunicorn

#6 Updated by Johannes Bornhold over 3 years ago

  • Status changed from In Progress to Resolved

#7 Updated by Marcin Kuzminski [staff] over 3 years ago

  • Status changed from Resolved to Closed

confirmed, and tested.

Also available in: Atom PDF