Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-16634

Failed to connect slave due to missing folder on the master

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Blocker
    • Resolution: Fixed
    • Component/s: core
    • Environment:
      Jenkins 1.500
    • Similar Issues:

      Description

      We have a JNLP slave which failed to connect.
      On the slave side there was something about a connection reset as error.

      On the server side we found this in the log:

      Feb 5, 2013 9:36:44 AM hudson.TcpSlaveAgentListener$ConnectionHandler run
      INFO: Accepted connection #142 from /10.1.31.168:4798
      Feb 5, 2013 9:36:44 AM hudson.TcpSlaveAgentListener$ConnectionHandler run
      WARNING: Connection #142 failed
      hudson.util.IOException2: Failed to open /opt/jenkins_home/logs/slaves/srv-nl-crd62/slave.log
      	at hudson.util.io.ReopenableFileOutputStream.current(ReopenableFileOutputStream.java:58)
      	at hudson.util.io.ReopenableFileOutputStream.write(ReopenableFileOutputStream.java:65)
      	at hudson.remoting.ClassicCommandTransport.create(ClassicCommandTransport.java:137)
      	at hudson.remoting.Channel.<init>(Channel.java:392)
      	at hudson.remoting.Channel.<init>(Channel.java:388)
      	at hudson.remoting.Channel.<init>(Channel.java:349)
      	at hudson.remoting.Channel.<init>(Channel.java:345)
      	at hudson.slaves.SlaveComputer.setChannel(SlaveComputer.java:320)
      	at jenkins.slaves.JnlpSlaveAgentProtocol$Handler.jnlpConnect(JnlpSlaveAgentProtocol.java:120)
      	at jenkins.slaves.JnlpSlaveAgentProtocol2$Handler2.run(JnlpSlaveAgentProtocol2.java:100)
      	at jenkins.slaves.JnlpSlaveAgentProtocol2.handle(JnlpSlaveAgentProtocol2.java:44)
      	at hudson.TcpSlaveAgentListener$ConnectionHandler.run(TcpSlaveAgentListener.java:150)
      Caused by: java.io.FileNotFoundException: /opt/jenkins_home/logs/slaves/srv-nl-crd62/slave.log (No such file or directory)
      	at java.io.FileOutputStream.open(Native Method)
      	at java.io.FileOutputStream.<init>(FileOutputStream.java:209)
      	at hudson.util.io.ReopenableFileOutputStream.current(ReopenableFileOutputStream.java:56)
      	... 11 more
      

      It appeared to be that the folder /opt/jenkins_home/logs/slaves/srv-nl-crd62 did not exist.
      After creating the folder, the slave could connect.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                jglick Jesse Glick
                Reporter:
                cbos Cees Bos
              • Votes:
                0 Vote for this issue
                Watchers:
                5 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: