hudson.util.IOException2: Failed to create a temporary file in /proj/RBS_IoV/.hudson/jobs/W12A_CLA_R6_CI_testExec_Trigger_Job

Jenkins JIRA | Youcai HAN | 3 years ago
  1. 0

    After Jenkins running for a long time, it suddenly stuck. We checked the log and found too many socket was opened and the number of opened files comes 65535. So it failed to accept new request. Could you please help to check why Jenkins opened so many socket and can't close it? We have tried to use gc to collect garbage memory, but it can't close these socket. So this should be a bug of Jenkins. Jun 13, 2013 10:21:12 AM hudson.model.Executor run SEVERE: Executor threw an exception hudson.util.IOException2: Failed to create a temporary file in /proj/RBS_IoV/.hudson/jobs/KillZombieProcess at hudson.util.AtomicFileWriter.<init>(AtomicFileWriter.java:67) at hudson.util.AtomicFileWriter.<init>(AtomicFileWriter.java:54) at hudson.util.TextFile.write(TextFile.java:78) at hudson.model.Job.saveNextBuildNumber(Job.java:234) at hudson.model.Job.assignBuildNumber(Job.java:291) at hudson.model.Run.<init>(Run.java:256) at hudson.model.AbstractBuild.<init>(AbstractBuild.java:158) at hudson.model.Build.<init>(Build.java:92) at hudson.model.FreeStyleBuild.<init>(FreeStyleBuild.java:37) at sun.reflect.GeneratedConstructorAccessor100.newInstance(Unknown Source) at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27) at java.lang.reflect.Constructor.newInstance(Constructor.java:513) at hudson.model.AbstractProject.newBuild(AbstractProject.java:982) at hudson.model.AbstractProject.createExecutable(AbstractProject.java:1197) at hudson.model.AbstractProject.createExecutable(AbstractProject.java:136) at hudson.model.Executor.run(Executor.java:211) Caused by: java.io.IOException: Too many open files at java.io.UnixFileSystem.createFileExclusively(Native Method) at java.io.File.checkAndCreate(File.java:1704) at java.io.File.createTempFile(File.java:1792) at hudson.util.AtomicFileWriter.<init>(AtomicFileWriter.java:65) ... 15 more Jun 13, 2013 10:21:12 AM hudson.model.Executor run SEVERE: Executor threw an exception hudson.util.IOException2: Failed to create a temporary file in /proj/RBS_IoV/.hudson/jobs/W12A_CLA_R6_CI_testExec_Trigger_Job at hudson.util.AtomicFileWriter.<init>(AtomicFileWriter.java:67) at hudson.util.AtomicFileWriter.<init>(AtomicFileWriter.java:54) at hudson.util.TextFile.write(TextFile.java:78) at hudson.model.Job.saveNextBuildNumber(Job.java:234) at hudson.model.Job.assignBuildNumber(Job.java:291) at hudson.model.Run.<init>(Run.java:256) at hudson.model.AbstractBuild.<init>(AbstractBuild.java:158) at hudson.model.Build.<init>(Build.java:92) at hudson.model.FreeStyleBuild.<init>(FreeStyleBuild.java:37) at sun.reflect.GeneratedConstructorAccessor100.newInstance(Unknown Source) at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27) at java.lang.reflect.Constructor.newInstance(Constructor.java:513) at hudson.model.AbstractProject.newBuild(AbstractProject.java:982) at hudson.model.AbstractProject.createExecutable(AbstractProject.java:1197) at hudson.model.AbstractProject.createExecutable(AbstractProject.java:136) at hudson.model.Executor.run(Executor.java:211) Caused by: java.io.IOException: Too many open files at java.io.UnixFileSystem.createFileExclusively(Native Method) at java.io.File.checkAndCreate(File.java:1704) at java.io.File.createTempFile(File.java:1792) at hudson.util.AtomicFileWriter.<init>(AtomicFileWriter.java:65) ... 15 more Jun 13, 2013 10:21:13 AM org.apache.tomcat.util.net.JIoEndpoint$Acceptor run SEVERE: Socket accept failed java.net.SocketException: Too many open files

    Jenkins JIRA | 3 years ago | Youcai HAN
    hudson.util.IOException2: Failed to create a temporary file in /proj/RBS_IoV/.hudson/jobs/KillZombieProcess
  2. 0

    After Jenkins running for a long time, it suddenly stuck. We checked the log and found too many socket was opened and the number of opened files comes 65535. So it failed to accept new request. Could you please help to check why Jenkins opened so many socket and can't close it? We have tried to use gc to collect garbage memory, but it can't close these socket. So this should be a bug of Jenkins. Jun 13, 2013 10:21:12 AM hudson.model.Executor run SEVERE: Executor threw an exception hudson.util.IOException2: Failed to create a temporary file in /proj/RBS_IoV/.hudson/jobs/KillZombieProcess at hudson.util.AtomicFileWriter.<init>(AtomicFileWriter.java:67) at hudson.util.AtomicFileWriter.<init>(AtomicFileWriter.java:54) at hudson.util.TextFile.write(TextFile.java:78) at hudson.model.Job.saveNextBuildNumber(Job.java:234) at hudson.model.Job.assignBuildNumber(Job.java:291) at hudson.model.Run.<init>(Run.java:256) at hudson.model.AbstractBuild.<init>(AbstractBuild.java:158) at hudson.model.Build.<init>(Build.java:92) at hudson.model.FreeStyleBuild.<init>(FreeStyleBuild.java:37) at sun.reflect.GeneratedConstructorAccessor100.newInstance(Unknown Source) at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27) at java.lang.reflect.Constructor.newInstance(Constructor.java:513) at hudson.model.AbstractProject.newBuild(AbstractProject.java:982) at hudson.model.AbstractProject.createExecutable(AbstractProject.java:1197) at hudson.model.AbstractProject.createExecutable(AbstractProject.java:136) at hudson.model.Executor.run(Executor.java:211) Caused by: java.io.IOException: Too many open files at java.io.UnixFileSystem.createFileExclusively(Native Method) at java.io.File.checkAndCreate(File.java:1704) at java.io.File.createTempFile(File.java:1792) at hudson.util.AtomicFileWriter.<init>(AtomicFileWriter.java:65) ... 15 more Jun 13, 2013 10:21:12 AM hudson.model.Executor run SEVERE: Executor threw an exception hudson.util.IOException2: Failed to create a temporary file in /proj/RBS_IoV/.hudson/jobs/W12A_CLA_R6_CI_testExec_Trigger_Job at hudson.util.AtomicFileWriter.<init>(AtomicFileWriter.java:67) at hudson.util.AtomicFileWriter.<init>(AtomicFileWriter.java:54) at hudson.util.TextFile.write(TextFile.java:78) at hudson.model.Job.saveNextBuildNumber(Job.java:234) at hudson.model.Job.assignBuildNumber(Job.java:291) at hudson.model.Run.<init>(Run.java:256) at hudson.model.AbstractBuild.<init>(AbstractBuild.java:158) at hudson.model.Build.<init>(Build.java:92) at hudson.model.FreeStyleBuild.<init>(FreeStyleBuild.java:37) at sun.reflect.GeneratedConstructorAccessor100.newInstance(Unknown Source) at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27) at java.lang.reflect.Constructor.newInstance(Constructor.java:513) at hudson.model.AbstractProject.newBuild(AbstractProject.java:982) at hudson.model.AbstractProject.createExecutable(AbstractProject.java:1197) at hudson.model.AbstractProject.createExecutable(AbstractProject.java:136) at hudson.model.Executor.run(Executor.java:211) Caused by: java.io.IOException: Too many open files at java.io.UnixFileSystem.createFileExclusively(Native Method) at java.io.File.checkAndCreate(File.java:1704) at java.io.File.createTempFile(File.java:1792) at hudson.util.AtomicFileWriter.<init>(AtomicFileWriter.java:65) ... 15 more Jun 13, 2013 10:21:13 AM org.apache.tomcat.util.net.JIoEndpoint$Acceptor run SEVERE: Socket accept failed java.net.SocketException: Too many open files

    Jenkins JIRA | 3 years ago | Youcai HAN
    hudson.util.IOException2: Failed to create a temporary file in /proj/RBS_IoV/.hudson/jobs/KillZombieProcess
  3. 0

    ERROR: "java.io.IOException: Too many open files" (45636)

    dell.com | 7 months ago
    java.io.IOException: Too many open files
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Build failed in Hudson: axis2-1.5 #65

    ws-rampart-dev | 6 years ago | Apache Hudson Server
    hudson.util.IOException2: Failed to create a temporary file in /home/hudson/hudson/jobs/axis2-1.5/modules/org.apache.axis2$addressing/builds/2010-09-05_20-44-37
  6. 0

    Build failed in Hudson: Axis2-trunk-java-1.6 #153

    ws-rampart-dev | 6 years ago | Apache Hudson Server
    hudson.util.IOException2: Failed to create a temporary file in /home/hudson/hudson/jobs/Axis2-trunk-java-1.6/modules/org.apache.axis2$axis2-integration/builds/2010-09-06_00-02-18

  1. davidvanlaatum 2 times, last 6 days ago
  2. Vladimir Dmie 1 times, last 4 months ago
  3. davidvanlaatum 5 times, last 6 months ago
