After upgrading to v1.0.0, it is unable to have normal conversations and perform embeddings #57

Closed
opened 2026-02-16 10:17:56 -05:00 by yindo · 0 comments
Owner

Originally created by @opsvr202 on GitHub (Mar 10, 2025).

Self Checks

  • This is only for bug report, if you would like to ask a question, please head to Discussions.
  • I have searched for existing issues Dify issues & Dify Official Plugins, including closed ones.
  • I confirm that I am using English to submit this report (我已阅读并同意 Language Policy).
  • [FOR CHINESE USERS] 请务必使用英文提交 Issue,否则会被关闭。谢谢!:)
  • Please do not modify this template :) and fill in all the required fields.

Dify version

v1.0.0

Plugin version

0.0.2

Cloud or Self Hosted

Self Hosted (Docker)

Steps to reproduce

Deployment method: Docker deployment
Model provider: Xinference v1.3.0.post2
LLM model: deepseek-r1-distill-qwen-32b, Int4
Embedding model: bge-larger-zh-v1.5
Reranker model: bge-reranker-large

The previous Dify version was v0.15.3
The upgrade process was normal, and there were no abnormal error messages in dify-api after the plugins were installed.

When creating a conversation, the conversation cannot be carried out normally, and dify-api reports an error.
When uploading knowledge base documents, the embedding cannot be carried out normally, and the error message in dify-api is the same as that during the conversation.

✔️ Error log

