[GH-ISSUE #119] [Question]: 配置完成之后一直报错 #85

Closed
opened 2026-02-27 01:56:09 +03:00 by kerem · 1 comment
Owner

Originally created by @maximdx on GitHub (May 29, 2025).
Original GitHub issue: https://github.com/ErlichLiu/DeepClaude/issues/119

提问前确认

  • 我已经查看了项目文档并没有找到答案
  • 我已经搜索了现有的 issues,确认没有类似的问题

问题类别

安装/配置

您的问题

配置了
推理模型: DeepSeek/DeepSeek-Reasoner
目标模型: Gemini/Gemini-2.5-Pro

推理模型由deepseek open api提供
目标模型有open router提供

推理模型和目标模型均配置了”模型可用“
组合模型(deepgeminipro)选取了 DeepSeek/DeepSeek-Reasoner + Gemini/Gemini-2.5-Pro

测试API,失败
查看容器报错:

2025-05-29 15:53:56 - DeepClaude - ERROR - 处理请求时发生错误: 推理模型 'PPIO/DeepSeek-R1-0528' 当前不可用

INFO:     192.168.65.1:54207 - "POST /v1/chat/completions HTTP/1.1" 200 OK

ERROR:    Exception in ASGI application

  + Exception Group Traceback (most recent call last):

  |   File "/usr/local/lib/python3.11/site-packages/uvicorn/protocols/http/httptools_impl.py", line 409, in run_asgi
  |     result = await app(  # type: ignore[func-returns-value]

  |              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

  |   File "/usr/local/lib/python3.11/site-packages/uvicorn/middleware/proxy_headers.py", line 60, in __call__

  |     return await self.app(scope, receive, send)

  |            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

  |   File "/usr/local/lib/python3.11/site-packages/fastapi/applications.py", line 1054, in __call__

  |     await super().__call__(scope, receive, send)

  |   File "/usr/local/lib/python3.11/site-packages/starlette/applications.py", line 112, in __call__

  |     await self.middleware_stack(scope, receive, send)

  |   File "/usr/local/lib/python3.11/site-packages/starlette/middleware/errors.py", line 187, in __call__

  |     raise exc

  |   File "/usr/local/lib/python3.11/site-packages/starlette/middleware/errors.py", line 165, in __call__

  |     await self.app(scope, receive, _send)

  |   File "/usr/local/lib/python3.11/site-packages/starlette/middleware/cors.py", line 85, in __call__

  |     await self.app(scope, receive, send)

  |   File "/usr/local/lib/python3.11/site-packages/starlette/middleware/exceptions.py", line 62, in __call__

  |     await wrap_app_handling_exceptions(self.app, conn)(scope, receive, send)

  |   File "/usr/local/lib/python3.11/site-packages/starlette/_exception_handler.py", line 53, in wrapped_app

  |     raise exc

  |   File "/usr/local/lib/python3.11/site-packages/starlette/_exception_handler.py", line 42, in wrapped_app

  |     await app(scope, receive, sender)

  |   File "/usr/local/lib/python3.11/site-packages/starlette/routing.py", line 715, in __call__

  |     await self.middleware_stack(scope, receive, send)

  |   File "/usr/local/lib/python3.11/site-packages/starlette/routing.py", line 735, in app

  |     await route.handle(scope, receive, send)

  |   File "/usr/local/lib/python3.11/site-packages/starlette/routing.py", line 288, in handle

  |     await self.app(scope, receive, send)

  |   File "/usr/local/lib/python3.11/site-packages/starlette/routing.py", line 76, in app

  |     await wrap_app_handling_exceptions(app, request)(scope, receive, send)

  |   File "/usr/local/lib/python3.11/site-packages/starlette/_exception_handler.py", line 53, in wrapped_app

  |     raise exc

  |   File "/usr/local/lib/python3.11/site-packages/starlette/_exception_handler.py", line 42, in wrapped_app

  |     await app(scope, receive, sender)

  |   File "/usr/local/lib/python3.11/site-packages/starlette/routing.py", line 74, in app

  |     await response(scope, receive, send)

  |   File "/usr/local/lib/python3.11/site-packages/starlette/responses.py", line 261, in __call__

  |     async with anyio.create_task_group() as task_group:

  |   File "/usr/local/lib/python3.11/site-packages/anyio/_backends/_asyncio.py", line 772, in __aexit__

  |     raise BaseExceptionGroup(

  | ExceptionGroup: unhandled errors in a TaskGroup (1 sub-exception)

  +-+---------------- 1 ----------------

    | Traceback (most recent call last):

    |   File "/usr/local/lib/python3.11/site-packages/starlette/responses.py", line 264, in wrap

    |     await func()

    |   File "/usr/local/lib/python3.11/site-packages/starlette/responses.py", line 245, in stream_response

    |     async for chunk in self.body_iterator:

    |   File "/app/app/main.py", line 143, in error_stream

    |     "message": str(e),

    |                    ^

    | NameError: cannot access free variable 'e' where it is not associated with a value in enclosing scope

    +------------------------------------

甚至都没有使用 推理模型 'PPIO/DeepSeek-R1-0528'

背景信息

镜像版本: erlichliu/deepclaude:latest

代码示例(如适用)


其他信息

No response

Originally created by @maximdx on GitHub (May 29, 2025). Original GitHub issue: https://github.com/ErlichLiu/DeepClaude/issues/119 ### 提问前确认 - [x] 我已经查看了项目文档并没有找到答案 - [x] 我已经搜索了现有的 issues,确认没有类似的问题 ### 问题类别 安装/配置 ### 您的问题 配置了 推理模型: DeepSeek/DeepSeek-Reasoner 目标模型: Gemini/Gemini-2.5-Pro 推理模型由deepseek open api提供 目标模型有open router提供 推理模型和目标模型均配置了”模型可用“ 组合模型(deepgeminipro)选取了 DeepSeek/DeepSeek-Reasoner + Gemini/Gemini-2.5-Pro 测试API,失败 查看容器报错: ``` 2025-05-29 15:53:56 - DeepClaude - ERROR - 处理请求时发生错误: 推理模型 'PPIO/DeepSeek-R1-0528' 当前不可用 INFO: 192.168.65.1:54207 - "POST /v1/chat/completions HTTP/1.1" 200 OK ERROR: Exception in ASGI application + Exception Group Traceback (most recent call last): | File "/usr/local/lib/python3.11/site-packages/uvicorn/protocols/http/httptools_impl.py", line 409, in run_asgi | result = await app( # type: ignore[func-returns-value] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | File "/usr/local/lib/python3.11/site-packages/uvicorn/middleware/proxy_headers.py", line 60, in __call__ | return await self.app(scope, receive, send) | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | File "/usr/local/lib/python3.11/site-packages/fastapi/applications.py", line 1054, in __call__ | await super().__call__(scope, receive, send) | File "/usr/local/lib/python3.11/site-packages/starlette/applications.py", line 112, in __call__ | await self.middleware_stack(scope, receive, send) | File "/usr/local/lib/python3.11/site-packages/starlette/middleware/errors.py", line 187, in __call__ | raise exc | File "/usr/local/lib/python3.11/site-packages/starlette/middleware/errors.py", line 165, in __call__ | await self.app(scope, receive, _send) | File "/usr/local/lib/python3.11/site-packages/starlette/middleware/cors.py", line 85, in __call__ | await self.app(scope, receive, send) | File "/usr/local/lib/python3.11/site-packages/starlette/middleware/exceptions.py", line 62, in __call__ | await wrap_app_handling_exceptions(self.app, conn)(scope, receive, send) | File "/usr/local/lib/python3.11/site-packages/starlette/_exception_handler.py", line 53, in wrapped_app | raise exc | File "/usr/local/lib/python3.11/site-packages/starlette/_exception_handler.py", line 42, in wrapped_app | await app(scope, receive, sender) | File "/usr/local/lib/python3.11/site-packages/starlette/routing.py", line 715, in __call__ | await self.middleware_stack(scope, receive, send) | File "/usr/local/lib/python3.11/site-packages/starlette/routing.py", line 735, in app | await route.handle(scope, receive, send) | File "/usr/local/lib/python3.11/site-packages/starlette/routing.py", line 288, in handle | await self.app(scope, receive, send) | File "/usr/local/lib/python3.11/site-packages/starlette/routing.py", line 76, in app | await wrap_app_handling_exceptions(app, request)(scope, receive, send) | File "/usr/local/lib/python3.11/site-packages/starlette/_exception_handler.py", line 53, in wrapped_app | raise exc | File "/usr/local/lib/python3.11/site-packages/starlette/_exception_handler.py", line 42, in wrapped_app | await app(scope, receive, sender) | File "/usr/local/lib/python3.11/site-packages/starlette/routing.py", line 74, in app | await response(scope, receive, send) | File "/usr/local/lib/python3.11/site-packages/starlette/responses.py", line 261, in __call__ | async with anyio.create_task_group() as task_group: | File "/usr/local/lib/python3.11/site-packages/anyio/_backends/_asyncio.py", line 772, in __aexit__ | raise BaseExceptionGroup( | ExceptionGroup: unhandled errors in a TaskGroup (1 sub-exception) +-+---------------- 1 ---------------- | Traceback (most recent call last): | File "/usr/local/lib/python3.11/site-packages/starlette/responses.py", line 264, in wrap | await func() | File "/usr/local/lib/python3.11/site-packages/starlette/responses.py", line 245, in stream_response | async for chunk in self.body_iterator: | File "/app/app/main.py", line 143, in error_stream | "message": str(e), | ^ | NameError: cannot access free variable 'e' where it is not associated with a value in enclosing scope +------------------------------------ ``` 甚至都没有使用 推理模型 'PPIO/DeepSeek-R1-0528' ### 背景信息 镜像版本: erlichliu/deepclaude:latest ### 代码示例(如适用) ```shell ``` ### 其他信息 _No response_
kerem 2026-02-27 01:56:09 +03:00
  • closed this issue
  • added the
    question
    label
Author
Owner

@Robin0315 commented on GitHub (Jun 15, 2025):

我刚部署的时候也遇到这个问题,后来我发现是因为我登录之后立刻改了密码,然后修改里面的配置,导致配置保存失败,所以更改密码之后,退出使用新密码重新登录,再进行配置就可以了。

<!-- gh-comment-id:2973605251 --> @Robin0315 commented on GitHub (Jun 15, 2025): 我刚部署的时候也遇到这个问题,后来我发现是因为我登录之后立刻改了密码,然后修改里面的配置,导致配置保存失败,所以更改密码之后,退出使用新密码重新登录,再进行配置就可以了。
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/DeepClaude#85
No description provided.