java.io.FileNotFoundException: /var/lib/jenkins/logs/slaves/null/slave.log (No such file or directory)

Jenkins JIRA | Marc Günther | 3 years ago
  1. 0

    I keep getting failures on random jobs (see example below), when I take a slave offline. I thought the purpose of "take slave offline" (versus disconnecting a slave) is that running jobs can continue to run, but no new jobs are started, and I can then disconnect the slave when all jobs are finished (we have a small script which does exactly that, to take a slave out of the cluster). With the current behaviour, it is impossible to cleanly shutdown a slave. Expected: Taking a slave offline should NEVER have any impact on any of the jobs running on that slave. They should not even be aware of the fact. {code}Looks like the node went offline during the build. Check the slave log for the details.FATAL: /var/lib/jenkins/logs/slaves/null/slave.log (No such file or directory) java.io.FileNotFoundException: /var/lib/jenkins/logs/slaves/null/slave.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:397) at org.kohsuke.stapler.framework.io.LargeText$2.open(LargeText.java:120) at org.kohsuke.stapler.framework.io.LargeText.writeLogTo(LargeText.java:210) at hudson.console.AnnotatedLargeText.writeHtmlTo(AnnotatedLargeText.java:159) at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:605) at hudson.model.Run.execute(Run.java:1568) at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46) at hudson.model.ResourceController.execute(ResourceController.java:88) at hudson.model.Executor.run(Executor.java:236) {code}

    Jenkins JIRA | 3 years ago | Marc Günther
    java.io.FileNotFoundException: /var/lib/jenkins/logs/slaves/null/slave.log (No such file or directory)
  2. 0

    I keep getting failures on random jobs (see example below), when I take a slave offline. I thought the purpose of "take slave offline" (versus disconnecting a slave) is that running jobs can continue to run, but no new jobs are started, and I can then disconnect the slave when all jobs are finished (we have a small script which does exactly that, to take a slave out of the cluster). With the current behaviour, it is impossible to cleanly shutdown a slave. Expected: Taking a slave offline should NEVER have any impact on any of the jobs running on that slave. They should not even be aware of the fact. {code}Looks like the node went offline during the build. Check the slave log for the details.FATAL: /var/lib/jenkins/logs/slaves/null/slave.log (No such file or directory) java.io.FileNotFoundException: /var/lib/jenkins/logs/slaves/null/slave.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:397) at org.kohsuke.stapler.framework.io.LargeText$2.open(LargeText.java:120) at org.kohsuke.stapler.framework.io.LargeText.writeLogTo(LargeText.java:210) at hudson.console.AnnotatedLargeText.writeHtmlTo(AnnotatedLargeText.java:159) at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:605) at hudson.model.Run.execute(Run.java:1568) at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46) at hudson.model.ResourceController.execute(ResourceController.java:88) at hudson.model.Executor.run(Executor.java:236) {code}

    Jenkins JIRA | 3 years ago | Marc Günther
    java.io.FileNotFoundException: /var/lib/jenkins/logs/slaves/null/slave.log (No such file or directory)
  3. Speed up your debug routine!

    Automated exception search integrated into your IDE

  1. Andreas Häber 1 times, last 2 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

    /var/lib/jenkins/logs/slaves/null/slave.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:397)
    2. org.kohsuke.stapler.framework.io.LargeText$2.open(LargeText.java:120)
    3. org.kohsuke.stapler.framework.io.LargeText.writeLogTo(LargeText.java:210)
    3 frames
  4. Hudson
    Executor.run
    1. hudson.console.AnnotatedLargeText.writeHtmlTo(AnnotatedLargeText.java:159)
    2. hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:605)
    3. hudson.model.Run.execute(Run.java:1568)
    4. hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46)
    5. hudson.model.ResourceController.execute(ResourceController.java:88)
    6. hudson.model.Executor.run(Executor.java:236)
    6 frames