java.io.FileNotFoundException: /Users/Shared/Jenkins/Home/logs/slaves/null/slave.log (No such file or directory)

Jenkins JIRA | Dell Green | 4 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

    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. Speed up your debug routine!

    Automated exception search integrated into your IDE

  3. 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)

  1. Mark 1 times, last 4 weeks ago
  2. andyglick 3 times, last 1 month ago
  3. johnxfly 4 times, last 2 months ago
  4. Andreas Häber 1 times, last 3 months ago
  5. tyson925 5 times, last 9 months ago
1 more registered users
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

    /Users/Shared/Jenkins/Home/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:216)
    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:599)
    3. hudson.model.Run.execute(Run.java:1593)
    4. hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46)
    5. hudson.model.ResourceController.execute(ResourceController.java:88)
    6. hudson.model.Executor.run(Executor.java:247)
    6 frames