java.io.IOException: No space left on device

SpringSource Issue Tracker | Wei Hu (QE) | 4 years ago
  1. 0

    Jenkins server space will be occupied by the increased log file which will cause all CI tasks execution fail. We need to develop a shell script to auto clean up Jenkins server's disk space to ensure all the CI tasks could be run without manually clean up the disk. Please refer to the following error as one example: ===================================================== 13/02/20 07:11:09 INFO mapred.JobClient: Virtual memory (bytes) snapshot=1013063680 13/02/20 07:11:09 INFO mapred.JobClient: Map output records=1932 log4j:ERROR Failed to flush writer, java.io.IOException: No space left on device at java.io.FileOutputStream.writeBytes(Native Method) at java.io.FileOutputStream.write(FileOutputStream.java:282) at sun.nio.cs.StreamEncoder.writeBytes(StreamEncoder.java:202) at sun.nio.cs.StreamEncoder.implFlushBuffer(StreamEncoder.java:272) at sun.nio.cs.StreamEncoder.implFlush(StreamEncoder.java:276) at sun.nio.cs.StreamEncoder.flush(StreamEncoder.java:122) at java.io.OutputStreamWriter.flush(OutputStreamWriter.java:212) at org.apache.log4j.helpers.QuietWriter.flush(QuietWriter.java:59) at org.apache.log4j.WriterAppender.subAppend(WriterAppender.java:324) at org.apache.log4j.RollingFileAppender.subAppend(RollingFileAppender.java:276) at org.apache.log4j.WriterAppender.append(WriterAppender.java:162) at org.apache.log4j.AppenderSkeleton.doAppend(AppenderSkeleton.java:251) at org.apache.log4j.helpers.AppenderAttachableImpl.appendLoopOnAppenders(AppenderAttachableImpl.java:66) at org.apache.log4j.Category.callAppenders(Category.java:206) at org.apache.log4j.Category.forcedLog(Category.java:391) at org.apache.log4j.Category.log(Category.java:856) at com.vmware.qe.aurora.util.logging.impl.Log4jLoggerImpl.log(Log4jLoggerImpl.java:274) at com.vmware.qe.aurora.util.logging.impl.Log4jLoggerImpl.debug(Log4jLoggerImpl.java:150) at com.vmware.qe.aurora.util.logging.impl.Log4jLoggerImpl.debug(Log4jLoggerImpl.java:140) at com.vmware.qe.aurora.framework.impl.remote.RemoteHost.execCmd(RemoteHost.java:49) at com.vmware.qe.aurora.framework.impl.verificator.WordCountVerificator.runWordCount(WordCountVerificator2013-02-20 15:11:12,927 | DEBUG | SSHUtility | Thread-1: =====================================================

    SpringSource Issue Tracker | 4 years ago | Wei Hu (QE)
    java.io.IOException: No space left on device
  2. 0

    Jenkins server space will be occupied by the increased log file which will cause all CI tasks execution fail. We need to develop a shell script to auto clean up Jenkins server's disk space to ensure all the CI tasks could be run without manually clean up the disk. Please refer to the following error as one example: ===================================================== 13/02/20 07:11:09 INFO mapred.JobClient: Virtual memory (bytes) snapshot=1013063680 13/02/20 07:11:09 INFO mapred.JobClient: Map output records=1932 log4j:ERROR Failed to flush writer, java.io.IOException: No space left on device at java.io.FileOutputStream.writeBytes(Native Method) at java.io.FileOutputStream.write(FileOutputStream.java:282) at sun.nio.cs.StreamEncoder.writeBytes(StreamEncoder.java:202) at sun.nio.cs.StreamEncoder.implFlushBuffer(StreamEncoder.java:272) at sun.nio.cs.StreamEncoder.implFlush(StreamEncoder.java:276) at sun.nio.cs.StreamEncoder.flush(StreamEncoder.java:122) at java.io.OutputStreamWriter.flush(OutputStreamWriter.java:212) at org.apache.log4j.helpers.QuietWriter.flush(QuietWriter.java:59) at org.apache.log4j.WriterAppender.subAppend(WriterAppender.java:324) at org.apache.log4j.RollingFileAppender.subAppend(RollingFileAppender.java:276) at org.apache.log4j.WriterAppender.append(WriterAppender.java:162) at org.apache.log4j.AppenderSkeleton.doAppend(AppenderSkeleton.java:251) at org.apache.log4j.helpers.AppenderAttachableImpl.appendLoopOnAppenders(AppenderAttachableImpl.java:66) at org.apache.log4j.Category.callAppenders(Category.java:206) at org.apache.log4j.Category.forcedLog(Category.java:391) at org.apache.log4j.Category.log(Category.java:856) at com.vmware.qe.aurora.util.logging.impl.Log4jLoggerImpl.log(Log4jLoggerImpl.java:274) at com.vmware.qe.aurora.util.logging.impl.Log4jLoggerImpl.debug(Log4jLoggerImpl.java:150) at com.vmware.qe.aurora.util.logging.impl.Log4jLoggerImpl.debug(Log4jLoggerImpl.java:140) at com.vmware.qe.aurora.framework.impl.remote.RemoteHost.execCmd(RemoteHost.java:49) at com.vmware.qe.aurora.framework.impl.verificator.WordCountVerificator.runWordCount(WordCountVerificator2013-02-20 15:11:12,927 | DEBUG | SSHUtility | Thread-1: =====================================================

    SpringSource Issue Tracker | 4 years ago | Wei Hu (QE)
    java.io.IOException: No space left on device
  3. 0

    Re: java.io.IOException: No space left on device

    apache.org | 12 months ago
    java.io.IOException: No space left on device
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  1. linxiaolong 2 times, last 3 months ago
  2. linxiaolong 1 times, last 2 months ago
