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

Slave couldn't connect to Jenkins

    Details

    • Type: Bug
    • Status: Open
    • Priority: Minor
    • Resolution: Unresolved
    • Component/s: docker-slaves-plugin
    • Labels:
      None
    • Environment:
      Jenkins 2.86, OpenJDK 1.8.0_151, docker 17.03.2-ce
    • Similar Issues:

      Description

      After upgrading Jenkins to the latest version docker slaves from image jenkinsci/slave keep failing to connect. In job I see error:

      Start Docker container to host the build
      Start Docker container to host the build
      FATAL: hudson/slaves/CommandLauncher
      java.lang.NoClassDefFoundError: hudson/slaves/CommandLauncher
      	at it.dockins.dockerslaves.drivers.CliDockerDriver.launchRemotingContainer(CliDockerDriver.java:188)
      	at it.dockins.dockerslaves.DefaultDockerProvisioner.launchRemotingContainer(DefaultDockerProvisioner.java:88)
      	at it.dockins.dockerslaves.DockerComputerLauncher.launch(DockerComputerLauncher.java:58)
      	at it.dockins.dockerslaves.DockerComputerLauncher.launch(DockerComputerLauncher.java:49)
      	at it.dockins.dockerslaves.api.OneShotSlave.provision(OneShotSlave.java:123)
      	at it.dockins.dockerslaves.api.OneShotSlave.createLauncher(OneShotSlave.java:154)
      	at it.dockins.dockerslaves.DockerSlave.createLauncher(DockerSlave.java:96)
      	at hudson.model.AbstractBuild$AbstractBuildExecution.createLauncher(AbstractBuild.java:531)
      	at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:462)
      	at hudson.model.Run.execute(Run.java:1724)
      	at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43)
      	at hudson.model.ResourceController.execute(ResourceController.java:97)
      	at hudson.model.Executor.run(Executor.java:421)
      Finished: FAILURE
      

      If I start docker slave from jenkinsci/slave (version 3.10) manually by command docker run --entrypoint java jenkinsci/slave -Djava.io.tmpdir=/home/jenkins/.tmp -jar /usr/share/jenkins/slave.jar I get:

      <===[JENKINS REMOTING CAPACITY]===>rO0ABXNyABpodWRzb24ucmVtb3RpbmcuQ2FwYWJpbGl0eQAAAAAAAAABAgABSgAEbWFza3hwAAAAAAAAAP4=Exception in thread "main" java.io.EOFException: unexpected stream termination
      	at hudson.remoting.ChannelBuilder.negotiate(ChannelBuilder.java:378)
      	at hudson.remoting.ChannelBuilder.build(ChannelBuilder.java:323)
      	at hudson.remoting.Launcher.main(Launcher.java:742)
      	at hudson.remoting.Launcher.runWithStdinStdout(Launcher.java:680)
      	at hudson.remoting.Launcher.run(Launcher.java:362)
      	at hudson.remoting.Launcher.main(Launcher.java:277)
      

      As result I see a lot of failed containers:

      CONTAINER ID        IMAGE               COMMAND                  CREATED             STATUS                      PORTS               NAMES
      1343f5ffadce        jenkinsci/slave     "java -Djava.io.tm..."   48 seconds ago      Created                                         tender_mcclintock
      4d4aff0b1214        jenkinsci/slave     "java -Djava.io.tm..."   48 seconds ago      Created                                         awesome_edison
      62dbdceea285        jenkinsci/slave     "java -Djava.io.tm..."   5 minutes ago       Created                                         vibrant_sammet
      8e08e05c59b2        jenkinsci/slave     "java -Djava.io.tm..."   5 minutes ago       Created                                         jovial_wilson
      fc0df12e1d73        jenkinsci/slave     "java -Djava.io.tm..."   6 minutes ago       Created                                         determined_spence
      c245474332ee        jenkinsci/slave     "java -Djava.io.tm..."   6 minutes ago       Created                                         hopeful_feynman
      6a7a718db63d        jenkinsci/slave     "java -Djava.io.tm..."   10 minutes ago      Created                                         stupefied_ardinghelli
      

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              nitrogear Alex Grinko
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated: