can't start new thread #8846

Closed
opened 2026-02-21 18:28:07 -05:00 by yindo · 10 comments
Owner

Originally created by @martin666888 on GitHub (Mar 2, 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 search for existing issues, 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

1.0.0

Cloud or Self Hosted

Cloud

Steps to reproduce

Image

When I was using the openrouter model and filling in the API, it prompted "can't start new thread".

how can I fixed it?

✔️ Expected Behavior

No response

Actual Behavior

No response

Originally created by @martin666888 on GitHub (Mar 2, 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 [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] [FOR CHINESE USERS] 请务必使用英文提交 Issue,否则会被关闭。谢谢!:) - [x] Please do not modify this template :) and fill in all the required fields. ### Dify version 1.0.0 ### Cloud or Self Hosted Cloud ### Steps to reproduce ![Image](https://github.com/user-attachments/assets/ff37590e-660d-46d1-9dd1-b85e2d5c3c64) When I was using the openrouter model and filling in the API, it prompted "can't start new thread". how can I fixed it? ### ✔️ Expected Behavior _No response_ ### ❌ Actual Behavior _No response_
yindo added the 🐞 bug🤔 cant-reproduce labels 2026-02-21 18:28:07 -05:00
yindo closed this issue 2026-02-21 18:28:07 -05:00
Author
Owner

@dosubot[bot] commented on GitHub (Mar 2, 2025):

To fix the "can't start new thread" error when using the openrouter model and filling in the API on Dify version 1.0.0 in a cloud environment, you should increase the system resources significantly beyond the documented requirements. Specifically, increase the host memory to 24GB and the system's threads-max limit to a much higher value, such as 752215. This approach has been confirmed to improve performance and resolve the error in similar scenarios [1].

To continue talking to Dosu, mention @dosu.


Help Dosu learn! Give it feedback: Great Response | Irrelevant Answer | Incorrect Sources | Too Verbose | Hallucination | Bug Report | Other

@dosubot[bot] commented on GitHub (Mar 2, 2025): <!-- Answer --> To fix the "can't start new thread" error when using the openrouter model and filling in the API on Dify version 1.0.0 in a cloud environment, you should increase the system resources significantly beyond the documented requirements. Specifically, increase the host memory to 24GB and the system's threads-max limit to a much higher value, such as 752215. This approach has been confirmed to improve performance and resolve the error in similar scenarios <sup>[[1]](https://github.com/langgenius/dify/issues/14626)</sup>. <!-- Dosu Comment Footer --> *To continue talking to [Dosu](https://dosu.dev), mention @dosu.* --- <sup>Help Dosu learn! Give it feedback: [Great Response](https://app.dosu.dev/response-feedback/afe38871-c6d4-4069-8210-7f82c347ed9e?feedback_type=great_response) | [Irrelevant Answer](https://app.dosu.dev/response-feedback/afe38871-c6d4-4069-8210-7f82c347ed9e?feedback_type=irrelevant_answer) | [Incorrect Sources](https://app.dosu.dev/response-feedback/afe38871-c6d4-4069-8210-7f82c347ed9e?feedback_type=incorrect_sources) | [Too Verbose](https://app.dosu.dev/response-feedback/afe38871-c6d4-4069-8210-7f82c347ed9e?feedback_type=too_verbose) | [Hallucination](https://app.dosu.dev/response-feedback/afe38871-c6d4-4069-8210-7f82c347ed9e?feedback_type=hallucination) | [Bug Report](https://app.dosu.dev/response-feedback/afe38871-c6d4-4069-8210-7f82c347ed9e?feedback_type=bug_report) | [Other](https://app.dosu.dev/response-feedback/afe38871-c6d4-4069-8210-7f82c347ed9e?feedback_type=other)</sup>
Author
Owner

@crazywoola commented on GitHub (Mar 2, 2025):

Duplicated https://github.com/langgenius/dify/issues/14659

@crazywoola commented on GitHub (Mar 2, 2025): Duplicated https://github.com/langgenius/dify/issues/14659
Author
Owner

@wyanghu commented on GitHub (Mar 2, 2025):

752215

I have modified the value of /proc/sys/kernel/threads-max according to your suggestion, but the problem still occurs.

@wyanghu commented on GitHub (Mar 2, 2025): > 752215 I have modified the value of /proc/sys/kernel/threads-max according to your suggestion, but the problem still occurs.
Author
Owner

@xiaoyuwww123 commented on GitHub (Mar 2, 2025):

same question

@xiaoyuwww123 commented on GitHub (Mar 2, 2025): same question
Author
Owner

@nsrivastava2 commented on GitHub (Mar 2, 2025):

Updated the value for threads-max to 752215 but still it is not working. I am embedding the data using openAI. My machine is: Ryzen9 with 64 Gb RAM, 16 Core CPU and 4090 GPU with 24GB RAM.

Image

@nsrivastava2 commented on GitHub (Mar 2, 2025): Updated the value for threads-max to 752215 but still it is not working. I am embedding the data using openAI. My machine is: Ryzen9 with 64 Gb RAM, 16 Core CPU and 4090 GPU with 24GB RAM. ![Image](https://github.com/user-attachments/assets/7514d66b-e507-4657-9787-3be5432e1106)
Author
Owner

@zhiping-biubiu commented on GitHub (Mar 3, 2025):

same question, so many issues after upgrade to 1.0

@zhiping-biubiu commented on GitHub (Mar 3, 2025): same question, so many issues after upgrade to 1.0
Author
Owner

@jbeetle commented on GitHub (Mar 4, 2025):

应该是1.0.0bug,这个问题经常出现,0.15没有出现过这个问题,1.0.0这个导致我基本无法正常业务,我已经退回0.15,0.15很稳定,同一个机子没有出现这个问题

@jbeetle commented on GitHub (Mar 4, 2025): 应该是1.0.0bug,这个问题经常出现,0.15没有出现过这个问题,1.0.0这个导致我基本无法正常业务,我已经退回0.15,0.15很稳定,同一个机子没有出现这个问题
Author
Owner

@meitianjinbu commented on GitHub (Mar 5, 2025):

应该是1.0.0bug,这个问题经常出现,0.15没有出现过这个问题,1.0.0这个导致我基本无法正常业务,我已经退回0.15,0.15很稳定,同一个机子没有出现这个问题

@jbeetle 你怎么回退的哈?数据库这块的数据。

@meitianjinbu commented on GitHub (Mar 5, 2025): > 应该是1.0.0bug,这个问题经常出现,0.15没有出现过这个问题,1.0.0这个导致我基本无法正常业务,我已经退回0.15,0.15很稳定,同一个机子没有出现这个问题 @jbeetle 你怎么回退的哈?数据库这块的数据。
Author
Owner

@andyuan1000 commented on GitHub (Mar 10, 2025):

@dosubot 抓紧解决,比较急

@andyuan1000 commented on GitHub (Mar 10, 2025): @dosubot 抓紧解决,比较急
Author
Owner

@dosubot[bot] commented on GitHub (Mar 10, 2025):

To resolve the "can't start new thread" error in Dify version 1.0.0, especially on high-spec machines, you should update the plugin_daemon image version in your configuration. Change it from langgenius/dify-plugin-daemon:0.0.3-local to langgenius/dify-plugin-daemon:942d694206a1972ae0addd2286a021b62390a8b6-local. This update is the official fix provided by the maintainers and should address the threading issue without needing further system resource modifications [1][2].

To continue talking to Dosu, mention @dosu.


Help Dosu learn! Give it feedback: Great Response | Irrelevant Answer | Incorrect Sources | Too Verbose | Hallucination | Bug Report | Other

@dosubot[bot] commented on GitHub (Mar 10, 2025): <!-- Answer --> To resolve the "can't start new thread" error in Dify version 1.0.0, especially on high-spec machines, you should update the `plugin_daemon` image version in your configuration. Change it from `langgenius/dify-plugin-daemon:0.0.3-local` to `langgenius/dify-plugin-daemon:942d694206a1972ae0addd2286a021b62390a8b6-local`. This update is the official fix provided by the maintainers and should address the threading issue without needing further system resource modifications <sup>[[1]](https://github.com/langgenius/dify/issues/14659)</sup><sup>[[2]](https://github.com/langgenius/dify/issues/14662)</sup>. <!-- Dosu Comment Footer --> *To continue talking to [Dosu](https://dosu.dev), mention @dosu.* --- <sup>Help Dosu learn! Give it feedback: [Great Response](https://app.dosu.dev/response-feedback/28fcb39e-f533-4d5d-937c-e9afe97ca6ce?feedback_type=great_response) | [Irrelevant Answer](https://app.dosu.dev/response-feedback/28fcb39e-f533-4d5d-937c-e9afe97ca6ce?feedback_type=irrelevant_answer) | [Incorrect Sources](https://app.dosu.dev/response-feedback/28fcb39e-f533-4d5d-937c-e9afe97ca6ce?feedback_type=incorrect_sources) | [Too Verbose](https://app.dosu.dev/response-feedback/28fcb39e-f533-4d5d-937c-e9afe97ca6ce?feedback_type=too_verbose) | [Hallucination](https://app.dosu.dev/response-feedback/28fcb39e-f533-4d5d-937c-e9afe97ca6ce?feedback_type=hallucination) | [Bug Report](https://app.dosu.dev/response-feedback/28fcb39e-f533-4d5d-937c-e9afe97ca6ce?feedback_type=bug_report) | [Other](https://app.dosu.dev/response-feedback/28fcb39e-f533-4d5d-937c-e9afe97ca6ce?feedback_type=other)</sup>
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: langgenius/dify#8846