java.io.FileNotFoundException: /var/lib/jenkins/jobs/RequesteX_Final/scm-polling.log (Too many open files)

Jenkins JIRA | Jyrki Puttonen | 3 years ago
  1. 0

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

    jenkins-ci.org | 1 year ago
    java.io.FileNotFoundException: /var/lib/jenkins/jobs/RequesteX_Final/scm-polling.log (Too many open files)
  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
    java.io.FileNotFoundException: /var/lib/jenkins/jobs/RequesteX_Final/scm-polling.log (Too many open files)
  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
    java.io.FileNotFoundException: /var/lib/jenkins/jobs/RequesteX_Final/scm-polling.log (Too many open files)
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Error writing cert files

    GitHub | 4 years ago | myleshorton
    java.io.FileNotFoundException: file_name (Permission denied)
  6. 0

    Check for java during updating to prevent re-install(download) the java

    GitHub | 3 years ago | narimangharib
    java.io.FileNotFoundException: /Applications/Wrapper.app/Contents/Resources/app/.install4j/response.varfile (Permission denied)

  1. eti22 3 times, last 2 weeks ago
  2. tyson925 49 times, last 2 weeks ago
  3. MoYapro 1 times, last 1 month ago
  4. musketyr 3 times, last 1 month ago
  5. iridic 12 times, last 1 month ago
23 more registered users
72 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.FileNotFoundException

    /var/lib/jenkins/jobs/RequesteX_Final/scm-polling.log (Too many open files)

    at java.io.FileOutputStream.open()
  2. Java RT
    FileOutputStream.<init>
    1. java.io.FileOutputStream.open(Native Method)
    2. java.io.FileOutputStream.<init>(FileOutputStream.java:212)
    3. java.io.FileOutputStream.<init>(FileOutputStream.java:165)
    3 frames
  3. Hudson
    SCMTrigger$Runner.runPolling
    1. hudson.util.StreamTaskListener.<init>(StreamTaskListener.java:97)
    2. hudson.util.StreamTaskListener.<init>(StreamTaskListener.java:90)
    3. hudson.triggers.SCMTrigger$Runner.runPolling(SCMTrigger.java:433)
    3 frames