dify - 💡(How to fix) Fix Qdrant Connection refused after Dify upgrade

Official PRs (…)
ON THIS PAGE

Recommended Tools

×6

Utilities matched from this issue’s tags and category — try them while you read without losing context.

GitHub issue graph ai analysis

Paste a GitHub issue URL. We fetch that issue, discover linked issues from bodies/comments/timeline, collect linked pull requests, and produce a structured English report.

The report is written in English Markdown for sharing and archival.

Helpful · Quick feedback

Loading…

Error Message

I have upgraded Dify from 1.13.2 to 1.14.1. After the upgrading, qdrant vector database connecting error. These are logs: [2026-05-18 02:36:50 +0000] [1] [ERROR] Control server error: [Errno 13] Permission denied: '/home/dify' 2026-05-18 02:37:29.135 ERROR [ThreadPoolExecutor-1_0] [retrieval_service.py:390] - [Errno 111] Connection refused Traceback (most recent call last): The above exception was the direct cause of the following exception: Traceback (most recent call last): During handling of the above exception, another exception occurred: Traceback (most recent call last): Qdrant connect error

Fix Action

Fix / Workaround

gRPC patched with gevent.

psycopg2 patched with gevent.

2026-05-18 02:36:57.769 INFO [Dummy-1] [base.py:91] 577ccfa023905c8e86ec7991c18458d2 - dispatch args: 00a17512-48f5-425e-b521-f0f6baee149b - False - sandbox

RAW_BUFFERClick to expand / collapse

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

I have upgraded Dify from 1.13.2 to 1.14.1. After the upgrading, qdrant vector database connecting error. These are logs:

/bin/bash: warning: setlocale: LC_ALL: cannot change locale (en_US.UTF-8)

/entrypoint.sh: line 8: warning: setlocale: LC_ALL: cannot change locale (en_US.UTF-8)

Running migrations

Preparing database migration...

Database migration skipped

[2026-05-18 02:36:50 +0000] [1] [INFO] Starting gunicorn 26.0.0

[2026-05-18 02:36:50 +0000] [1] [INFO] Listening at: http://0.0.0.0:5001 (1)

[2026-05-18 02:36:50 +0000] [1] [INFO] Using worker: gevent

[2026-05-18 02:36:50 +0000] [190] [INFO] Booting worker with pid: 190

[2026-05-18 02:36:50 +0000] [1] [ERROR] Control server error: [Errno 13] Permission denied: '/home/dify'

gRPC patched with gevent.

psycopg2 patched with gevent.

2026-05-18 02:36:57.769 INFO [Dummy-1] [base.py:91] 577ccfa023905c8e86ec7991c18458d2 - dispatch args: 00a17512-48f5-425e-b521-f0f6baee149b - False - sandbox

2026-05-18 02:36:57.771 INFO [Dummy-1] [batch_indexing_base.py:43] 577ccfa023905c8e86ec7991c18458d2 - tenant 00a17512-48f5-425e-b521-f0f6baee149b send documents ['a90a4412-a94d-4f59-bb14-09d47417d31d'] to direct queue

2026-05-18 02:37:28.730 INFO [Dummy-3] [_client.py:1025] 81622f7117a151fa8bccf73b21054ba1 - HTTP Request: GET http://plugin_daemon:5002/plugin/10b8176d-57f1-4a53-9a87-425154a0bdd9/management/models?page=1&page_size=256 "HTTP/1.1 200 OK"

2026-05-18 02:37:28.737 INFO [Dummy-4] [_client.py:1025] cd160580d70f574ea1271d2167249ad2 - HTTP Request: GET http://plugin_daemon:5002/plugin/10b8176d-57f1-4a53-9a87-425154a0bdd9/management/models?page=1&page_size=256 "HTTP/1.1 200 OK"

2026-05-18 02:37:28.743 INFO [Dummy-5] [_client.py:1025] cdc833c673fc5b46a8b1a6c490997e99 - HTTP Request: GET http://plugin_daemon:5002/plugin/10b8176d-57f1-4a53-9a87-425154a0bdd9/management/models?page=1&page_size=256 "HTTP/1.1 200 OK"

