[Bug]任务 gewechat 发生错误: Cannot connect to host localhost:2531 ssl:default [Connect call failed ('127.0.0.1', 2531)]
发生了什么
微信gewechat方式不可用
控制台日志如下:
astrbot | [07:30:37| ERROR] [core_lifecycle.py:99]: ------- 任务 gewechat 发生错误: Cannot connect to host localhost:2531 ssl:default [Connect call failed ('127.0.0.1', 2531)]
astrbot | [07:30:37| ERROR] [core_lifecycle.py:101]: | Traceback (most recent call last):
astrbot | [07:30:37| ERROR] [core_lifecycle.py:101]: | File "/usr/local/lib/python3.10/site-packages/aiohttp/connector.py", line 1115, in _wrap_create_connection
astrbot | [07:30:37| ERROR] [core_lifecycle.py:101]: | sock = await aiohappyeyeballs.start_connection(
astrbot | [07:30:37| ERROR] [core_lifecycle.py:101]: | File "/usr/local/lib/python3.10/site-packages/aiohappyeyeballs/impl.py", line 104, in start_connection
astrbot | [07:30:37| ERROR] [core_lifecycle.py:101]: | raise first_exception
astrbot | [07:30:37| ERROR] [core_lifecycle.py:101]: | File "/usr/local/lib/python3.10/site-packages/aiohappyeyeballs/impl.py", line 82, in start_connection
astrbot | [07:30:37| ERROR] [core_lifecycle.py:101]: | sock = await _connect_sock(
astrbot | [07:30:37| ERROR] [core_lifecycle.py:101]: | File "/usr/local/lib/python3.10/site-packages/aiohappyeyeballs/impl.py", line 174, in _connect_sock
astrbot | [07:30:37| ERROR] [core_lifecycle.py:101]: | await loop.sock_connect(sock, address)
astrbot | [07:30:37| ERROR] [core_lifecycle.py:101]: | File "/usr/local/lib/python3.10/asyncio/selector_events.py", line 501, in sock_connect
astrbot | [07:30:37| ERROR] [core_lifecycle.py:101]: | return await fut
astrbot | [07:30:37| ERROR] [core_lifecycle.py:101]: | File "/usr/local/lib/python3.10/asyncio/selector_events.py", line 541, in _sock_connect_cb
astrbot | [07:30:37| ERROR] [core_lifecycle.py:101]: | raise OSError(err, f'Connect call failed {address}')
astrbot | [07:30:37| ERROR] [core_lifecycle.py:101]: | ConnectionRefusedError: [Errno 111] Connect call failed ('127.0.0.1', 2531)
astrbot | [07:30:37| ERROR] [core_lifecycle.py:101]: |
astrbot | [07:30:37| ERROR] [core_lifecycle.py:101]: | The above exception was the direct cause of the following exception:
astrbot | [07:30:37| ERROR] [core_lifecycle.py:101]: |
astrbot | [07:30:37| ERROR] [core_lifecycle.py:101]: | Traceback (most recent call last):
astrbot | [07:30:37| ERROR] [core_lifecycle.py:101]: | File "/AstrBot/astrbot/core/core_lifecycle.py", line 94, in _task_wrapper
astrbot | [07:30:37| ERROR] [core_lifecycle.py:101]: | await task
astrbot | [07:30:37| ERROR] [core_lifecycle.py:101]: | File "/AstrBot/astrbot/core/platform/sources/gewechat/gewechat_platform_adapter.py", line 75, in _run
astrbot | [07:30:37| ERROR] [core_lifecycle.py:101]: | await self.client.login()
astrbot | [07:30:37| ERROR] [core_lifecycle.py:101]: | File "/AstrBot/astrbot/core/platform/sources/gewechat/client.py", line 235, in login
astrbot | [07:30:37| ERROR] [core_lifecycle.py:101]: | await self.get_token_id()
astrbot | [07:30:37| ERROR] [core_lifecycle.py:101]: | File "/AstrBot/astrbot/core/platform/sources/gewechat/client.py", line 56, in get_token_id
astrbot | [07:30:37| ERROR] [core_lifecycle.py:101]: | async with session.post(f"{self.base_url}/tools/getTokenId") as resp:
astrbot | [07:30:37| ERROR] [core_lifecycle.py:101]: | File "/usr/local/lib/python3.10/site-packages/aiohttp/client.py", line 1425, in aenter
astrbot | [07:30:37| ERROR] [core_lifecycle.py:101]: | self._resp: _RetType = await self._coro
astrbot | [07:30:37| ERROR] [core_lifecycle.py:101]: | File "/usr/local/lib/python3.10/site-packages/aiohttp/client.py", line 703, in _request
astrbot | [07:30:37| ERROR] [core_lifecycle.py:101]: | conn = await self._connector.connect(
astrbot | [07:30:37| ERROR] [core_lifecycle.py:101]: | File "/usr/local/lib/python3.10/site-packages/aiohttp/connector.py", line 548, in connect
astrbot | [07:30:37| ERROR] [core_lifecycle.py:101]: | proto = await self._create_connection(req, traces, timeout)
astrbot | [07:30:37| ERROR] [core_lifecycle.py:101]: | File "/usr/local/lib/python3.10/site-packages/aiohttp/connector.py", line 1056, in _create_connection
astrbot | [07:30:37| ERROR] [core_lifecycle.py:101]: | _, proto = await self._create_direct_connection(req, traces, timeout)
astrbot | [07:30:37| ERROR] [core_lifecycle.py:101]: | File "/usr/local/lib/python3.10/site-packages/aiohttp/connector.py", line 1400, in _create_direct_connection
astrbot | [07:30:37| ERROR] [core_lifecycle.py:101]: | raise last_exc
astrbot | [07:30:37| ERROR] [core_lifecycle.py:101]: | File "/usr/local/lib/python3.10/site-packages/aiohttp/connector.py", line 1369, in _create_direct_connection
astrbot | [07:30:37| ERROR] [core_lifecycle.py:101]: | transp, proto = await self._wrap_create_connection(
astrbot | [07:30:37| ERROR] [core_lifecycle.py:101]: | File "/usr/local/lib/python3.10/site-packages/aiohttp/connector.py", line 1130, in _wrap_create_connection
astrbot | [07:30:37| ERROR] [core_lifecycle.py:101]: | raise client_error(req.connection_key, exc) from exc
astrbot | [07:30:37| ERROR] [core_lifecycle.py:101]: | aiohttp.client_exceptions.ClientConnectorError: Cannot connect to host localhost:2531 ssl:default [Connect call failed ('127.0.0.1', 2531)]
astrbot | [07:30:37| ERROR] [core_lifecycle.py:101]: |
astrbot | [07:30:37| ERROR] [core_lifecycle.py:102]: -------
如何复现?
1.下载并解压Release3.4.17 2.在解压路径下执行docker compose up -d 3.在管理面板使用默认配置新建gewechat并启用,然后保存 4.控制台打印报错信息
AstrBot 版本与部署方式
Docker 4.37.1.178610 Astrbot 3.4.17 部署方式: 按照Docker默认设置安装(使用WSL2),在Astrbot解压路径使用默认的compose.yml部署
操作系统
Windows
额外信息
astrbot | [07:30:36| DEBUG] [register.py:41]: 平台适配器 webchat 已注册
astrbot | [07:30:36| WARNING] [main.py:47]: 检测到管理面板有更新。可以使用 /dashboard_update 命令更新。
astrbot | [07:30:36| INFO] [main.py:73]:
astrbot | ___ _... . ______ .___________.
astrbot | / \ / | || _ \ | _ \ / __ \ | |
astrbot | / ^ \ | (-------| |----| |) | | |) | | | | | ---| |----
astrbot | / /\ \ \ \ | | | / | _ < | | | | | |
astrbot | / _____ \ .----) | | | | |\ ----.| |) | | --' | | | astrbot | /__/ \__\ |_______/ |__| | _| .||/ ____/ ||
astrbot |
astrbot |
astrbot | [07:30:36| INFO] [core_lifecycle.py:33]: AstrBot v3.4.16
astrbot | [07:30:36| INFO] [star_manager.py:170]: 正在载入插件 reminder ...
astrbot | [07:30:36| INFO] [star_manager.py:170]: 正在载入插件 astrbot ...
astrbot | [07:30:36| INFO] [star_manager.py:170]: 正在载入插件 web_searcher ...
astrbot | [07:30:37| INFO] [star_manager.py:170]: 正在载入插件 python_interpreter ...
astrbot | [07:30:37| INFO] [main.py:144]: 检查 Docker 可用性: Missing valid docker_host.Either DOCKER_HOST or local sockets are not available.
astrbot | [07:30:37| INFO] [main.py:116]: Docker 不可用,代码解释器将无法使用,astrbot-python-interpreter 将自动禁用。
astrbot | [07:30:37| WARNING] [manager.py:208]: 未启用任何用于 文本生成 的提供商适配器。
astrbot | [07:30:37| INFO] [manager.py:40]: 尝试实例化 gewechat(gwchat) 平台适配器 ...
astrbot | [07:30:37| INFO] [stage.py:26]: 分段回复间隔时间:[1.5, 3.5]
astrbot | [07:30:37| INFO] [server.py:71]:
astrbot | ✨✨✨
astrbot | AstrBot 管理面板已启动,可访问
astrbot |
astrbot | 1. http://172.18.0.2:6185
astrbot | 2. http://localhost:6185
astrbot |
astrbot | 默认用户名和密码是 astrbot。
astrbot | ✨✨✨
astrbot |
astrbot | [07:30:37| INFO] [client.py:30]: Gewechat API: http://localhost:2531/v2/api
astrbot | [07:30:37| INFO] [client.py:31]: Gewechat 下载 API: http://localhost:2532/download/
astrbot | [07:30:37| INFO] [core_lifecycle.py:106]: AstrBot 启动完成。
astrbot | [07:30:37| INFO] [event_bus.py:13]: 事件总线已打开。
astrbot | [2025-02-03 07:30:37 +0000] [1] [INFO] Running on http://0.0.0.0:6185 (CTRL + C to quit)
astrbot | [07:30:37| ERROR] [core_lifecycle.py:99]: ------- 任务 gewechat 发生错误: Cannot connect to host localhost:2531 ssl:default [Connect call failed ('127.0.0.1', 2531)]
astrbot | [07:30:37| ERROR] [core_lifecycle.py:101]: | Traceback (most recent call last):
astrbot | [07:30:37| ERROR] [core_lifecycle.py:101]: | File "/usr/local/lib/python3.10/site-packages/aiohttp/connector.py", line 1115, in _wrap_create_connection
astrbot | [07:30:37| ERROR] [core_lifecycle.py:101]: | sock = await aiohappyeyeballs.start_connection(
astrbot | [07:30:37| ERROR] [core_lifecycle.py:101]: | File "/usr/local/lib/python3.10/site-packages/aiohappyeyeballs/impl.py", line 104, in start_connection
astrbot | [07:30:37| ERROR] [core_lifecycle.py:101]: | raise first_exception
astrbot | [07:30:37| ERROR] [core_lifecycle.py:101]: | File "/usr/local/lib/python3.10/site-packages/aiohappyeyeballs/impl.py", line 82, in start_connection
astrbot | [07:30:37| ERROR] [core_lifecycle.py:101]: | sock = await _connect_sock(
astrbot | [07:30:37| ERROR] [core_lifecycle.py:101]: | File "/usr/local/lib/python3.10/site-packages/aiohappyeyeballs/impl.py", line 174, in _connect_sock
astrbot | [07:30:37| ERROR] [core_lifecycle.py:101]: | await loop.sock_connect(sock, address)
astrbot | [07:30:37| ERROR] [core_lifecycle.py:101]: | File "/usr/local/lib/python3.10/asyncio/selector_events.py", line 501, in sock_connect
astrbot | [07:30:37| ERROR] [core_lifecycle.py:101]: | return await fut
astrbot | [07:30:37| ERROR] [core_lifecycle.py:101]: | File "/usr/local/lib/python3.10/asyncio/selector_events.py", line 541, in _sock_connect_cb
astrbot | [07:30:37| ERROR] [core_lifecycle.py:101]: | raise OSError(err, f'Connect call failed {address}')
astrbot | [07:30:37| ERROR] [core_lifecycle.py:101]: | ConnectionRefusedError: [Errno 111] Connect call failed ('127.0.0.1', 2531)
astrbot | [07:30:37| ERROR] [core_lifecycle.py:101]: |
astrbot | [07:30:37| ERROR] [core_lifecycle.py:101]: | The above exception was the direct cause of the following exception:
astrbot | [07:30:37| ERROR] [core_lifecycle.py:101]: |
astrbot | [07:30:37| ERROR] [core_lifecycle.py:101]: | Traceback (most recent call last):
astrbot | [07:30:37| ERROR] [core_lifecycle.py:101]: | File "/AstrBot/astrbot/core/core_lifecycle.py", line 94, in _task_wrapper
astrbot | [07:30:37| ERROR] [core_lifecycle.py:101]: | await task
astrbot | [07:30:37| ERROR] [core_lifecycle.py:101]: | File "/AstrBot/astrbot/core/platform/sources/gewechat/gewechat_platform_adapter.py", line 75, in _run
astrbot | [07:30:37| ERROR] [core_lifecycle.py:101]: | await self.client.login()
astrbot | [07:30:37| ERROR] [core_lifecycle.py:101]: | File "/AstrBot/astrbot/core/platform/sources/gewechat/client.py", line 235, in login
astrbot | [07:30:37| ERROR] [core_lifecycle.py:101]: | await self.get_token_id()
astrbot | [07:30:37| ERROR] [core_lifecycle.py:101]: | File "/AstrBot/astrbot/core/platform/sources/gewechat/client.py", line 56, in get_token_id
astrbot | [07:30:37| ERROR] [core_lifecycle.py:101]: | async with session.post(f"{self.base_url}/tools/getTokenId") as resp:
astrbot | [07:30:37| ERROR] [core_lifecycle.py:101]: | File "/usr/local/lib/python3.10/site-packages/aiohttp/client.py", line 1425, in aenter
astrbot | [07:30:37| ERROR] [core_lifecycle.py:101]: | self._resp: _RetType = await self._coro
astrbot | [07:30:37| ERROR] [core_lifecycle.py:101]: | File "/usr/local/lib/python3.10/site-packages/aiohttp/client.py", line 703, in _request
astrbot | [07:30:37| ERROR] [core_lifecycle.py:101]: | conn = await self._connector.connect(
astrbot | [07:30:37| ERROR] [core_lifecycle.py:101]: | File "/usr/local/lib/python3.10/site-packages/aiohttp/connector.py", line 548, in connect
astrbot | [07:30:37| ERROR] [core_lifecycle.py:101]: | proto = await self._create_connection(req, traces, timeout)
astrbot | [07:30:37| ERROR] [core_lifecycle.py:101]: | File "/usr/local/lib/python3.10/site-packages/aiohttp/connector.py", line 1056, in _create_connection
astrbot | [07:30:37| ERROR] [core_lifecycle.py:101]: | _, proto = await self._create_direct_connection(req, traces, timeout)
astrbot | [07:30:37| ERROR] [core_lifecycle.py:101]: | File "/usr/local/lib/python3.10/site-packages/aiohttp/connector.py", line 1400, in _create_direct_connection
astrbot | [07:30:37| ERROR] [core_lifecycle.py:101]: | raise last_exc
astrbot | [07:30:37| ERROR] [core_lifecycle.py:101]: | File "/usr/local/lib/python3.10/site-packages/aiohttp/connector.py", line 1369, in _create_direct_connection
astrbot | [07:30:37| ERROR] [core_lifecycle.py:101]: | transp, proto = await self._wrap_create_connection(
astrbot | [07:30:37| ERROR] [core_lifecycle.py:101]: | File "/usr/local/lib/python3.10/site-packages/aiohttp/connector.py", line 1130, in _wrap_create_connection
astrbot | [07:30:37| ERROR] [core_lifecycle.py:101]: | raise client_error(req.connection_key, exc) from exc
astrbot | [07:30:37| ERROR] [core_lifecycle.py:101]: | aiohttp.client_exceptions.ClientConnectorError: Cannot connect to host localhost:2531 ssl:default [Connect call failed ('127.0.0.1', 2531)]
astrbot | [07:30:37| ERROR] [core_lifecycle.py:101]: |
astrbot | [07:30:37| ERROR] [core_lifecycle.py:102]: -------
astrbot | [2025-02-03 07:36:55 +0000] [1] [INFO] 172.18.0.1:59198 GET / 1.1 200 756 6602
astrbot | [2025-02-03 07:36:56 +0000] [1] [INFO] 172.18.0.1:59214 GET /assets/index-d7da5bd1.css 1.1 200 703152 65439
astrbot | [2025-02-03 07:36:56 +0000] [1] [INFO] 172.18.0.1:59198 GET /assets/index-7aa7f2ab.js 1.1 200 994493 88189
astrbot | [2025-02-03 07:36:56 +0000] [1] [INFO] 172.18.0.1:59198 GET /assets/BlankLayout-96f7fccd.js 1.1 200 215 16687
astrbot | [2025-02-03 07:36:56 +0000] [1] [INFO] 172.18.0.1:59236 GET /assets/LoginPage-74e85ca7.css 1.1 200 463 11455
astrbot | [2025-02-03 07:36:56 +0000] [1] [INFO] 172.18.0.1:59228 GET /assets/md5-08a4c619.js 1.1 200 10539 11866
astrbot | [2025-02-03 07:36:56 +0000] [1] [INFO] 172.18.0.1:59214 GET /assets/LoginPage-47fc7e71.js 1.1 200 24283 12988
astrbot | [2025-02-03 07:36:56 +0000] [1] [INFO] 172.18.0.1:59214 GET /favicon.svg 1.1 200 1525 6602
astrbot | [2025-02-03 07:36:56 +0000] [1] [INFO] 172.18.0.1:59214 GET /assets/materialdesignicons-webfont-c1c004a9.woff2 1.1 200 396732 34542
astrbot | [2025-02-03 07:37:06 +0000] [1] [INFO] 172.18.0.1:42914 POST /api/auth/login 1.1 200 201 916
astrbot | [2025-02-03 07:37:06 +0000] [1] [INFO] 172.18.0.1:42930 GET /assets/common-36ea9db2.js 1.1 200 729 9729
astrbot | [2025-02-03 07:37:06 +0000] [1] [INFO] 172.18.0.1:42914 GET /assets/FullLayout-674a75e8.js 1.1 200 11087 17547
astrbot | [2025-02-03 07:37:06 +0000] [1] [INFO] 172.18.0.1:42942 GET /assets/DefaultDashboard-e7890d81.js 1.1 200 7528 11824
astrbot | [2025-02-03 07:37:06 +0000] [1] [INFO] 172.18.0.1:42956 GET /assets/_plugin-vue_export-helper-c27b6911.js 1.1 200 91 12792
astrbot | [2025-02-03 07:37:06 +0000] [1] [INFO] 172.18.0.1:42972 GET /api/live-log 1.1 101 - 472
astrbot | [2025-02-03 07:37:06 +0000] [1] [INFO] 172.18.0.1:42914 GET /api/stat/version 1.1 200 59 1891
astrbot | [2025-02-03 07:37:06 +0000] [1] [INFO] 172.18.0.1:42942 GET /api/stat/start-time 1.1 200 64 2166
astrbot | [2025-02-03 07:37:06 +0000] [1] [INFO] 172.18.0.1:42930 GET /api/update/check 1.1 200 91 9008
astrbot | [2025-02-03 07:37:06 +0000] [1] [INFO] 172.18.0.1:42980 GET /api/stat/get 1.1 200 954 9229
astrbot | [07:37:13| WARNING] [update.py:47]: 检查更新失败: 解析版本信息失败 (不影响除项目更新外的正常使用)
astrbot | [2025-02-03 07:37:13 +0000] [1] [INFO] 172.18.0.1:42956 GET /api/update/check 1.1 200 92 7106789
astrbot | [2025-02-03 07:37:54 +0000] [1] [INFO] 172.18.0.1:46432 GET /assets/ConfigPage-f564cc69.css 1.1 200 38 12727
astrbot | [2025-02-03 07:37:54 +0000] [1] [INFO] 172.18.0.1:46416 GET /assets/ConfigPage-016bf6bc.js 1.1 200 12742 13833
astrbot | [2025-02-03 07:37:54 +0000] [1] [INFO] 172.18.0.1:46434 GET /assets/AstrBotConfig-d9c0cee8.js 1.1 200 12348 9879
astrbot | [2025-02-03 07:37:54 +0000] [1] [INFO] 172.18.0.1:46434 GET /api/config/get 1.1 200 25674 885
astrbot | [2025-02-03 07:52:24 +0000] [1] [INFO] 172.18.0.1:49882 GET /assets/ConsolePage-da509f95.js 1.1 200 2185 14078
astrbot | [2025-02-03 07:52:24 +0000] [1] [INFO] 172.18.0.1:49894 GET /assets/ConsolePage-6748dc2b.css 1.1 200 88 14384
astrbot | [2025-02-03 07:52:24 +0000] [1] [INFO] 172.18.0.1:49896 GET /assets/ConsoleDisplayer-a770f122.js 1.1 200 1470 15252
你愿意提交 PR 吗?
- [ ] 是的,我愿意提交 PR!
Code of Conduct
- [x] 我已阅读并同意遵守该项目的 行为准则。
填写局域网地址。
http://<局域网ip>:2531
出现了新的报错:
[09:38:01| DEBUG] [register.py:41]: 平台适配器 webchat 已注册
[09:38:02| WARNING] [main.py:47]: 检测到管理面板有更新。可以使用 /dashboard_update 命令更新。
[09:38:02| INFO] [main.py:73]:
___ _... . ______ .___________.
/ \ / | || _ \ | _ \ / __ \ | |
/ ^ \ | (----
---| |----| |) | | |) | | | | | ---| |----
/ /\ \ \ \ | | | / | _ < | | | | | |
/ _____ \ .----) | | | | |\ ----.| |) | | --' | | | /__/ \__\ |_______/ |__| | _| .||/ ____/ ||
[09:38:02| INFO] [core_lifecycle.py:33]: AstrBot v3.4.16 [09:38:02| INFO] [star_manager.py:170]: 正在载入插件 web_searcher ... [09:38:02| INFO] [star_manager.py:170]: 正在载入插件 astrbot ... [09:38:02| INFO] [star_manager.py:170]: 正在载入插件 reminder ... [09:38:02| INFO] [star_manager.py:170]: 正在载入插件 python_interpreter ... [09:38:02| WARNING] [manager.py:208]: 未启用任何用于 文本生成 的提供商适配器。 [09:38:02| INFO] [manager.py:40]: 尝试实例化 gewechat(gwchat) 平台适配器 ... [09:38:02| INFO] [stage.py:26]: 分段回复间隔时间:[1.5, 3.5] Unclosed connector connections: ['deque([(<aiohttp.client_proto.ResponseHandler object at 0x7fdb4dbd3b80>, 351.747722835)])'] connector: <aiohttp.connector.UnixConnector object at 0x7fdb4db7dc60> [09:38:02| INFO] [server.py:71]: ✨✨✨ AstrBot 管理面板已启动,可访问
- http://172.18.0.2:6185
- http://localhost:6185
默认用户名和密码是 astrbot。 ✨✨✨
[09:38:02| INFO] [client.py:30]: Gewechat API: http://192.168.10.5:2531/v2/api
[09:38:02| INFO] [client.py:31]: Gewechat 下载 API: http://192.168.10.5:2532/download/
[09:38:02| INFO] [core_lifecycle.py:106]: AstrBot 启动完成。
[09:38:02| INFO] [event_bus.py:13]: 事件总线已打开。
[2025-02-03 09:38:02 +0000] [1] [INFO] Running on http://0.0.0.0:6185 (CTRL + C to quit)
[2025-02-03 09:38:02 +0000] [1] [INFO] 172.18.0.1:47310 GET /api/stat/start-time 1.1 200 64 842
[09:38:04| ERROR] [core_lifecycle.py:99]: ------- 任务 gewechat 发生错误: Cannot connect to host 192.168.10.5:2531 ssl:default [Connect call failed ('192.168.10.5', 2531)]
[09:38:04| ERROR] [core_lifecycle.py:101]: | Traceback (most recent call last):
[09:38:04| ERROR] [core_lifecycle.py:101]: | File "/usr/local/lib/python3.10/site-packages/aiohttp/connector.py", line 1115, in _wrap_create_connection
[09:38:04| ERROR] [core_lifecycle.py:101]: | sock = await aiohappyeyeballs.start_connection(
[09:38:04| ERROR] [core_lifecycle.py:101]: | File "/usr/local/lib/python3.10/site-packages/aiohappyeyeballs/impl.py", line 104, in start_connection
[09:38:04| ERROR] [core_lifecycle.py:101]: | raise first_exception
[09:38:04| ERROR] [core_lifecycle.py:101]: | File "/usr/local/lib/python3.10/site-packages/aiohappyeyeballs/impl.py", line 82, in start_connection
[09:38:04| ERROR] [core_lifecycle.py:101]: | sock = await _connect_sock(
[09:38:04| ERROR] [core_lifecycle.py:101]: | File "/usr/local/lib/python3.10/site-packages/aiohappyeyeballs/impl.py", line 174, in _connect_sock
[09:38:04| ERROR] [core_lifecycle.py:101]: | await loop.sock_connect(sock, address)
[09:38:04| ERROR] [core_lifecycle.py:101]: | File "/usr/local/lib/python3.10/asyncio/selector_events.py", line 501, in sock_connect
[09:38:04| ERROR] [core_lifecycle.py:101]: | return await fut
[09:38:04| ERROR] [core_lifecycle.py:101]: | File "/usr/local/lib/python3.10/asyncio/selector_events.py", line 541, in _sock_connect_cb
[09:38:04| ERROR] [core_lifecycle.py:101]: | raise OSError(err, f'Connect call failed {address}')
[09:38:04| ERROR] [core_lifecycle.py:101]: | ConnectionRefusedError: [Errno 111] Connect call failed ('192.168.10.5', 2531)
[09:38:04| ERROR] [core_lifecycle.py:101]: |
[09:38:04| ERROR] [core_lifecycle.py:101]: | The above exception was the direct cause of the following exception:
[09:38:04| ERROR] [core_lifecycle.py:101]: |
[09:38:04| ERROR] [core_lifecycle.py:101]: | Traceback (most recent call last):
[09:38:04| ERROR] [core_lifecycle.py:101]: | File "/AstrBot/astrbot/core/core_lifecycle.py", line 94, in _task_wrapper
[09:38:04| ERROR] [core_lifecycle.py:101]: | await task
[09:38:04| ERROR] [core_lifecycle.py:101]: | File "/AstrBot/astrbot/core/platform/sources/gewechat/gewechat_platform_adapter.py", line 75, in _run
[09:38:04| ERROR] [core_lifecycle.py:101]: | await self.client.login()
[09:38:04| ERROR] [core_lifecycle.py:101]: | File "/AstrBot/astrbot/core/platform/sources/gewechat/client.py", line 235, in login
[09:38:04| ERROR] [core_lifecycle.py:101]: | await self.get_token_id()
[09:38:04| ERROR] [core_lifecycle.py:101]: | File "/AstrBot/astrbot/core/platform/sources/gewechat/client.py", line 56, in get_token_id
[09:38:04| ERROR] [core_lifecycle.py:101]: | async with session.post(f"{self.base_url}/tools/getTokenId") as resp:
[09:38:04| ERROR] [core_lifecycle.py:101]: | File "/usr/local/lib/python3.10/site-packages/aiohttp/client.py", line 1425, in aenter
[09:38:04| ERROR] [core_lifecycle.py:101]: | self._resp: _RetType = await self._coro
[09:38:04| ERROR] [core_lifecycle.py:101]: | File "/usr/local/lib/python3.10/site-packages/aiohttp/client.py", line 703, in _request
[09:38:04| ERROR] [core_lifecycle.py:101]: | conn = await self._connector.connect(
[09:38:04| ERROR] [core_lifecycle.py:101]: | File "/usr/local/lib/python3.10/site-packages/aiohttp/connector.py", line 548, in connect
[09:38:04| ERROR] [core_lifecycle.py:101]: | proto = await self._create_connection(req, traces, timeout)
[09:38:04| ERROR] [core_lifecycle.py:101]: | File "/usr/local/lib/python3.10/site-packages/aiohttp/connector.py", line 1056, in _create_connection
[09:38:04| ERROR] [core_lifecycle.py:101]: | _, proto = await self._create_direct_connection(req, traces, timeout)
[09:38:04| ERROR] [core_lifecycle.py:101]: | File "/usr/local/lib/python3.10/site-packages/aiohttp/connector.py", line 1400, in _create_direct_connection
[09:38:04| ERROR] [core_lifecycle.py:101]: | raise last_exc
[09:38:04| ERROR] [core_lifecycle.py:101]: | File "/usr/local/lib/python3.10/site-packages/aiohttp/connector.py", line 1369, in _create_direct_connection
[09:38:04| ERROR] [core_lifecycle.py:101]: | transp, proto = await self._wrap_create_connection(
[09:38:04| ERROR] [core_lifecycle.py:101]: | File "/usr/local/lib/python3.10/site-packages/aiohttp/connector.py", line 1130, in _wrap_create_connection
[09:38:04| ERROR] [core_lifecycle.py:101]: | raise client_error(req.connection_key, exc) from exc
[09:38:04| ERROR] [core_lifecycle.py:101]: | aiohttp.client_exceptions.ClientConnectorError: Cannot connect to host 192.168.10.5:2531 ssl:default [Connect call failed ('192.168.10.5', 2531)]
[09:38:04| ERROR] [core_lifecycle.py:101]: |
[09:38:04| ERROR] [core_lifecycle.py:102]: -------
[2025-02-03 09:38:04 +0000] [1] [INFO] 172.18.0.1:47310 GET /config 1.1 304 - 5986
[2025-02-03 09:38:05 +0000] [1] [INFO] 172.18.0.1:47312 GET /api/live-log 1.1 101 - 530
[2025-02-03 09:38:05 +0000] [1] [INFO] 172.18.0.1:47326 GET /api/stat/start-time 1.1 200 64 5939
[2025-02-03 09:38:05 +0000] [1] [INFO] 172.18.0.1:47334 GET /api/stat/version 1.1 200 59 6155
[2025-02-03 09:38:05 +0000] [1] [INFO] 172.18.0.1:47348 GET /api/update/check 1.1 200 91 6276
[2025-02-03 09:38:05 +0000] [1] [INFO] 172.18.0.1:47350 GET /api/config/get 1.1 200 25667 6416
[09:38:06| WARNING] [update.py:47]: 检查更新失败: 解析版本信息失败 (不影响除项目更新外的正常使用)
[2025-02-03 09:38:06 +0000] [1] [INFO] 172.18.0.1:47310 GET /api/update/check 1.1 200 92 1736873
请参考 #327 。
有问题在 #327 提,此 issue 将关闭。