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

Failed to connect slave due to missing folder on the master

    XMLWordPrintable

Details

    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

            cbos Cees Bos created issue -
            danielbeck Daniel Beck made changes -
            Field Original Value New Value
            Resolution Incomplete [ 4 ]
            Status Open [ 1 ] Resolved [ 5 ]
            rtyler R. Tyler Croy made changes -
            Workflow JNJira [ 147458 ] JNJira + In-Review [ 192420 ]
            jglick Jesse Glick made changes -
            Assignee Jesse Glick [ jglick ]
            jglick Jesse Glick made changes -
            Resolution Incomplete [ 4 ]
            Status Resolved [ 5 ] Reopened [ 4 ]
            jglick Jesse Glick made changes -
            Status Reopened [ 4 ] Open [ 1 ]
            jglick Jesse Glick made changes -
            Status Open [ 1 ] In Progress [ 3 ]
            jglick Jesse Glick made changes -
            Labels lts-candidate robustness
            jglick Jesse Glick made changes -
            Remote Link This issue links to "PR 2738 (Web Link)" [ 15398 ]
            jglick Jesse Glick made changes -
            Status In Progress [ 3 ] In Review [ 10005 ]
            jglick Jesse Glick made changes -
            Resolution Fixed [ 1 ]
            Status In Review [ 10005 ] Resolved [ 5 ]
            olivergondza Oliver Gondža made changes -
            Labels lts-candidate robustness 2.32.2-fixed robustness
            olivergondza Oliver Gondža made changes -
            Labels 2.32.2-fixed robustness 2.32.3-fixed robustness
            cloudbees CloudBees Inc. made changes -
            Remote Link This issue links to "CloudBees Internal OSS-1883 (Web Link)" [ 18527 ]

            People

              jglick Jesse Glick
              cbos Cees Bos
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: