未解决 启动mcl后mirai机器人不响应任何插件指令
-
23:44:16 [INFO] Verifying "net.mamoe:mirai-console" v2.12.1 23:44:16 [INFO] Verifying "net.mamoe:mirai-console-terminal" v2.12.1 23:44:17 [INFO] Verifying "net.mamoe:mirai-core-all" v2.12.1 23:44:17 [INFO] Verifying "org.itxtech:mcl-addon" v2.0.2 2022-08-08 23:44:19 I/main: Starting mirai-console... 2022-08-08 23:44:19 I/main: Backend: version 2.12.1, built on 2022-07-31 17:49:27. 2022-08-08 23:44:19 I/main: Frontend Terminal: version 2.12.1, provided by Mamoe Technologies 2022-08-08 23:44:19 I/main: Welcome to visit https://mirai.mamoe.net/ 2022-08-08 23:44:19 W/stderr: SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder". 2022-08-08 23:44:19 W/stderr: SLF4J: Defaulting to no-operation (NOP) logger implementation 2022-08-08 23:44:19 W/stderr: SLF4J: See http://www.slf4j.org/codes.html#StaticLoggerBinder for further details. 2022-08-08 23:44:19 I/MiraiNative: 当前系统: Windows Server 2019 2022-08-08 23:44:19 I/MiraiNative: 当前架构: x86 2022-08-08 23:44:19 I/plugin: Successfully loaded plugin MiraiNative v2.0.5-cp 2022-08-08 23:44:19 I/plugin: Successfully loaded plugin MCL Addon v2.0.2 2022-08-08 23:44:20 I/main: Prepared built-in commands: autoLogin, help, login, logout, permission, status, stop 2022-08-08 23:44:21 I/MiraiNative: 正在加载 Mirai Native Bridge C:\Users\Administrator\Desktop\Mirai\data\org.itxtech.mirainative\CQP.dll 2022-08-08 23:44:21 I/MCL Addon: iTXTech MCL Version: 2.1.0-71ec418 2022-08-08 23:44:21 W/MCL Addon: iTXTech Soyuz 未安装,Soyuz MCL Handler 特性已禁用 2022-08-08 23:44:21 I/main: 2 plugin(s) enabled. 2022-08-08 23:44:21 I/WindowHelperJvm: Mirai 正在使用桌面环境. 如遇到验证码将会弹出对话框. 可添加 JVM 属性 mirai.no-desktop 以关闭. 2022-08-08 23:44:21 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-08-08 23:44:21 I/main: Auto-login xxxxxxxx 2022-08-08 23:44:21 W/stderr: ERROR StatusLogger Log4j2 could not find a logging implementation. Please add log4j-core to the classpath. Using SimpleLogger to log to the console... 2022-08-08 23:44:32 I/MiraiNative: 插件 club.myepk.customReply.dll 已被加载,返回值为 0 。 2022-08-08 23:44:33 I/MiraiNative: 插件 Dice.Driver.CQ.dll 已被加载,返回值为 0 。 2022-08-08 23:44:33 I/Bot.xxxxxxxx: Loaded account secrets from local cache. 2022-08-08 23:44:34 I/Bot.xxxxxxxx: Saved account secrets to local cache for fast login. 2022-08-08 23:44:34 I/Bot.xxxxxxxx: Login successful. 2022-08-08 23:44:35 V/Bot.xxxxxxxx: Event: BotOnlineEvent(bot=Bot(xxxxxxxx)) 2022-08-08 23:44:35 I/MiraiNative: Mirai Native 正启用所有插件。 2022-08-08 23:44:35 I/MiraiNative: C:\Users\Administrator\Desktop\Mirai\data\org.itxtech.mirainative\plugins\windows\i386\club.myepk.customReply.dll 2022-08-08 23:44:35 I/Bot.xxxxxxxx: Bot login successful. 2022-08-08 23:44:35 I/main: mirai-console started successfully. 2022-08-08 23:44:35 I/MiraiNative: [铃心自定义 初始化] 铃心自定义数据正在初始化,初始化期间可能导致部分功能失效。 2022-08-08 23:44:35 I/MiraiNative: C:\Users\Administrator\Desktop\Mirai\data\org.itxtech.mirainative\plugins\windows\i386\Dice.Driver.CQ.dll 2022-08-08 23:44:35 I/MiraiNative: [DiceDriver DiceDriver] C:\Users\Administrator\Desktop\Mirai\Diceki 2022-08-08 23:44:35 I/MiraiNative: [DiceDriver DiceDriver] C:\Users\Administrator\Desktop\Mirai\Diceki\w4123.Dice.windows.i386.dll 2022-08-08 23:44:36 I/MiraiNative: [DiceDriver DiceDriver] Dicexxxxxxxx.init 2022-08-08 23:44:36 I/MiraiNative: [DiceDriver DiceDriver] Dice! by 溯洄 & Shiki Ver 2.6.3fixed(606)[MSVC 1929 Mar 15 2022 13:21:41] on Dice!驱动器 by 安研色Shiki & 溯洄w4123 ver0.4.1(8)[2022-03-14 23:14:54] for CoolQ 2022-08-08 23:44:36 I/MiraiNative: [DiceDriver DiceDriver] 2022-08-08 23:44:36 读取C:\Users\Administrator\Desktop\Mirai\Dicexxxxxxxx\PublicDeck中的25个文件, 共176个条目 读取/plugin/中的3个脚本, 共4个指令 读取/conf/CustomMsgReply.json中的55条自定义回复 扩展配置读取完毕√ 2022-08-08 23:44:36 I/MiraiNative: [DiceDriver DiceDriver] 2022-08-08 23:44:36 读取用户记录55条 读取群聊记录4条 用户数据读取完毕 2022-08-08 23:44:36 I/MiraiNative: [DiceDriver DiceDriver] Dice.webUIInit 2022-08-08 23:44:36 I/MiraiNative: [DiceDriver DiceDriver] Dice! WebUI 正于端口xxxx运行 2022-08-08 23:44:37 I/MiraiNative: [DiceDriver DiceDriver] Dice! WebUI 正于端口xxxx运行,本地可通过浏览器访问localhost:xxxx 默认用户名为admin密码为password,详细教程请查看 https://forum.kokona.tech/d/721-dice-webui-shi-yong-shuo-ming
显示以上信息之后,可以正常查看bot加入群聊的信息,但是Bot对所有铃心或Dice指令都不响应,也不在QQ私聊弹出铃心初始化完成或Dice加载完成等信息。猫猫头打开铃心设置显示“与服务器连接失败”,至今铃心仍未初始化完成。
问题持续好几天了,之前都是正常运行。使用更新插件更新过,还是一样问题。
-
今天又自动升级了一次,结果启动后报错
19:18:12 [INFO] Mirai Console Loader version 1.0.3-6e34f43 19:18:12 [INFO] https://github.com/iTXTech/mirai-console-loader 19:18:12 [INFO] This program is licensed under GNU AGPL v3 19:18:12 [DEBUG] Loading script: boot.js 19:18:12 [DEBUG] Loading script: config.js 19:18:12 [DEBUG] Loading script: repo.js 2022-08-24 19:18:15 I/main: Starting mirai-console... 2022-08-24 19:18:15 I/main: Backend: version 2.8.2, built on 2021-11-20 00:35:26. 2022-08-24 19:18:15 I/main: Frontend Terminal: version 2.8.2, provided by Mamoe Technologies 2022-08-24 19:18:15 I/main: Welcome to visit https://mirai.mamoe.net/ 2022-08-24 19:18:15 I/plugin: Successfully loaded plugin MCL Addon v2.0.2 2022-08-24 19:18:15 I/MiraiNative: 当前系统: Windows Server 2019 2022-08-24 19:18:15 I/MiraiNative: 当前架构: x86 2022-08-24 19:18:15 I/plugin: Successfully loaded plugin MiraiNative v2.0.5-cp 2022-08-24 19:18:15 I/main: Prepared built-in commands: autoLogin, help, login, permission, status, stop 2022-08-24 19:18:15 E/MCL Addon: java.lang.NoSuchMethodError: 'org.itxtech.mcl.Loader org.itxtech.mcl.Loader.getInstance()' java.lang.NoSuchMethodError: 'org.itxtech.mcl.Loader org.itxtech.mcl.Loader.getInstance()' at org.itxtech.mcl.addon.Addon.<init>(Addon.kt:35) at org.itxtech.mcl.addon.PluginMain.onEnable(PluginMain.kt:47) at net.mamoe.mirai.console.internal.plugin.JvmPluginInternal.internalOnEnable$mirai_console(JvmPluginInternal.kt:113) at net.mamoe.mirai.console.internal.plugin.BuiltInJvmPluginLoaderImpl.enable(BuiltInJvmPluginLoaderImpl.kt:122) at net.mamoe.mirai.console.plugin.jvm.JvmPluginLoader$BuiltIn.enable(JvmPluginLoader.kt) at net.mamoe.mirai.console.plugin.jvm.JvmPluginLoader$BuiltIn.enable(JvmPluginLoader.kt:36) at net.mamoe.mirai.console.plugin.PluginManager.enablePlugin(PluginManager.kt:129) at net.mamoe.mirai.console.internal.plugin.PluginManagerImpl.enableAllLoadedPlugins$mirai_console(PluginManagerImpl.kt:172) at net.mamoe.mirai.console.internal.MiraiConsoleImplementationBridge.doStart$mirai_console(MiraiConsoleImplementationBridge.kt:214) at net.mamoe.mirai.console.MiraiConsoleImplementation$Companion.start(MiraiConsoleImplementation.kt:276) at net.mamoe.mirai.console.terminal.MiraiConsoleTerminalLoader.startAsDaemon(MiraiConsoleTerminalLoader.kt:152) at net.mamoe.mirai.console.terminal.MiraiConsoleTerminalLoader.startAsDaemon$default(MiraiConsoleTerminalLoader.kt:151) at net.mamoe.mirai.console.terminal.MiraiConsoleTerminalLoader.main(MiraiConsoleTerminalLoader.kt:47) at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.base/java.lang.reflect.Method.invoke(Unknown Source) at org.itxtech.mcl.Utility.bootMirai(Utility.java:84) at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.base/java.lang.reflect.Method.invoke(Unknown Source) at org.mozilla.javascript.MemberBox.invoke(MemberBox.java:138) at org.mozilla.javascript.NativeJavaMethod.call(NativeJavaMethod.java:226) at org.mozilla.javascript.Interpreter.interpretLoop(Interpreter.java:1692) at org.mozilla.javascript.Interpreter.interpret(Interpreter.java:1013) at org.mozilla.javascript.InterpretedFunction.call(InterpretedFunction.java:109) at org.mozilla.javascript.ContextFactory.doTopCall(ContextFactory.java:412) at org.mozilla.javascript.ScriptRuntime.doTopCall(ScriptRuntime.java:3578) at org.mozilla.javascript.InterpretedFunction.call(InterpretedFunction.java:107) at org.mozilla.javascript.ArrowFunction.call(ArrowFunction.java:43) at org.mozilla.javascript.InterfaceAdapter.invokeImpl(InterfaceAdapter.java:155) at org.mozilla.javascript.InterfaceAdapter.lambda$invoke$0(InterfaceAdapter.java:105) at org.mozilla.javascript.Context.call(Context.java:554) at org.mozilla.javascript.ContextFactory.call(ContextFactory.java:522) at org.mozilla.javascript.InterfaceAdapter.invoke(InterfaceAdapter.java:105) at org.mozilla.javascript.jdk18.VMBridge_jdk18$1.invoke(VMBridge_jdk18.java:126) at com.sun.proxy.$Proxy4.run(Unknown Source) at org.itxtech.mcl.script.ScriptManager.phaseBoot(ScriptManager.java:101) at org.itxtech.mcl.Loader.start(Loader.java:128) at org.itxtech.mcl.Loader.main(Loader.java:53)
-
Mirai Console Loader version 1.0.3-6e34f43
E/MCL Addon
报错 是因为 MCL 版本 和 MCL Addon 版本匹配不上,mcl 目前最新是 2.1.0 -
下载了mcl 2.1.0覆盖文件夹之后直接打开mcl的cmd会闪退,打开mirai启动cmd会变成这样
Mirai Dice 启动脚本 初始化 检测Java Java: .\jre\bin\java 检测Git Git: .\git\cmd\git 01:01:50 [ERROR] com.google.gson.JsonSyntaxException: java.lang.IllegalStateException: Expected BEGIN_ARRAY but was STRING at line 4 column 18 path $.maven_repo at com.google.gson.internal.bind.ReflectiveTypeAdapterFactory$Adapter.read(ReflectiveTypeAdapterFactory.java:225) at com.google.gson.Gson.fromJson(Gson.java:991) at org.itxtech.mcl.component.Config.load(Config.java:84) at org.itxtech.mcl.Loader.loadConfig(Loader.java:112) at org.itxtech.mcl.Loader.main(Loader.java:78) Caused by: java.lang.IllegalStateException: Expected BEGIN_ARRAY but was STRING at line 4 column 18 path $.maven_repo at com.google.gson.stream.JsonReader.beginArray(JsonReader.java:350) at com.google.gson.internal.bind.CollectionTypeAdapterFactory$Adapter.read(CollectionTypeAdapterFactory.java:80) at com.google.gson.internal.bind.CollectionTypeAdapterFactory$Adapter.read(CollectionTypeAdapterFactory.java:61) at com.google.gson.internal.bind.ReflectiveTypeAdapterFactory$1.read(ReflectiveTypeAdapterFactory.java:130) at com.google.gson.internal.bind.ReflectiveTypeAdapterFactory$Adapter.read(ReflectiveTypeAdapterFactory.java:221) ... 4 more 01:01:50 [ERROR] Invalid configuration file. It has been renamed to C:\Users\Administrator\Desktop\Mirai\config.json.1661965310132.bak 01:01:50 [INFO] iTXTech Mirai Console Loader version 2.1.0-71ec418 01:01:50 [INFO] https://github.com/iTXTech/mirai-console-loader 01:01:50 [INFO] This program is licensed under GNU AGPL v3 01:01:50 [INFO] MCL Addon is installed! Website: https://github.com/iTXTech/mcl-addon 01:01:50 [WARN] To remove MCL Addon, run "./mcl --disable-module addon" and "./mcl --remove-package org.itxtech:mcl-addon" 01:01:51 [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 MCL 已推出 2.1.0,更好的支持 Mirai 2.11 的插件系统,建议更新。 01:01:51 [INFO] Verifying "net.mamoe:mirai-console" 01:01:51 [INFO] Updating "net.mamoe:mirai-console" to v2.12.1 01:01:52 [INFO] Verifying "net.mamoe:mirai-console-terminal" 01:01:52 [INFO] Updating "net.mamoe:mirai-console-terminal" to v2.12.1 01:01:52 [INFO] Verifying "net.mamoe:mirai-core-all" 01:01:52 [INFO] Updating "net.mamoe:mirai-core-all" to v2.12.1 01:01:52 [INFO] Verifying "org.itxtech:mcl-addon" 01:01:52 [INFO] Updating "org.itxtech:mcl-addon" to v2.0.2 2022-09-01 01:01:55 I/main: Starting mirai-console... 2022-09-01 01:01:55 I/main: Backend: version 2.12.1, built on 2022-07-31 17:49:27. 2022-09-01 01:01:55 I/main: Frontend Terminal: version 2.12.1, provided by Mamoe Technologies 2022-09-01 01:01:55 I/main: Welcome to visit https://mirai.mamoe.net/ 2022-09-01 01:01:55 W/stderr: SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder". 2022-09-01 01:01:55 W/stderr: SLF4J: Defaulting to no-operation (NOP) logger implementation 2022-09-01 01:01:55 W/stderr: SLF4J: See http://www.slf4j.org/codes.html#StaticLoggerBinder for further details. 2022-09-01 01:01:55 E/JvmPluginLoader: 移动 MiraiNative v2.0.5-cp 的数据文件目录(C:\Users\Administrator\Desktop\Mirai\data\MiraiNative)到 C:\Users\Administrator\Desktop\Mirai\data\org.itxtech.mirainative 失败, 原因:数据文件目录(C:\Users\Administrator\Desktop\Mirai\data\org.itxtech.mirainative)被占用 2022-09-01 01:01:55 E/JvmPluginLoader: Mirai Console 将自动关闭, 请删除或移动该目录后再启动 2022-09-01 01:01:55 I/JvmPluginLoader: 移动 MiraiNative v2.0.5-cp 的数据文件目录(C:\Users\Administrator\Desktop\Mirai\data\MiraiNative)到 C:\Users\Administrator\Desktop\Mirai\data\org.itxtech.mirainative 2022-09-01 01:01:55 E/JvmPluginLoader: 移动 MiraiNative v2.0.5-cp 的数据文件目录(C:\Users\Administrator\Desktop\Mirai\data\MiraiNative)到 C:\Users\Administrator\Desktop\Mirai\data\org.itxtech.mirainative 失败 2022-09-01 01:01:55 E/JvmPluginLoader: Mirai Console 将自动关闭, 请手动移动该文件夹后再启动 2022-09-01 01:01:55 I/JvmPluginLoader: 移动 MiraiNative v2.0.5-cp 的数据文件目录(C:\Users\Administrator\Desktop\Mirai\data\MiraiNative)到 C:\Users\Administrator\Desktop\Mirai\data\org.itxtech.mirainative 完成 2022-09-01 01:01:55 I/MiraiNative: 当前系统: Windows Server 2019 2022-09-01 01:01:55 I/MiraiNative: 当前架构: x86 2022-09-01 01:01:56 I/plugin: Successfully loaded plugin MiraiNative v2.0.5-cp 2022-09-01 01:01:56 I/plugin: Cannot load plugin MCL Addon v2.0.2 2022-09-01 01:01:56 E/main: Failed to init MiraiConsole. kotlinx.coroutines.JobCancellationException: Job was cancelled; job=SupervisorJobImpl{Cancelled}@10390b9 请按任意键继续. . .
如果使用文件夹内自带的更新mirai的cmd,会自动将mcl版本“更新”成1.0.7
-
mcl 1 和 mcl 2 的 config.json 格式不一样
需要删掉重新配置