Replies: 1 comment
-
|
@sharpdima — This is a well-known pain point in Dify's multi-layered timeout architecture. The critical insight is that setting Most likely culprits for a consistent 60s delay:
Recommended debugging steps:
To answer your specific questions:
This matches what was discussed in your earlier thread as well [5]. To reply, just mention @dosu. Share context across your team and agents. Try Dosu. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Self Checks
Content
Hi Dify team, I am struggling with a persistent ~60s delay in the LLM node of my Chatflow. The delay occurs even when bypassing the SSRF proxy and using a simple query without any Context/RAG.
Technical Setup:
Self-hosted Dify (Docker Compose) on Ubuntu.
OpenAI-compatible API provider (fast, ~500ms response time).
Issue: Even with a simple "Hello" prompt, the LLM node hangs for ~60s before generating text.
Troubleshooting performed:
Host/Container reachability: curl tests for the LLM API from the host and from inside the api and worker containers return successful responses in <600ms.
SSRF Proxy: I have set SSRF_PROXY_HTTP_URL and SSRF_PROXY_HTTPS_URL to empty in .env to bypass the proxy entirely. The delay persists.
Internal Logic: The delay happens even when the Knowledge Retrieval node is disconnected from the LLM node.
Embedding Model: I am using an embedding model, but the delay occurs even when performing direct LLM node execution.
My Observations:
The 60s hang is consistent and exactly matches the default network timeout behavior often seen in Python/async environments when resolving IPv6 routes or hitting aggressive internal timeouts.
Questions:
Is there an internal, hard-coded timeout or an asynchronous "health check" logic for LLM API calls in the api/worker code that is not affected by SSRF_PROXY settings?
Why would the LLM node hang when the underlying API is reachable and fast from within the container?
Could this be related to the plugin_daemon or the specific way Dify handles streaming requests for 3rd-party OpenAI-compatible providers?
Any insight into the internal execution path of the LLM node would be appreciated.
Beta Was this translation helpful? Give feedback.
All reactions