java.io.FileNotFoundException: /home/jenkins/jobs/Test/builds/2012-08-13_08-44-53/log (No such file or directory)

Jenkins JIRA | Esa Laine | 4 years ago
  1. 0

    ssh -p <JENKINS_SSH_PORT> <USER>@<JENKINS_HOST> build Test -s -v I'm using jenkins version 1.476 fails on a busy build host (in this case single CPU) because the log file creation does not happen before jenkins (the build cmd) starts reading it. Basically the future returns, the code starts reading the log file, but the actual task has not yet created the log file. This occurs reliably on a busy (hence slow log file creation) single CPU build machine. The exception is: java.io.FileNotFoundException: /home/jenkins/jobs/Test/builds/2012-08-13_08-44-53/log (No such file or directory) at java.io.RandomAccessFile.open(Native Method) at java.io.RandomAccessFile.<init>(RandomAccessFile.java:212) at org.kohsuke.stapler.framework.io.LargeText$FileSession.<init>(LargeText.java:351) at org.kohsuke.stapler.framework.io.LargeText$1.open(LargeText.java:75) at org.kohsuke.stapler.framework.io.LargeText.writeLogTo(LargeText.java:164) at hudson.console.AnnotatedLargeText.writeLogTo(AnnotatedLargeText.java:152) at hudson.model.Run.writeWholeLogTo(Run.java:1210) at hudson.cli.BuildCommand.run(BuildCommand.java:121) at hudson.cli.CLICommand.main(CLICommand.java:228) at org.jenkinsci.main.modules.sshd.CLICommandAdapter$1.run(CLICommandAdapter.java:34) at org.jenkinsci.main.modules.sshd.AsynchronousCommand$1.run(AsynchronousCommand.java:104) at java.lang.Thread.run(Thread.java:619)

    Jenkins JIRA | 4 years ago | Esa Laine
    java.io.FileNotFoundException: /home/jenkins/jobs/Test/builds/2012-08-13_08-44-53/log (No such file or directory)
  2. 0

    ssh -p <JENKINS_SSH_PORT> <USER>@<JENKINS_HOST> build Test -s -v I'm using jenkins version 1.476 fails on a busy build host (in this case single CPU) because the log file creation does not happen before jenkins (the build cmd) starts reading it. Basically the future returns, the code starts reading the log file, but the actual task has not yet created the log file. This occurs reliably on a busy (hence slow log file creation) single CPU build machine. The exception is: java.io.FileNotFoundException: /home/jenkins/jobs/Test/builds/2012-08-13_08-44-53/log (No such file or directory) at java.io.RandomAccessFile.open(Native Method) at java.io.RandomAccessFile.<init>(RandomAccessFile.java:212) at org.kohsuke.stapler.framework.io.LargeText$FileSession.<init>(LargeText.java:351) at org.kohsuke.stapler.framework.io.LargeText$1.open(LargeText.java:75) at org.kohsuke.stapler.framework.io.LargeText.writeLogTo(LargeText.java:164) at hudson.console.AnnotatedLargeText.writeLogTo(AnnotatedLargeText.java:152) at hudson.model.Run.writeWholeLogTo(Run.java:1210) at hudson.cli.BuildCommand.run(BuildCommand.java:121) at hudson.cli.CLICommand.main(CLICommand.java:228) at org.jenkinsci.main.modules.sshd.CLICommandAdapter$1.run(CLICommandAdapter.java:34) at org.jenkinsci.main.modules.sshd.AsynchronousCommand$1.run(AsynchronousCommand.java:104) at java.lang.Thread.run(Thread.java:619)

    Jenkins JIRA | 4 years ago | Esa Laine
    java.io.FileNotFoundException: /home/jenkins/jobs/Test/builds/2012-08-13_08-44-53/log (No such file or directory)
  3. 0

    GitHub comment 3#143673778

    GitHub | 1 year ago | feiniao0308
    java.io.FileNotFoundException: /var/lib/jenkins/jobs/PGI_vSphereGuestOps_RHEL66_64_CRS-ME_Layer1/builds/2015-09-28_08-21-51/log (Too many open files)
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    The following stacktrace happens when a streaming build log. The hudson server has crashed Status Code: 500 Exception: Stacktrace: java.io.FileNotFoundException: /.../hudson3_db/hudson/jobs/TB92-64bit/builds/2010-06-20_06-02-47/log (Too many open files) at java.io.RandomAccessFile.open(Native Method) at java.io.RandomAccessFile.(RandomAccessFile.java:212) at org.kohsuke.stapler.framework.io.LargeText$FileSession.(LargeText.java:322) at org.kohsuke.stapler.framework.io.LargeText$1.open(LargeText.java:52) at org.kohsuke.stapler.framework.io.LargeText.writeLogTo(LargeText.java:137) at hudson.console.AnnotatedLargeText.writeHtmlTo(AnnotatedLargeText.java:148) at hudson.console.AnnotatedLargeText.writeLogTo(AnnotatedLargeText.java:140) at org.kohsuke.stapler.framework.io.LargeText.doProgressText(LargeText.java:187) at hudson.console.AnnotatedLargeText.doProgressiveHtml(AnnotatedLargeText.java:90) at sun.reflect.GeneratedMethodAccessor188.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at org.kohsuke.stapler.Function$InstanceFunction.invoke(Function.java:235) at org.kohsuke.stapler.Function.bindAndInvoke(Function.java:116) at org.kohsuke.stapler.Function.bindAndInvokeAndServeResponse(Function.java:57) at org.kohsuke.stapler.MetaClass$1.doDispatch(MetaClass.java:75) at org.kohsuke.stapler.NameBasedDispatcher.dispatch(NameBasedDispatcher.java:30) at org.kohsuke.stapler.Stapler.invoke(Stapler.java:525) at org.kohsuke.stapler.MetaClass$4.doDispatch(MetaClass.java:145) at org.kohsuke.stapler.NameBasedDispatcher.dispatch(NameBasedDispatcher.java:30) at org.kohsuke.stapler.Stapler.invoke(Stapler.java:525) at org.kohsuke.stapler.MetaClass$12.dispatch(MetaClass.java:319) at org.kohsuke.stapler.Stapler.invoke(Stapler.java:525) at org.kohsuke.stapler.MetaClass$6.doDispatch(MetaClass.java:181) at org.kohsuke.stapler.NameBasedDispatcher.dispatch(NameBasedDispatcher.java:30) at org.kohsuke.stapler.Stapler.invoke(Stapler.java:525) at org.kohsuke.stapler.Stapler.invoke(Stapler.java:441) at org.kohsuke.stapler.Stapler.service(Stapler.java:123) at javax.servlet.http.HttpServlet.service(HttpServlet.java:45) at winstone.ServletConfiguration.execute(ServletConfiguration.java:249) at winstone.RequestDispatcher.forward(RequestDispatcher.java:335) at winstone.RequestDispatcher.doFilter(RequestDispatcher.java:378) at hudson.util.PluginServletFilter$1.doFilter(PluginServletFilter.java:94) at hudson.plugins.audit_trail.AuditTrailFilter.doFilter(AuditTrailFilter.java:64) at hudson.util.PluginServletFilter$1.doFilter(PluginServletFilter.java:97) at hudson.plugins.greenballs.GreenBallFilter.doFilter(GreenBallFilter.java:51) at hudson.util.PluginServletFilter$1.doFilter(PluginServletFilter.java:97) at hudson.util.PluginServletFilter.doFilter(PluginServletFilter.java:86) at winstone.FilterConfiguration.execute(FilterConfiguration.java:195) at winstone.RequestDispatcher.doFilter(RequestDispatcher.java:368) at hudson.security.csrf.CrumbFilter.doFilter(CrumbFilter.java:47) at winstone.FilterConfiguration.execute(FilterConfiguration.java:195) at winstone.RequestDispatcher.doFilter(RequestDispatcher.java:368) at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:84) at hudson.security.UnwrapSecurityExceptionFilter.doFilter(UnwrapSecurityExceptionFilter.java:51) at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87) at org.acegisecurity.ui.ExceptionTranslationFilter.doFilter(ExceptionTranslationFilter.java:166) at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87) at org.acegisecurity.providers.anonymous.AnonymousProcessingFilter.doFilter(AnonymousProcessingFilter.java:125) at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87) at org.acegisecurity.ui.rememberme.RememberMeProcessingFilter.doFilter(RememberMeProcessingFilter.java:142) at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87) at org.acegisecurity.ui.AbstractProcessingFilter.doFilter(AbstractProcessingFilter.java:271) at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87) at org.acegisecurity.ui.basicauth.BasicProcessingFilter.doFilter(BasicProcessingFilter.java:173) at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87) at org.acegisecurity.context.HttpSessionContextIntegrationFilter.doFilter(HttpSessionContextIntegrationFilter.java:249) at hudson.security.HttpSessionContextIntegrationFilter2.doFilter(HttpSessionContextIntegrationFilter2.java:66) at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87) at hudson.security.ChainedServletFilter.doFilter(ChainedServletFilter.java:76) at hudson.security.HudsonFilter.doFilter(HudsonFilter.java:164) at winstone.FilterConfiguration.execute(FilterConfiguration.java:195) at winstone.RequestDispatcher.doFilter(RequestDispatcher.java:368) at winstone.RequestDispatcher.forward(RequestDispatcher.java:333) at winstone.RequestHandlerThread.processRequest(RequestHandlerThread.java:244) at winstone.RequestHandlerThread.run(RequestHandlerThread.java:150) at java.lang.Thread.run(Thread.java:619)

    Jenkins JIRA | 6 years ago | william_bernardet
    java.io.FileNotFoundException: /.../hudson3_db/hudson/jobs/TB92-64bit/builds/2010-06-20_06-02-47/log (Too many open files)
  6. 0

    Seeing this issue recently. This causes Jenkins to stop responding. Have to stop and restart the service to get any response - doing so breaks other builds that are running. {noformat} Exception: Stacktrace: java.io.FileNotFoundException: /var/lib/jenkins/jobs/MYPROJECTS_NAME/builds/2012-02-07_15-32-25/log (Too many open files) at java.io.RandomAccessFile.open(Native Method) at java.io.RandomAccessFile.<init>(RandomAccessFile.java:233) at org.kohsuke.stapler.framework.io.LargeText$FileSession.<init>(LargeText.java:349) at org.kohsuke.stapler.framework.io.LargeText$1.open(LargeText.java:75) at org.kohsuke.stapler.framework.io.LargeText.writeLogTo(LargeText.java:164) at hudson.console.AnnotatedLargeText.writeHtmlTo(AnnotatedLargeText.java:158) at hudson.console.AnnotatedLargeText.writeLogTo(AnnotatedLargeText.java:145) at org.kohsuke.stapler.framework.io.LargeText.doProgressText(LargeText.java:214) at hudson.console.AnnotatedLargeText.doProgressiveHtml(AnnotatedLargeText.java:91) at sun.reflect.GeneratedMethodAccessor511.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:616) at org.kohsuke.stapler.Function$InstanceFunction.invoke(Function.java:282) at org.kohsuke.stapler.Function.bindAndInvoke(Function.java:149) at org.kohsuke.stapler.Function.bindAndInvokeAndServeResponse(Function.java:88) at org.kohsuke.stapler.MetaClass$1.doDispatch(MetaClass.java:111) at org.kohsuke.stapler.NameBasedDispatcher.dispatch(NameBasedDispatcher.java:53) at org.kohsuke.stapler.Stapler.tryInvoke(Stapler.java:563) at org.kohsuke.stapler.Stapler.invoke(Stapler.java:648) at org.kohsuke.stapler.MetaClass$4.doDispatch(MetaClass.java:203) at org.kohsuke.stapler.NameBasedDispatcher.dispatch(NameBasedDispatcher.java:53) at org.kohsuke.stapler.Stapler.tryInvoke(Stapler.java:563) at org.kohsuke.stapler.Stapler.invoke(Stapler.java:648) at org.kohsuke.stapler.MetaClass$12.dispatch(MetaClass.java:384) at org.kohsuke.stapler.Stapler.tryInvoke(Stapler.java:563) at org.kohsuke.stapler.Stapler.invoke(Stapler.java:648) at org.kohsuke.stapler.MetaClass$6.doDispatch(MetaClass.java:241) at org.kohsuke.stapler.NameBasedDispatcher.dispatch(NameBasedDispatcher.java:53) at org.kohsuke.stapler.Stapler.tryInvoke(Stapler.java:563) at org.kohsuke.stapler.Stapler.invoke(Stapler.java:648) at org.kohsuke.stapler.Stapler.invoke(Stapler.java:477) at org.kohsuke.stapler.Stapler.service(Stapler.java:159) at javax.servlet.http.HttpServlet.service(HttpServlet.java:45) at winstone.ServletConfiguration.execute(ServletConfiguration.java:249) at winstone.RequestDispatcher.forward(RequestDispatcher.java:335) at winstone.RequestDispatcher.doFilter(RequestDispatcher.java:378) at hudson.util.PluginServletFilter$1.doFilter(PluginServletFilter.java:95) at hudson.plugins.greenballs.GreenBallFilter.doFilter(GreenBallFilter.java:74) at hudson.util.PluginServletFilter$1.doFilter(PluginServletFilter.java:98) at hudson.plugins.audit_trail.AuditTrailFilter.doFilter(AuditTrailFilter.java:66) at hudson.util.PluginServletFilter$1.doFilter(PluginServletFilter.java:98) at hudson.util.PluginServletFilter.doFilter(PluginServletFilter.java:87) at winstone.FilterConfiguration.execute(FilterConfiguration.java:195) at winstone.RequestDispatcher.doFilter(RequestDispatcher.java:368) at hudson.security.csrf.CrumbFilter.doFilter(CrumbFilter.java:47) at winstone.FilterConfiguration.execute(FilterConfiguration.java:195) at winstone.RequestDispatcher.doFilter(RequestDispatcher.java:368) at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:84) at hudson.security.UnwrapSecurityExceptionFilter.doFilter(UnwrapSecurityExceptionFilter.java:51) at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87) at org.acegisecurity.ui.ExceptionTranslationFilter.doFilter(ExceptionTranslationFilter.java:166) at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87) at org.acegisecurity.providers.anonymous.AnonymousProcessingFilter.doFilter(AnonymousProcessingFilter.java:125) at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87) at org.acegisecurity.ui.rememberme.RememberMeProcessingFilter.doFilter(RememberMeProcessingFilter.java:142) at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87) at org.acegisecurity.ui.AbstractProcessingFilter.doFilter(AbstractProcessingFilter.java:271) at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87) at org.acegisecurity.ui.basicauth.BasicProcessingFilter.doFilter(BasicProcessingFilter.java:173) at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87) at jenkins.security.ApiTokenFilter.doFilter(ApiTokenFilter.java:61) at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87) at org.acegisecurity.context.HttpSessionContextIntegrationFilter.doFilter(HttpSessionContextIntegrationFilter.java:249) at hudson.security.HttpSessionContextIntegrationFilter2.doFilter(HttpSessionContextIntegrationFilter2.java:66) at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87) at hudson.security.ChainedServletFilter.doFilter(ChainedServletFilter.java:76) at hudson.security.HudsonFilter.doFilter(HudsonFilter.java:164) at winstone.FilterConfiguration.execute(FilterConfiguration.java:195) at winstone.RequestDispatcher.doFilter(RequestDispatcher.java:368) at hudson.util.CharacterEncodingFilter.doFilter(CharacterEncodingFilter.java:81) at winstone.FilterConfiguration.execute(FilterConfiguration.java:195) at winstone.RequestDispatcher.doFilter(RequestDispatcher.java:368) at winstone.RequestDispatcher.forward(RequestDispatcher.java:333) at winstone.RequestHandlerThread.processRequest(RequestHandlerThread.java:244) at winstone.RequestHandlerThread.run(RequestHandlerThread.java:150) at java.lang.Thread.run(Thread.java:636) {noformat}

    Jenkins JIRA | 5 years ago | Sagar Khushalani
    java.io.FileNotFoundException: /var/lib/jenkins/jobs/MYPROJECTS_NAME/builds/2012-02-07_15-32-25/log (Too many open files)

  1. Andreas Häber 1 times, last 3 weeks ago
  2. tyson925 5 times, last 7 months ago
  3. rp 13 times, last 8 months ago
