Comment 1 for bug 1938836

Revision history for this message
Brian Murray (brian-murray) wrote : Re: lava-server-gunicorn fails to start with python-eventlet > 0.30.2

Manually running the ExecStart line from the service revealed the following error:

ubuntu@autopkgtest:/tmp/autopkgtest.HFgA6D/build.41y/src$ sudo /usr/bin/gunicorn3 lava_server.wsgi --log-level DEBUG --log-file /var/log/lava-server/gunicorn.log -u lavaserver -g lavaserver --worker-class eventlet --workers 4

Error: class uri 'eventlet' invalid or not found:

[Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/gunicorn/util.py", line 99, in load_class
    mod = importlib.import_module('.'.join(components))
  File "/usr/lib/python3.9/importlib/__init__.py", line 127, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
  File "<frozen importlib._bootstrap>", line 1030, in _gcd_import
  File "<frozen importlib._bootstrap>", line 1007, in _find_and_load
  File "<frozen importlib._bootstrap>", line 986, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 680, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 850, in exec_module
  File "<frozen importlib._bootstrap>", line 228, in _call_with_frames_removed
  File "/usr/lib/python3/dist-packages/gunicorn/workers/geventlet.py", line 20, in <module>
    from eventlet.wsgi import ALREADY_HANDLED as EVENTLET_ALREADY_HANDLED
ImportError: cannot import name 'ALREADY_HANDLED' from 'eventlet.wsgi' (/usr/lib/python3/dist-packages/eventlet/wsgi.py)