I'm having this error "randomly" when using websearch
I say random because it doesn't happen all the time, like in my case, I was able to web search for a moment, and then, after a while, it stopped working
I then checked the logs from openwebui and I saw this : 2025-02-24T15:27:19.074874183Z ERROR [pymilvus.decorators] RPC error: [search], <MilvusException: (code=100, message=collection not found[database=default][collection=open_webui_user_memory_9b985095_55a3_45d7_afbc_8674526fe4d0])>, <Time:{'RPC start': '2025-02-24 16:27:19.070993', 'RPC error': '2025-02-24 16:27:19.074673'}> 2025-02-24T15:27:19.075022293Z ERROR [pymilvus.milvus_client.milvus_client] Failed to search collection: open_webui_user_memory_9b985095_55a3_45d7_afbc_8674526fe4d0 2025-02-24T15:27:19.075682004Z INFO: 192.168.6.2:0 - "POST /api/v1/memories/query HTTP/1.1" 500 Internal Server Error 2025-02-24T15:27:19.081910032Z ERROR: Exception in ASGI application
Then from milvus logs : [2025/02/24 15:19:38.459 +00:00] [WARN] [rootcoord/root_coord.go:1181] ["failed to describe collection"] [traceID=8d33e9771112897cd73b3311222f7d86] [collectionName=open_webui_user_memory_9b985095_55a3_45d7_afbc_8674526fe4d0] [dbName=default] [id=0] [ts=18446744073709551615] [allowUnavailable=false] [error="collection not found[database=default][collection=open_webui_user_memory_9b985095_55a3_45d7_afbc_8674526fe4d0]"] [2025/02/24 15:19:38.459 +00:00] [WARN] [proxy/rate_limit_interceptor.go:44] ["failed to get request info"] [error="collection not found[database=default][collection=open_webui_user_memory_9b985095_55a3_45d7_afbc_8674526fe4d0]"] [2025/02/24 15:19:38.460 +00:00] [WARN] [rootcoord/root_coord.go:1181] ["failed to describe collection"] [traceID=cc0866542359d75c4421be449e3996cb] [collectionName=open_webui_user_memory_9b985095_55a3_45d7_afbc_8674526fe4d0] [dbName=default] [id=0] [ts=18446744073709551615] [allowUnavailable=false] [error="collection not found[database=default][collection=open_webui_user_memory_9b985095_55a3_45d7_afbc_8674526fe4d0]"] [2025/02/24 15:19:38.461 +00:00] [WARN] [proxy/task_search.go:89] ["search task get collectionID failed, can't skip alloc timestamp"] [collectionName=open_webui_user_memory_9b985095_55a3_45d7_afbc_8674526fe4d0] [error="collection not found[database=default][collection=open_webui_user_memory_9b985095_55a3_45d7_afbc_8674526fe4d0]"] [2025/02/24 15:19:38.462 +00:00] [WARN] [rootcoord/root_coord.go:1181] ["failed to describe collection"] [traceID=8d33e9771112897cd73b3311222f7d86] [collectionName=open_webui_user_memory_9b985095_55a3_45d7_afbc_8674526fe4d0] [dbName=default] [id=0] [ts=18446744073709551615] [allowUnavailable=false] [error="collection not found[database=default][collection=open_webui_user_memory_9b985095_55a3_45d7_afbc_8674526fe4d0]"] [2025/02/24 15:19:38.462 +00:00] [WARN] [proxy/task_scheduler.go:461] ["Failed to pre-execute task: collection not found[database=default][collection=open_webui_user_memory_9b985095_55a3_45d7_afbc_8674526fe4d0]"] [traceID=8d33e9771112897cd73b3311222f7d86] [2025/02/24 15:19:38.462 +00:00] [WARN] [proxy/impl.go:3006] ["Search failed to WaitToFinish"] [traceID=8d33e9771112897cd73b3311222f7d86] [role=proxy] [db=default] [collection=open_webui_user_memory_9b985095_55a3_45d7_afbc_8674526fe4d0] [partitions="[]"] [dsl=] [len(PlaceholderGroup)=4108] [OutputFields="[data,metadata]"] [search_params="[{\"key\":\"topk\",\"value\":\"1\"},{\"key\":\"params\",\"value\":\"{}\"},{\"key\":\"round_decimal\",\"value\":\"-1\"},{\"key\":\"ignore_growing\",\"value\":\"False\"}]"] [guarantee_timestamp=1] [useDefaultConsistency=true] [nq=0] [error="collection not found[database=default][collection=open_webui_user_memory_9b985095_55a3_45d7_afbc_8674526fe4d0]"]
FInally, here's the result in Openwebui tchat :
'SyntaxError: Unexpected token '<', "<html>
<h"... is not valid JSON
'
My infrastructure is as follows :
Docker version 20.10.23, build 876964a
milvusdb/milvus:v2.4.5
minio/minio:latest
quay.io/coreos/etcd:v3.5.5
OpenWebUI v0.5.16
Ollama 0.5.11
Not sure yet this is 100% related to websearch, I still have to test documents RAG, I'll update here when I do
Originally created by @Farmouss on GitHub (Feb 24, 2025).
Original GitHub issue: https://github.com/open-webui/open-webui/issues/10691
I'm having this error "randomly" when using websearch
I say random because it doesn't happen all the time, like in my case, I was able to web search for a moment, and then, after a while, it stopped working
I then checked the logs from openwebui and I saw this :
`2025-02-24T15:27:19.074874183Z ERROR [pymilvus.decorators] RPC error: [search], <MilvusException: (code=100, message=collection not found[database=default][collection=open_webui_user_memory_9b985095_55a3_45d7_afbc_8674526fe4d0])>, <Time:{'RPC start': '2025-02-24 16:27:19.070993', 'RPC error': '2025-02-24 16:27:19.074673'}>
2025-02-24T15:27:19.075022293Z ERROR [pymilvus.milvus_client.milvus_client] Failed to search collection: open_webui_user_memory_9b985095_55a3_45d7_afbc_8674526fe4d0
2025-02-24T15:27:19.075682004Z INFO: 192.168.6.2:0 - "POST /api/v1/memories/query HTTP/1.1" 500 Internal Server Error
2025-02-24T15:27:19.081910032Z ERROR: Exception in ASGI application`
Then from milvus logs :
`[2025/02/24 15:19:38.459 +00:00] [WARN] [rootcoord/root_coord.go:1181] ["failed to describe collection"] [traceID=8d33e9771112897cd73b3311222f7d86] [collectionName=open_webui_user_memory_9b985095_55a3_45d7_afbc_8674526fe4d0] [dbName=default] [id=0] [ts=18446744073709551615] [allowUnavailable=false] [error="collection not found[database=default][collection=open_webui_user_memory_9b985095_55a3_45d7_afbc_8674526fe4d0]"]
[2025/02/24 15:19:38.459 +00:00] [WARN] [proxy/rate_limit_interceptor.go:44] ["failed to get request info"] [error="collection not found[database=default][collection=open_webui_user_memory_9b985095_55a3_45d7_afbc_8674526fe4d0]"]
[2025/02/24 15:19:38.460 +00:00] [WARN] [rootcoord/root_coord.go:1181] ["failed to describe collection"] [traceID=cc0866542359d75c4421be449e3996cb] [collectionName=open_webui_user_memory_9b985095_55a3_45d7_afbc_8674526fe4d0] [dbName=default] [id=0] [ts=18446744073709551615] [allowUnavailable=false] [error="collection not found[database=default][collection=open_webui_user_memory_9b985095_55a3_45d7_afbc_8674526fe4d0]"]
[2025/02/24 15:19:38.461 +00:00] [WARN] [proxy/task_search.go:89] ["search task get collectionID failed, can't skip alloc timestamp"] [collectionName=open_webui_user_memory_9b985095_55a3_45d7_afbc_8674526fe4d0] [error="collection not found[database=default][collection=open_webui_user_memory_9b985095_55a3_45d7_afbc_8674526fe4d0]"]
[2025/02/24 15:19:38.462 +00:00] [WARN] [rootcoord/root_coord.go:1181] ["failed to describe collection"] [traceID=8d33e9771112897cd73b3311222f7d86] [collectionName=open_webui_user_memory_9b985095_55a3_45d7_afbc_8674526fe4d0] [dbName=default] [id=0] [ts=18446744073709551615] [allowUnavailable=false] [error="collection not found[database=default][collection=open_webui_user_memory_9b985095_55a3_45d7_afbc_8674526fe4d0]"]
[2025/02/24 15:19:38.462 +00:00] [WARN] [proxy/task_scheduler.go:461] ["Failed to pre-execute task: collection not found[database=default][collection=open_webui_user_memory_9b985095_55a3_45d7_afbc_8674526fe4d0]"] [traceID=8d33e9771112897cd73b3311222f7d86]
[2025/02/24 15:19:38.462 +00:00] [WARN] [proxy/impl.go:3006] ["Search failed to WaitToFinish"] [traceID=8d33e9771112897cd73b3311222f7d86] [role=proxy] [db=default] [collection=open_webui_user_memory_9b985095_55a3_45d7_afbc_8674526fe4d0] [partitions="[]"] [dsl=] [len(PlaceholderGroup)=4108] [OutputFields="[data,metadata]"] [search_params="[{\"key\":\"topk\",\"value\":\"1\"},{\"key\":\"params\",\"value\":\"{}\"},{\"key\":\"round_decimal\",\"value\":\"-1\"},{\"key\":\"ignore_growing\",\"value\":\"False\"}]"] [guarantee_timestamp=1] [useDefaultConsistency=true] [nq=0] [error="collection not found[database=default][collection=open_webui_user_memory_9b985095_55a3_45d7_afbc_8674526fe4d0]"]`
FInally, here's the result in Openwebui tchat :
'SyntaxError: Unexpected token '<', "<html>
<h"... is not valid JSON
'
My infrastructure is as follows :
- Docker version 20.10.23, build 876964a
- milvusdb/milvus:v2.4.5
- minio/minio:latest
- quay.io/coreos/etcd:v3.5.5
- OpenWebUI v0.5.16
- Ollama 0.5.11
Not sure yet this is 100% related to websearch, I still have to test documents RAG, I'll update here when I do
So, I tried with a simple text file import in OpenWebui
Basically, the import went fine, and I could see in the logs that vectors were created in a collection
Then, it was able to retrieve vectors
And after asking more questions in the chat, then it completely lost its track, and the "collection not found" came again
It's like, at some point, openwebui loses track of the collections in Milvus, and is requesting collections that don't exist...
<!-- gh-comment-id:2679207890 -->
@Farmouss commented on GitHub (Feb 24, 2025):
So, I tried with a simple text file import in OpenWebui
Basically, the import went fine, and I could see in the logs that vectors were created in a collection
Then, it was able to retrieve vectors
And after asking more questions in the chat, then it completely lost its track, and the "collection not found" came again
It's like, at some point, openwebui loses track of the collections in Milvus, and is requesting collections that don't exist...
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
Originally created by @Farmouss on GitHub (Feb 24, 2025).
Original GitHub issue: https://github.com/open-webui/open-webui/issues/10691
I'm having this error "randomly" when using websearch
I say random because it doesn't happen all the time, like in my case, I was able to web search for a moment, and then, after a while, it stopped working
I then checked the logs from openwebui and I saw this :
2025-02-24T15:27:19.074874183Z ERROR [pymilvus.decorators] RPC error: [search], <MilvusException: (code=100, message=collection not found[database=default][collection=open_webui_user_memory_9b985095_55a3_45d7_afbc_8674526fe4d0])>, <Time:{'RPC start': '2025-02-24 16:27:19.070993', 'RPC error': '2025-02-24 16:27:19.074673'}> 2025-02-24T15:27:19.075022293Z ERROR [pymilvus.milvus_client.milvus_client] Failed to search collection: open_webui_user_memory_9b985095_55a3_45d7_afbc_8674526fe4d0 2025-02-24T15:27:19.075682004Z INFO: 192.168.6.2:0 - "POST /api/v1/memories/query HTTP/1.1" 500 Internal Server Error 2025-02-24T15:27:19.081910032Z ERROR: Exception in ASGI applicationThen from milvus logs :
[2025/02/24 15:19:38.459 +00:00] [WARN] [rootcoord/root_coord.go:1181] ["failed to describe collection"] [traceID=8d33e9771112897cd73b3311222f7d86] [collectionName=open_webui_user_memory_9b985095_55a3_45d7_afbc_8674526fe4d0] [dbName=default] [id=0] [ts=18446744073709551615] [allowUnavailable=false] [error="collection not found[database=default][collection=open_webui_user_memory_9b985095_55a3_45d7_afbc_8674526fe4d0]"] [2025/02/24 15:19:38.459 +00:00] [WARN] [proxy/rate_limit_interceptor.go:44] ["failed to get request info"] [error="collection not found[database=default][collection=open_webui_user_memory_9b985095_55a3_45d7_afbc_8674526fe4d0]"] [2025/02/24 15:19:38.460 +00:00] [WARN] [rootcoord/root_coord.go:1181] ["failed to describe collection"] [traceID=cc0866542359d75c4421be449e3996cb] [collectionName=open_webui_user_memory_9b985095_55a3_45d7_afbc_8674526fe4d0] [dbName=default] [id=0] [ts=18446744073709551615] [allowUnavailable=false] [error="collection not found[database=default][collection=open_webui_user_memory_9b985095_55a3_45d7_afbc_8674526fe4d0]"] [2025/02/24 15:19:38.461 +00:00] [WARN] [proxy/task_search.go:89] ["search task get collectionID failed, can't skip alloc timestamp"] [collectionName=open_webui_user_memory_9b985095_55a3_45d7_afbc_8674526fe4d0] [error="collection not found[database=default][collection=open_webui_user_memory_9b985095_55a3_45d7_afbc_8674526fe4d0]"] [2025/02/24 15:19:38.462 +00:00] [WARN] [rootcoord/root_coord.go:1181] ["failed to describe collection"] [traceID=8d33e9771112897cd73b3311222f7d86] [collectionName=open_webui_user_memory_9b985095_55a3_45d7_afbc_8674526fe4d0] [dbName=default] [id=0] [ts=18446744073709551615] [allowUnavailable=false] [error="collection not found[database=default][collection=open_webui_user_memory_9b985095_55a3_45d7_afbc_8674526fe4d0]"] [2025/02/24 15:19:38.462 +00:00] [WARN] [proxy/task_scheduler.go:461] ["Failed to pre-execute task: collection not found[database=default][collection=open_webui_user_memory_9b985095_55a3_45d7_afbc_8674526fe4d0]"] [traceID=8d33e9771112897cd73b3311222f7d86] [2025/02/24 15:19:38.462 +00:00] [WARN] [proxy/impl.go:3006] ["Search failed to WaitToFinish"] [traceID=8d33e9771112897cd73b3311222f7d86] [role=proxy] [db=default] [collection=open_webui_user_memory_9b985095_55a3_45d7_afbc_8674526fe4d0] [partitions="[]"] [dsl=] [len(PlaceholderGroup)=4108] [OutputFields="[data,metadata]"] [search_params="[{\"key\":\"topk\",\"value\":\"1\"},{\"key\":\"params\",\"value\":\"{}\"},{\"key\":\"round_decimal\",\"value\":\"-1\"},{\"key\":\"ignore_growing\",\"value\":\"False\"}]"] [guarantee_timestamp=1] [useDefaultConsistency=true] [nq=0] [error="collection not found[database=default][collection=open_webui_user_memory_9b985095_55a3_45d7_afbc_8674526fe4d0]"]FInally, here's the result in Openwebui tchat :
'SyntaxError: Unexpected token '<', "<html>
<h"... is not valid JSON
'
My infrastructure is as follows :
Not sure yet this is 100% related to websearch, I still have to test documents RAG, I'll update here when I do
@Farmouss commented on GitHub (Feb 24, 2025):
So, I tried with a simple text file import in OpenWebui
Basically, the import went fine, and I could see in the logs that vectors were created in a collection
Then, it was able to retrieve vectors
And after asking more questions in the chat, then it completely lost its track, and the "collection not found" came again
It's like, at some point, openwebui loses track of the collections in Milvus, and is requesting collections that don't exist...