java.io.IOException: No space left on device

Atlassian JIRA | Renan Battaglin | 6 years ago
  1. 0

    *edit:* Before this ticket was reporting that only the bamboo.cfg.xml could disappear. Changed this ticket to be more generic after handling cases where we could not identify what was the missing or corrupted file. Currently, files from the *Bamboo-Home-Dir* disappear from the hard disk where the Bamboo Server is installed when the disk gets full. The Server logs report: {code} 2010-10-05 04:00:13,673 ERROR [Persistence Adaptor Task] [AMQPersistenceAdapter] Failed to mark the Journal: java.io.IOException: No space left on device java.io.IOException: No space left on device at sun.nio.ch.FileDispatcher.write0(Native Method) at sun.nio.ch.FileDispatcher.write(FileDispatcher.java:57) at sun.nio.ch.IOUtil.writeFromNativeBuffer(IOUtil.java:122) at sun.nio.ch.IOUtil.write(IOUtil.java:93) at sun.nio.ch.FileChannelImpl.write(FileChannelImpl.java:224) at org.apache.activemq.kaha.impl.async.NIODataFileAppender.transfer(NIODataFileAppender.java:205) at org.apache.activemq.kaha.impl.async.NIODataFileAppender.processQueue(NIODataFileAppender.java:116) at org.apache.activemq.kaha.impl.async.DataFileAppender$2.run(DataFileAppender.java:227) {code} {code} 2010-10-05 04:03:45,580 WARN [BAM::Default Agent::Agent:pool-4-thread-1] [DefaultArtifactManager] Error occurred trying to generate an artifact redirect java.io.IOException: No space left on device at java.io.FileOutputStream.writeBytes(Native Method) at java.io.FileOutputStream.write(FileOutputStream.java:284) at org.apache.commons.io.IOUtils.write(IOUtils.java:784) at org.apache.commons.io.IOUtils.write(IOUtils.java:808) at org.apache.commons.io.FileUtils.writeStringToFile(FileUtils.java:1254) at com.atlassian.bamboo.build.artifact.DefaultArtifactManager.generateLatestVersionRedirect(DefaultArtifactManager.java:91) at com.atlassian.bamboo.build.artifact.DefaultArtifactManager.publish(DefaultArtifactManager.java:75) at com.atlassian.bamboo.build.artifact.BuildArtifactPostProcessor.call(BuildArtifactPostProcessor.java:62) at sun.reflect.GeneratedMethodAccessor612.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:616) at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:304) at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:182) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:149) at org.springframework.orm.hibernate.HibernateInterceptor.invoke(HibernateInterceptor.java:117) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171) at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:204) at $Proxy265.call(Unknown Source) at com.atlassian.bamboo.build.pipeline.tasks.ExecuteBuildTask.performCustomBuildProcess(ExecuteBuildTask.java:156) at com.atlassian.bamboo.build.pipeline.tasks.ExecuteBuildTask.call(ExecuteBuildTask.java:80) at sun.reflect.GeneratedMethodAccessor612.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:616) at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:304) at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:182) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:149) at org.springframework.orm.hibernate.HibernateInterceptor.invoke(HibernateInterceptor.java:117) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171) at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:204) at $Proxy264.call(Unknown Source) at com.atlassian.bamboo.v2.build.agent.DefaultBuildAgent.build(DefaultBuildAgent.java:189) at com.atlassian.bamboo.v2.build.agent.BuildAgentControllerImpl.waitAndPerformBuild(BuildAgentControllerImpl.java:90) at com.atlassian.bamboo.v2.build.agent.DefaultBuildAgent$1.run(DefaultBuildAgent.java:102) at com.atlassian.bamboo.build.pipeline.concurrent.NamedThreadFactory$2.run(NamedThreadFactory.java:47) at java.lang.Thread.run(Thread.java:636) {code}

    Atlassian JIRA | 6 years ago | Renan Battaglin
    java.io.IOException: No space left on device
  2. 0

    *edit:* Before this ticket was reporting that only the bamboo.cfg.xml could disappear. Changed this ticket to be more generic after handling cases where we could not identify what was the missing or corrupted file. Currently, files from the *Bamboo-Home-Dir* disappear from the hard disk where the Bamboo Server is installed when the disk gets full. The Server logs report: {code} 2010-10-05 04:00:13,673 ERROR [Persistence Adaptor Task] [AMQPersistenceAdapter] Failed to mark the Journal: java.io.IOException: No space left on device java.io.IOException: No space left on device at sun.nio.ch.FileDispatcher.write0(Native Method) at sun.nio.ch.FileDispatcher.write(FileDispatcher.java:57) at sun.nio.ch.IOUtil.writeFromNativeBuffer(IOUtil.java:122) at sun.nio.ch.IOUtil.write(IOUtil.java:93) at sun.nio.ch.FileChannelImpl.write(FileChannelImpl.java:224) at org.apache.activemq.kaha.impl.async.NIODataFileAppender.transfer(NIODataFileAppender.java:205) at org.apache.activemq.kaha.impl.async.NIODataFileAppender.processQueue(NIODataFileAppender.java:116) at org.apache.activemq.kaha.impl.async.DataFileAppender$2.run(DataFileAppender.java:227) {code} {code} 2010-10-05 04:03:45,580 WARN [BAM::Default Agent::Agent:pool-4-thread-1] [DefaultArtifactManager] Error occurred trying to generate an artifact redirect java.io.IOException: No space left on device at java.io.FileOutputStream.writeBytes(Native Method) at java.io.FileOutputStream.write(FileOutputStream.java:284) at org.apache.commons.io.IOUtils.write(IOUtils.java:784) at org.apache.commons.io.IOUtils.write(IOUtils.java:808) at org.apache.commons.io.FileUtils.writeStringToFile(FileUtils.java:1254) at com.atlassian.bamboo.build.artifact.DefaultArtifactManager.generateLatestVersionRedirect(DefaultArtifactManager.java:91) at com.atlassian.bamboo.build.artifact.DefaultArtifactManager.publish(DefaultArtifactManager.java:75) at com.atlassian.bamboo.build.artifact.BuildArtifactPostProcessor.call(BuildArtifactPostProcessor.java:62) at sun.reflect.GeneratedMethodAccessor612.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:616) at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:304) at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:182) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:149) at org.springframework.orm.hibernate.HibernateInterceptor.invoke(HibernateInterceptor.java:117) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171) at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:204) at $Proxy265.call(Unknown Source) at com.atlassian.bamboo.build.pipeline.tasks.ExecuteBuildTask.performCustomBuildProcess(ExecuteBuildTask.java:156) at com.atlassian.bamboo.build.pipeline.tasks.ExecuteBuildTask.call(ExecuteBuildTask.java:80) at sun.reflect.GeneratedMethodAccessor612.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:616) at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:304) at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:182) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:149) at org.springframework.orm.hibernate.HibernateInterceptor.invoke(HibernateInterceptor.java:117) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171) at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:204) at $Proxy264.call(Unknown Source) at com.atlassian.bamboo.v2.build.agent.DefaultBuildAgent.build(DefaultBuildAgent.java:189) at com.atlassian.bamboo.v2.build.agent.BuildAgentControllerImpl.waitAndPerformBuild(BuildAgentControllerImpl.java:90) at com.atlassian.bamboo.v2.build.agent.DefaultBuildAgent$1.run(DefaultBuildAgent.java:102) at com.atlassian.bamboo.build.pipeline.concurrent.NamedThreadFactory$2.run(NamedThreadFactory.java:47) at java.lang.Thread.run(Thread.java:636) {code}

    Atlassian JIRA | 6 years ago | Renan Battaglin
    java.io.IOException: No space left on device
  3. 0

    How does FileLock work?

    Stack Overflow | 6 years ago | Dónal
    java.io.IOException: The process cannot access the file because another process has locked a portion of the file
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    elasticsearch dead but pid file exists

    Google Groups | 2 years ago | shriyansh jain
    java.io.IOException: No space left on device

  1. davidvanlaatum 8 times, last 4 days ago
