hudson.util.IOException2: Failed to create a temporary file in /var/lib/jenkins/jobs/RequesteX_Tests/builds/2013-11-08_15-17-54

Jenkins JIRA | Jyrki Puttonen | 3 years ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

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

    jenkins-ci.org | 2 years ago
    hudson.util.IOException2: Failed to create a temporary file in /var/lib/jenkins/jobs/RequesteX_Tests/builds/2013-11-08_15-17-54
  2. 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/builds/2013-11-08_15-17-54
  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/builds/2013-11-08_15-17-54
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. 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>()
    2. Hudson
      Run.save
      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.Run.save(Run.java:1848)
      4 frames