Skip to content

[Bug]Astrbot更新最新版后无法启动 #7532

@HosisoraLing

Description

@HosisoraLing

What happened / 发生了什么

在web端选择更新最新版4.23.1后,astrbot就无法启动了。现在也没法通过docker exec -it astrbot bash进去,容器一直重启。

Reproduce / 如何复现?

在web端选择更新最新版4.23.1后,astrbot就无法启动了。

AstrBot version, deployment method (e.g., Windows Docker Desktop deployment), provider used, and messaging platform used. / AstrBot 版本、部署方式(如 Windows Docker Desktop 部署)、使用的提供商、使用的消息平台适配器

Astrbot 4.23.1,ubuntu docker部署

OS

Linux

Logs / 报错日志

[10:54:23.723] [Core] [INFO] [core.updator:172]: 准备更新至指定版本的 AstrBot Core: v4.23.1
[10:54:26.176] [Core] [INFO] [core.updator:180]: 下载 AstrBot Core 更新文件完成,正在执行解压...
[10:54:26.451] [Core] [INFO] [utils.io:254]: 准备下载指定发行版本的 AstrBot WebUI 文件: https://astrbot-registry.soulter.top/download/astrbot-dashboard/v4.23.1/dist.zip
文件大小: 8669.06 KB | 文件地址: https://astrbot-registry.soulter.top/download/astrbot-dashboard/v4.23.1/dist.zip
下载进度: 100.00% 速度: 4108.21 KB/s
[10:54:30.490] [Core] [INFO] [routes.update:115]: 更新依赖中...
[10:54:30.758] [Core] [INFO] [utils.core_constraints:110]: 已启用核心依赖版本保护 (55 个约束)
[10:54:30.759] [Core] [INFO] [utils.pip_installer:1012]: Pip 包管理器 argv: ['pip', 'install', '-r', 'requirements.txt', '--trusted-host', 'mirrors.aliyun.com', '-i', 'https://mirrors.aliyun.com/pypi/simple/', '-c', '/tmp/tmp2thq9w9z_constraints.txt']
[10:54:31.321] [Core] [INFO] [utils.pip_installer:216]: Looking in indexes: https://mirrors.aliyun.com/pypi/simple/
[10:54:31.322] [Core] [INFO] [utils.pip_installer:216]: Ignoring audioop-lts: markers 'python_full_version >= "3.13"' don't match your environment
[10:54:31.323] [Core] [INFO] [utils.pip_installer:216]: Requirement already satisfied: aiocqhttp>=1.4.4 in /usr/local/lib/python3.12/site-packages (from -r requirements.txt (line 1)) (1.4.4)
[10:54:31.323] [Core] [INFO] [utils.pip_installer:216]: Requirement already satisfied: aiodocker>=0.24.0 in /usr/local/lib/python3.12/site-packages (from -r requirements.txt (line 2)) (0.26.0)
[10:54:31.323] [Core] [INFO] [utils.pip_installer:216]: Requirement already satisfied: aiohttp>=3.11.18 in /usr/local/lib/python3.12/site-packages (from -r requirements.txt (line 3)) (3.13.3)
[10:54:31.324] [Core] [INFO] [utils.pip_installer:216]: Requirement already satisfied: aiosqlite>=0.21.0 in /usr/local/lib/python3.12/site-packages (from -r requirements.txt (line 4)) (0.22.1)
[10:54:31.324] [Core] [INFO] [utils.pip_installer:216]: Requirement already satisfied: anthropic>=0.51.0 in /usr/local/lib/python3.12/site-packages (from -r requirements.txt (line 5)) (0.84.0)
[10:54:31.325] [Core] [INFO] [utils.pip_installer:216]: Requirement already satisfied: apscheduler>=3.11.0 in /usr/local/lib/python3.12/site-packages (from -r requirements.txt (line 6)) (3.11.2)
[10:54:31.325] [Core] [INFO] [utils.pip_installer:216]: Requirement already satisfied: certifi>=2025.4.26 in /usr/local/lib/python3.12/site-packages (from -r requirements.txt (line 7)) (2026.2.25)
[10:54:31.326] [Core] [INFO] [utils.pip_installer:216]: Requirement already satisfied: chardet~=5.1.0 in /usr/local/lib/python3.12/site-packages (from -r requirements.txt (line 8)) (5.1.0)
[10:54:31.326] [Core] [INFO] [utils.pip_installer:216]: Requirement already satisfied: loguru>=0.7.2 in /usr/local/lib/python3.12/site-packages (from -r requirements.txt (line 9)) (0.7.3)
[10:54:31.326] [Core] [INFO] [utils.pip_installer:216]: Requirement already satisfied: cryptography>=44.0.3 in /usr/local/lib/python3.12/site-packages (from -r requirements.txt (line 10)) (46.0.5)
[10:54:31.327] [Core] [INFO] [utils.pip_installer:216]: Requirement already satisfied: dashscope>=1.23.2 in /usr/local/lib/python3.12/site-packages (from -r requirements.txt (line 11)) (1.25.13)
[10:54:31.327] [Core] [INFO] [utils.pip_installer:216]: Requirement already satisfied: deprecated>=1.2.18 in /usr/local/lib/python3.12/site-packages (from -r requirements.txt (line 12)) (1.3.1)
[10:54:31.328] [Core] [INFO] [utils.pip_installer:216]: Requirement already satisfied: dingtalk-stream>=0.22.1 in /usr/local/lib/python3.12/site-packages (from -r requirements.txt (line 13)) (0.24.3)
[10:54:31.328] [Core] [INFO] [utils.pip_installer:216]: Requirement already satisfied: docstring-parser>=0.16 in /usr/local/lib/python3.12/site-packages (from -r requirements.txt (line 14)) (0.17.0)
[10:54:31.329] [Core] [INFO] [utils.pip_installer:216]: Requirement already satisfied: faiss-cpu>=1.12.0 in /usr/local/lib/python3.12/site-packages (from -r requirements.txt (line 15)) (1.13.2)
[10:54:31.329] [Core] [INFO] [utils.pip_installer:216]: Requirement already satisfied: filelock>=3.18.0 in /usr/local/lib/python3.12/site-packages (from -r requirements.txt (line 16)) (3.25.0)
[10:54:31.330] [Core] [INFO] [utils.pip_installer:216]: Requirement already satisfied: google-genai>=1.56.0 in /usr/local/lib/python3.12/site-packages (from -r requirements.txt (line 17)) (1.66.0)
[10:54:31.330] [Core] [INFO] [utils.pip_installer:216]: Requirement already satisfied: httpx>=0.28.1 in /usr/local/lib/python3.12/site-packages (from httpx[socks]>=0.28.1->-r requirements.txt (line 18)) (0.28.1)
[10:54:31.330] [Core] [INFO] [utils.pip_installer:216]: Requirement already satisfied: lark-oapi>=1.4.15 in /usr/local/lib/python3.12/site-packages (from -r requirements.txt (line 19)) (1.5.3)
[10:54:31.331] [Core] [INFO] [utils.pip_installer:216]: Requirement already satisfied: mcp>=1.8.0 in /usr/local/lib/python3.12/site-packages (from -r requirements.txt (line 20)) (1.26.0)
[10:54:31.331] [Core] [INFO] [utils.pip_installer:216]: Requirement already satisfied: openai>=1.78.0 in /usr/local/lib/python3.12/site-packages (from -r requirements.txt (line 21)) (2.24.0)
[10:54:31.332] [Core] [INFO] [utils.pip_installer:216]: Requirement already satisfied: ormsgpack>=1.9.1 in /usr/local/lib/python3.12/site-packages (from -r requirements.txt (line 22)) (1.12.2)
[10:54:31.332] [Core] [INFO] [utils.pip_installer:216]: Requirement already satisfied: pillow>=11.2.1 in /usr/local/lib/python3.12/site-packages (from -r requirements.txt (line 23)) (12.1.1)
[10:54:31.333] [Core] [INFO] [utils.pip_installer:216]: Requirement already satisfied: pip>=25.1.1 in /usr/local/lib/python3.12/site-packages (from -r requirements.txt (line 24)) (26.0.1)
[10:54:31.333] [Core] [INFO] [utils.pip_installer:216]: Requirement already satisfied: psutil<7.2.0,>=5.8.0 in /usr/local/lib/python3.12/site-packages (from -r requirements.txt (line 25)) (7.1.3)
[10:54:31.333] [Core] [INFO] [utils.pip_installer:216]: Requirement already satisfied: py-cord>=2.6.1 in /usr/local/lib/python3.12/site-packages (from -r requirements.txt (line 26)) (2.7.1)
[10:54:31.334] [Core] [INFO] [utils.pip_installer:216]: Requirement already satisfied: pydantic>=2.12.5 in /usr/local/lib/python3.12/site-packages (from -r requirements.txt (line 27)) (2.12.5)
[10:54:31.334] [Core] [INFO] [utils.pip_installer:216]: Requirement already satisfied: pydub>=0.25.1 in /usr/local/lib/python3.12/site-packages (from -r requirements.txt (line 28)) (0.25.1)
[10:54:31.335] [Core] [INFO] [utils.pip_installer:216]: Requirement already satisfied: pyjwt>=2.10.1 in /usr/local/lib/python3.12/site-packages (from -r requirements.txt (line 29)) (2.11.0)
[10:54:31.335] [Core] [INFO] [utils.pip_installer:216]: Requirement already satisfied: python-telegram-bot>=22.6 in /usr/local/lib/python3.12/site-packages (from -r requirements.txt (line 30)) (22.6)
[10:54:31.336] [Core] [INFO] [utils.pip_installer:216]: Requirement already satisfied: qq-botpy>=1.2.1 in /usr/local/lib/python3.12/site-packages (from -r requirements.txt (line 31)) (1.2.1)
[10:54:31.336] [Core] [INFO] [utils.pip_installer:216]: Requirement already satisfied: python-socks>=2.8.0 in /usr/local/lib/python3.12/site-packages (from -r requirements.txt (line 32)) (2.8.1)
[10:54:31.337] [Core] [INFO] [utils.pip_installer:216]: Requirement already satisfied: quart>=0.20.0 in /usr/local/lib/python3.12/site-packages (from -r requirements.txt (line 33)) (0.20.0)
[10:54:31.337] [Core] [INFO] [utils.pip_installer:216]: Requirement already satisfied: silk-python>=0.2.6 in /usr/local/lib/python3.12/site-packages (from -r requirements.txt (line 34)) (0.2.8)
[10:54:31.337] [Core] [INFO] [utils.pip_installer:216]: Requirement already satisfied: slack-sdk>=3.35.0 in /usr/local/lib/python3.12/site-packages (from -r requirements.txt (line 35)) (3.40.1)
[10:54:31.338] [Core] [INFO] [utils.pip_installer:216]: Requirement already satisfied: sqlalchemy>=2.0.41 in /usr/local/lib/python3.12/site-packages (from sqlalchemy[asyncio]>=2.0.41->-r requirements.txt (line 36)) (2.0.48)
[10:54:31.338] [Core] [INFO] [utils.pip_installer:216]: Requirement already satisfied: sqlmodel>=0.0.24 in /usr/local/lib/python3.12/site-packages (from -r requirements.txt (line 37)) (0.0.37)
[10:54:31.339] [Core] [INFO] [utils.pip_installer:216]: Requirement already satisfied: telegramify-markdown>=1.0.0 in /usr/local/lib/python3.12/site-packages (from -r requirements.txt (line 38)) (1.1.0)
[10:54:31.339] [Core] [INFO] [utils.pip_installer:216]: Requirement already satisfied: watchfiles>=1.0.5 in /usr/local/lib/python3.12/site-packages (from -r requirements.txt (line 39)) (1.1.1)
[10:54:31.340] [Core] [INFO] [utils.pip_installer:216]: Requirement already satisfied: websockets>=15.0.1 in /usr/local/lib/python3.12/site-packages (from -r requirements.txt (line 40)) (16.0)
[10:54:31.340] [Core] [INFO] [utils.pip_installer:216]: Requirement already satisfied: wechatpy>=1.8.18 in /usr/local/lib/python3.12/site-packages (from -r requirements.txt (line 41)) (1.8.18)
[10:54:31.482] [Core] [INFO] [utils.pip_installer:216]: ERROR: Cannot install click>=8.2.1 because these package versions have conflicting dependencies.
[10:54:31.483] [Core] [INFO] [utils.pip_installer:216]:
[10:54:31.483] [Core] [INFO] [utils.pip_installer:216]: The conflict is caused by:
[10:54:31.483] [Core] [INFO] [utils.pip_installer:216]: The user requested click>=8.2.1
[10:54:31.483] [Core] [INFO] [utils.pip_installer:216]: The user requested (constraint) click==8.1.8
[10:54:31.483] [Core] [INFO] [utils.pip_installer:216]:
[10:54:31.483] [Core] [INFO] [utils.pip_installer:216]: Additionally, some packages in these conflicts have no matching distributions available for your environment:
[10:54:31.483] [Core] [INFO] [utils.pip_installer:216]: click
[10:54:31.484] [Core] [INFO] [utils.pip_installer:216]:
[10:54:31.484] [Core] [INFO] [utils.pip_installer:216]: To fix this you could try to:
[10:54:31.484] [Core] [INFO] [utils.pip_installer:216]: 1. loosen the range of package versions you've specified
[10:54:31.484] [Core] [INFO] [utils.pip_installer:216]: 2. remove package versions to allow pip to attempt to solve the dependency conflict
[10:54:31.484] [Core] [INFO] [utils.pip_installer:216]:
[10:54:31.560] [Core] [INFO] [utils.pip_installer:216]: ERROR: ResolutionImpossible: for help visit https://pip.pypa.io/en/latest/topics/dependency-resolution/#dealing-with-dependency-conflicts
[10:54:31.562] [Core] [ERRO] [v4.22.3] [routes.update:119]: 更新依赖失败: 检测到核心依赖版本保护冲突。 冲突详情: click>=8.2.1 vs (constraint) click==8.1.8。插件要求的依赖版本与 AstrBot 核心不兼容,为了系统稳定,已阻止该降级行为。请联系插件作者或调整 requirements.txt。
[10:54:31.569] [Core] [INFO] [provider.func_tool_manager:515]: Received shutdown signal for MCP client baidu_ai_search
[10:54:31.570] [Core] [INFO] [provider.func_tool_manager:648]: Disconnected from MCP server baidu_ai_search
[10:54:31.571] [Core] [INFO] [platform.manager:263]: 正在尝试终止 default 平台适配器 ...
Task exception was never retrieved
future: <Task finished name='Task-30426' coro=<<async_generator_athrow without name>()> exception=RuntimeError('Attempted to exit cancel scope in a different task than it was entered in')>

  • Exception Group Traceback (most recent call last):
    | File "/usr/local/lib/python3.12/site-packages/anyio/_backends/_asyncio.py", line 783, in aexit
    | raise BaseExceptionGroup(
    | BaseExceptionGroup: unhandled errors in a TaskGroup (1 sub-exception)
    +-+---------------- 1 ----------------
    | Traceback (most recent call last):
    | File "/usr/local/lib/python3.12/site-packages/mcp/client/sse.py", line 159, in sse_client
    | yield read_stream, write_stream
    | GeneratorExit
    +------------------------------------

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "/usr/local/lib/python3.12/site-packages/mcp/client/sse.py", line 63, in sse_client
async with anyio.create_task_group() as tg:
^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/anyio/_backends/_asyncio.py", line 789, in aexit
if self.cancel_scope.exit(type(exc), exc, exc.traceback):
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/anyio/_backends/_asyncio.py", line 461, in exit
raise RuntimeError(
RuntimeError: Attempted to exit cancel scope in a different task than it was entered in
Task exception was never retrieved
future: <Task finished name='Task-30428' coro=<<async_generator_athrow without name>()> exception=RuntimeError('Attempted to exit cancel scope in a different task than it was entered in')>

  • Exception Group Traceback (most recent call last):
    | File "/usr/local/lib/python3.12/site-packages/anyio/_backends/_asyncio.py", line 783, in aexit
    | raise BaseExceptionGroup(
    | BaseExceptionGroup: unhandled errors in a TaskGroup (1 sub-exception)
    +-+---------------- 1 ----------------
    | Traceback (most recent call last):
    | File "/usr/local/lib/python3.12/site-packages/mcp/client/sse.py", line 159, in sse_client
    | yield read_stream, write_stream
    | GeneratorExit
    +------------------------------------

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "/usr/local/lib/python3.12/site-packages/mcp/client/sse.py", line 63, in sse_client
async with anyio.create_task_group() as tg:
^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/anyio/_backends/_asyncio.py", line 789, in aexit
if self.cancel_scope.exit(type(exc), exc, exc.traceback):
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/anyio/_backends/_asyncio.py", line 461, in exit
raise RuntimeError(
RuntimeError: Attempted to exit cancel scope in a different task than it was entered in
Task exception was never retrieved
future: <Task finished name='Task-30429' coro=<<async_generator_athrow without name>()> exception=RuntimeError('Attempted to exit cancel scope in a different task than it was entered in')>

  • Exception Group Traceback (most recent call last):
    | File "/usr/local/lib/python3.12/site-packages/anyio/_backends/_asyncio.py", line 783, in aexit
    | raise BaseExceptionGroup(
    | BaseExceptionGroup: unhandled errors in a TaskGroup (1 sub-exception)
    +-+---------------- 1 ----------------
    | Traceback (most recent call last):
    | File "/usr/local/lib/python3.12/site-packages/mcp/client/sse.py", line 159, in sse_client
    | yield read_stream, write_stream
    | GeneratorExit
    +------------------------------------

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "/usr/local/lib/python3.12/site-packages/mcp/client/sse.py", line 63, in sse_client
async with anyio.create_task_group() as tg:
^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/anyio/_backends/_asyncio.py", line 789, in aexit
if self.cancel_scope.exit(type(exc), exc, exc.traceback):
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/anyio/_backends/_asyncio.py", line 461, in exit
raise RuntimeError(
RuntimeError: Attempted to exit cancel scope in a different task than it was entered in
Task exception was never retrieved
future: <Task finished name='Task-30430' coro=<<async_generator_athrow without name>()> exception=RuntimeError('Attempted to exit cancel scope in a different task than it was entered in')>

  • Exception Group Traceback (most recent call last):
    | File "/usr/local/lib/python3.12/site-packages/anyio/_backends/_asyncio.py", line 783, in aexit
    | raise BaseExceptionGroup(
    | BaseExceptionGroup: unhandled errors in a TaskGroup (1 sub-exception)
    +-+---------------- 1 ----------------
    | Traceback (most recent call last):
    | File "/usr/local/lib/python3.12/site-packages/mcp/client/sse.py", line 159, in sse_client
    | yield read_stream, write_stream
    | GeneratorExit
    +------------------------------------

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "/usr/local/lib/python3.12/site-packages/mcp/client/sse.py", line 63, in sse_client
async with anyio.create_task_group() as tg:
^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/anyio/_backends/_asyncio.py", line 789, in aexit
if self.cancel_scope.exit(type(exc), exc, exc.traceback):
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/anyio/_backends/_asyncio.py", line 461, in exit
raise RuntimeError(
RuntimeError: Attempted to exit cancel scope in a different task than it was entered in
Task exception was never retrieved
future: <Task finished name='Task-30431' coro=<<async_generator_athrow without name>()> exception=RuntimeError('Attempted to exit cancel scope in a different task than it was entered in')>

  • Exception Group Traceback (most recent call last):
    | File "/usr/local/lib/python3.12/site-packages/anyio/_backends/_asyncio.py", line 783, in aexit
    | raise BaseExceptionGroup(
    | BaseExceptionGroup: unhandled errors in a TaskGroup (1 sub-exception)
    +-+---------------- 1 ----------------
    | Traceback (most recent call last):
    | File "/usr/local/lib/python3.12/site-packages/mcp/client/sse.py", line 159, in sse_client
    | yield read_stream, write_stream
    | GeneratorExit
    +------------------------------------

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "/usr/local/lib/python3.12/site-packages/mcp/client/sse.py", line 63, in sse_client
async with anyio.create_task_group() as tg:
^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/anyio/_backends/_asyncio.py", line 789, in aexit
if self.cancel_scope.exit(type(exc), exc, exc.traceback):
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/anyio/_backends/_asyncio.py", line 461, in exit
raise RuntimeError(
RuntimeError: Attempted to exit cancel scope in a different task than it was entered in
Task exception was never retrieved
future: <Task finished name='Task-30432' coro=<<async_generator_athrow without name>()> exception=RuntimeError('Attempted to exit cancel scope in a different task than it was entered in')>

  • Exception Group Traceback (most recent call last):
    | File "/usr/local/lib/python3.12/site-packages/anyio/_backends/_asyncio.py", line 783, in aexit
    | raise BaseExceptionGroup(
    | BaseExceptionGroup: unhandled errors in a TaskGroup (1 sub-exception)
    +-+---------------- 1 ----------------
    | Traceback (most recent call last):
    | File "/usr/local/lib/python3.12/site-packages/mcp/client/sse.py", line 159, in sse_client
    | yield read_stream, write_stream
    | GeneratorExit
    +------------------------------------

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "/usr/local/lib/python3.12/site-packages/mcp/client/sse.py", line 63, in sse_client
async with anyio.create_task_group() as tg:
^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/anyio/_backends/_asyncio.py", line 789, in aexit
if self.cancel_scope.exit(type(exc), exc, exc.traceback):
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/anyio/_backends/_asyncio.py", line 461, in exit
raise RuntimeError(
RuntimeError: Attempted to exit cancel scope in a different task than it was entered in
[10:54:31.576] [Core] [INFO] [aiocqhttp.aiocqhttp_platform_adapter:479]: aiocqhttp 适配器已被关闭
Task exception was never retrieved
future: <Task finished name='Task-30427' coro=<<async_generator_athrow without name>()> exception=RuntimeError('Attempted to exit cancel scope in a different task than it was entered in')>

  • Exception Group Traceback (most recent call last):
    | File "/usr/local/lib/python3.12/site-packages/anyio/_backends/_asyncio.py", line 783, in aexit
    | raise BaseExceptionGroup(
    | BaseExceptionGroup: unhandled errors in a TaskGroup (1 sub-exception)
    +-+---------------- 1 ----------------
    | Traceback (most recent call last):
    | File "/usr/local/lib/python3.12/site-packages/mcp/client/sse.py", line 159, in sse_client
    | yield read_stream, write_stream
    | GeneratorExit
    +------------------------------------

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "/usr/local/lib/python3.12/site-packages/mcp/client/sse.py", line 63, in sse_client
async with anyio.create_task_group() as tg:
^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/anyio/_backends/_asyncio.py", line 789, in aexit
if self.cancel_scope.exit(type(exc), exc, exc.traceback):
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/anyio/_backends/_asyncio.py", line 461, in exit
raise RuntimeError(
RuntimeError: Attempted to exit cancel scope in a different task than it was entered in
[10:54:31.679] [Core] [INFO] [knowledge_base.kb_db_sqlite:170]: 知识库数据库已关闭: /AstrBot/data/knowledge_base/kb.db
[10:54:31.681] [Core] [INFO] [dashboard.server:454]: AstrBot WebUI 已经被优雅地关闭
[10:54:35.081] [Core] [INFO] [core.updator:33]: 正在终止 0 个子进程。
[10:54:35.873] [Core] [INFO] [config.astrbot_config:107]: 检查到配置项 provider_settings.websearch_brave_key 不存在,已插入默认值 []
[10:54:35.873] [Core] [INFO] [config.astrbot_config:143]: 检查到配置项 provider_settings 的子项顺序不一致,已重新排序
[10:54:35.891] [Core] [INFO] [AstrBot.runtime_bootstrap:41]: Bootstrapping runtime CA bundle.
[10:54:35.905] [Core] [INFO] [AstrBot.runtime_bootstrap:33]: Configured aiohttp verified SSL context with system+certifi trust chain.
[10:54:37.690] [Core] [DBUG] [agent.tool_image_cache:55]: ToolImageCache initialized, cache dir: /AstrBot/data/temp/tool_images
[10:54:38.065] [Core] [DBUG] [platform.register:60]: 平台适配器 aiocqhttp 已注册
[10:54:38.123] [Core] [DBUG] [platform.register:60]: 平台适配器 wecom_ai_bot 已注册
[10:54:38.131] [Core] [DBUG] [platform.register:60]: 平台适配器 webchat 已注册
Traceback (most recent call last):
File "/AstrBot/main.py", line 14, in
from astrbot.core.initial_loader import InitialLoader # noqa: E402
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/AstrBot/astrbot/core/initial_loader.py", line 14, in
from astrbot.dashboard.server import AstrBotDashboard
File "/AstrBot/astrbot/dashboard/server.py", line 26, in
from .routes import *
File "/AstrBot/astrbot/dashboard/routes/init.py", line 18, in
from .skills import SkillsRoute
File "/AstrBot/astrbot/dashboard/routes/skills.py", line 12, in
from astrbot.core.computer.computer_client import (
File "/AstrBot/astrbot/core/computer/computer_client.py", line 16, in
from .booters.local import LocalBooter
File "/AstrBot/astrbot/core/computer/booters/local.py", line 12, in
from python_ripgrep import search
ModuleNotFoundError: No module named 'python_ripgrep'
[10:54:39.635] [Core] [INFO] [AstrBot.runtime_bootstrap:41]: Bootstrapping runtime CA bundle.
[10:54:39.650] [Core] [INFO] [AstrBot.runtime_bootstrap:33]: Configured aiohttp verified SSL context with system+certifi trust chain.
[10:54:41.175] [Core] [DBUG] [agent.tool_image_cache:55]: ToolImageCache initialized, cache dir: /AstrBot/data/temp/tool_images
[10:54:41.450] [Core] [DBUG] [platform.register:60]: 平台适配器 aiocqhttp 已注册
[10:54:41.477] [Core] [DBUG] [platform.register:60]: 平台适配器 wecom_ai_bot 已注册
[10:54:41.479] [Core] [DBUG] [platform.register:60]: 平台适配器 webchat 已注册
Traceback (most recent call last):
File "/AstrBot/main.py", line 14, in
from astrbot.core.initial_loader import InitialLoader # noqa: E402
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/AstrBot/astrbot/core/initial_loader.py", line 14, in
from astrbot.dashboard.server import AstrBotDashboard
File "/AstrBot/astrbot/dashboard/server.py", line 26, in
from .routes import *
File "/AstrBot/astrbot/dashboard/routes/init.py", line 18, in
from .skills import SkillsRoute
File "/AstrBot/astrbot/dashboard/routes/skills.py", line 12, in
from astrbot.core.computer.computer_client import (
File "/AstrBot/astrbot/core/computer/computer_client.py", line 16, in
from .booters.local import LocalBooter
File "/AstrBot/astrbot/core/computer/booters/local.py", line 12, in
from python_ripgrep import search
ModuleNotFoundError: No module named 'python_ripgrep'
[10:54:42.738] [Core] [INFO] [AstrBot.runtime_bootstrap:41]: Bootstrapping runtime CA bundle.
[10:54:42.753] [Core] [INFO] [AstrBot.runtime_bootstrap:33]: Configured aiohttp verified SSL context with system+certifi trust chain.
[10:54:44.239] [Core] [DBUG] [agent.tool_image_cache:55]: ToolImageCache initialized, cache dir: /AstrBot/data/temp/tool_images
[10:54:44.505] [Core] [DBUG] [platform.register:60]: 平台适配器 aiocqhttp 已注册
[10:54:44.531] [Core] [DBUG] [platform.register:60]: 平台适配器 wecom_ai_bot 已注册
[10:54:44.533] [Core] [DBUG] [platform.register:60]: 平台适配器 webchat 已注册
Traceback (most recent call last):
File "/AstrBot/main.py", line 14, in
from astrbot.core.initial_loader import InitialLoader # noqa: E402
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/AstrBot/astrbot/core/initial_loader.py", line 14, in
from astrbot.dashboard.server import AstrBotDashboard
File "/AstrBot/astrbot/dashboard/server.py", line 26, in
from .routes import *
File "/AstrBot/astrbot/dashboard/routes/init.py", line 18, in
from .skills import SkillsRoute
File "/AstrBot/astrbot/dashboard/routes/skills.py", line 12, in
from astrbot.core.computer.computer_client import (
File "/AstrBot/astrbot/core/computer/computer_client.py", line 16, in
from .booters.local import LocalBooter
File "/AstrBot/astrbot/core/computer/booters/local.py", line 12, in
from python_ripgrep import search
ModuleNotFoundError: No module named 'python_ripgrep'
[10:54:45.967] [Core] [INFO] [AstrBot.runtime_bootstrap:41]: Bootstrapping runtime CA bundle.
[10:54:45.982] [Core] [INFO] [AstrBot.runtime_bootstrap:33]: Configured aiohttp verified SSL context with system+certifi trust chain.
[10:54:47.482] [Core] [DBUG] [agent.tool_image_cache:55]: ToolImageCache initialized, cache dir: /AstrBot/data/temp/tool_images
[10:54:47.740] [Core] [DBUG] [platform.register:60]: 平台适配器 aiocqhttp 已注册
[10:54:47.767] [Core] [DBUG] [platform.register:60]: 平台适配器 wecom_ai_bot 已注册
[10:54:47.768] [Core] [DBUG] [platform.register:60]: 平台适配器 webchat 已注册
Traceback (most recent call last):
File "/AstrBot/main.py", line 14, in
from astrbot.core.initial_loader import InitialLoader # noqa: E402
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/AstrBot/astrbot/core/initial_loader.py", line 14, in
from astrbot.dashboard.server import AstrBotDashboard
File "/AstrBot/astrbot/dashboard/server.py", line 26, in
from .routes import *
File "/AstrBot/astrbot/dashboard/routes/init.py", line 18, in
from .skills import SkillsRoute
File "/AstrBot/astrbot/dashboard/routes/skills.py", line 12, in
from astrbot.core.computer.computer_client import (
File "/AstrBot/astrbot/core/computer/computer_client.py", line 16, in
from .booters.local import LocalBooter
File "/AstrBot/astrbot/core/computer/booters/local.py", line 12, in
from python_ripgrep import search
ModuleNotFoundError: No module named 'python_ripgrep'
[10:54:49.619] [Core] [INFO] [AstrBot.runtime_bootstrap:41]: Bootstrapping runtime CA bundle.
[10:54:49.634] [Core] [INFO] [AstrBot.runtime_bootstrap:33]: Configured aiohttp verified SSL context with system+certifi trust chain.
[10:54:51.119] [Core] [DBUG] [agent.tool_image_cache:55]: ToolImageCache initialized, cache dir: /AstrBot/data/temp/tool_images
[10:54:51.379] [Core] [DBUG] [platform.register:60]: 平台适配器 aiocqhttp 已注册
[10:54:51.405] [Core] [DBUG] [platform.register:60]: 平台适配器 wecom_ai_bot 已注册
[10:54:51.407] [Core] [DBUG] [platform.register:60]: 平台适配器 webchat 已注册
Traceback (most recent call last):
File "/AstrBot/main.py", line 14, in
from astrbot.core.initial_loader import InitialLoader # noqa: E402
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/AstrBot/astrbot/core/initial_loader.py", line 14, in
from astrbot.dashboard.server import AstrBotDashboard
File "/AstrBot/astrbot/dashboard/server.py", line 26, in
from .routes import *
File "/AstrBot/astrbot/dashboard/routes/init.py", line 18, in
from .skills import SkillsRoute
File "/AstrBot/astrbot/dashboard/routes/skills.py", line 12, in
from astrbot.core.computer.computer_client import (
File "/AstrBot/astrbot/core/computer/computer_client.py", line 16, in
from .booters.local import LocalBooter
File "/AstrBot/astrbot/core/computer/booters/local.py", line 12, in
from python_ripgrep import search
ModuleNotFoundError: No module named 'python_ripgrep'
[10:54:54.024] [Core] [INFO] [AstrBot.runtime_bootstrap:41]: Bootstrapping runtime CA bundle.
[10:54:54.038] [Core] [INFO] [AstrBot.runtime_bootstrap:33]: Configured aiohttp verified SSL context with system+certifi trust chain.
[10:54:55.484] [Core] [DBUG] [agent.tool_image_cache:55]: ToolImageCache initialized, cache dir: /AstrBot/data/temp/tool_images
[10:54:55.740] [Core] [DBUG] [platform.register:60]: 平台适配器 aiocqhttp 已注册
[10:54:55.766] [Core] [DBUG] [platform.register:60]: 平台适配器 wecom_ai_bot 已注册
[10:54:55.768] [Core] [DBUG] [platform.register:60]: 平台适配器 webchat 已注册
Traceback (most recent call last):
File "/AstrBot/main.py", line 14, in
from astrbot.core.initial_loader import InitialLoader # noqa: E402
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/AstrBot/astrbot/core/initial_loader.py", line 14, in
from astrbot.dashboard.server import AstrBotDashboard
File "/AstrBot/astrbot/dashboard/server.py", line 26, in
from .routes import *
File "/AstrBot/astrbot/dashboard/routes/init.py", line 18, in
from .skills import SkillsRoute
File "/AstrBot/astrbot/dashboard/routes/skills.py", line 12, in
from astrbot.core.computer.computer_client import (
File "/AstrBot/astrbot/core/computer/computer_client.py", line 16, in
from .booters.local import LocalBooter
File "/AstrBot/astrbot/core/computer/booters/local.py", line 12, in
from python_ripgrep import search
ModuleNotFoundError: No module named 'python_ripgrep'
[10:54:59.980] [Core] [INFO] [AstrBot.runtime_bootstrap:41]: Bootstrapping runtime CA bundle.
[10:54:59.995] [Core] [INFO] [AstrBot.runtime_bootstrap:33]: Configured aiohttp verified SSL context with system+certifi trust chain.
[10:55:01.454] [Core] [DBUG] [agent.tool_image_cache:55]: ToolImageCache initialized, cache dir: /AstrBot/data/temp/tool_images
[10:55:01.711] [Core] [DBUG] [platform.register:60]: 平台适配器 aiocqhttp 已注册
[10:55:01.737] [Core] [DBUG] [platform.register:60]: 平台适配器 wecom_ai_bot 已注册
[10:55:01.739] [Core] [DBUG] [platform.register:60]: 平台适配器 webchat 已注册
Traceback (most recent call last):
File "/AstrBot/main.py", line 14, in
from astrbot.core.initial_loader import InitialLoader # noqa: E402
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/AstrBot/astrbot/core/initial_loader.py", line 14, in
from astrbot.dashboard.server import AstrBotDashboard
File "/AstrBot/astrbot/dashboard/server.py", line 26, in
from .routes import *
File "/AstrBot/astrbot/dashboard/routes/init.py", line 18, in
from .skills import SkillsRoute
File "/AstrBot/astrbot/dashboard/routes/skills.py", line 12, in
from astrbot.core.computer.computer_client import (
File "/AstrBot/astrbot/core/computer/computer_client.py", line 16, in
from .booters.local import LocalBooter
File "/AstrBot/astrbot/core/computer/booters/local.py", line 12, in
from python_ripgrep import search
ModuleNotFoundError: No module named 'python_ripgrep'
[10:55:09.157] [Core] [INFO] [AstrBot.runtime_bootstrap:41]: Bootstrapping runtime CA bundle.
[10:55:09.172] [Core] [INFO] [AstrBot.runtime_bootstrap:33]: Configured aiohttp verified SSL context with system+certifi trust chain.
[10:55:10.625] [Core] [DBUG] [agent.tool_image_cache:55]: ToolImageCache initialized, cache dir: /AstrBot/data/temp/tool_images
[10:55:10.878] [Core] [DBUG] [platform.register:60]: 平台适配器 aiocqhttp 已注册
[10:55:10.904] [Core] [DBUG] [platform.register:60]: 平台适配器 wecom_ai_bot 已注册
[10:55:10.906] [Core] [DBUG] [platform.register:60]: 平台适配器 webchat 已注册
Traceback (most recent call last):
File "/AstrBot/main.py", line 14, in
from astrbot.core.initial_loader import InitialLoader # noqa: E402
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/AstrBot/astrbot/core/initial_loader.py", line 14, in
from astrbot.dashboard.server import AstrBotDashboard
File "/AstrBot/astrbot/dashboard/server.py", line 26, in
from .routes import *
File "/AstrBot/astrbot/dashboard/routes/init.py", line 18, in
from .skills import SkillsRoute
File "/AstrBot/astrbot/dashboard/routes/skills.py", line 12, in
from astrbot.core.computer.computer_client import (
File "/AstrBot/astrbot/core/computer/computer_client.py", line 16, in
from .booters.local import LocalBooter
File "/AstrBot/astrbot/core/computer/booters/local.py", line 12, in
from python_ripgrep import search
ModuleNotFoundError: No module named 'python_ripgrep'
[10:55:24.810] [Core] [INFO] [AstrBot.runtime_bootstrap:41]: Bootstrapping runtime CA bundle.
[10:55:24.824] [Core] [INFO] [AstrBot.runtime_bootstrap:33]: Configured aiohttp verified SSL context with system+certifi trust chain.
[10:55:26.274] [Core] [DBUG] [agent.tool_image_cache:55]: ToolImageCache initialized, cache dir: /AstrBot/data/temp/tool_images
[10:55:26.528] [Core] [DBUG] [platform.register:60]: 平台适配器 aiocqhttp 已注册
[10:55:26.553] [Core] [DBUG] [platform.register:60]: 平台适配器 wecom_ai_bot 已注册
[10:55:26.555] [Core] [DBUG] [platform.register:60]: 平台适配器 webchat 已注册
Traceback (most recent call last):
File "/AstrBot/main.py", line 14, in
from astrbot.core.initial_loader import InitialLoader # noqa: E402
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/AstrBot/astrbot/core/initial_loader.py", line 14, in
from astrbot.dashboard.server import AstrBotDashboard
File "/AstrBot/astrbot/dashboard/server.py", line 26, in
from .routes import *
File "/AstrBot/astrbot/dashboard/routes/init.py", line 18, in
from .skills import SkillsRoute
File "/AstrBot/astrbot/dashboard/routes/skills.py", line 12, in
from astrbot.core.computer.computer_client import (
File "/AstrBot/astrbot/core/computer/computer_client.py", line 16, in
from .booters.local import LocalBooter
File "/AstrBot/astrbot/core/computer/booters/local.py", line 12, in
from python_ripgrep import search
ModuleNotFoundError: No module named 'python_ripgrep'
[10:55:53.179] [Core] [INFO] [AstrBot.runtime_bootstrap:41]: Bootstrapping runtime CA bundle.
[10:55:53.193] [Core] [INFO] [AstrBot.runtime_bootstrap:33]: Configured aiohttp verified SSL context with system+certifi trust chain.
[10:55:54.658] [Core] [DBUG] [agent.tool_image_cache:55]: ToolImageCache initialized, cache dir: /AstrBot/data/temp/tool_images
[10:55:54.917] [Core] [DBUG] [platform.register:60]: 平台适配器 aiocqhttp 已注册
[10:55:54.942] [Core] [DBUG] [platform.register:60]: 平台适配器 wecom_ai_bot 已注册
[10:55:54.944] [Core] [DBUG] [platform.register:60]: 平台适配器 webchat 已注册
Traceback (most recent call last):
File "/AstrBot/main.py", line 14, in
from astrbot.core.initial_loader import InitialLoader # noqa: E402
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/AstrBot/astrbot/core/initial_loader.py", line 14, in
from astrbot.dashboard.server import AstrBotDashboard
File "/AstrBot/astrbot/dashboard/server.py", line 26, in

Are you willing to submit a PR? / 你愿意提交 PR 吗?

  • Yes!

Code of Conduct

Metadata

Metadata

Assignees

No one assigned

    Labels

    area:coreThe bug / feature is about astrbot's core, backendbugSomething isn't workingfeature:updaterThe bug / feature is about astrbot updater systempriority: p0

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions