Skip to content

Failed to start api_websocket #36214

Description

@bailiqun

Self Checks

  • I have read the Contributing Guide and Language Policy.
  • This is only for bug report, if you would like to ask a question, please head to Discussions.
  • I have searched for existing issues search for existing issues, including closed ones.
  • I confirm that I am using English to submit this report, otherwise it will be closed.
  • 【中文用户 & Non English User】请使用英语提交,否则会被关闭 :)
  • Please do not modify this template :) and fill in all the required fields.

Dify version

1.14.1

Cloud or Self Hosted

Self Hosted (Docker)

Steps to reproduce

docker compose up
all use default env files

✔️ Expected Behavior

use docker-compose up dify 1.14.1, api_websocket down

api_websocket-1 | api_websocket-1 | Error: class uri 'geventwebsocket.gunicorn.workers.GeventWebSocketWorker' invalid or not found: api_websocket-1 | api_websocket-1 | [Traceback (most recent call last): api_websocket-1 | File "/app/api/.venv/lib/python3.12/site-packages/gunicorn/util.py", line 110, in load_class api_websocket-1 | mod = importlib.import_module('.'.join(components)) api_websocket-1 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ api_websocket-1 | File "/usr/local/lib/python3.12/importlib/__init__.py", line 90, in import_module api_websocket-1 | return _bootstrap._gcd_import(name[level:], package, level) api_websocket-1 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ api_websocket-1 | File "<frozen importlib._bootstrap>", line 1387, in _gcd_import api_websocket-1 | File "<frozen importlib._bootstrap>", line 1360, in _find_and_load api_websocket-1 | File "<frozen importlib._bootstrap>", line 1310, in _find_and_load_unlocked api_websocket-1 | File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed api_websocket-1 | File "<frozen importlib._bootstrap>", line 1387, in _gcd_import api_websocket-1 | File "<frozen importlib._bootstrap>", line 1360, in _find_and_load api_websocket-1 | File "<frozen importlib._bootstrap>", line 1310, in _find_and_load_unlocked api_websocket-1 | File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed api_websocket-1 | File "<frozen importlib._bootstrap>", line 1387, in _gcd_import api_websocket-1 | File "<frozen importlib._bootstrap>", line 1360, in _find_and_load api_websocket-1 | File "<frozen importlib._bootstrap>", line 1324, in _find_and_load_unlocked api_websocket-1 | ModuleNotFoundError: No module named 'geventwebsocket' api_websocket-1 | ] api_websocket-1 | api_websocket-1 exited with code 0

❌ Actual Behavior

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions