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

Upgrade to 2.2 breaks Docker Cloud connectivity

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved (View Workflow)
    • Priority: Critical
    • Resolution: Fixed
    • Labels:
      None
    • Environment:
      Jenkins version 2.60.3, CentOS 7.3 x86_64, openjdk version "1.8.0_141"
    • Similar Issues:

      Description

      2.1 of the plugin does not exhibit this issue.

      When doing a test in Docker Cloud, getting an ERROR and the following stacktrace:

       

      Aug 22, 2017 10:00:51 PM com.nirima.jenkins.plugins.docker.DockerCloud provision
      INFO: Asked to provision 5 slave(s) for: dockerslave
      Aug 22, 2017 10:00:51 PM com.nirima.jenkins.plugins.docker.DockerCloud provision
      INFO: Will provision 'jenkins_slave', for label: 'dockerslave', in cloud: 'Auto-Generated Local Docker Host'
      Aug 22, 2017 10:00:51 PM hudson.triggers.SafeTimerTask run
      SEVERE: Timer task hudson.slaves.NodeProvisioner$NodeProvisionerInvoker@55028df8 failed
      java.lang.NoSuchMethodError: com.fasterxml.jackson.databind.ObjectReader.forType(Lcom/fasterxml/jackson/databind/JavaType;)Lcom/fasterxml/jackson/databind/ObjectReader;
          at com.fasterxml.jackson.jaxrs.base.ProviderBase.readFrom(ProviderBase.java:799)
          at org.glassfish.jersey.message.internal.ReaderInterceptorExecutor$TerminalReaderInterceptor.invokeReadFrom(ReaderInterceptorExecutor.java:256)
          at org.glassfish.jersey.message.internal.ReaderInterceptorExecutor$TerminalReaderInterceptor.aroundReadFrom(ReaderInterceptorExecutor.java:235)
          at org.glassfish.jersey.message.internal.ReaderInterceptorExecutor.proceed(ReaderInterceptorExecutor.java:155)
          at org.glassfish.jersey.message.internal.MessageBodyFactory.readFrom(MessageBodyFactory.java:1085)
          at org.glassfish.jersey.message.internal.InboundMessageContext.readEntity(InboundMessageContext.java:874)
          at org.glassfish.jersey.message.internal.InboundMessageContext.readEntity(InboundMessageContext.java:834)
          at org.glassfish.jersey.client.ClientResponse.readEntity(ClientResponse.java:368)
          at org.glassfish.jersey.client.JerseyInvocation.translate(JerseyInvocation.java:871)
          at org.glassfish.jersey.client.JerseyInvocation.access$800(JerseyInvocation.java:92)
          at org.glassfish.jersey.client.JerseyInvocation$3.call(JerseyInvocation.java:724)
          at org.glassfish.jersey.internal.Errors.process(Errors.java:315)
          at org.glassfish.jersey.internal.Errors.process(Errors.java:297)
          at org.glassfish.jersey.internal.Errors.process(Errors.java:228)
          at org.glassfish.jersey.process.internal.RequestScope.runInScope(RequestScope.java:444)
          at org.glassfish.jersey.client.JerseyInvocation.invoke(JerseyInvocation.java:720)
          at org.glassfish.jersey.client.JerseyInvocation$Builder.method(JerseyInvocation.java:430)
          at org.glassfish.jersey.client.JerseyInvocation$Builder.get(JerseyInvocation.java:321)
          at com.github.dockerjava.jaxrs.ListContainersCmdExec.execute(ListContainersCmdExec.java:47)
          at com.github.dockerjava.jaxrs.ListContainersCmdExec.execute(ListContainersCmdExec.java:19)
          at com.github.dockerjava.jaxrs.AbstrSyncDockerCmdExec.exec(AbstrSyncDockerCmdExec.java:23)
          at com.github.dockerjava.core.command.AbstrDockerCmd.exec(AbstrDockerCmd.java:35)
          at com.nirima.jenkins.plugins.docker.DockerCloud.countCurrentDockerSlaves(DockerCloud.java:551)
          at com.nirima.jenkins.plugins.docker.DockerCloud.addProvisionedSlave(DockerCloud.java:574)
          at com.nirima.jenkins.plugins.docker.DockerCloud.provision(DockerCloud.java:245)
          at hudson.slaves.NodeProvisioner$StandardStrategyImpl.apply(NodeProvisioner.java:715)
          at hudson.slaves.NodeProvisioner.update(NodeProvisioner.java:320)
          at hudson.slaves.NodeProvisioner.access$000(NodeProvisioner.java:61)
          at hudson.slaves.NodeProvisioner$NodeProvisionerInvoker.doRun(NodeProvisioner.java:809)
          at hudson.triggers.SafeTimerTask.run(SafeTimerTask.java:51)
          at jenkins.security.ImpersonatingScheduledExecutorService$1.run(ImpersonatingScheduledExecutorService.java:58)
          at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
          at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:308)
          at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(ScheduledThreadPoolExecutor.java:180)
          at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:294)
          at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
          at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
          at java.lang.Thread.run(Thread.java:748)

        Attachments

          Issue Links

            Activity

            Hide
            mslusarczyk Michal Slusarczyk added a comment -

            Andrew Bayer I just got bit by it as well. If 2.2 is broken maybe it's a good idea to remove it from update center or at least mention problems in release notes?

            Show
            mslusarczyk Michal Slusarczyk added a comment - Andrew Bayer I just got bit by it as well. If 2.2 is broken maybe it's a good idea to remove it from update center or at least mention problems in release notes?
            Hide
            slide_o_mix Alex Earl added a comment -

            I will add something to the release notes, we generally don't remove versions from the update center, even if they have issues. 

            Show
            slide_o_mix Alex Earl added a comment - I will add something to the release notes, we generally don't remove versions from the update center, even if they have issues. 
            Hide
            taichifish Don Schiewer added a comment -

            I had this issue today.  We reverted token-macro to 2.0 but cloud docker agents still would not start (though it recognized the docker machines).. something about jdk.sh... so we had to revert to vm snapshot (glad we had that!)

             

            Show
            taichifish Don Schiewer added a comment - I had this issue today.  We reverted token-macro to 2.0 but cloud docker agents still would not start (though it recognized the docker machines).. something about jdk.sh... so we had to revert to vm snapshot (glad we had that!)  
            Hide
            mstipanov Marko Stipanov added a comment -
            Show
            mstipanov Marko Stipanov added a comment - I solved the issue by shading jackson in docker-plugin project. https://github.com/mstipanov/docker-plugin/tree/jenkins-2.75-build-cant-start https://github.com/jenkinsci/docker-plugin/pull/505  
            Hide
            scm_issue_link SCM/JIRA link daemon added a comment -

            Code changed in jenkins
            User: mstipanov
            Path:
            docker-java-shaded/pom.xml
            http://jenkins-ci.org/commit/docker-plugin/8468d677064686c91a6afc7e044cda9df31b590b
            Log:
            Jenkins build fails to start - shaded Jackson fixed it

            https://issues.jenkins-ci.org/browse/JENKINS-46361

            Show
            scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: mstipanov Path: docker-java-shaded/pom.xml http://jenkins-ci.org/commit/docker-plugin/8468d677064686c91a6afc7e044cda9df31b590b Log: Jenkins build fails to start - shaded Jackson fixed it https://issues.jenkins-ci.org/browse/JENKINS-46361

              People

              • Assignee:
                ndeloof Nicolas De Loof
                Reporter:
                ccureau Christopher Cureau
              • Votes:
                9 Vote for this issue
                Watchers:
                17 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: