hudson.util.IOException2: Failed to create a temporary file in C:\Program Files (x86)\Jenkins\jobs\test

Jenkins JIRA | Sean Moloney | 3 years ago
  1. 0

    Jenkins reports some executors to be "Dead!", and in the jenkins log there's multiple exceptions [1] where the root cause seems to be {quote} Caused by: java.io.IOException: Too many open files {quote} Attached file contains the output of {quote} lsof |grep jenkins {quote} There seems to be lot of lines beginning {quote} /home/jenkins-slave/.jenkins/cache/jars/.. {quote} Disconnecting and connecting slave did not help. Clicking on "Dead" text and then "Restart this thread" worked. [1] Few Exceptions where too many open files seems to be the reason {quote} SEVERE: Unexpected executor death hudson.util.IOException2: Failed to create a temporary file in /var/lib/jenkins/jobs/RequesteX_Tests at hudson.util.AtomicFileWriter.<init>(AtomicFileWriter.java:67) at hudson.util.AtomicFileWriter.<init>(AtomicFileWriter.java:54) at hudson.util.TextFile.write(TextFile.java:84) at hudson.model.Job.saveNextBuildNumber(Job.java:265) ... Caused by: java.io.IOException: Too many open files at java.io.UnixFileSystem.createFileExclusively(Native Method) at java.io.File.createTempFile(File.java:1879) at hudson.util.AtomicFileWriter.<init>(AtomicFileWriter.java:65) ... 15 more {quote} {quote} hudson.util.IOException2: Failed to create a temporary file in /var/lib/jenkins/jobs/RequesteX_Tests/builds/2013-11-08_15-17-54 at hudson.util.AtomicFileWriter.<init>(AtomicFileWriter.java:67) at hudson.util.AtomicFileWriter.<init>(AtomicFileWriter.java:54) at hudson.XmlFile.write(XmlFile.java:180) at hudson.model.Run.save(Run.java:1848) ... Caused by: java.io.IOException: Too many open files at java.io.UnixFileSystem.createFileExclusively(Native Method) {quote} {quote} Nov 08, 2013 2:48:55 PM hudson.triggers.SCMTrigger$Runner runPolling SEVERE: Failed to record SCM polling for hudson.maven.MavenModuleSet@4e49e681[RequesteX_Final] java.io.FileNotFoundException: /var/lib/jenkins/jobs/RequesteX_Final/scm-polling.log (Too many open files) at java.io.FileOutputStream.open(Native Method) at java.io.FileOutputStream.<init>(FileOutputStream.java:212) at java.io.FileOutputStream.<init>(FileOutputStream.java:165) at hudson.util.StreamTaskListener.<init>(StreamTaskListener.java:97) at hudson.util.StreamTaskListener.<init>(StreamTaskListener.java:90) at hudson.triggers.SCMTrigger$Runner.runPolling(SCMTrigger.java:433) {quote}

    Jenkins JIRA | 3 years ago | Jyrki Puttonen
    hudson.util.IOException2: Failed to create a temporary file in /var/lib/jenkins/jobs/RequesteX_Tests
  2. Speed up your debug routine!

    Automated exception search integrated into your IDE

  3. 0

    Jenkins reports some executors to be "Dead!", and in the jenkins log there's multiple exceptions [1] where the root cause seems to be {quote} Caused by: java.io.IOException: Too many open files {quote} Attached file contains the output of {quote} lsof |grep jenkins {quote} There seems to be lot of lines beginning {quote} /home/jenkins-slave/.jenkins/cache/jars/.. {quote} Disconnecting and connecting slave did not help. Clicking on "Dead" text and then "Restart this thread" worked. [1] Few Exceptions where too many open files seems to be the reason {quote} SEVERE: Unexpected executor death hudson.util.IOException2: Failed to create a temporary file in /var/lib/jenkins/jobs/RequesteX_Tests at hudson.util.AtomicFileWriter.<init>(AtomicFileWriter.java:67) at hudson.util.AtomicFileWriter.<init>(AtomicFileWriter.java:54) at hudson.util.TextFile.write(TextFile.java:84) at hudson.model.Job.saveNextBuildNumber(Job.java:265) ... Caused by: java.io.IOException: Too many open files at java.io.UnixFileSystem.createFileExclusively(Native Method) at java.io.File.createTempFile(File.java:1879) at hudson.util.AtomicFileWriter.<init>(AtomicFileWriter.java:65) ... 15 more {quote} {quote} hudson.util.IOException2: Failed to create a temporary file in /var/lib/jenkins/jobs/RequesteX_Tests/builds/2013-11-08_15-17-54 at hudson.util.AtomicFileWriter.<init>(AtomicFileWriter.java:67) at hudson.util.AtomicFileWriter.<init>(AtomicFileWriter.java:54) at hudson.XmlFile.write(XmlFile.java:180) at hudson.model.Run.save(Run.java:1848) ... Caused by: java.io.IOException: Too many open files at java.io.UnixFileSystem.createFileExclusively(Native Method) {quote} {quote} Nov 08, 2013 2:48:55 PM hudson.triggers.SCMTrigger$Runner runPolling SEVERE: Failed to record SCM polling for hudson.maven.MavenModuleSet@4e49e681[RequesteX_Final] java.io.FileNotFoundException: /var/lib/jenkins/jobs/RequesteX_Final/scm-polling.log (Too many open files) at java.io.FileOutputStream.open(Native Method) at java.io.FileOutputStream.<init>(FileOutputStream.java:212) at java.io.FileOutputStream.<init>(FileOutputStream.java:165) at hudson.util.StreamTaskListener.<init>(StreamTaskListener.java:97) at hudson.util.StreamTaskListener.<init>(StreamTaskListener.java:90) at hudson.triggers.SCMTrigger$Runner.runPolling(SCMTrigger.java:433) {quote}

    Jenkins JIRA | 3 years ago | Jyrki Puttonen
    hudson.util.IOException2: Failed to create a temporary file in /var/lib/jenkins/jobs/RequesteX_Tests
  4. 0

    [JENKINS-20501] Slave leaving cached jars open - Jenkins JIRA

    jenkins-ci.org | 1 year ago
    hudson.util.IOException2: Failed to create a temporary file in /var/lib/jenkins/jobs/RequesteX_Tests

    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. hudson.util.IOException2

      Failed to create a temporary file in C:\Program Files (x86)\Jenkins\jobs\test

      at hudson.util.AtomicFileWriter.<init>()
    2. Hudson
      ItemGroupMixIn.createTopLevelItem
      1. hudson.util.AtomicFileWriter.<init>(AtomicFileWriter.java:67)
      2. hudson.util.AtomicFileWriter.<init>(AtomicFileWriter.java:54)
      3. hudson.XmlFile.write(XmlFile.java:180)
      4. hudson.model.AbstractItem.save(AbstractItem.java:455)
      5. hudson.model.Job.save(Job.java:162)
      6. hudson.model.AbstractProject.save(AbstractProject.java:283)
      7. hudson.model.ItemGroupMixIn.createProject(ItemGroupMixIn.java:268)
      8. hudson.model.ItemGroupMixIn.createTopLevelItem(ItemGroupMixIn.java:175)
      8 frames
    3. jenkins.model
      Jenkins.doCreateItem
      1. jenkins.model.Jenkins.doCreateItem(Jenkins.java:2893)
      2. jenkins.model.Jenkins.doCreateItem(Jenkins.java:312)
      2 frames
    4. Hudson
      AllView.doCreateItem
      1. hudson.model.AllView.doCreateItem(AllView.java:76)
      1 frame