Cannot connect to xinference #1608

Closed
opened 2026-02-21 17:35:41 -05:00 by yindo · 0 comments
Owner

Originally created by @0xchaihu on GitHub (Mar 27, 2024).

Self Checks

  • I have searched for existing issues search for existing issues, including closed ones.
  • I confirm that I am using English to submit this report (我已阅读并同意 Language Policy).
  • Pleas do not modify this template :) and fill in all the required fields.

Dify version

0.5.10

Cloud or Self Hosted

Self Hosted (Docker)

Steps to reproduce

Add xinference embedding and rerank models but faiiled.

get xinference model extra parameter failed, url: http://172.21.207.143:9997/v1/models/bge-base-zh, error: HTTPConnectionPool(host='172.21.207.143', port=9997): Max retries exceeded with url: /v1/models/bge-base-zh (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f49d5323070>: Failed to establish a new connection: [Errno 111] Connection refused'))

图片

The IP and the models should be ok, as shown below:

root@LAPTOP-xxxxx:~# hostname -I
172.21.207.143
root@LAPTOP-xxxxx:~# xinference list
UID          Type       Name           Dimensions
-----------  ---------  -----------  ------------
bge-base-zh  embedding  bge-base-zh           768

UID                Type    Name
-----------------  ------  -----------------
bge-reranker-base  rerank  bge-reranker-base

✔️ Expected Behavior

It should work, the models should be able to connect to dify,

Actual Behavior

get xinference model extra parameter failed, url: http://172.21.207.143:9997/v1/models/bge-base-zh, error: HTTPConnectionPool(host='172.21.207.143', port=9997): Max retries exceeded with url: /v1/models/bge-base-zh (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f49d5323070>: Failed to establish a new connection: [Errno 111] Connection refused'))

Originally created by @0xchaihu on GitHub (Mar 27, 2024). ### Self Checks - [X] I have searched for existing issues [search for existing issues](https://github.com/langgenius/dify/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] Pleas do not modify this template :) and fill in all the required fields. ### Dify version 0.5.10 ### Cloud or Self Hosted Self Hosted (Docker) ### Steps to reproduce Add xinference embedding and rerank models but faiiled. > get xinference model extra parameter failed, url: http://172.21.207.143:9997/v1/models/bge-base-zh, error: HTTPConnectionPool(host='172.21.207.143', port=9997): Max retries exceeded with url: /v1/models/bge-base-zh (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f49d5323070>: Failed to establish a new connection: [Errno 111] Connection refused')) ![图片](https://github.com/langgenius/dify/assets/28855549/fc48a198-dc46-41bc-9ea0-0a2beceff122) The IP and the models should be ok, as shown below: ``` root@LAPTOP-xxxxx:~# hostname -I 172.21.207.143 ``` ``` root@LAPTOP-xxxxx:~# xinference list UID Type Name Dimensions ----------- --------- ----------- ------------ bge-base-zh embedding bge-base-zh 768 UID Type Name ----------------- ------ ----------------- bge-reranker-base rerank bge-reranker-base ``` ### ✔️ Expected Behavior It should work, the models should be able to connect to dify, ### ❌ Actual Behavior get xinference model extra parameter failed, url: http://172.21.207.143:9997/v1/models/bge-base-zh, error: HTTPConnectionPool(host='172.21.207.143', port=9997): Max retries exceeded with url: /v1/models/bge-base-zh (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f49d5323070>: Failed to establish a new connection: [Errno 111] Connection refused'))
yindo added the 🐞 bug label 2026-02-21 17:35:41 -05:00
yindo closed this issue 2026-02-21 17:35:41 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: langgenius/dify#1608