Nginx 504 Gateway timeout for operations running more than 30 sec #19019

Closed
opened 2026-02-21 19:54:42 -05:00 by yindo · 0 comments
Owner

Originally created by @ndrewpj on GitHub (Oct 10, 2025).

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.9.1

Cloud or Self Hosted

Self Hosted (Docker)

Steps to reproduce

  1. Query a Knowledge base app that uses LLM and using v1/chat-messages endpoint via HTTP to request information
  2. If your LLM and underlying infrastructure cannot answer fast ( < 30 sec) the conenction gives Nginx 504 Time out message and the related automation workflows end in Error

I searched for simillar issues, tried modifying nginx conf files - did not make sense. Please fix this or give a way to increase the time out value.

Image

✔️ Expected Behavior

Having a way to increase time out to a custom value.

Actual Behavior

Failure after 30 seconds of Dify app returning result via API.

Originally created by @ndrewpj on GitHub (Oct 10, 2025). ### Self Checks - [x] I have read the [Contributing Guide](https://github.com/langgenius/dify/blob/main/CONTRIBUTING.md) and [Language Policy](https://github.com/langgenius/dify/issues/1542). - [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 [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, 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 1.9.1 ### Cloud or Self Hosted Self Hosted (Docker) ### Steps to reproduce 1) Query a Knowledge base app that uses LLM and using v1/chat-messages endpoint via HTTP to request information 2) If your LLM and underlying infrastructure cannot answer fast ( < 30 sec) the conenction gives Nginx 504 Time out message and the related automation workflows end in Error I searched for simillar issues, tried modifying nginx conf files - did not make sense. Please fix this or give a way to increase the time out value. <img width="561" height="396" alt="Image" src="https://github.com/user-attachments/assets/cf0021a1-46ad-465a-a970-68f225c3e79f" /> ### ✔️ Expected Behavior Having a way to increase time out to a custom value. ### ❌ Actual Behavior Failure after 30 seconds of Dify app returning result via API.
yindo closed this issue 2026-02-21 19:54:42 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: langgenius/dify#19019