30 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

    /home/jenkins/jobs/Test/builds/2012-08-13_08-44-53/log (No such file or directory)

    at java.io.RandomAccessFile.open()
  2. Java RT
    RandomAccessFile.<init>
    1. java.io.RandomAccessFile.open(Native Method)
    2. java.io.RandomAccessFile.<init>(RandomAccessFile.java:212)
    2 frames
  3. Stapler
    LargeText.writeLogTo
    1. org.kohsuke.stapler.framework.io.LargeText$FileSession.<init>(LargeText.java:351)
    2. org.kohsuke.stapler.framework.io.LargeText$1.open(LargeText.java:75)
    3. org.kohsuke.stapler.framework.io.LargeText.writeLogTo(LargeText.java:164)
    3 frames
  4. Hudson
    CLICommand.main
    1. hudson.console.AnnotatedLargeText.writeLogTo(AnnotatedLargeText.java:152)
    2. hudson.model.Run.writeWholeLogTo(Run.java:1210)
    3. hudson.cli.BuildCommand.run(BuildCommand.java:121)
    4. hudson.cli.CLICommand.main(CLICommand.java:228)
    4 frames
  5. org.jenkinsci.main
    AsynchronousCommand$1.run
    1. org.jenkinsci.main.modules.sshd.CLICommandAdapter$1.run(CLICommandAdapter.java:34)
    2. org.jenkinsci.main.modules.sshd.AsynchronousCommand$1.run(AsynchronousCommand.java:104)
    2 frames
  6. Java RT
    Thread.run
    1. java.lang.Thread.run(Thread.java:619)
    1 frame