Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

LookupError: Tenant not found #4940

Open
1 task done
liuxc1 opened this issue Feb 13, 2025 · 0 comments
Open
1 task done

LookupError: Tenant not found #4940

liuxc1 opened this issue Feb 13, 2025 · 0 comments
Labels
bug Something isn't working

Comments

@liuxc1
Copy link

liuxc1 commented Feb 13, 2025

Is there an existing issue for the same bug?

  • I have checked the existing issues.

RAGFlow workspace code commit ID

0.16

RAGFlow image version

0.16

Other environment information

Actual behavior

agflow-server | 2025-02-13 19:31:22,637 INFO 19 172.21.0.6 - - [13/Feb/2025 19:31:22] "GET /v1/document/thumbnails?doc_ids=b8430e0ee9ad11efb74d0242ac150006 HTTP/1.1" 200 -
ragflow-server | Traceback (most recent call last):
ragflow-server | File "/ragflow/api/apps/conversation_app.py", line 230, in stream
ragflow-server | for ans in chat(dia, msg, True, **req):
ragflow-server | File "/ragflow/api/db/services/dialog_service.py", line 362, in chat
ragflow-server | for ans in chat_mdl.chat_streamly(prompt, msg[1:], gen_conf):
ragflow-server | File "/ragflow/api/db/services/llm_service.py", line 299, in chat_streamly
ragflow-server | if not TenantLLMService.increase_usage(
ragflow-server | File "/ragflow/.venv/lib/python3.10/site-packages/peewee.py", line 3128, in inner
ragflow-server | return fn(*args, **kwargs)
ragflow-server | File "/ragflow/api/db/services/llm_service.py", line 176, in increase_usage
ragflow-server | raise LookupError("Tenant not found")
ragflow-server | LookupError: Tenant not found

Expected behavior

No response

Steps to reproduce

agflow-server  | 2025-02-13 19:31:22,637 INFO     19 172.21.0.6 - - [13/Feb/2025 19:31:22] "GET /v1/document/thumbnails?doc_ids=b8430e0ee9ad11efb74d0242ac150006 HTTP/1.1" 200 -
ragflow-server  | Traceback (most recent call last):
ragflow-server  |   File "/ragflow/api/apps/conversation_app.py", line 230, in stream
ragflow-server  |     for ans in chat(dia, msg, True, **req):
ragflow-server  |   File "/ragflow/api/db/services/dialog_service.py", line 362, in chat
ragflow-server  |     for ans in chat_mdl.chat_streamly(prompt, msg[1:], gen_conf):
ragflow-server  |   File "/ragflow/api/db/services/llm_service.py", line 299, in chat_streamly
ragflow-server  |     if not TenantLLMService.increase_usage(
ragflow-server  |   File "/ragflow/.venv/lib/python3.10/site-packages/peewee.py", line 3128, in inner
ragflow-server  |     return fn(*args, **kwargs)
ragflow-server  |   File "/ragflow/api/db/services/llm_service.py", line 176, in increase_usage
ragflow-server  |     raise LookupError("Tenant not found")
ragflow-server  | LookupError: Tenant not found

Additional information

No response

@liuxc1 liuxc1 added the bug Something isn't working label Feb 13, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant