运行MCL时出现错误,Failed to init MiraiConsole
-
今天发现其中一个包提示更新。
于是使用power shell执行了./mcl -u指令
之后出现了错误,在删除config文件重新生成,并修改升级 mirai 至 2.13.0(-RC/-RC2), 使用新的短信验证方法解决设备验证文章中提到的config后依旧没有解决问题,以下是错误代码2022-11-16 22:58:51 I/main: Backend: version 2.13.0, built on 2022-11-01 10:47:11. 2022-11-16 22:58:51 I/main: Frontend Terminal: version 2.13.0, provided by Mamoe Technologies 2022-11-16 22:58:51 I/main: Welcome to visit https://mirai.mamoe.net/ 2022-11-16 22:58:51 W/stderr: SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder". 2022-11-16 22:58:51 W/stderr: SLF4J: Defaulting to no-operation (NOP) logger implementation 2022-11-16 22:58:51 W/stderr: SLF4J: See http://www.slf4j.org/codes.html#StaticLoggerBinder for further details. 2022-11-16 22:58:52 I/plugin: Successfully loaded plugin net.mamoe.mirai-api-http v2.6.2 2022-11-16 22:58:52 I/plugin: Successfully loaded plugin net.mamoe.mirai-api-http v2.6.2 2022-11-16 22:58:52 I/plugin: Successfully loaded plugin indi.eiriksgata.rulateday-dice v0.0.1 2022-11-16 22:58:52 I/plugin: Successfully loaded plugin MCL Addon v2.1.1 2022-11-16 22:58:52 I/main: Prepared built-in commands: autoLogin, help, login, logout, permission, status, stop 2022-11-16 22:58:52 I/Mirai HTTP API: ******************************************************** 2022-11-16 22:58:52 W/stderr: SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder". 2022-11-16 22:58:52 W/stderr: SLF4J: Defaulting to no-operation (NOP) logger implementation 2022-11-16 22:58:52 W/stderr: SLF4J: See http://www.slf4j.org/codes.html#StaticLoggerBinder for further details. 2022-11-16 22:58:52 I/http adapter: >>> [http adapter] is listening at http://localhost:23456 2022-11-16 22:58:52 I/ws adapter: >>> [ws adapter] is listening at ws://localhost:23456 2022-11-16 22:58:52 I/Mirai HTTP API: Http api server is running with verifyKey: 519051785022 2022-11-16 22:58:52 I/Mirai HTTP API: adaptors: [http,ws] 2022-11-16 22:58:52 I/Mirai HTTP API: ******************************************************** 2022-11-16 22:58:52 E/main: Failed to init MiraiConsole. net.mamoe.mirai.console.plugin.loader.PluginLoadException: Exception while enabling net.mamoe.mirai-api-http at net.mamoe.mirai.console.internal.plugin.BuiltInJvmPluginLoaderImpl.enable(BuiltInJvmPluginLoaderImpl.kt:311) at net.mamoe.mirai.console.internal.plugin.BuiltInJvmPluginLoaderImpl.enable(BuiltInJvmPluginLoaderImpl.kt:35) at net.mamoe.mirai.console.plugin.jvm.JvmPluginLoader$BuiltIn.enable(JvmPluginLoader.kt) at net.mamoe.mirai.console.plugin.jvm.JvmPluginLoader$BuiltIn.enable(JvmPluginLoader.kt:50) at net.mamoe.mirai.console.plugin.PluginManager.enablePlugin(PluginManager.kt:173) at net.mamoe.mirai.console.internal.plugin.PluginManagerImpl.enableAllLoadedPlugins$mirai_console(PluginManagerImpl.kt:175) at net.mamoe.mirai.console.internal.MiraiConsoleImplementationBridge.doStart$mirai_console(MiraiConsoleImplementationBridge.kt:336) at net.mamoe.mirai.console.MiraiConsoleImplementation$Companion.start(MiraiConsoleImplementation.kt:508) at net.mamoe.mirai.console.terminal.MiraiConsoleTerminalLoader.startAsDaemon(MiraiConsoleTerminalLoader.kt:177) at net.mamoe.mirai.console.terminal.MiraiConsoleTerminalLoader.startAsDaemon$default(MiraiConsoleTerminalLoader.kt:176) at net.mamoe.mirai.console.terminal.MiraiConsoleTerminalLoader.main(MiraiConsoleTerminalLoader.kt:54) at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77) at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.base/java.lang.reflect.Method.invoke(Method.java:568) at org.itxtech.mcl.Utility.bootJars(Utility.java:86) at org.itxtech.mcl.Utility.bootJars(Utility.java:76) at org.itxtech.mcl.Utility.bootMirai(Utility.java:98) at org.itxtech.mcl.module.builtin.Boot.boot(Boot.java:113) at org.itxtech.mcl.module.ModuleManager.phaseBoot(ModuleManager.java:123) at org.itxtech.mcl.Loader.lambda$start$4(Loader.java:196) at org.itxtech.mcl.Loader.tryCatching(Loader.java:151) at org.itxtech.mcl.Loader.start(Loader.java:196) at org.itxtech.mcl.Loader.main(Loader.java:84) Caused by: net.mamoe.mirai.console.permission.PermissionRegistryConflictException: Conflicting Permission registry. new: PermissionImpl(id=net.mamoe.mirai-api-http:*, description='The base permission', parent=PermissionImpl(id=*:*, description='The root permission', parent=<self>)), existing: PermissionImpl(id=net.mamoe.mirai-api-http:*, description='The base permission', parent=PermissionImpl(id=*:*, description='The root permission', parent=<self>)) at net.mamoe.mirai.console.internal.permission.AbstractConcurrentPermissionService.register(AbstractConcurrentPermissionService.kt:29) at net.mamoe.mirai.console.permission.PermissionService.register$default(PermissionService.kt:101) at net.mamoe.mirai.console.internal.plugin.JvmPluginInternal$parentPermission$2.invoke(JvmPluginInternal.kt:52) at net.mamoe.mirai.console.internal.plugin.JvmPluginInternal$parentPermission$2.invoke(JvmPluginInternal.kt:51) at kotlin.SynchronizedLazyImpl.getValue(LazyJVM.kt:74) at net.mamoe.mirai.console.internal.plugin.JvmPluginInternal.getParentPermission(JvmPluginInternal.kt:51) at net.mamoe.mirai.console.internal.plugin.JvmPluginInternal.internalOnEnable$mirai_console(JvmPluginInternal.kt:126) at net.mamoe.mirai.console.internal.plugin.BuiltInJvmPluginLoaderImpl.enable(BuiltInJvmPluginLoaderImpl.kt:305) ... 23 more
mirai版本为2.13.0
操作系统为WIN10
java信息:
openjdk version "17.0.4.1" 2022-08-12
OpenJDK Runtime Environment Temurin-17.0.4.1+1 (build 17.0.4.1+1)
OpenJDK 64-Bit Server VM Temurin-17.0.4.1+1 (build 17.0.4.1+1, mixed mode, sharing) -
请检查 plugins 下是否有重复的插件
-
@cssxsh 啊发现了是api-http插件重复了,更新之后旧文件没有删除。谢谢大佬,问题解决了