8 unregistered visitors
Not finding the right solution?
Take a tour to get the most out of Samebug.

Tired of useless tips?

Automated exception search integrated into your IDE

Root Cause Analysis

  1. java.io.IOException

    No space left on device

    at java.io.FileOutputStream.writeBytes()
  2. Java RT
    OutputStreamWriter.flush
    1. java.io.FileOutputStream.writeBytes(Native Method)
    2. java.io.FileOutputStream.write(FileOutputStream.java:282)
    3. sun.nio.cs.StreamEncoder.writeBytes(StreamEncoder.java:202)
    4. sun.nio.cs.StreamEncoder.implFlushBuffer(StreamEncoder.java:272)
    5. sun.nio.cs.StreamEncoder.implFlush(StreamEncoder.java:276)
    6. sun.nio.cs.StreamEncoder.flush(StreamEncoder.java:122)
    7. java.io.OutputStreamWriter.flush(OutputStreamWriter.java:212)
    7 frames
  3. Apache Log4j
    Category.log
    1. org.apache.log4j.helpers.QuietWriter.flush(QuietWriter.java:59)
    2. org.apache.log4j.WriterAppender.subAppend(WriterAppender.java:324)
    3. org.apache.log4j.RollingFileAppender.subAppend(RollingFileAppender.java:276)
    4. org.apache.log4j.WriterAppender.append(WriterAppender.java:162)
    5. org.apache.log4j.AppenderSkeleton.doAppend(AppenderSkeleton.java:251)
    6. org.apache.log4j.helpers.AppenderAttachableImpl.appendLoopOnAppenders(AppenderAttachableImpl.java:66)
    7. org.apache.log4j.Category.callAppenders(Category.java:206)
    8. org.apache.log4j.Category.forcedLog(Category.java:391)
    9. org.apache.log4j.Category.log(Category.java:856)
    9 frames
  4. com.vmware.qe
    RemoteHost.execCmd
    1. com.vmware.qe.aurora.util.logging.impl.Log4jLoggerImpl.log(Log4jLoggerImpl.java:274)
    2. com.vmware.qe.aurora.util.logging.impl.Log4jLoggerImpl.debug(Log4jLoggerImpl.java:150)
    3. com.vmware.qe.aurora.util.logging.impl.Log4jLoggerImpl.debug(Log4jLoggerImpl.java:140)
    4. com.vmware.qe.aurora.framework.impl.remote.RemoteHost.execCmd(RemoteHost.java:49)
    4 frames