2026-05-18 02:37:28.776 INFO [Dummy-6] [_client.py:1025] 80f726f9ae3c51759d9223da069c35cb - HTTP Request: GET http://plugin_daemon:5002/plugin/10b8176d-57f1-4a53-9a87-425154a0bdd9/management/install/tasks?page=1&page_size=100 "HTTP/1.1 200 OK"

2026-05-18 02:37:28.777 INFO [Dummy-7] [_client.py:1025] f7dfd1b7935e5f30ab5af634fcac47c0 - HTTP Request: GET http://plugin_daemon:5002/plugin/10b8176d-57f1-4a53-9a87-425154a0bdd9/management/models?page=1&page_size=256 "HTTP/1.1 200 OK"

2026-05-18 02:37:28.897 INFO [Dummy-8] [_client.py:1025] 00f82611f7ef5d4287217ea961ec8bbc - HTTP Request: GET http://plugin_daemon:5002/plugin/10b8176d-57f1-4a53-9a87-425154a0bdd9/management/models?page=1&page_size=256 "HTTP/1.1 200 OK"

2026-05-18 02:37:28.931 INFO [Dummy-9] [_client.py:1025] 4604ba38e6d254fe816830712de2c919 - HTTP Request: GET http://plugin_daemon:5002/plugin/10b8176d-57f1-4a53-9a87-425154a0bdd9/management/models?page=1&page_size=256 "HTTP/1.1 200 OK"

2026-05-18 02:37:28.932 INFO [ThreadPoolExecutor-1_0] [_client.py:1025] - HTTP Request: GET http://plugin_daemon:5002/plugin/10b8176d-57f1-4a53-9a87-425154a0bdd9/management/models?page=1&page_size=256 "HTTP/1.1 200 OK"

2026-05-18 02:37:29.020 INFO [Dummy-10] [_client.py:1025] 200dccdb9bcc5623b912653b71a3ed5c - HTTP Request: GET https://updates.dify.ai?current_version=1.14.1 "HTTP/1.1 200 OK"

2026-05-18 02:37:29.135 ERROR [ThreadPoolExecutor-1_0] [retrieval_service.py:390] - [Errno 111] Connection refused

Traceback (most recent call last):

File "/app/api/.venv/lib/python3.12/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions



d

File "/app/api/.venv/lib/python3.12/site-packages/httpx/_transports/default.py", line 250, in handle_request

resp = self._pool.handle_request(req)

       ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

File "/app/api/.venv/lib/python3.12/site-packages/httpcore/_sync/connection_pool.py", line 256, in handle_request

raise exc from None

File "/app/api/.venv/lib/python3.12/site-packages/httpcore/_sync/connection_pool.py", line 236, in handle_request

