SAGIRI-kawaii / sagiri-bot

基于Graia Ariadne和Mirai的QQ机器人 SAGIRI-BOT
GNU Affero General Public License v3.0
696 stars 83 forks source link

[Bug Report]部署3.0.1后启动提示asyncio.exceptions.TimeoutError #189

Closed mangokuma closed 2 years ago

mangokuma commented 2 years ago

环境信息

系统版本:Windows 10 21H1 19043.1466 源码版本:SAGIRI BOT v3.0.1 Latest 08a8204 其他信息:Python 3.8.10 mirai-console 2.9.1 mirai-api-http 2.4.0

问题描述 后启动提示asyncio.exceptions.TimeoutError

日志

MCL启动日志
  10:58:23 [INFO] iTXTech Mirai Console Loader version 1.2.2-60c67fb
  10:58:23 [INFO] https://github.com/iTXTech/mirai-console-loader
  10:58:23 [INFO] This program is licensed under GNU AGPL v3
  10:58:23 [INFO] Fetching Mirai Console Loader Announcement...
  10:58:24 [INFO] Mirai Console Loader Announcement:
Mirai Console Loader 公告栏

如果在图片上传的时候遇到问题请与我们联系 (需要提供图片文件源本)
`- 如 Unsupported image type for ExternalResource *
`  considering use gif/png/bmp/jpg format.
`- Tracker: https://github.com/mamoe/mirai/issues/new/choose

常用资源整合
`- https://mirai.mamoe.net/topic/653

  10:58:24 [INFO] Verifying "net.mamoe:mirai-console" v2.9.1
  10:58:24 [INFO] Verifying "net.mamoe:mirai-console-terminal" v2.9.1
  10:58:24 [INFO] Verifying "net.mamoe:mirai-core-all" v2.9.1
  10:58:25 [INFO] Verifying "org.itxtech:mcl-addon" v1.2.2
  10:58:25 [INFO] Verifying "net.mamoe:mirai-api-http" v2.4.0
