Debian虚拟机未知原因报错
-
Debian虚拟机未知原因报错
2023-07-04 16:40:20 I/main: Backend: version 2.14.0, built on 2023-02-06 14:25:21. 2023-07-04 16:40:20 I/main: Frontend Terminal: version 2.14.0, provided by Mamoe Technologies 2023-07-04 16:40:20 I/main: Welcome to visit https://mirai.mamoe.net/ java.nio.file.AccessDeniedException: /home/xxxxx/logs/2023-07-04.log at java.base/sun.nio.fs.UnixException.translateToIOException(Unknown Source) at java.base/sun.nio.fs.UnixException.rethrowAsIOException(Unknown Source) at java.base/sun.nio.fs.UnixException.rethrowAsIOException(Unknown Source) at java.base/sun.nio.fs.UnixFileSystemProvider.newByteChannel(Unknown Source) at java.base/java.nio.file.spi.FileSystemProvider.newOutputStream(Unknown Source) at java.base/java.nio.file.Files.newOutputStream(Unknown Source) at java.base/java.nio.file.Files.newBufferedWriter(Unknown Source) at net.mamoe.mirai.console.frontendbase.logging.DailySplitLogRecorder.acquireFileWriter(LogRecorder.kt:137) at net.mamoe.mirai.console.frontendbase.logging.DailySplitLogRecorder.record(LogRecorder.kt:145) at net.mamoe.mirai.console.frontendbase.logging.AsyncLogRecorderForwarded.asyncRecord(LogRecorder.kt:85) at net.mamoe.mirai.console.frontendbase.logging.AsyncLogRecorder$2.invokeSuspend(LogRecorder.kt:61) at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:33) at kotlinx.coroutines.DispatchedTask.run(DispatchedTask.kt:106) at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source) at java.base/java.util.concurrent.FutureTask.run(Unknown Source) at java.base/java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(Unknown Source) at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source) at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) at java.base/java.lang.Thread.run(Unknown Source) java.lang.IllegalStateException: Writer not setup at net.mamoe.mirai.console.frontendbase.logging.DailySplitLogRecorder.record(LogRecorder.kt:147) at net.mamoe.mirai.console.frontendbase.logging.AsyncLogRecorderForwarded.asyncRecord(LogRecorder.kt:85) at net.mamoe.mirai.console.frontendbase.logging.AsyncLogRecorder$2.invokeSuspend(LogRecorder.kt:61) at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:33) at kotlinx.coroutines.DispatchedTask.run(DispatchedTask.kt:106) at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source) at java.base/java.util.concurrent.FutureTask.run(Unknown Source) at java.base/java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(Unknown Source) at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source) at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) at java.base/java.lang.Thread.run(Unknown Source) java.lang.IllegalStateException: Writer not setup at net.mamoe.mirai.console.frontendbase.logging.DailySplitLogRecorder.record(LogRecorder.kt:147) at net.mamoe.mirai.console.frontendbase.logging.AsyncLogRecorderForwarded.asyncRecord(LogRecorder.kt:85) at net.mamoe.mirai.console.frontendbase.logging.AsyncLogRecorder$2.invokeSuspend(LogRecorder.kt:61) at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:33) at kotlinx.coroutines.DispatchedTask.run(DispatchedTask.kt:106) at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source) at java.base/java.util.concurrent.FutureTask.run(Unknown Source) at java.base/java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(Unknown Source) at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source) at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) at java.base/java.lang.Thread.run(Unknown Source) java.lang.IllegalStateException: Writer not setup at net.mamoe.mirai.console.frontendbase.logging.DailySplitLogRecorder.record(LogRecorder.kt:147) at net.mamoe.mirai.console.frontendbase.logging.AsyncLogRecorderForwarded.asyncRecord(LogRecorder.kt:85) at net.mamoe.mirai.console.frontendbase.logging.AsyncLogRecorder$2.invokeSuspend(LogRecorder.kt:61) at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:33) at kotlinx.coroutines.DispatchedTask.run(DispatchedTask.kt:106) at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source) at java.base/java.util.concurrent.FutureTask.run(Unknown Source) at java.base/java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(Unknown Source) at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source) at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) at java.base/java.lang.Thread.run(Unknown Source)
-
你这个是权限不足吧
日志里提到了在 Mirai 写入 /home/xxxxx/logs/2023-07-04.log 的日志文件时遭到了拒绝
就是这一行
java.nio.file.AccessDeniedException: /home/xxxxx/logs/2023-07-04.log