MiraiForum

    • Register
    • Login
    • Search
    • Popular
    • Recent
    • Unsolved
    • Tags
    • Groups
    • 友情链接

    Debian虚拟机未知原因报错

    BUG反馈
    2
    2
    223
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • A
      a15276317656 last edited by

      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)
      
      
      1 Reply Last reply Reply Quote 0
      • 起舞弄清影
        起舞弄清影 摸鱼 last edited by

        你这个是权限不足吧
        日志里提到了在 Mirai 写入 /home/xxxxx/logs/2023-07-04.log 的日志文件时遭到了拒绝
        就是这一行
        java.nio.file.AccessDeniedException: /home/xxxxx/logs/2023-07-04.log

        1 Reply Last reply Reply Quote 0
        • 1 / 1
        • First post
          Last post
        Powered by Mamoe Technologies & NodeBB | 友情链接 | 服务监控 | Contact