project-mirai / mirai-api-http

Mirai HTTP API (console) plugin
GNU Affero General Public License v3.0
1.66k stars 343 forks source link

运行报错 #635

Closed Arturia169 closed 2 years ago

Arturia169 commented 2 years ago

2022-10-15 08:47:40 I/main: Starting mirai-console... 2022-10-15 08:47:40 I/main: Backend: version 2.12.1, built on 2022-07-31 09:49:27. 2022-10-15 08:47:40 I/main: Frontend Terminal: version 2.12.1, provided by Mamoe Technologies 2022-10-15 08:47:40 I/main: Welcome to visit https://mirai.mamoe.net/ 2022-10-15 08:47:41 W/stderr: SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder". 2022-10-15 08:47:41 W/stderr: SLF4J: Defaulting to no-operation (NOP) logger implementation 2022-10-15 08:47:41 W/stderr: SLF4J: See http://www.slf4j.org/codes.html#StaticLoggerBinder for further details. 2022-10-15 08:47:41 I/plugin: Successfully loaded plugin MCL Addon v2.0.2 2022-10-15 08:47:42 I/main: Prepared built-in commands: autoLogin, help, login, logout, permission, status, stop 2022-10-15 08:47:42 I/MCL Addon: iTXTech MCL Version: 2.1.0-71ec418 2022-10-15 08:47:42 W/MCL Addon: iTXTech Soyuz 未安装,Soyuz MCL Handler 特性已禁用 2022-10-15 08:47:42 I/main: 1 plugin(s) enabled. 2022-10-15 08:47:42 W/WindowHelperJvm: Failed to initialize module java.desktop java.lang.UnsatisfiedLinkError: /root/mlc/java/lib/libawt_xawt.so: libXrender.so.1: cannot open shared object file: No such file or directory at java.base/jdk.internal.loader.NativeLibraries.load(Native Method) at java.base/jdk.internal.loader.NativeLibraries$NativeLibraryImpl.open(Unknown Source) at java.base/jdk.internal.loader.NativeLibraries.loadLibrary(Unknown Source) at java.base/jdk.internal.loader.NativeLibraries.loadLibrary(Unknown Source) at java.base/java.lang.ClassLoader.loadLibrary(Unknown Source) at java.base/java.lang.Runtime.load0(Unknown Source) at java.base/java.lang.System.load(Unknown Source) at java.base/jdk.internal.loader.NativeLibraries.load(Native Method) at java.base/jdk.internal.loader.NativeLibraries$NativeLibraryImpl.open(Unknown Source) at java.base/jdk.internal.loader.NativeLibraries.loadLibrary(Unknown Source) at java.base/jdk.internal.loader.NativeLibraries.loadLibrary(Unknown Source) at java.base/jdk.internal.loader.NativeLibraries.findFromPaths(Unknown Source) at java.base/jdk.internal.loader.NativeLibraries.loadLibrary(Unknown Source) at java.base/java.lang.ClassLoader.loadLibrary(Unknown Source) at java.base/java.lang.Runtime.loadLibrary0(Unknown Source) at java.base/java.lang.System.loadLibrary(Unknown Source) at java.desktop/java.awt.Toolkit$2.run(Unknown Source) at java.desktop/java.awt.Toolkit$2.run(Unknown Source) at java.base/java.security.AccessController.doPrivileged(Unknown Source) at java.desktop/java.awt.Toolkit.loadLibraries(Unknown Source) at java.desktop/java.awt.Toolkit.initStatic(Unknown Source) at java.desktop/java.awt.Toolkit.(Unknown Source) at java.base/java.lang.Class.forName0(Native Method) at java.base/java.lang.Class.forName(Unknown Source) at java.base/java.lang.Class.forName(Unknown Source) at net.mamoe.mirai.utils.WindowHelperJvm.(SwingSolver.kt:148) at net.mamoe.mirai.utils.LoginSolver.(LoginSolver.jvm.kt:92) at net.mamoe.mirai.utils.BotConfiguration.(BotConfiguration.kt:221) at net.mamoe.mirai.utils.BotConfiguration.(BotConfiguration.kt:625) at net.mamoe.mirai.console.MiraiConsole$INSTANCE.addBotImpl(MiraiConsole.kt:186) at net.mamoe.mirai.console.MiraiConsole$INSTANCE.addBot(MiraiConsole.kt:170) at net.mamoe.mirai.console.internal.MiraiConsoleImplementationBridge$doStart$10$1.invokeSuspend(MiraiConsoleImplementationBridge.kt:287) at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:33) at kotlinx.coroutines.DispatchedTask.run(DispatchedTask.kt:106) at kotlinx.coroutines.EventLoopImplBase.processNextEvent(EventLoop.common.kt:279) at kotlinx.coroutines.BlockingCoroutine.joinBlocking(Builders.kt:85) at kotlinx.coroutines.BuildersKtBuildersKt.runBlocking(Builders.kt:59) at kotlinx.coroutines.BuildersKt.runBlocking(Unknown Source) at kotlinx.coroutines.BuildersKtBuildersKt.runBlocking$default(Builders.kt:38) at kotlinx.coroutines.BuildersKt.runBlocking$default(Unknown Source) at net.mamoe.mirai.console.internal.MiraiConsoleImplementationBridge.doStart$mirai_console(MiraiConsoleImplementationBridge.kt:245) at net.mamoe.mirai.console.MiraiConsoleImplementation$Companion.start(MiraiConsoleImplementation.kt:464) at net.mamoe.mirai.console.terminal.MiraiConsoleTerminalLoader.startAsDaemon(MiraiConsoleTerminalLoader.kt:168) at net.mamoe.mirai.console.terminal.MiraiConsoleTerminalLoader.startAsDaemon$default(MiraiConsoleTerminalLoader.kt:167) at net.mamoe.mirai.console.terminal.MiraiConsoleTerminalLoader.main(MiraiConsoleTerminalLoader.kt:52) at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(Unknown Source) at java.base/java.lang.reflect.Method.invoke(Unknown Source) at org.itxtech.mcl.Utility.bootJars(Utility.java:89) at org.itxtech.mcl.Utility.bootJars(Utility.java:79) at org.itxtech.mcl.Utility.bootMirai(Utility.java:101) at org.itxtech.mcl.module.builtin.Boot.boot(Boot.java:109) at org.itxtech.mcl.module.ModuleManager.phaseBoot(ModuleManager.java:148) at org.itxtech.mcl.Loader.lambda$start$4(Loader.java:189) at org.itxtech.mcl.Loader.tryCatching(Loader.java:146) at org.itxtech.mcl.Loader.start(Loader.java:189) at org.itxtech.mcl.Loader.main(Loader.java:79)  2022-10-15 08:47:42 I/main: Auto-login 335569218 2022-10-15 08:47:42 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-10-15 08:47:43 I/Bot.335569218: Loaded account secrets from local cache. 2022-10-15 08:47:43 I/Bot.335569218: Saved account secrets to local cache for fast login. 2022-10-15 08:47:44 I/Bot.335569218: Login successful. 2022-10-15 08:47:47 V/Bot.335569218: Event: BotOnlineEvent(bot=Bot(335569218)) 2022-10-15 08:47:47 I/Bot.335569218: Bot login successful. 2022-10-15 08:47:47 I/main: mirai-console started successfully.

ryoii commented 2 years ago

把 mah 插件移除试试,我猜测是MCL的问题

Arturia169 commented 2 years ago

把 mah 插件移除试试,我猜测是MCL的问题

image 重装了一遍这次没有mah插件一样的报错 image

系统ubuntu20.04

ryoii commented 2 years ago

所以说了是 mcl 的问题

你系统缺少依赖的动态库了

Arturia169 commented 2 years ago

image 解决了我用的xshell终端 把这个选项点掉就正常了