2025-02-28 16:37:42.914 DEBUG [Thread-2331 (process_request_thread)] [connectionpool.py:241] - Starting new HTTP connection (1): plugin_daemon:5002
2025-02-28 16:37:42.919 DEBUG [Thread-2331 (process_request_thread)] [connectionpool.py:544] - http://plugin_daemon:5002 "POST /plugin/6e269332-9839-43C4-B021-7fc860d5b67a/dispatch/model/schema HTTP/1.1" 200 None
2025-02-28 16:37:42.933 DEBUG [Thread-2331 (process_request_thread)] [connectionpool.py:241] - Starting new HTTP connection (1): plugin_daemon:5002
2025-02-28 16:37:42.933 DEBUG [Thread-2331 (process_request_thread)] [connectionpool.py:544] - http://plugin_daemon:5002 "POST /plugin/6e269332-9839-43C4-B021-7fc860d5b67a/dispatch/model/schema HTTP/1.1" 200 None
2025-02-28 16:37:42.939 DEBUG [Thread-2331 (process_request_thread)] [connectionpool.py:241] - Starting new HTTP connection (1): plugin_daemon:5002
2025-02-28 16:37:42.939 DEBUG [Thread-2331 (process_request_thread)] [connectionpool.py:544] - http://plugin_daemon:5002 "POST /plugin/6e269332-9839-43C4-B021-7fc860d5b67a/dispatch/model/schema HTTP/1.1" 200 None
2025-02-28 16:37:42.939 DEBUG [Thread-2331 (process_request_thread)] [connectionpool.py:241] - Starting new HTTP connection (1): plugin_daemon:5002
2025-02-28 16:37:42.939 DEBUG [Thread-2331 (process_request_thread)] [connectionpool.py:544] - http://plugin_daemon:5002 "POST /plugin/6e269332-9839-43C4-B021-7fc860d5b67a/dispatch/llm/tokens HTTP/1.1" 200 None
2025-02-28 16:37:42.957 ERROR [Thread-2332 (generate_worker)] [generate_worker.py:43] - Unknown Error when generating
Traceback (most recent call last):
File "/app/api/core/app/chat/app_generator.py", line 223, in _generate_worker
runner.run()
File "/app/api/core/app/apps/chat/app_runner.py", line 58, in run
self.get_pre_calculate_rest_tokens()
File "/app/api/core/app/apps/base/app_runner.py", line 86, in get_pre_calculate_rest_tokens
prompt_tokens = model_instance.get_llm_num_tokens(prompt_messages)
File "/app/api/core/model_manager.py", line 195, in get_llm_num_tokens
self._round_robin_invoke(
File "/app/api/core/model_manager.py", line 370, in _round_robin_invoke
return function(*args, **kwargs)

File "/app/api/core/model_runtime/model_providers/_base/large_language_model.py", line 299, in get_num_tokens
return runner.get_llm_num_tokens()

File "/app/api/core/plugin/manager/model.py", line 231, in get_llm_num_tokens
for resp in response:

File "/app/api/core/plugin/manager/base.py", line 189, in _request_with_plugin_daemon_response_stream
self._handle_plugin_daemon_error(error.error_type, error.message)
File "/app/api/core/plugin/manager/base.py", line 221, in _handle_plugin_daemon_error
raise PluginInvokeError(description)
core.plugin.manager.exceptions.PluginInvokeError: PluginInvokeError: {"args": {}, "error_type":"ConnectionError", "message":"HTTPSConnectionPool(host='openapublic.blob.core.windows.net', port=443): Max retries exceeded with url: /gpt-2/encodings/main/vocab.bpe (Caused by NameResolutionError("<urllib3.connection.HTTPSConnection object at 0x7f20eccdc9d0>: Failed to resolve 'openapublic.blob.core.windows.net' ([Errno -2] Name or service not known)"))"}
2025-02-28 16:37:42.976 DEBUG [Thread-2331 (process_request_thread)] [process_request_thread.py:45] - error: {"args": {}, "error_type":"ConnectionError", "message":"HTTPSConnectionPool(host='openapublic.blob.core.windows.net', port=443): Max retries exceeded with url: /gpt-2/encodings/main/vocab.bpe (Caused by NameResolutionError("<urllib3.connection.HTTPSConnection object at 0x7f17590ec070>: Failed to resolve 'openapublic.blob.core.windows.net' ([Errno -2] Name or service not known)"))"}
2025-02-28 16:37:42.976 ERROR [Thread-2331 (process_request_thread)] [base_app_generator.py:123] - Failed to generate response: converter.
{"args": {}, "error_type":"ConnectionError", "message":"HTTPSConnectionPool(host='openapublic.blob.core.windows.net', port=443): Max retries exceeded with url: /gpt-2/encodings/main/vocab.bpe (Caused by NameResolutionError("<urllib3.connection.HTTPSConnection object at 0x7f17590ec070>: Failed to resolve 'openapublic.blob.core.windows.net' ([Errno -2] Name or service not known)"))"}
raise PluginInvokeError(description=message)
core.plugin.manager.exc.PluginInvokeError: PluginInvokeError: {"args": {}, "error_type":"ConnectionError", "message":"HTTPSConnectionPool(host='openapublic.blob.core.windows.net', port=443): Max retries exceeded with url: /gpt - 2/encodings/main/vocab.bpe (Caused by NameResolutionError("<urllib3.connection.HTTPSConnection object at 0x7f5e0ccdc9d0>: Failed to resolve 'openapublic.blob.core.windows.net' ([Errno -2] Name or service not known)"))"}
2025-02-28 16:37:42.972 DEBUG [Thread-2331 (process_request_thread)] [based_generate_task_pipeline.py:45] - error: PluginInvokeError: {"args": {}, "error_type":"ConnectionError", "message":"HTTPSConnectionPool(host='openapublic.blob.core.windows.net', port=443): Max retries exceeded with url: /gpt - 2/encodings/main/vocab.bpe (Caused by NameResolutionError("<urllib3.connection.HTTPSConnection object at 0x7f5e0ccdc9d0>: Failed to resolve 'openapublic.blob.core.windows.net' ([Errno -2] Name or service not known)"))"}
2025-02-28 16:37:42.976 ERROR [Thread-2331 (process_request_thread)] [base_app_generate_response_converter.py:123] - {"args": {}, "error_type":"ConnectionError", "message":"HTTPSConnectionPool(host='openapublic.blob.core.windows.net', port=443): Max retries exceeded with url: /gpt - 2/encodings/main/vocab.bpe (Caused by NameResolutionError("<urllib3.connection.HTTPSConnection object at 0x7f5e0ccdc9d0>: Failed to resolve 'openapublic.blob.core.windows.net' ([Errno -2] Name or service not known)"))"}
2025-02-28 16:37:42.976 INFO [Thread-2331 (process_request_thread)] [_internal.py:97] - 172.20.0.10 -- [28/Feb/2025 08:37:42] "POST /console/api/installed - apps/e27208ae - 6eb4 - 4f72 - 9e08 - 68dc0cfbd523/chat - messages HTTP/1.1" 200 -
2025-02-28 16:37:42.983 INFO [Thread-2332 (process_request_thread)] [_internal.py:97] - 172.20.0.10 -- [28/Feb/2025 08:37:42] "OPTIONS /console/api/installed - apps/e27208ae - 6eb4 - 4f72 - 9e08 - 68dc0cfbd523/messages/answer/placeholder=174075186225/suggested - questions HTTP/1.1" 404 -
2025-02-28 16:37:43.002 INFO [Thread-2334 (process_request_thread)] [_internal.py:97] - 172.20.0.10 -- [28/Feb/2025 08:37:43] "GET /console/api/installed - apps/e27208ae - 6eb4 - 4f72 - 9e08 - 68dc0cfbd523/conversations?limit=10&pinned=false HTTP/1.1" 200 -
"Context canceled"

Originally created by @opsvr202 on GitHub (Mar 10, 2025). ### Self Checks - [x] This is only for bug report, if you would like to ask a question, please head to [Discussions](https://github.com/langgenius/dify/discussions/categories/general). - [x] I have searched for existing issues [Dify issues](https://github.com/langgenius/dify/issues) & [Dify Official Plugins](https://github.com/langgenius/dify-official-plugins/issues), including closed ones. - [x] I confirm that I am using English to submit this report (我已阅读并同意 [Language Policy](https://github.com/langgenius/dify/issues/1542)). - [x] [FOR CHINESE USERS] 请务必使用英文提交 Issue,否则会被关闭。谢谢!:) - [x] Please do not modify this template :) and fill in all the required fields. ### Dify version v1.0.0 ### Plugin version 0.0.2 ### Cloud or Self Hosted Self Hosted (Docker) ### Steps to reproduce Deployment method: Docker deployment Model provider: Xinference v1.3.0.post2 LLM model: deepseek-r1-distill-qwen-32b, Int4 Embedding model: bge-larger-zh-v1.5 Reranker model: bge-reranker-large The previous Dify version was v0.15.3 The upgrade process was normal, and there were no abnormal error messages in dify-api after the plugins were installed. When creating a conversation, the conversation cannot be carried out normally, and dify-api reports an error. When uploading knowledge base documents, the embedding cannot be carried out normally, and the error message in dify-api is the same as that during the conversation. ### ✔️ Error log 2025-02-28 16:37:42.914 DEBUG [Thread-2331 (process_request_thread)] [connectionpool.py:241] - Starting new HTTP connection (1): plugin_daemon:5002 2025-02-28 16:37:42.919 DEBUG [Thread-2331 (process_request_thread)] [connectionpool.py:544] - http://plugin_daemon:5002 "POST /plugin/6e269332-9839-43C4-B021-7fc860d5b67a/dispatch/model/schema HTTP/1.1" 200 None 2025-02-28 16:37:42.933 DEBUG [Thread-2331 (process_request_thread)] [connectionpool.py:241] - Starting new HTTP connection (1): plugin_daemon:5002 2025-02-28 16:37:42.933 DEBUG [Thread-2331 (process_request_thread)] [connectionpool.py:544] - http://plugin_daemon:5002 "POST /plugin/6e269332-9839-43C4-B021-7fc860d5b67a/dispatch/model/schema HTTP/1.1" 200 None 2025-02-28 16:37:42.939 DEBUG [Thread-2331 (process_request_thread)] [connectionpool.py:241] - Starting new HTTP connection (1): plugin_daemon:5002 2025-02-28 16:37:42.939 DEBUG [Thread-2331 (process_request_thread)] [connectionpool.py:544] - http://plugin_daemon:5002 "POST /plugin/6e269332-9839-43C4-B021-7fc860d5b67a/dispatch/model/schema HTTP/1.1" 200 None 2025-02-28 16:37:42.939 DEBUG [Thread-2331 (process_request_thread)] [connectionpool.py:241] - Starting new HTTP connection (1): plugin_daemon:5002 2025-02-28 16:37:42.939 DEBUG [Thread-2331 (process_request_thread)] [connectionpool.py:544] - http://plugin_daemon:5002 "POST /plugin/6e269332-9839-43C4-B021-7fc860d5b67a/dispatch/llm/tokens HTTP/1.1" 200 None 2025-02-28 16:37:42.957 ERROR [Thread-2332 (generate_worker)] [generate_worker.py:43] - Unknown Error when generating Traceback (most recent call last): File "/app/api/core/app/chat/app_generator.py", line 223, in _generate_worker runner.run() File "/app/api/core/app/apps/chat/app_runner.py", line 58, in run self.get_pre_calculate_rest_tokens() File "/app/api/core/app/apps/base/app_runner.py", line 86, in get_pre_calculate_rest_tokens prompt_tokens = model_instance.get_llm_num_tokens(prompt_messages) File "/app/api/core/model_manager.py", line 195, in get_llm_num_tokens self._round_robin_invoke( File "/app/api/core/model_manager.py", line 370, in _round_robin_invoke return function(*args, **kwargs) File "/app/api/core/model_runtime/model_providers/_base/large_language_model.py", line 299, in get_num_tokens return runner.get_llm_num_tokens() File "/app/api/core/plugin/manager/model.py", line 231, in get_llm_num_tokens for resp in response: File "/app/api/core/plugin/manager/base.py", line 189, in _request_with_plugin_daemon_response_stream self._handle_plugin_daemon_error(error.error_type, error.message) File "/app/api/core/plugin/manager/base.py", line 221, in _handle_plugin_daemon_error raise PluginInvokeError(description) core.plugin.manager.exceptions.PluginInvokeError: PluginInvokeError: {"args": {}, "error_type":"ConnectionError", "message":"HTTPSConnectionPool(host='openapublic.blob.core.windows.net', port=443): Max retries exceeded with url: /gpt-2/encodings/main/vocab.bpe (Caused by NameResolutionError("<urllib3.connection.HTTPSConnection object at 0x7f20eccdc9d0>: Failed to resolve 'openapublic.blob.core.windows.net' ([Errno -2] Name or service not known)"))"} 2025-02-28 16:37:42.976 DEBUG [Thread-2331 (process_request_thread)] [process_request_thread.py:45] - error: {"args": {}, "error_type":"ConnectionError", "message":"HTTPSConnectionPool(host='openapublic.blob.core.windows.net', port=443): Max retries exceeded with url: /gpt-2/encodings/main/vocab.bpe (Caused by NameResolutionError("<urllib3.connection.HTTPSConnection object at 0x7f17590ec070>: Failed to resolve 'openapublic.blob.core.windows.net' ([Errno -2] Name or service not known)"))"} 2025-02-28 16:37:42.976 ERROR [Thread-2331 (process_request_thread)] [base_app_generator.py:123] - Failed to generate response: converter. {"args": {}, "error_type":"ConnectionError", "message":"HTTPSConnectionPool(host='openapublic.blob.core.windows.net', port=443): Max retries exceeded with url: /gpt-2/encodings/main/vocab.bpe (Caused by NameResolutionError("<urllib3.connection.HTTPSConnection object at 0x7f17590ec070>: Failed to resolve 'openapublic.blob.core.windows.net' ([Errno -2] Name or service not known)"))"} raise PluginInvokeError(description=message) core.plugin.manager.exc.PluginInvokeError: PluginInvokeError: {"args": {}, "error_type":"ConnectionError", "message":"HTTPSConnectionPool(host='openapublic.blob.core.windows.net', port=443): Max retries exceeded with url: /gpt - 2/encodings/main/vocab.bpe (Caused by NameResolutionError("<urllib3.connection.HTTPSConnection object at 0x7f5e0ccdc9d0>: Failed to resolve 'openapublic.blob.core.windows.net' ([Errno -2] Name or service not known)"))"} 2025-02-28 16:37:42.972 DEBUG [Thread-2331 (process_request_thread)] [based_generate_task_pipeline.py:45] - error: PluginInvokeError: {"args": {}, "error_type":"ConnectionError", "message":"HTTPSConnectionPool(host='openapublic.blob.core.windows.net', port=443): Max retries exceeded with url: /gpt - 2/encodings/main/vocab.bpe (Caused by NameResolutionError("<urllib3.connection.HTTPSConnection object at 0x7f5e0ccdc9d0>: Failed to resolve 'openapublic.blob.core.windows.net' ([Errno -2] Name or service not known)"))"} 2025-02-28 16:37:42.976 ERROR [Thread-2331 (process_request_thread)] [base_app_generate_response_converter.py:123] - {"args": {}, "error_type":"ConnectionError", "message":"HTTPSConnectionPool(host='openapublic.blob.core.windows.net', port=443): Max retries exceeded with url: /gpt - 2/encodings/main/vocab.bpe (Caused by NameResolutionError("<urllib3.connection.HTTPSConnection object at 0x7f5e0ccdc9d0>: Failed to resolve 'openapublic.blob.core.windows.net' ([Errno -2] Name or service not known)"))"} 2025-02-28 16:37:42.976 INFO [Thread-2331 (process_request_thread)] [_internal.py:97] - 172.20.0.10 -- [28/Feb/2025 08:37:42] "POST /console/api/installed - apps/e27208ae - 6eb4 - 4f72 - 9e08 - 68dc0cfbd523/chat - messages HTTP/1.1" 200 - 2025-02-28 16:37:42.983 INFO [Thread-2332 (process_request_thread)] [_internal.py:97] - 172.20.0.10 -- [28/Feb/2025 08:37:42] "OPTIONS /console/api/installed - apps/e27208ae - 6eb4 - 4f72 - 9e08 - 68dc0cfbd523/messages/answer/placeholder=174075186225/suggested - questions HTTP/1.1" 404 - 2025-02-28 16:37:43.002 INFO [Thread-2334 (process_request_thread)] [_internal.py:97] - 172.20.0.10 -- [28/Feb/2025 08:37:43] "GET /console/api/installed - apps/e27208ae - 6eb4 - 4f72 - 9e08 - 68dc0cfbd523/conversations?limit=10&pinned=false HTTP/1.1" 200 - "Context canceled"
yindo added the bug label 2026-02-16 10:17:56 -05:00
yindo closed this issue 2026-02-16 10:17:56 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: langgenius/dify-official-plugins#57