java.io.IOException: Bad file descriptor

Jenkins JIRA | qinqon | 5 years ago
  1. 0

    We have a NFS mountpoint where we store the jenkins jobs directory. When the job is storing the junit test results sometimes we show this Exception and the job fail. Recording test results FATAL: Failed to save the JUnit test result java.io.IOException: Bad file descriptor at java.io.FileOutputStream.close0(Native Method) at java.io.FileOutputStream.close(FileOutputStream.java:279) at sun.nio.cs.StreamEncoder.implClose(StreamEncoder.java:301) at sun.nio.cs.StreamEncoder.close(StreamEncoder.java:130) at java.io.OutputStreamWriter.close(OutputStreamWriter.java:216) at java.io.BufferedWriter.close(BufferedWriter.java:248) at hudson.util.AtomicFileWriter.close(AtomicFileWriter.java:94) at hudson.util.AtomicFileWriter.abort(AtomicFileWriter.java:104) at hudson.XmlFile.write(XmlFile.java:175) at hudson.tasks.junit.TestResultAction.setResult(TestResultAction.java:82) at hudson.tasks.junit.TestResultAction.<init>(TestResultAction.java:67) at hudson.tasks.junit.JUnitResultArchiver.perform(JUnitResultArchiver.java:138) at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:19) at hudson.model.AbstractBuild$AbstractRunner.perform(AbstractBuild.java:682) at hudson.model.AbstractBuild$AbstractRunner.performAllBuildSteps(AbstractBuild.java:657) at hudson.model.AbstractBuild$AbstractRunner.performAllBuildSteps(AbstractBuild.java:635) at hudson.model.Build$RunnerImpl.post2(Build.java:161) at hudson.model.AbstractBuild$AbstractRunner.post(AbstractBuild.java:604) at hudson.model.Run.run(Run.java:1400) at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46) at hudson.model.ResourceController.execute(ResourceController.java:88) at hudson.model.Executor.run(Executor.java:175)

    Jenkins JIRA | 5 years ago | qinqon
    java.io.IOException: Bad file descriptor
  2. 0

    We have a NFS mountpoint where we store the jenkins jobs directory. When the job is storing the junit test results sometimes we show this Exception and the job fail. Recording test results FATAL: Failed to save the JUnit test result java.io.IOException: Bad file descriptor at java.io.FileOutputStream.close0(Native Method) at java.io.FileOutputStream.close(FileOutputStream.java:279) at sun.nio.cs.StreamEncoder.implClose(StreamEncoder.java:301) at sun.nio.cs.StreamEncoder.close(StreamEncoder.java:130) at java.io.OutputStreamWriter.close(OutputStreamWriter.java:216) at java.io.BufferedWriter.close(BufferedWriter.java:248) at hudson.util.AtomicFileWriter.close(AtomicFileWriter.java:94) at hudson.util.AtomicFileWriter.abort(AtomicFileWriter.java:104) at hudson.XmlFile.write(XmlFile.java:175) at hudson.tasks.junit.TestResultAction.setResult(TestResultAction.java:82) at hudson.tasks.junit.TestResultAction.<init>(TestResultAction.java:67) at hudson.tasks.junit.JUnitResultArchiver.perform(JUnitResultArchiver.java:138) at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:19) at hudson.model.AbstractBuild$AbstractRunner.perform(AbstractBuild.java:682) at hudson.model.AbstractBuild$AbstractRunner.performAllBuildSteps(AbstractBuild.java:657) at hudson.model.AbstractBuild$AbstractRunner.performAllBuildSteps(AbstractBuild.java:635) at hudson.model.Build$RunnerImpl.post2(Build.java:161) at hudson.model.AbstractBuild$AbstractRunner.post(AbstractBuild.java:604) at hudson.model.Run.run(Run.java:1400) at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46) at hudson.model.ResourceController.execute(ResourceController.java:88) at hudson.model.Executor.run(Executor.java:175)

    Jenkins JIRA | 5 years ago | qinqon
    java.io.IOException: Bad file descriptor
  3. Speed up your debug routine!

    Automated exception search integrated into your IDE

  4. 0

    We have a NFS mountpoint where we store the jenkins jobs directory. When the job is storing the junit test results sometimes we show this Exception and the job fail. Recording test results FATAL: Failed to save the JUnit test result java.io.IOException: Bad file descriptor at java.io.FileOutputStream.close0(Native Method) at java.io.FileOutputStream.close(FileOutputStream.java:279) at sun.nio.cs.StreamEncoder.implClose(StreamEncoder.java:301) at sun.nio.cs.StreamEncoder.close(StreamEncoder.java:130) at java.io.OutputStreamWriter.close(OutputStreamWriter.java:216) at java.io.BufferedWriter.close(BufferedWriter.java:248) at hudson.util.AtomicFileWriter.close(AtomicFileWriter.java:94) at hudson.util.AtomicFileWriter.abort(AtomicFileWriter.java:104) at hudson.XmlFile.write(XmlFile.java:175) at hudson.tasks.junit.TestResultAction.setResult(TestResultAction.java:82) at hudson.tasks.junit.TestResultAction.<init>(TestResultAction.java:67) at hudson.tasks.junit.JUnitResultArchiver.perform(JUnitResultArchiver.java:138) at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:19) at hudson.model.AbstractBuild$AbstractRunner.perform(AbstractBuild.java:682) at hudson.model.AbstractBuild$AbstractRunner.performAllBuildSteps(AbstractBuild.java:657) at hudson.model.AbstractBuild$AbstractRunner.performAllBuildSteps(AbstractBuild.java:635) at hudson.model.Build$RunnerImpl.post2(Build.java:161) at hudson.model.AbstractBuild$AbstractRunner.post(AbstractBuild.java:604) at hudson.model.Run.run(Run.java:1400) at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46) at hudson.model.ResourceController.execute(ResourceController.java:88) at hudson.model.Executor.run(Executor.java:175)

    Jenkins JIRA | 5 years ago | qinqon
    java.io.IOException: Bad file descriptor
  5. 0

    We have a NFS mountpoint where we store the jenkins jobs directory. When the job is storing the junit test results sometimes we show this Exception and the job fail. Recording test results FATAL: Failed to save the JUnit test result java.io.IOException: Bad file descriptor at java.io.FileOutputStream.close0(Native Method) at java.io.FileOutputStream.close(FileOutputStream.java:279) at sun.nio.cs.StreamEncoder.implClose(StreamEncoder.java:301) at sun.nio.cs.StreamEncoder.close(StreamEncoder.java:130) at java.io.OutputStreamWriter.close(OutputStreamWriter.java:216) at java.io.BufferedWriter.close(BufferedWriter.java:248) at hudson.util.AtomicFileWriter.close(AtomicFileWriter.java:94) at hudson.util.AtomicFileWriter.abort(AtomicFileWriter.java:104) at hudson.XmlFile.write(XmlFile.java:175) at hudson.tasks.junit.TestResultAction.setResult(TestResultAction.java:82) at hudson.tasks.junit.TestResultAction.<init>(TestResultAction.java:67) at hudson.tasks.junit.JUnitResultArchiver.perform(JUnitResultArchiver.java:138) at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:19) at hudson.model.AbstractBuild$AbstractRunner.perform(AbstractBuild.java:682) at hudson.model.AbstractBuild$AbstractRunner.performAllBuildSteps(AbstractBuild.java:657) at hudson.model.AbstractBuild$AbstractRunner.performAllBuildSteps(AbstractBuild.java:635) at hudson.model.Build$RunnerImpl.post2(Build.java:161) at hudson.model.AbstractBuild$AbstractRunner.post(AbstractBuild.java:604) at hudson.model.Run.run(Run.java:1400) at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46) at hudson.model.ResourceController.execute(ResourceController.java:88) at hudson.model.Executor.run(Executor.java:175)

    Jenkins JIRA | 5 years ago | qinqon
    java.io.IOException: Bad file descriptor

  1. Prakash Premkumar 1 times, last 9 months ago
