Skip to content

ERROR: Tenant not found #5480

Open
Open
@summer-ydf

Description

@summer-ydf

使用ragflow v0.16.0版本,本地构建的知识库,模型是deepseek-r1:7b,在回答一小段或者一大段之后,突然输出这样的错误,并且清空了前面思考的结果。

ERROR: Tenant not found

错误logs日志打印如下:

2025-02-28 15:25:42 Traceback (most recent call last): 2025-02-28 15:25:42 File "/ragflow/api/apps/conversation_app.py", line 230, in stream 2025-02-28 15:25:42 for ans in chat(dia, msg, True, **req): 2025-02-28 15:25:42 File "/ragflow/api/db/services/dialog_service.py", line 362, in chat 2025-02-28 15:25:42 for ans in chat_mdl.chat_streamly(prompt, msg[1:], gen_conf): 2025-02-28 15:25:42 File "/ragflow/api/db/services/llm_service.py", line 299, in chat_streamly 2025-02-28 15:25:42 if not TenantLLMService.increase_usage( 2025-02-28 15:25:42 File "/ragflow/.venv/lib/python3.10/site-packages/peewee.py", line 3128, in inner 2025-02-28 15:25:42 return fn(*args, **kwargs) 2025-02-28 15:25:42 File "/ragflow/api/db/services/llm_service.py", line 176, in increase_usage 2025-02-28 15:25:42 raise LookupError("Tenant not found") 2025-02-28 15:25:42 LookupError: Tenant not found

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions