[Bug]: ragflow keeps looping output, gpu usage is 100 percent, and sometimes this happens.
Self Checks
- [x] I have searched for existing issues search for existing issues, including closed ones.
- [x] I confirm that I am using English to submit this report (Language Policy).
- [x] Non-english title submitions will be closed directly ( 非英文标题的提交将会被直接关闭 ) (Language Policy).
- [x] Please do not modify this template :) and fill in all the required fields.
RAGFlow workspace code commit ID
1874
RAGFlow image version
v1.72
Other environment information
windows
5090d
ollama
ragflow
Actual behavior
When I ask ragflow questions in one window in a row, I get stuck and ollama is 100% occupied
Here's my ollama_dubug llama_kv_cache_init: layer 5: n_embd_k_gqa = 1024, n_embd_v_gqa = 1024 llama_kv_cache_init: layer 6: n_embd_k_gqa = 1024, n_embd_v_gqa = 1024 llama_kv_cache_init: layer 7: n_embd_k_gqa = 1024, n_embd_v_gqa = 1024 llama_kv_cache_init: layer 8: n_embd_k_gqa = 1024, n_embd_v_gqa = 1024 llama_kv_cache_init: layer 9: n_embd_k_gqa = 1024, n_embd_v_gqa = 1024 llama_kv_cache_init: layer 10: n_embd_k_gqa = 1024, n_embd_v_gqa = 1024 llama_kv_cache_init: layer 11: n_embd_k_gqa = 1024, n_embd_v_gqa = 1024 llama_kv_cache_init: layer 12: n_embd_k_gqa = 1024, n_embd_v_gqa = 1024 llama_kv_cache_init: layer 13: n_embd_k_gqa = 1024, n_embd_v_gqa = 1024 llama_kv_cache_init: layer 14: n_embd_k_gqa = 1024, n_embd_v_gqa = 1024 llama_kv_cache_init: layer 15: n_embd_k_gqa = 1024, n_embd_v_gqa = 1024 llama_kv_cache_init: layer 16: n_embd_k_gqa = 1024, n_embd_v_gqa = 1024 llama_kv_cache_init: layer 17: n_embd_k_gqa = 1024, n_embd_v_gqa = 1024 llama_kv_cache_init: layer 18: n_embd_k_gqa = 1024, n_embd_v_gqa = 1024 llama_kv_cache_init: layer 19: n_embd_k_gqa = 1024, n_embd_v_gqa = 1024 llama_kv_cache_init: layer 20: n_embd_k_gqa = 1024, n_embd_v_gqa = 1024 llama_kv_cache_init: layer 21: n_embd_k_gqa = 1024, n_embd_v_gqa = 1024 llama_kv_cache_init: layer 22: n_embd_k_gqa = 1024, n_embd_v_gqa = 1024 llama_kv_cache_init: layer 23: n_embd_k_gqa = 1024, n_embd_v_gqa = 1024 llama_kv_cache_init: layer 24: n_embd_k_gqa = 1024, n_embd_v_gqa = 1024 llama_kv_cache_init: layer 25: n_embd_k_gqa = 1024, n_embd_v_gqa = 1024 llama_kv_cache_init: layer 26: n_embd_k_gqa = 1024, n_embd_v_gqa = 1024 llama_kv_cache_init: layer 27: n_embd_k_gqa = 1024, n_embd_v_gqa = 1024 llama_kv_cache_init: layer 28: n_embd_k_gqa = 1024, n_embd_v_gqa = 1024 llama_kv_cache_init: layer 29: n_embd_k_gqa = 1024, n_embd_v_gqa = 1024 llama_kv_cache_init: layer 30: n_embd_k_gqa = 1024, n_embd_v_gqa = 1024 llama_kv_cache_init: layer 31: n_embd_k_gqa = 1024, n_embd_v_gqa = 1024 llama_kv_cache_init: layer 32: n_embd_k_gqa = 1024, n_embd_v_gqa = 1024 llama_kv_cache_init: layer 33: n_embd_k_gqa = 1024, n_embd_v_gqa = 1024 llama_kv_cache_init: layer 34: n_embd_k_gqa = 1024, n_embd_v_gqa = 1024 llama_kv_cache_init: layer 35: n_embd_k_gqa = 1024, n_embd_v_gqa = 1024 llama_kv_cache_init: layer 36: n_embd_k_gqa = 1024, n_embd_v_gqa = 1024 llama_kv_cache_init: layer 37: n_embd_k_gqa = 1024, n_embd_v_gqa = 1024 llama_kv_cache_init: layer 38: n_embd_k_gqa = 1024, n_embd_v_gqa = 1024 llama_kv_cache_init: layer 39: n_embd_k_gqa = 1024, n_embd_v_gqa = 1024 llama_kv_cache_init: layer 40: n_embd_k_gqa = 1024, n_embd_v_gqa = 1024 llama_kv_cache_init: layer 41: n_embd_k_gqa = 1024, n_embd_v_gqa = 1024 llama_kv_cache_init: layer 42: n_embd_k_gqa = 1024, n_embd_v_gqa = 1024 llama_kv_cache_init: layer 43: n_embd_k_gqa = 1024, n_embd_v_gqa = 1024 llama_kv_cache_init: layer 44: n_embd_k_gqa = 1024, n_embd_v_gqa = 1024 llama_kv_cache_init: layer 45: n_embd_k_gqa = 1024, n_embd_v_gqa = 1024 llama_kv_cache_init: layer 46: n_embd_k_gqa = 1024, n_embd_v_gqa = 1024 llama_kv_cache_init: layer 47: n_embd_k_gqa = 1024, n_embd_v_gqa = 1024
Expected behavior
No response
Steps to reproduce
Asking ragflow questions under a web page triggers this bug.
The bug keeps consuming gpu resources and then shows up in search.
Other frameworks, such as anythingllm, do not.
I had to restart ollama to solve the gpu usage problem
Additional information
No response
[16/Mar/2025 09:38:19] "GET /v1/document/thumbnails?doc_ids=cc1b1b60ffd811efa1210242ac120006&doc_ids=cc2adc08ffd811efa1210242ac120006&doc_ids=cc22ce0affd811efa1210242ac120006 HTTP/1.1" 200 - 2025-03-16 09:38:19,553 INFO 32 172.18.0.6 - - [16/Mar/2025 09:38:19] "GET /v1/document/thumbnails?doc_ids=cc2adc08ffd811efa1210242ac120006&doc_ids=cc1b1b60ffd811efa1210242ac120006 HTTP/1.1" 200 - 2025-03-16 09:38:19,554 INFO 32 172.18.0.6 - - [16/Mar/2025 09:38:19] "GET /v1/document/thumbnails?doc_ids=cc22ce0affd811efa1210242ac120006 HTTP/1.1" 200 - 2025-03-16 09:38:30,797 INFO 45 task_consumer_0 reported heartbeat: {"name": "task_consumer_0", "now": "2025-03-16T09:38:30.797+08:00", "boot_at": "2025-03-16T09:23:35.585+08:00", "pending": 0, "lag": 0, "done": 0, "failed": 0, "current": {}} 2025-03-16 09:39:02,709 INFO 45 task_consumer_0 reported heartbeat: {"name": "task_consumer_0", "now": "2025-03-16T09:39:02.709+08:00", "boot_at": "2025-03-16T09:23:35.585+08:00", "pending": 0, "lag": 0, "done": 0, "failed": 0, "current": {}} 2025-03-16 09:39:34,734 INFO 45 task_consumer_0 reported heartbeat: {"name": "task_consumer_0", "now": "2025-03-16T09:39:34.733+08:00", "boot_at": "2025-03-16T09:23:35.585+08:00", "pending": 0, "lag": 0, "done": 0, "failed": 0, "current": {}}
I don't know. Why is he on a loop
2025-03-16 09:43:50,792 INFO 45 task_consumer_0 reported heartbeat: {"name": "task_consumer_0", "now": "2025-03-16T09:43:50.791+08:00", "boot_at": "2025-03-16T09:23:35.585+08:00", "pending": 0, "lag": 0, "done": 0, "failed": 0, "current": {}} 2025-03-16 09:44:22,778 INFO 45 task_consumer_0 reported heartbeat: {"name": "task_consumer_0", "now": "2025-03-16T09:44:22.777+08:00", "boot_at": "2025-03-16T09:23:35.585+08:00", "pending": 0, "lag": 0, "done": 0, "failed": 0, "current": {}} 2025-03-16 09:44:54,800 INFO 45 task_consumer_0 reported heartbeat: {"name": "task_consumer_0", "now": "2025-03-16T09:44:54.799+08:00", "boot_at": "2025-03-16T09:23:35.585+08:00", "pending": 0, "lag": 0, "done": 0, "failed": 0, "current": {}} 2025-03-16 09:45:26,817 INFO 45 task_consumer_0 reported heartbeat: {"name": "task_consumer_0", "now": "2025-03-16T09:45:26.817+08:00", "boot_at": "2025-03-16T09:23:35.585+08:00", "pending": 0, "lag": 0, "done": 0, "failed": 0, "current": {}} 2025-03-16 09:45:58,811 INFO 45 task_consumer_0 reported heartbeat: {"name": "task_consumer_0", "now": "2025-03-16T09:45:58.811+08:00", "boot_at": "2025-03-16T09:23:35.585+08:00", "pending": 0, "lag": 0, "done": 0, "failed": 0, "current": {}} 2025-03-16 09:46:30,788 INFO 45 task_consumer_0 reported heartbeat: {"name": "task_consumer_0", "now": "2025-03-16T09:46:30.787+08:00", "boot_at": "2025-03-16T09:23:35.585+08:00", "pending": 0, "lag": 0, "done": 0, "failed": 0, "current": {}} 2025-03-16 09:47:02,816 INFO 45 task_consumer_0 reported heartbeat: {"name": "task_consumer_0", "now": "2025-03-16T09:47:02.815+08:00", "boot_at": "2025-03-16T09:23:35.585+08:00", "pending": 0, "lag": 0, "done": 0, "failed": 0, "current": {}} 2025-03-16 09:47:33,687 INFO 45 task_consumer_0 reported heartbeat: {"name": "task_consumer_0", "now": "2025-03-16T09:47:33.686+08:00", "boot_at": "2025-03-16T09:23:35.585+08:00", "pending": 0, "lag": 0, "done": 0, "failed": 0, "current": {}}
2025-03-16 09:38:19,534 INFO 32 172.18.0.6 - - [16/Mar/2025 09:38:19] "GET /v1/document/thumbnails?doc_ids=cc1389aeffd811efa1210242ac120006 HTTP/1.1" 200 - 2025-03-16 09:38:19,535 INFO 32 172.18.0.6 - - [16/Mar/2025 09:38:19] "GET /v1/document/thumbnails?doc_ids=cc1389aeffd811efa1210242ac120006&doc_ids=cbeeda00ffd811efa1210242ac120006 HTTP/1.1" 200 - 2025-03-16 09:38:19,536 INFO 32 172.18.0.6 - - [16/Mar/2025 09:38:19] "GET /v1/document/thumbnails?doc_ids=cc3ced1cffd811efa1210242ac120006 HTTP/1.1" 200 - 2025-03-16 09:38:19,536 INFO 32 172.18.0.6 - - [16/Mar/2025 09:38:19] "GET /v1/document/thumbnails?doc_ids=cbeeda00ffd811efa1210242ac120006&doc_ids=cbfe7190ffd811efa1210242ac120006 HTTP/1.1" 200 - 2025-03-16 09:38:19,537 INFO 32 172.18.0.6 - - [16/Mar/2025 09:38:19] "GET /v1/document/thumbnails?doc_ids=cc3ced1cffd811efa1210242ac120006&doc_ids=cbf7b49affd811efa1210242ac120006&doc_ids=cc327d82ffd811efa1210242ac120006 HTTP/1.1" 200 - 2025-03-16 09:38:19,552 INFO 32 172.18.0.6 - - [16/Mar/2025 09:38:19] "GET /v1/document/thumbnails?doc_ids=cc327d82ffd811efa1210242ac120006 HTTP/1.1" 200 - 2025-03-16 09:38:19,552 INFO 32 172.18.0.6 - - [16/Mar/2025 09:38:19] "GET /v1/document/thumbnails?doc_ids=cbf7b49affd811efa1210242ac120006 HTTP/1.1" 200 - 2025-03-16 09:38:19,553 INFO 32 172.18.0.6 - - [16/Mar/2025 09:38:19] "GET /v1/document/thumbnails?doc_ids=cc1b1b60ffd811efa1210242ac120006&doc_ids=cc2adc08ffd811efa1210242ac120006&doc_ids=cc22ce0affd811efa1210242ac120006 HTTP/1.1" 200 - 2025-03-16 09:38:19,553 INFO 32 172.18.0.6 - - [16/Mar/2025 09:38:19] "GET /v1/document/thumbnails?doc_ids=cc2adc08ffd811efa1210242ac120006&doc_ids=cc1b1b60ffd811efa1210242ac120006 HTTP/1.1" 200 - 2025-03-16 09:38:19,554 INFO 32 172.18.0.6 - - [16/Mar/2025 09:38:19] "GET /v1/document/thumbnails?doc_ids=cc22ce0affd811efa1210242ac120006 HTTP/1.1" 200 - 2025-03-16 09:38:30,797 INFO 45 task_cons
Citation requirements: Inserts CITATION in format ' ' where i,j are the ID of the content you are citing and encapsulated with '##' and '$$'. Inserts the CITATION symbols at the end of a sentence, AND NO MORE than 4 citations. DO NOT insert CITATION in the answer if the content is not from retrieved chunks. --- Example START --- : Here is the knowledge base:
Document: Elon Musk Breaks Silence on Crypto, Warns Against Dogecoin ... URL: https://blockworks.co/news/elon-musk-crypto-dogecoin ID: 0 The Tesla co-founder advised against going all-in on dogecoin, but Elon Musk said it’s still his favorite crypto...
Document: Elon Musk's Dogecoin tweet sparks social media frenzy ID: 1 Musk said he is 'willing to serve' D.O.G.E. – shorthand for Dogecoin.
Document: Causal effect of Elon Musk tweets on Dogecoin price ID: 2 If you think of Dogecoin — the cryptocurrency based on a meme — you can’t help but also think of Elon Musk...
Document: Elon Musk's Tweet Ignites Dogocoin's Future In Public Services ID: 3 The market is heating up after Elon Musk's announcement about Dogocoin. Is this a new era for crypto?...
The above is the knowledge base. : What's the Elon's view on dogecoin?
: Musk has consistently expressed his fondness for Dogecoin, often citing its humor and the inclusion of dogs in its branding. He has referred to it as his favorite cryptocurrency . Recently, Musk has hinted at potential future roles for Dogocoin. His tweets have sparked speculation about Dogocoin's potential integration into public services . Overall, while Musk enjoys Dogecoin and often promotes it, he also warns against over-investing in it, reflecting both his personal amusement and caution regarding its speculative nature.
--- Example END ---
Citation requirements: Inserts CITATION in format ' ' where i,j are the ID of the content you are citing and encapsulated with '##' and '$$'. Inserts the CITATION symbols at the end of a sentence, AND NO MORE than 4 citations. DO NOT insert CITATION in the answer if the content is not from retrieved chunks. --- Example START --- : Here is the knowledge base:
Document: Elon Musk Breaks Silence on Crypto, Warns Against Dogecoin ... URL: https://blockworks.co/news/elon-musk-crypto-dogecoin ID: 0 The Tesla co-founder advised against going all-in on dogecoin, but Elon Musk said it’s still his favorite crypto...
Document: Elon Musk's Dogecoin tweet sparks social media frenzy ID: 1 Musk said he is 'willing to serve' D.O.G.E. – shorthand for Dogecoin.
Document: Causal effect of Elon Musk tweets on Dogecoin price ID: 2 If you think of Dogecoin — the cryptocurrency based on a meme — you can’t help but also think of Elon Musk...
Document: Elon Musk's Tweet Ignites Dogocoin's Future In Public Services ID: 3 The market is heating up after Elon Musk's announcement about Dogocoin. Is this a new era for crypto?...
The above is the knowledge base. : What's the Elon's view on dogecoin?
: Musk has consistently expressed his fondness for Dogecoin, often citing its humor and the inclusion of dogs in its branding. He has referred to it as his favorite cryptocurrency . Recently, Musk has hinted at potential future roles for Dogocoin. His tweets have sparked speculation about Dogocoin's potential integration into public services . Overall, while Musk enjoys Dogecoin and often promotes it, he also warns against over-investing in it, reflecting both his personal amusement and caution regarding its speculative nature.
--- Example END ---
Citation requirements: Inserts CITATION in format ' ' where i,j are the ID of the content you are citing and encapsulated with '##' and '$$'. Inserts the CITATION symbols at the end of a sentence, AND NO MORE than 4 citations. DO NOT insert CITATION in the answer if the content is not from retrieved chunks. --- Example START --- : Here is the knowledge base:
Document: Elon Musk Breaks Silence on Crypto, Warns Against Dogecoin ... URL: https://blockworks.co/news/elon-musk-crypto-dogecoin ID: 0
ERROR: peer closed connection without sending complete message body (incomplete chunked read)
This is a typical defect of LLM. What about increasing these parameters?