6 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
    FileOutputStream.write
    1. java.io.FileOutputStream.writeBytes(Native Method)
    2. java.io.FileOutputStream.write(FileOutputStream.java:284)
    2 frames
  3. Commons IO
    FileUtils.writeStringToFile
    1. org.apache.commons.io.IOUtils.write(IOUtils.java:784)
    2. org.apache.commons.io.IOUtils.write(IOUtils.java:808)
    3. org.apache.commons.io.FileUtils.writeStringToFile(FileUtils.java:1254)
    3 frames
  4. com.atlassian.bamboo
    BuildArtifactPostProcessor.call
    1. com.atlassian.bamboo.build.artifact.DefaultArtifactManager.generateLatestVersionRedirect(DefaultArtifactManager.java:91)
    2. com.atlassian.bamboo.build.artifact.DefaultArtifactManager.publish(DefaultArtifactManager.java:75)
    3. com.atlassian.bamboo.build.artifact.BuildArtifactPostProcessor.call(BuildArtifactPostProcessor.java:62)
    3 frames
  5. Java RT
    Method.invoke
    1. sun.reflect.GeneratedMethodAccessor612.invoke(Unknown Source)
    2. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    3. java.lang.reflect.Method.invoke(Method.java:616)
    3 frames
  6. Spring AOP
    ReflectiveMethodInvocation.proceed
    1. org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:304)
    2. org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:182)
    3. org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:149)
    3 frames
  7. Hibernate
    HibernateInterceptor.invoke
    1. org.springframework.orm.hibernate.HibernateInterceptor.invoke(HibernateInterceptor.java:117)
    1 frame
  8. Spring AOP
    JdkDynamicAopProxy.invoke
    1. org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
    2. org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:204)
    2 frames
  9. Unknown
    $Proxy265.call
    1. $Proxy265.call(Unknown Source)
    1 frame
  10. com.atlassian.bamboo
    ExecuteBuildTask.call
    1. com.atlassian.bamboo.build.pipeline.tasks.ExecuteBuildTask.performCustomBuildProcess(ExecuteBuildTask.java:156)
    2. com.atlassian.bamboo.build.pipeline.tasks.ExecuteBuildTask.call(ExecuteBuildTask.java:80)
    2 frames
  11. Java RT
    Method.invoke
    1. sun.reflect.GeneratedMethodAccessor612.invoke(Unknown Source)
    2. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    3. java.lang.reflect.Method.invoke(Method.java:616)
    3 frames
  12. Spring AOP
    ReflectiveMethodInvocation.proceed
    1. org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:304)
    2. org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:182)
    3. org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:149)
    3 frames
  13. Hibernate
    HibernateInterceptor.invoke
    1. org.springframework.orm.hibernate.HibernateInterceptor.invoke(HibernateInterceptor.java:117)
    1 frame
  14. Spring AOP
    JdkDynamicAopProxy.invoke
    1. org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
    2. org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:204)
    2 frames
  15. Unknown
    $Proxy264.call
    1. $Proxy264.call(Unknown Source)
    1 frame
  16. com.atlassian.bamboo
    NamedThreadFactory$2.run
    1. com.atlassian.bamboo.v2.build.agent.DefaultBuildAgent.build(DefaultBuildAgent.java:189)
    2. com.atlassian.bamboo.v2.build.agent.BuildAgentControllerImpl.waitAndPerformBuild(BuildAgentControllerImpl.java:90)
    3. com.atlassian.bamboo.v2.build.agent.DefaultBuildAgent$1.run(DefaultBuildAgent.java:102)
    4. com.atlassian.bamboo.build.pipeline.concurrent.NamedThreadFactory$2.run(NamedThreadFactory.java:47)
    4 frames
  17. Java RT
    Thread.run
    1. java.lang.Thread.run(Thread.java:636)
    1 frame