response = connection.handle_request(

           ^^^^^^^^^^^^^^^^^^^^^^^^^^

File "/app/api/.venv/lib/python3.12/site-packages/httpcore/_sync/connection.py", line 101, in handle_request

raise exc

File "/app/api/.venv/lib/python3.12/site-packages/httpcore/_sync/connection.py", line 78, in handle_request

stream = self._connect(request)

         ^^^^^^^^^^^^^^^^^^^^^^

File "/app/api/.venv/lib/python3.12/site-packages/httpcore/_sync/connection.py", line 124, in _connect

stream = self._network_backend.connect_tcp(**kwargs)

         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

File "/app/api/.venv/lib/python3.12/site-packages/httpcore/_backends/sync.py", line 207, in connect_tcp

with map_exceptions(exc_map):

     ^^^^^^^^^^^^^^^^^^^^^^^

File "/usr/local/lib/python3.12/contextlib.py", line 158, in exit

self.gen.throw(value)

File "/app/api/.venv/lib/python3.12/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions

raise to_exc(exc) from exc

httpcore.ConnectError: [Errno 111] Connection refused

The above exception was the direct cause of the following exception:

Traceback (most recent call last):

File "/app/api/.venv/lib/python3.12/site-packages/qdrant_client/http/api_client.py", line 103, in send_inner

response = self._client.send(request)

           ^^^^^^^^^^^^^^^^^^^^^^^^^^

File "/app/api/.venv/lib/python3.12/site-packages/httpx/_client.py", line 914, in send

response = self._send_handling_auth(

           ^^^^^^^^^^^^^^^^^^^^^^^^^

File "/app/api/.venv/lib/python3.12/site-packages/httpx/_client.py", line 942, in _send_handling_auth

response = self._send_handling_redirects(

           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

File "/app/api/.venv/lib/python3.12/site-packages/httpx/_client.py", line 979, in _send_handling_redirects

response = self._send_single_request(request)

           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

File "/app/api/.venv/lib/python3.12/site-packages/httpx/_client.py", line 1014, in _send_single_request

response = transport.handle_request(request)

           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

File "/app/api/.venv/lib/python3.12/site-packages/httpx/_transports/default.py", line 249, in handle_request

with map_httpcore_exceptions():

     ^^^^^^^^^^^^^^^^^^^^^^^^^

File "/usr/local/lib/python3.12/contextlib.py", line 158, in exit

self.gen.throw(value)

File "/app/api/.venv/lib/python3.12/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions

raise mapped_exc(message) from exc

httpx.ConnectError: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):

File "/app/api/core/rag/datasource/retrieval_service.py", line 324, in embedding_search

vector.search_by_vector(

File "/app/api/core/rag/datasource/vdb/vector_factory.py", line 241, in search_by_vector

return self._vector_processor.search_by_vector(query_vector, **kwargs)

       ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

File "/app/api/providers/vdb/vdb-qdrant/src/dify_vdb_qdrant/qdrant_vector.py", line 370, in search_by_vector

results = self._client.search(

          ^^^^^^^^^^^^^^^^^^^^

File "/app/api/.venv/lib/python3.12/site-packages/qdrant_client/qdrant_client.py", line 353, in search

return self._client.search(

       ^^^^^^^^^^^^^^^^^^^^

File "/app/api/.venv/lib/python3.12/site-packages/qdrant_client/qdrant_remote.py", line 518, in search

search_result = self.http.points_api.search_points(

                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

File "/app/api/.venv/lib/python3.12/site-packages/qdrant_client/http/api/points_api.py", line 1388, in search_points

return self._build_for_search_points(

       ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

File "/app/api/.venv/lib/python3.12/site-packages/qdrant_client/http/api/points_api.py", line 636, in _build_for_search_points

return self.api_client.request(

       ^^^^^^^^^^^^^^^^^^^^^^^^

File "/app/api/.venv/lib/python3.12/site-packages/qdrant_client/http/api_client.py", line 76, in request

return self.send(request, type_)

       ^^^^^^^^^^^^^^^^^^^^^^^^^

File "/app/api/.venv/lib/python3.12/site-packages/qdrant_client/http/api_client.py", line 93, in send

response = self.middleware(request, self.send_inner)

           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

File "/app/api/.venv/lib/python3.12/site-packages/qdrant_client/http/api_client.py", line 202, in call

return call_next(request)

       ^^^^^^^^^^^^^^^^^^

File "/app/api/.venv/lib/python3.12/site-packages/qdrant_client/http/api_client.py", line 105, in send_inner

raise ResponseHandlingException(e)

qdrant_client.http.exceptions.ResponseHandlingException: [Errno 111] Connection refused

✔️ Expected Behavior

Qdrant connected.

❌ Actual Behavior

Qdrant connect error

Vote matrix · Quick signals

Works
Did the solution work? Tap to confirm.
Easy Fix
Was it a quick fix?
Time Saver
Did it save you time?
Blocking
Was it severely blocking?
Common Issue
Are others likely hitting this too?
Flaky / Intermittent
Is it intermittent?
Verified / Reproducible
Can you reproduce it reliably?
Loading…

Still need to ship something?

×6

Another batch ranked right after the header list — different links, same matching logic.

Back to top recommendations

TRENDING

dify - 💡(How to fix) Fix Qdrant Connection refused after Dify upgrade