mirai console 启动失败 [Failed to init MiraiConsole]
-
[root@VM-24-10-centos mcl]# ./mcl
23:01:44 [INFO] iTXTech Mirai Console Loader version 1.2.2-60c67fb
23:01:44 [INFO] https://github.com/iTXTech/mirai-console-loader
23:01:44 [INFO] This program is licensed under GNU AGPL v3
23:01:45 [INFO] Verifying "net.mamoe:mirai-console" v2.11.0-M1
23:01:46 [INFO] Verifying "net.mamoe:mirai-console-terminal" v2.11.0-M1
23:01:46 [INFO] Verifying "net.mamoe:mirai-core-all" v2.11.0-M1
23:01:47 [INFO] Verifying "org.itxtech:mcl-addon" v1.2.2
23:01:47 [INFO] Fetching Mirai Console Loader Announcement...
23:01:47 [INFO] Mirai Console Loader Announcement:
[WARNING] 您目前使用的仓库源 gitee 将不再受到支持
[WARNING] 我们已经停止对 gitee 源的同步更新
[WARNING] 如果您依然使用此源, 则不会再受到我们的更新推送
[WARNING]
[WARNING] 详见
[WARNING]- https://mirai.mamoe.net/topic/1084/ [WARNING]
- https://github.com/project-mirai/mirai-repo-mirror
[WARNING]
[WARNING] Mamoe Technologies & iTX Technologies
[WARNING] 03/30/20222022-08-27 23:01:49 I/main: Starting mirai-console...
2022-08-27 23:01:49 I/main: Backend: version 2.11.0-M1, built on 2022-03-08 20:34 :54.
2022-08-27 23:01:49 I/main: Frontend Terminal: version 2.11.0-M1, provided by Mam oe Technologies
2022-08-27 23:01:49 I/main: Welcome to visit https://mirai.mamoe.net/
2022-08-27 23:01:49 W/stderr: SLF4J: Failed to load class "org.slf4j.impl.StaticL oggerBinder".
2022-08-27 23:01:49 W/stderr: SLF4J: Defaulting to no-operation (NOP) logger impl ementation
2022-08-27 23:01:49 W/stderr: SLF4J: See http://www.slf4j.org/codes.html#StaticLo ggerBinder for further details.
2022-08-27 23:01:49 E/main: Failed to init MiraiConsole.
java.util.zip.ZipException: zip END header not found
at java.base/java.util.zip.ZipFile$Source.zerror(ZipFile.java:1607)
at java.base/java.util.zip.ZipFile$Source.findEND(ZipFile.java:1497)
at java.base/java.util.zip.ZipFile$Source.initCEN(ZipFile.java:1504)
at java.base/java.util.zip.ZipFile$Source.<init>(ZipFile.java:1308)
at java.base/java.util.zip.ZipFile$Source.get(ZipFile.java:1271)
at java.base/java.util.zip.ZipFile$CleanableResource.<init>(ZipFile.java: 733)
at java.base/java.util.zip.ZipFile$CleanableResource.get(ZipFile.java:850 )
at java.base/java.util.zip.ZipFile.<init>(ZipFile.java:248)
at java.base/java.util.zip.ZipFile.<init>(ZipFile.java:177)
at java.base/java.util.zip.ZipFile.<init>(ZipFile.java:191)
at net.mamoe.mirai.console.internal.plugin.JvmPluginClassLoaderN.init0(Jv mPluginClassLoader.kt:123)
at net.mamoe.mirai.console.internal.plugin.JvmPluginClassLoaderN.<init>(J vmPluginClassLoader.kt:119)
at net.mamoe.mirai.console.internal.plugin.JvmPluginClassLoaderN.<init>(J vmPluginClassLoader.kt)
at net.mamoe.mirai.console.internal.plugin.JvmPluginClassLoaderN$Companio n.newLoader(JvmPluginClassLoader.kt:190)
at net.mamoe.mirai.console.internal.plugin.BuiltInJvmPluginLoaderImpl.ext ractPlugins(BuiltInJvmPluginLoaderImpl.kt:158)
at net.mamoe.mirai.console.plugin.loader.AbstractFilePluginLoader.listPlu gins(FilePluginLoader.kt:51)
at net.mamoe.mirai.console.plugin.jvm.JvmPluginLoader$BuiltIn.listPlugins (JvmPluginLoader.kt)
at net.mamoe.mirai.console.internal.plugin.PluginManagerImpl.listAndSortA llPlugins(PluginManagerImpl.kt:195)
at net.mamoe.mirai.console.internal.plugin.PluginManagerImpl.findAndSortA llPluginsUsingBuiltInLoaders(PluginManagerImpl.kt:141)
at net.mamoe.mirai.console.internal.plugin.PluginManagerImpl.loadAllPlugi nsUsingBuiltInLoaders$mirai_console(PluginManagerImpl.kt:151)
at net.mamoe.mirai.console.internal.MiraiConsoleImplementationBridge.doSt art$mirai_console(MiraiConsoleImplementationBridge.kt:167)
at net.mamoe.mirai.console.MiraiConsoleImplementation$Companion.start(Mir aiConsoleImplementation.kt:444)
at net.mamoe.mirai.console.terminal.MiraiConsoleTerminalLoader.startAsDae mon(MiraiConsoleTerminalLoader.kt:159)
at net.mamoe.mirai.console.terminal.MiraiConsoleTerminalLoader.startAsDae mon$default(MiraiConsoleTerminalLoader.kt:158)
at net.mamoe.mirai.console.terminal.MiraiConsoleTerminalLoader.main(Mirai ConsoleTerminalLoader.kt:46)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeM ethodAccessorImpl.java:62)
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(Del egatingMethodAccessorImpl.java:43)
at java.base/java.lang.reflect.Method.invoke(Method.java:566)
at org.itxtech.mcl.Utility.bootMirai(Utility.java:83)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeM ethodAccessorImpl.java:62)
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(Del egatingMethodAccessorImpl.java:43)
at java.base/java.lang.reflect.Method.invoke(Method.java:566)
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.ja va:109)
at org.mozilla.javascript.ContextFactory.doTopCall(ContextFactory.java:41 2)
at org.mozilla.javascript.ScriptRuntime.doTopCall(ScriptRuntime.java:3578 )
at org.mozilla.javascript.InterpretedFunction.call(InterpretedFunction.ja va:107)
at org.mozilla.javascript.ArrowFunction.call(ArrowFunction.java:43)
at org.mozilla.javascript.InterfaceAdapter.invokeImpl(InterfaceAdapter.ja va:155)
at org.mozilla.javascript.InterfaceAdapter.lambda$invoke$0(InterfaceAdapt er.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:1 05)
at org.mozilla.javascript.jdk18.VMBridge_jdk18$1.invoke(VMBridge_jdk18.ja va:126)
at com.sun.proxy.$Proxy4.run(Unknown Source)
at org.itxtech.mcl.script.ScriptManager.phaseBoot(ScriptManager.java:106)
at org.itxtech.mcl.Loader.lambda$start$3(Loader.java:176)
at org.itxtech.mcl.Loader.tryCatching(Loader.java:145)
at org.itxtech.mcl.Loader.start(Loader.java:176)
at org.itxtech.mcl.Loader.main(Loader.java:68) -
不使用 gitee 源,自己替换一下或者下载最新版 mcl
-
不是源的问题,是有一个插件损坏了,我一个一个删除插件,最终找到了那个损坏的插件