dify icon indicating copy to clipboard operation
dify copied to clipboard

failed to launch plugin

Open darkspaceship opened this issue 2 months ago • 1 comments

Self Checks

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

Dify version

hotfix-1.10.1

Cloud or Self Hosted

Self Hosted (Docker)

Steps to reproduce

error 1 :

failed to launch plugin: failed to install dependencies: failed to install dependencies: exit status 1, output: DEBUG uv 0.9.16 TRACE Checking lock for `/root/.cache/uv` at `/root/.cache/uv/.lock` DEBUG Acquired shared lock for `/root/.cache/uv` DEBUG Searching for default Python interpreter in virtual environments TRACE Found cached interpreter info for Python 3.12.3, skipping query of: .venv/bin/python3 DEBUG Found `cpython-3.12.3-linux-x86_64-gnu` at `/app/storage/cwd/langgenius/tongyi-0.1.5@5d766a6a8c73...; num_recv=0; num_send=2 TRACE transition_after; stream=StreamId(3); state=Closed(Error(Reset(StreamId(3), CANCEL, Library))); is_closed=true; pending_send_empty=true; buffered_send_data=0; num_recv=0; num_send=2 TRACE dec_num_streams; stream=StreamId(3) TRACE transition_after; stream=StreamId(1); state=Closed(Error(Reset(StreamId(1), CANCEL, Library))); is_closed=true; pending_send_empty=true; buffered_send_data=0; num_recv=0; num_send=1 TRACE dec_num_streams; stream=StreamId(1) failed to init environment

error 2 :

Task timed out but not properly terminated

docker log:

TRACE schedule_send [stream.id](http://stream.id/)=StreamId(1)
TRACE Queue::push_back
TRACE  -> existing entries
TRACE enqueue_reset_expiration; added StreamId(1)
TRACE Queue::push_back
TRACE  -> existing entries
TRACE transition_after; stream=StreamId(1); state=Closed(ScheduledLibraryReset(CANCEL)); is_closed=true; pending_send_empty=true; buffered_send_data=0; num_recv=0; num_send=2
  × Failed to download `numpy==2.2.6`
  ├─▶ Failed to extract archive:
  │   numpy-2.2.6-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
  ├─▶ I/O operation failed during extraction
  ╰─▶ Failed to download distribution due to network timeout. Try increasing
      UV_HTTP_TIMEOUT (current value: 30s).
DEBUG Released lock at `/app/storage/cwd/langgenius/tongyi-0.1.5@5d766a6a8c737ecf8757af97b6181ecb96709547cf816cf402efb343ac066932/.venv/.lock`
DEBUG Released lock at `/root/.cache/uv/.lock`
TRACE Streams::recv_eof
TRACE transition_after; stream=StreamId(1); state=Closed(ScheduledLibraryReset(CANCEL)); is_closed=true; pending_send_empty=true; buffered_send_data=0; num_recv=0; num_send=2
TRACE transition_after; stream=StreamId(3); state=Closed(ScheduledLibraryReset(CANCEL)); is_closed=true; pending_send_empty=true; buffered_send_data=0; num_recv=0; num_send=2
TRACE transition_after; stream=StreamId(3); state=Closed(ScheduledLibraryReset(CANCEL)); is_closed=true; pending_send_empty=true; buffered_send_data=0; num_recv=0; num_send=2
TRACE transition_after; stream=StreamId(1); state=Closed(ScheduledLibraryReset(CANCEL)); is_closed=true; pending_send_empty=true; buffered_send_data=0; num_recv=0; num_send=2
TRACE transition_after; stream=StreamId(3); state=Closed(Error(Reset(StreamId(3), CANCEL, Library))); is_closed=true; pending_send_empty=true; buffered_send_data=0; num_recv=0; num_send=2
TRACE dec_num_streams; stream=StreamId(3)
TRACE transition_after; stream=StreamId(1); state=Closed(Error(Reset(StreamId(1), CANCEL, Library))); is_closed=true; pending_send_empty=true; buffered_send_data=0; num_recv=0; num_send=1
TRACE dec_num_streams; stream=StreamId(1)

failed to init environment
2025/12/10 07:09:13 recycle.go:29: [INFO]install task 4dbff2af-6c50-417e-b07f-26166aee14bf finished
[GIN] 2025/12/10 - 07:22:04 | 200 |    2.113702ms |      [172.18.0.7](http://172.18.0.7/) | GET      "/plugin/e884aa97-ce03-4313-9dad-ff30c5a57a40/management/models?page=1&page_size=256"
[GIN] 2025/12/10 - 07:22:04 | 200 |     387.225µs |      [172.18.0.7](http://172.18.0.7/) | GET      "/plugin/e884aa97-ce03-4313-9dad-ff30c5a57a40/management/models?page=1&page_size=256"
[GIN] 2025/12/10 - 07:22:04 | 200 |     394.053µs |      [172.18.0.7](http://172.18.0.7/) | GET      "/plugin/e884aa97-ce03-4313-9dad-ff30c5a57a40/management/models?page=1&page_size=256"
[GIN] 2025/12/10 - 07:22:04 | 200 |     492.234µs |      [172.18.0.7](http://172.18.0.7/) | GET      "/plugin/e884aa97-ce03-4313-9dad-ff30c5a57a40/management/models?page=1&page_size=256"
[GIN] 2025/12/10 - 07:22:04 | 200 |     336.828µs |      [172.18.0.7](http://172.18.0.7/) | GET      "/plugin/e884aa97-ce03-4313-9dad-ff30c5a57a40/management/models?page=1&page_size=256"
[GIN] 2025/12/10 - 07:22:04 | 200 |      326.06µs |      [172.18.0.7](http://172.18.0.7/) | GET      "/plugin/e884aa97-ce03-4313-9dad-ff30c5a57a40/management/models?page=1&page_size=256"
[GIN] 2025/12/10 - 07:22:04 | 200 |     486.345µs |      [172.18.0.7](http://172.18.0.7/) | GET      "/plugin/e884aa97-ce03-4313-9dad-ff30c5a57a40/management/models?page=1&page_size=256"
[GIN] 2025/12/10 - 07:22:04 | 200 |     241.498µs |      [172.18.0.7](http://172.18.0.7/) | GET      "/plugin/e884aa97-ce03-4313-9dad-ff30c5a57a40/management/models?page=1&page_size=256"
[GIN] 2025/12/10 - 07:22:04 | 200 |     400.203µs |      [172.18.0.7](http://172.18.0.7/) | GET      "/plugin/e884aa97-ce03-4313-9dad-ff30c5a57a40/management/models?page=1&page_size=256"
[GIN] 2025/12/10 - 07:22:09 | 200 |     613.383µs |      [172.18.0.7](http://172.18.0.7/) | POST     "/plugin/e884aa97-ce03-4313-9dad-ff30c5a57a40/management/installation/fetch/batch"
[GIN] 2025/12/10 - 07:22:09 | 200 |     519.391µs |      [172.18.0.7](http://172.18.0.7/) | GET      "/plugin/e884aa97-ce03-4313-9dad-ff30c5a57a40/management/models?page=1&page_size=256"
[GIN] 2025/12/10 - 07:22:09 | 200 |   42.504694ms |      [172.18.0.7](http://172.18.0.7/) | GET      "/plugin/e884aa97-ce03-4313-9dad-ff30c5a57a40/management/fetch/manifest?plugin_unique_identifier=langgenius%2Ftongyi%3A0.1.5%405d766a6a8c737ecf8757af97b6181ecb96709547cf816cf402efb343ac066932"
[GIN] 2025/12/10 - 07:22:10 | 200 |    9.652925ms |      [172.18.0.7](http://172.18.0.7/) | GET      "/plugin/e884aa97-ce03-4313-9dad-ff30c5a57a40/management/fetch/manifest?plugin_unique_identifier=langgenius%2Ftongyi%3A0.1.5%405d766a6a8c737ecf8757af97b6181ecb96709547cf816cf402efb343ac066932"
[GIN] 2025/12/10 - 07:22:10 | 200 |   36.185488ms |      [172.18.0.7](http://172.18.0.7/) | GET      "/plugin/e884aa97-ce03-4313-9dad-ff30c5a57a40/management/decode/from_identifier"

2025/12/10 07:22:10 /app/internal/db/executor.go:259 record not found
[0.401ms] [rows:0] SELECT * FROM "plugins" WHERE plugin_unique_identifier = 'langgenius/tongyi:0.1.5@5d766a6a8c737ecf8757af97b6181ecb96709547cf816cf402efb343ac066932' ORDER BY "plugins"."id" LIMIT 1
[GIN] 2025/12/10 - 07:22:10 | 200 |    1.882754ms |      [172.18.0.7](http://172.18.0.7/) | POST     "/plugin/e884aa97-ce03-4313-9dad-ff30c5a57a40/management/install/identifiers"
2025/12/10 07:22:10 recycle.go:22: [INFO]start new install task ee95511d-0f7c-47bf-a0e1-0492a4eb7b51
2025/12/10 07:22:10 logger.go:13: [INFO]local runtime starting: langgenius/tongyi:0.1.5@5d766a6a8c737ecf8757af97b6181ecb96709547cf816cf402efb343ac066932
[GIN] 2025/12/10 - 07:22:10 | 200 |     437.869µs |      [172.18.0.7](http://172.18.0.7/) | GET      "/plugin/e884aa97-ce03-4313-9dad-ff30c5a57a40/management/install/tasks?page=1&page_size=100"
[GIN] 2025/12/10 - 07:22:10 | 200 |     277.105µs |      [172.18.0.7](http://172.18.0.7/) | GET      "/plugin/e884aa97-ce03-4313-9dad-ff30c5a57a40/management/install/tasks/ee95511d-0f7c-47bf-a0e1-0492a4eb7b51"
[GIN] 2025/12/10 - 07:22:20 | 200 |     499.313µs |      [172.18.0.7](http://172.18.0.7/) | GET      "/plugin/e884aa97-ce03-4313-9dad-ff30c5a57a40/management/install/tasks/ee95511d-0f7c-47bf-a0e1-0492a4eb7b51"
[GIN] 2025/12/10 - 07:22:31 | 200 |      431.89µs |      [172.18.0.7](http://172.18.0.7/) | GET      "/plugin/e884aa97-ce03-4313-9dad-ff30c5a57a40/management/install/tasks/ee95511d-0f7c-47bf-a0e1-0492a4eb7b51"
[GIN] 2025/12/10 - 07:22:42 | 200 |      429.17µs |      [172.18.0.7](http://172.18.0.7/) | GET      "/plugin/e884aa97-ce03-4313-9dad-ff30c5a57a40/management/install/tasks/ee95511d-0f7c-47bf-a0e1-0492a4eb7b51"
[GIN] 2025/12/10 - 07:22:53 | 200 |     471.826µs |      [172.18.0.7](http://172.18.0.7/) | GET      "/plugin/e884aa97-ce03-4313-9dad-ff30c5a57a40/management/install/tasks/ee95511d-0f7c-47bf-a0e1-0492a4eb7b51"
[GIN] 2025/12/10 - 07:23:04 | 200 |     434.119µs |      [172.18.0.7](http://172.18.0.7/) | GET      "/plugin/e884aa97-ce03-4313-9dad-ff30c5a57a40/management/install/tasks/ee95511d-0f7c-47bf-a0e1-0492a4eb7b51"
[GIN] 2025/12/10 - 07:23:15 | 200 |     445.098µs |      [172.18.0.7](http://172.18.0.7/) | GET      "/plugin/e884aa97-ce03-4313-9dad-ff30c5a57a40/management/install/tasks/ee95511d-0f7c-47bf-a0e1-0492a4eb7b51"
[GIN] 2025/12/10 - 07:23:26 | 200 |     437.209µs |      [172.18.0.7](http://172.18.0.7/) | GET      "/plugin/e884aa97-ce03-4313-9dad-ff30c5a57a40/management/install/tasks/ee95511d-0f7c-47bf-a0e1-0492a4eb7b51"
[GIN] 2025/12/10 - 07:23:37 | 200 |     441.508µs |      [172.18.0.7](http://172.18.0.7/) | GET      "/plugin/e884aa97-ce03-4313-9dad-ff30c5a57a40/management/install/tasks/ee95511d-0f7c-47bf-a0e1-0492a4eb7b51"
[GIN] 2025/12/10 - 07:23:48 | 200 |     432.198µs |      [172.18.0.7](http://172.18.0.7/) | GET      "/plugin/e884aa97-ce03-4313-9dad-ff30c5a57a40/management/install/tasks/ee95511d-0f7c-47bf-a0e1-0492a4eb7b51"
[GIN] 2025/12/10 - 07:23:59 | 200 |     425.929µs |      [172.18.0.7](http://172.18.0.7/) | GET      "/plugin/e884aa97-ce03-4313-9dad-ff30c5a57a40/management/install/tasks/ee95511d-0f7c-47bf-a0e1-0492a4eb7b51"
[GIN] 2025/12/10 - 07:24:10 | 200 |     404.933µs |      [172.18.0.7](http://172.18.0.7/) | GET      "/plugin/e884aa97-ce03-4313-9dad-ff30c5a57a40/management/install/tasks/ee95511d-0f7c-47bf-a0e1-0492a4eb7b51"
[GIN] 2025/12/10 - 07:24:21 | 200 |     436.549µs |      [172.18.0.7](http://172.18.0.7/) | GET      "/plugin/e884aa97-ce03-4313-9dad-ff30c5a57a40/management/install/tasks/ee95511d-0f7c-47bf-a0e1-0492a4eb7b51"
[GIN] 2025/12/10 - 07:24:32 | 200 |     426.409µs |      [172.18.0.7](http://172.18.0.7/) | GET      "/plugin/e884aa97-ce03-4313-9dad-ff30c5a57a40/management/install/tasks/ee95511d-0f7c-47bf-a0e1-0492a4eb7b51"
[GIN] 2025/12/10 - 07:24:43 | 200 |     440.059µs |      [172.18.0.7](http://172.18.0.7/) | GET      "/plugin/e884aa97-ce03-4313-9dad-ff30c5a57a40/management/install/tasks/ee95511d-0f7c-47bf-a0e1-0492a4eb7b51"
[GIN] 2025/12/10 - 07:24:54 | 200 |     445.169µs |      [172.18.0.7](http://172.18.0.7/) | GET      "/plugin/e884aa97-ce03-4313-9dad-ff30c5a57a40/management/install/tasks/ee95511d-0f7c-47bf-a0e1-0492a4eb7b51"
[GIN] 2025/12/10 - 07:25:05 | 200 |     460.398µs |      [172.18.0.7](http://172.18.0.7/) | GET      "/plugin/e884aa97-ce03-4313-9dad-ff30c5a57a40/management/install/tasks/ee95511d-0f7c-47bf-a0e1-0492a4eb7b51"
[GIN] 2025/12/10 - 07:25:16 | 200 |         423µs |      [172.18.0.7](http://172.18.0.7/) | GET      "/plugin/e884aa97-ce03-4313-9dad-ff30c5a57a40/management/install/tasks/ee95511d-0f7c-47bf-a0e1-0492a4eb7b51"
[GIN] 2025/12/10 - 07:25:27 | 200 |      434.41µs |      [172.18.0.7](http://172.18.0.7/) | GET      "/plugin/e884aa97-ce03-4313-9dad-ff30c5a57a40/management/install/tasks/ee95511d-0f7c-47bf-a0e1-0492a4eb7b51"
[GIN] 2025/12/10 - 07:25:38 | 200 |     413.161µs |      [172.18.0.7](http://172.18.0.7/) | GET      "/plugin/e884aa97-ce03-4313-9dad-ff30c5a57a40/management/install/tasks/ee95511d-0f7c-47bf-a0e1-0492a4eb7b51"
[GIN] 2025/12/10 - 07:25:49 | 200 |     463.086µs |      [172.18.0.7](http://172.18.0.7/) | GET      "/plugin/e884aa97-ce03-4313-9dad-ff30c5a57a40/management/install/tasks/ee95511d-0f7c-47bf-a0e1-0492a4eb7b51"
[GIN] 2025/12/10 - 07:26:00 | 200 |     442.099µs |      [172.18.0.7](http://172.18.0.7/) | GET      "/plugin/e884aa97-ce03-4313-9dad-ff30c5a57a40/management/install/tasks/ee95511d-0f7c-47bf-a0e1-0492a4eb7b51"
2025/12/10 07:26:01 recycle.go:119: [INFO]task ee95511d-0f7c-47bf-a0e1-0492a4eb7b51 timed out
[GIN] 2025/12/10 - 07:26:11 | 200 |     477.426µs |      [172.18.0.7](http://172.18.0.7/) | GET      "/plugin/e884aa97-ce03-4313-9dad-ff30c5a57a40/management/install/tasks/ee95511d-0f7c-47bf-a0e1-0492a4eb7b51"
2025/12/10 07:28:26 setup_python_environment.go:357: [INFO]pre-compiling langgenius/tongyi:0.1.5 - Listing '.'......
2025/12/10 07:28:27 setup_python_environment.go:357: [INFO]pre-compiling langgenius/tongyi:0.1.5 - Compiling './.venv/lib/python3.12/site-packages/anyio/_core/_typedattr.py'......
2025/12/10 07:28:27 setup_python_environment.go:357: [INFO]pre-compiling langgenius/tongyi:0.1.5 - Compiling './.venv/lib/python3.12/site-packages/click/testing.py'......
2025/12/10 07:28:27 setup_python_environment.go:357: [INFO]pre-compiling langgenius/tongyi:0.1.5 - Compiling './.venv/lib/python3.12/site-packages/cryptography/x509/certificate_transparency.py'......
2025/12/10 07:28:27 setup_python_environment.go:357: [INFO]pre-compiling langgenius/tongyi:0.1.5 - Compiling './.venv/lib/python3.12/site-packages/dashscope/model.py'......
2025/12/10 07:28:27 setup_python_environment.go:357: [INFO]pre-compiling langgenius/tongyi:0.1.5 - Compiling './.venv/lib/python3.12/site-packages/dify_plugin/core/server/stdio/request_reader.py'......
2025/12/10 07:28:27 setup_python_environment.go:357: [INFO]pre-compiling langgenius/tongyi:0.1.5 - Listing './.venv/lib/python3.12/site-packages/dify_plugin/invocations/model'......
2025/12/10 07:28:27 setup_python_environment.go:357: [INFO]pre-compiling langgenius/tongyi:0.1.5 - Listing './.venv/lib/python3.12/site-packages/dpkt-1.9.8.dist-info'......
2025/12/10 07:28:27 setup_python_environment.go:357: [INFO]pre-compiling langgenius/tongyi:0.1.5 - Compiling './.venv/lib/python3.12/site-packages/gevent/signal.py'......
2025/12/10 07:28:27 setup_python_environment.go:357: [INFO]pre-compiling langgenius/tongyi:0.1.5 - Compiling './.venv/lib/python3.12/site-packages/gevent/tests/test__hub_join_timeout.py'......
2025/12/10 07:28:27 setup_python_environment.go:357: [INFO]pre-compiling langgenius/tongyi:0.1.5 - Listing './.venv/lib/python3.12/site-packages/greenlet/platform'......
2025/12/10 07:28:27 setup_python_environment.go:357: [INFO]pre-compiling langgenius/tongyi:0.1.5 - Compiling './.venv/lib/python3.12/site-packages/idna/__init__.py'......
2025/12/10 07:28:28 setup_python_environment.go:357: [INFO]pre-compiling langgenius/tongyi:0.1.5 - Compiling './.venv/lib/python3.12/site-packages/numpy/_core/tests/examples/cython/setup.py'......
2025/12/10 07:28:28 setup_python_environment.go:357: [INFO]pre-compiling langgenius/tongyi:0.1.5 - Compiling './.venv/lib/python3.12/site-packages/numpy/_utils/__init__.py'......
2025/12/10 07:28:28 setup_python_environment.go:357: [INFO]pre-compiling langgenius/tongyi:0.1.5 - Compiling './.venv/lib/python3.12/site-packages/numpy/f2py/tests/test_isoc.py'......
2025/12/10 07:28:28 setup_python_environment.go:357: [INFO]pre-compiling langgenius/tongyi:0.1.5 - Compiling './.venv/lib/python3.12/site-packages/numpy/ma/__init__.py'......
2025/12/10 07:28:28 setup_python_environment.go:357: [INFO]pre-compiling langgenius/tongyi:0.1.5 - Compiling './.venv/lib/python3.12/site-packages/numpy/tests/test_numpy_config.py'......
2025/12/10 07:28:28 setup_python_environment.go:357: [INFO]pre-compiling langgenius/tongyi:0.1.5 - Compiling './.venv/lib/python3.12/site-packages/openai/cli/_api/_main.py'......
2025/12/10 07:28:28 setup_python_environment.go:357: [INFO]pre-compiling langgenius/tongyi:0.1.5 - Compiling './.venv/lib/python3.12/site-packages/openai/resources/containers/files/content.py'......
2025/12/10 07:28:28 setup_python_environment.go:357: [INFO]pre-compiling langgenius/tongyi:0.1.5 - Compiling './.venv/lib/python3.12/site-packages/openai/types/beta/assistant_stream_event.py'......
2025/12/10 07:28:28 setup_python_environment.go:357: [INFO]pre-compiling langgenius/tongyi:0.1.5 - Compiling './.venv/lib/python3.12/site-packages/openai/types/beta/realtime/input_audio_buffer_commit_event_param.py'......
2025/12/10 07:28:28 setup_python_environment.go:357: [INFO]pre-compiling langgenius/tongyi:0.1.5 - Compiling './.venv/lib/python3.12/site-packages/openai/types/beta/threads/refusal_delta_block.py'......
2025/12/10 07:28:28 setup_python_environment.go:357: [INFO]pre-compiling langgenius/tongyi:0.1.5 - Compiling './.venv/lib/python3.12/site-packages/openai/types/chat/chat_completion_tool_choice_option_param.py'......
2025/12/10 07:28:28 setup_python_environment.go:357: [INFO]pre-compiling langgenius/tongyi:0.1.5 - Listing './.venv/lib/python3.12/site-packages/openai/types/evals/runs'......
2025/12/10 07:28:28 setup_python_environment.go:357: [INFO]pre-compiling langgenius/tongyi:0.1.5 - Compiling './.venv/lib/python3.12/site-packages/openai/types/moderation_model.py'......
2025/12/10 07:28:28 setup_python_environment.go:357: [INFO]pre-compiling langgenius/tongyi:0.1.5 - Compiling './.venv/lib/python3.12/site-packages/openai/types/realtime/realtime_conversation_item_user_message_param.py'......
2025/12/10 07:28:29 setup_python_environment.go:357: [INFO]pre-compiling langgenius/tongyi:0.1.5 - Compiling './.venv/lib/python3.12/site-packages/openai/types/realtime/response_mcp_call_failed.py'......
2025/12/10 07:28:29 setup_python_environment.go:357: [INFO]pre-compiling langgenius/tongyi:0.1.5 - Compiling './.venv/lib/python3.12/site-packages/openai/types/responses/response_function_web_search.py'......
2025/12/10 07:28:29 setup_python_environment.go:357: [INFO]pre-compiling langgenius/tongyi:0.1.5 - Compiling './.venv/lib/python3.12/site-packages/openai/types/responses/tool_choice_allowed.py'......
2025/12/10 07:28:29 setup_python_environment.go:357: [INFO]pre-compiling langgenius/tongyi:0.1.5 - Compiling './.venv/lib/python3.12/site-packages/openai/types/video_remix_params.py'......
2025/12/10 07:28:29 setup_python_environment.go:357: [INFO]pre-compiling langgenius/tongyi:0.1.5 - Compiling './.venv/lib/python3.12/site-packages/pydantic/_internal/_serializers.py'......
2025/12/10 07:28:29 setup_python_environment.go:357: [INFO]pre-compiling langgenius/tongyi:0.1.5 - Compiling './.venv/lib/python3.12/site-packages/pydantic_settings/sources/providers/dotenv.py'......
2025/12/10 07:28:29 setup_python_environment.go:357: [INFO]pre-compiling langgenius/tongyi:0.1.5 - Compiling './.venv/lib/python3.12/site-packages/tqdm/contrib/slack.py'......
2025/12/10 07:28:29 setup_python_environment.go:357: [INFO]pre-compiling langgenius/tongyi:0.1.5 - Compiling './.venv/lib/python3.12/site-packages/werkzeug/datastructures/__init__.py'......
2025/12/10 07:28:29 setup_python_environment.go:357: [INFO]pre-compiling langgenius/tongyi:0.1.5 - Compiling './.venv/lib/python3.12/site-packages/zope/interface/common/tests/__init__.py'......
2025/12/10 07:28:29 setup_python_environment.go:390: [INFO]pre-loaded the plugin langgenius/tongyi:0.1.5
2025/12/10 07:28:30 logger.go:47: [INFO]local runtime scale up: langgenius/tongyi:0.1.5@5d766a6a8c737ecf8757af97b6181ecb96709547cf816cf402efb343ac066932, instance nums: 1
2025/12/10 07:28:31 logger.go:18: [INFO]local runtime ready: langgenius/tongyi:0.1.5@5d766a6a8c737ecf8757af97b6181ecb96709547cf816cf402efb343ac066932

2025/12/10 07:28:31 /app/internal/db/executor.go:259 record not found
[5.826ms] [rows:0] SELECT * FROM "plugin_installations" WHERE plugin_id = 'langgenius/tongyi' AND tenant_id = 'e884aa97-ce03-4313-9dad-ff30c5a57a40' ORDER BY "plugin_installations"."id" LIMIT 1

2025/12/10 07:28:31 /app/internal/db/executor.go:259 record not found
[0.414ms] [rows:0] SELECT * FROM "plugins" WHERE plugin_unique_identifier = 'langgenius/tongyi:0.1.5@5d766a6a8c737ecf8757af97b6181ecb96709547cf816cf402efb343ac066932' AND plugin_id = 'langgenius/tongyi' AND install_type = 'local' ORDER BY "plugins"."id" LIMIT 1 FOR UPDATE
2025/12/10 07:28:31 recycle.go:29: [INFO]install task ee95511d-0f7c-47bf-a0e1-0492a4eb7b51 finished
[GIN] 2025/12/10 - 07:29:52 | 200 |     302.092µs |      [172.18.0.7](http://172.18.0.7/) | GET      "/plugin/e884aa97-ce03-4313-9dad-ff30c5a57a40/management/install/tasks?page=1&page_size=100"
[GIN] 2025/12/10 - 07:29:52 | 200 |    7.629465ms |      [172.18.0.7](http://172.18.0.7/) | GET      "/plugin/e884aa97-ce03-4313-9dad-ff30c5a57a40/management/models?page=1&page_size=256"
[GIN] 2025/12/10 - 07:31:18 | 200 |     504.123µs |      [172.18.0.7](http://172.18.0.7/) | GET      "/plugin/e884aa97-ce03-4313-9dad-ff30c5a57a40/management/install/tasks?page=1&page_size=100"

Is it a network problem with my server?

✔️ Expected Behavior

install success

❌ Actual Behavior

error

darkspaceship avatar Dec 10 '25 07:12 darkspaceship

Hi @darkspaceship! I'm Dosu and I’m helping the dify team.

Yes, your issue is almost certainly caused by network problems or slow connectivity between your server and the Python package repository (PyPI), not a Dify bug. The error logs and similar reports from other users show that network timeouts and I/O errors during dependency downloads (like numpy) are a common cause for plugin installation failures in self-hosted Docker environments example example.

To resolve this, try the following steps (in order of impact):

  1. Increase the UV_HTTP_TIMEOUT environment variable for the plugin_daemon service (e.g., set it to 120s or higher).
  2. Set a reliable PyPI mirror (like PIP_MIRROR_URL=https://pypi.tuna.tsinghua.edu.cn/simple) in your plugin_daemon environment or .env file, especially if you're in a region with slow access to pypi.org.
  3. Increase PYTHON_ENV_INIT_TIMEOUT in your docker-compose.yaml for the plugin_daemon service.
  4. If you still have issues, adjust Docker network MTU settings (e.g., set MTU to 1450 in /etc/docker/daemon.json and docker-compose.yaml), or use network_mode: host for the plugin_daemon service.
  5. Restart the plugin_daemon container after making any changes.

If the problem persists, check for other environmental issues like disk space or permissions. Monitor your logs after each change to see if the situation improves reference reference.

Let me know if you need the exact config snippets for any of these steps.

To reply, just mention @dosu.


How did I do? Good | Irrelevant | Incorrect | Verbose | Hallucination | Report 🐛 | Other

Chat with Dosu Open in Cursor Join Discord Share on X

dosubot[bot] avatar Dec 10 '25 08:12 dosubot[bot]

the same

koalababy2024 avatar Dec 18 '25 04:12 koalababy2024