21 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

    Too many open files

    at java.io.UnixFileSystem.createFileExclusively()
  2. Java RT
    File.createTempFile
    1. java.io.UnixFileSystem.createFileExclusively(Native Method)
    2. java.io.File.checkAndCreate(File.java:1704)
    3. java.io.File.createTempFile(File.java:1792)
    3 frames
  3. Hudson
    FreeStyleBuild.<init>
    1. hudson.util.AtomicFileWriter.<init>(AtomicFileWriter.java:65)
    2. hudson.util.AtomicFileWriter.<init>(AtomicFileWriter.java:54)
    3. hudson.util.TextFile.write(TextFile.java:78)
    4. hudson.model.Job.saveNextBuildNumber(Job.java:234)
    5. hudson.model.Job.assignBuildNumber(Job.java:291)
    6. hudson.model.Run.<init>(Run.java:256)
    7. hudson.model.AbstractBuild.<init>(AbstractBuild.java:158)
    8. hudson.model.Build.<init>(Build.java:92)
    9. hudson.model.FreeStyleBuild.<init>(FreeStyleBuild.java:37)
    9 frames
  4. Java RT
    Constructor.newInstance
    1. sun.reflect.GeneratedConstructorAccessor100.newInstance(Unknown Source)
    2. sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
    3. java.lang.reflect.Constructor.newInstance(Constructor.java:513)
    3 frames
  5. Hudson
    Executor.run
    1. hudson.model.AbstractProject.newBuild(AbstractProject.java:982)
    2. hudson.model.AbstractProject.createExecutable(AbstractProject.java:1197)
    3. hudson.model.AbstractProject.createExecutable(AbstractProject.java:136)
    4. hudson.model.Executor.run(Executor.java:211)
    4 frames