2 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

    Bad file descriptor

    at java.io.FileOutputStream.close0()
  2. Java RT
    BufferedWriter.close
    1. java.io.FileOutputStream.close0(Native Method)
    2. java.io.FileOutputStream.close(FileOutputStream.java:279)
    3. sun.nio.cs.StreamEncoder.implClose(StreamEncoder.java:301)
    4. sun.nio.cs.StreamEncoder.close(StreamEncoder.java:130)
    5. java.io.OutputStreamWriter.close(OutputStreamWriter.java:216)
    6. java.io.BufferedWriter.close(BufferedWriter.java:248)
    6 frames
  3. Hudson
    Executor.run
    1. hudson.util.AtomicFileWriter.close(AtomicFileWriter.java:94)
    2. hudson.util.AtomicFileWriter.abort(AtomicFileWriter.java:104)
    3. hudson.XmlFile.write(XmlFile.java:175)
    4. hudson.tasks.junit.TestResultAction.setResult(TestResultAction.java:82)
    5. hudson.tasks.junit.TestResultAction.<init>(TestResultAction.java:67)
    6. hudson.tasks.junit.JUnitResultArchiver.perform(JUnitResultArchiver.java:138)
    7. hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:19)
    8. hudson.model.AbstractBuild$AbstractRunner.perform(AbstractBuild.java:682)
    9. hudson.model.AbstractBuild$AbstractRunner.performAllBuildSteps(AbstractBuild.java:657)
    10. hudson.model.AbstractBuild$AbstractRunner.performAllBuildSteps(AbstractBuild.java:635)
    11. hudson.model.Build$RunnerImpl.post2(Build.java:161)
    12. hudson.model.AbstractBuild$AbstractRunner.post(AbstractBuild.java:604)
    13. hudson.model.Run.run(Run.java:1400)
    14. hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46)
    15. hudson.model.ResourceController.execute(ResourceController.java:88)
    16. hudson.model.Executor.run(Executor.java:175)
    16 frames