2022-01-20 10:58:27 I/main: Starting mirai-console...
2022-01-20 10:58:27 I/main: Backend: version 2.9.1, built on 2021-12-31 12:54:15.
2022-01-20 10:58:27 I/main: Frontend Terminal: version 2.9.1, provided by Mamoe Technologies
2022-01-20 10:58:27 I/main: Welcome to visit https://mirai.mamoe.net/
2022-01-20 10:58:27 I/plugin: Successfully loaded plugin Chat Command v0.5.0
2022-01-20 10:58:27 I/plugin: Successfully loaded plugin MCL Addon v1.2.2
2022-01-20 10:58:27 I/plugin: Successfully loaded plugin net.mamoe.mirai-api-http v2.4.0
2022-01-20 10:58:27 I/plugin: Successfully loaded plugin MiraiNative v2.0.0-beta.1
2022-01-20 10:58:27 I/plugin: Successfully loaded plugin OneBot v0.3.4
2022-01-20 10:58:27 I/plugin: Successfully loaded plugin indi.eiriksgata.rulateday-dice v0.0.1
2022-01-20 10:58:27 I/main: Prepared built-in commands: autoLogin, help, login, logout, permission, status, stop
2022-01-20 10:58:27 I/MCL Addon: iTXTech MCL Version: 1.2.2-60c67fb
2022-01-20 10:58:27 I/Mirai HTTP API: ********************************************************
SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder".
SLF4J: Defaulting to no-operation (NOP) logger implementation
SLF4J: See http://www.slf4j.org/codes.html#StaticLoggerBinder for further details.
2022-01-20 10:58:28 I/http adapter: >>> [http adapter] is listening at http://localhost:8080
2022-01-20 10:58:28 I/Mirai HTTP API: Http api server is running with verifyKey: M*******A
2022-01-20 10:58:28 I/Mirai HTTP API: adaptors: [http]
2022-01-20 10:58:28 I/Mirai HTTP API: ********************************************************
2022-01-20 10:58:28 I/MiraiNative: 正在加载 Mirai Native Bridge D:\Software\mcl\data\org.itxtech.mirainative\CQP.dll
2022-01-20 10:58:28 I/MiraiNative: 正在加载外部库 D:\Software\mcl\data\org.itxtech.mirainative\libraries\libiconv.dll
2022-01-20 10:58:28 I/MiraiNative: 正在加载外部库 D:\Software\mcl\data\org.itxtech.mirainative\libraries\sqlite3.dll
2022-01-20 10:58:28 I/MiraiNative: 插件 com.benfennai.zhanbu.dll 已被加载,返回值为 0 。
2022-01-20 10:58:28 I/OneBot: Plugin loaded! 0.3.4
2022-01-20 10:58:28 I/OneBot: 插件当前Commit 版本: 75a84ee
2022-01-20 10:58:28 I/indi.eiriksgata.rulateday-dice: canonical:D:\Software\mcl
2022-01-20 10:58:28 I/indi.eiriksgata.rulateday-dice: absolute:D:\Software\mcl
2022-01-20 10:58:28 I/indi.eiriksgata.rulateday-dice: configPath:D:\Software\mcl\config\indi.eiriksgata.rulateday-dice
2022-01-20 10:58:28 I/indi.eiriksgata.rulateday-dice: dataPath:D:\Software\mcl\data\indi.eiriksgata.rulateday-dice
2022-01-20 10:58:28 I/indi.eiriksgata.rulateday-dice: Rulateday-Dice is enable.Register Eventing...
2022-01-20 10:58:28 I/indi.eiriksgata.rulateday-dice: Windows 10
2022-01-20 10:58:28 I/main: 6 plugin(s) enabled.
2022-01-20 10:58:28 I/WindowHelperJvm: Mirai 正在使用桌面环境. 如遇到验证码将会弹出对话框. 可添加 JVM 属性 `mirai.no-desktop` 以关闭.
2022-01-20 10:58:28 I/WindowHelperJvm: Mirai is using desktop. Captcha will be thrown by window popup. You can add `mirai.no-desktop` to JVM properties (-Dmirai.no-desktop) to disable it.
2022-01-20 10:58:28 I/main: Auto-login 2xxxxxxxx1
ERROR StatusLogger Log4j2 could not find a logging implementation. Please add log4j-core to the classpath. Using SimpleLogger to log to the console...
2022-01-20 10:58:29 I/Bot.2xxxxxxxx1: Loaded account secrets from local cache.
2022-01-20 10:58:30 I/Bot.2xxxxxxxx1: Saved account secrets to local cache for fast login.
2022-01-20 10:58:30 I/Bot.2xxxxxxxx1: Login successful.
2022-01-20 10:58:31 V/Bot.2xxxxxxxx1: Event: BotOnlineEvent(bot=Bot(2xxxxxxxx1))
2022-01-20 10:58:31 I/MiraiNative: Mirai Native 正启用所有插件。
2022-01-20 10:58:31 I/OneBot: Bot: 2xxxxxxxx1 HTTP API服务端是否配置开启: false
2022-01-20 10:58:31 I/OneBot: Bot: 2xxxxxxxx1 正向Websocket服务端是否配置开启: false
2022-01-20 10:58:31 I/OneBot: Bot: 2xxxxxxxx1 已开启接收图片缓存, 将会缓存收取到的所有图片
2022-01-20 10:58:31 I/OneBot: Bot: 2xxxxxxxx1 已开启接收语音缓存, 将会缓存收取到的所有语音
2022-01-20 10:58:31 I/OneBot: Bot: 2xxxxxxxx1 已开启心跳机制, 设定的心跳发送频率为 15000 毫秒
2022-01-20 10:58:31 I/Bot.2xxxxxxxx1: Bot login successful.
2022-01-20 10:58:31 I/main: mirai-console started successfully.

sagiri配置

必要数据及设置

bot_qq: 2xxxxxxxx1
host_qq: 2xxxxxxxx9
mirai_host: http://localhost:8080
verify_key: !!str M*******A
db_link: sqlite+aiosqlite:///data.db
web_manager_api: true
web_manager_auto_boot: true
proxy: proxy

mirai-api-http配置

adapters: 
  - http
debug: false
enableVerify: true
verifyKey: M*******A
singleMode: false
cacheSize: 4096
adapterSettings: {}

点击文本框下面小长条可以上传文件 common.log error.log

SAGIRI-kawaii commented 2 years ago

mirai-api-http配置错误,请按此配置,并将verifyKey和端口改为自己的

adapters: 
  - http
  - ws
debug: false
enableVerify: true
verifyKey: 1234567890
singleMode: false
cacheSize: 4096
adapterSettings: 
  http:
    host: localhost
    port: 23456
    cors: [*]
  ws:
    host: localhost
    port: 23456
    reservedSyncId: -1
nullqwertyuiop commented 2 years ago

下次发 issue 注意处理敏感信息哦(

SAGIRI-kawaii commented 2 years ago

确实,打了*的反而是最无关紧要的信息(x 已经给你qq打上x了

nullqwertyuiop commented 2 years ago

倒数 3~5 行和倒数 7 行也有(

mangokuma commented 2 years ago

感谢,可以了