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

gitscm fail for multibranch pipeline after recent plugin upgrade

    XMLWordPrintable

    Details

    • Similar Issues:

      Description

      Hi Mark,

      Thank you for looking into this.

      I also run into the exact same error.

      Currently, I just made a simple workaround with a few git command myself. 

       

      I have tried: deleting the git folder, trying on a larget number of different slave nodes

       git version 2.18.0.windows.1

      java version 

      java -version
      java version "1.8.0_171"
      Java(TM) SE Runtime Environment (build 1.8.0_171-b11)
      Java HotSpot(TM) 64-Bit Server VM (build 25.171-b11, mixed mode)

      I also want to report that the error only happens for Bitbucket/multibranch pipeline.   single pipeline job with the exact same checkout(scm) command is completely fine.

       

      This only started happening after we auto upgraded plugins last Friday 02/11/2018

      The plugin version and their previous version is enclosed.

       

      Thank you in advance!

       

       ** 
      checkout(scm: [$class: 'GitSCM', branches: [[name: "*/master"]], browser: [$class: 'Stash', repoUrl: "https://companygit/projects/libs/repos/library/browse"],\
      doGenerateSubmoduleConfigurations: false, extensions: [], submoduleCfg: [], userRemoteConfigs: [[credentialsId: 'f46cf06a-2a80-4adb-b4dc-e94a5a77a17c', url: "ssh://git@companygit:7999/libs/library.git"]]]);
       
       
      error log:
       
      Cloning the remote Git repository*19:49:23* ERROR: Error cloning remote repo 'origin'19:49:23 hudson.plugins.git.GitException: java.io.IOException: Remote call on Channel to /10.10.82.93 failed*19:49:23* at org.jenkinsci.plugins.gitclient.RemoteGitImpl$CommandInvocationHandler.execute(RemoteGitImpl.java:169)19:49:23 at sun.reflect.GeneratedMethodAccessor818.invoke(Unknown Source)19:49:23 at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)19:49:23 at java.lang.reflect.Method.invoke(Unknown Source)19:49:23 at org.jenkinsci.plugins.gitclient.RemoteGitImpl$CommandInvocationHandler.invoke(RemoteGitImpl.java:132)19:49:23 at com.sun.proxy.$Proxy98.execute(Unknown Source)19:49:23 at hudson.plugins.git.GitSCM.retrieveChanges(GitSCM.java:1146)19:49:23 at hudson.plugins.git.GitSCM.checkout(GitSCM.java:1186)19:49:23 at org.jenkinsci.plugins.workflow.steps.scm.SCMStep.checkout(SCMStep.java:120)19:49:23 at org.jenkinsci.plugins.workflow.steps.scm.SCMStep$StepExecutionImpl.run(SCMStep.java:90)19:49:23 at org.jenkinsci.plugins.workflow.steps.scm.SCMStep$StepExecutionImpl.run(SCMStep.java:77)19:49:23 at org.jenkinsci.plugins.workflow.steps.SynchronousNonBlockingStepExecution$1$1.call(SynchronousNonBlockingStepExecution.java:50)19:49:23 at hudson.security.ACL.impersonate(ACL.java:290)19:49:23 at org.jenkinsci.plugins.workflow.steps.SynchronousNonBlockingStepExecution$1.run(SynchronousNonBlockingStepExecution.java:47)19:49:23 at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source)19:49:23 at java.util.concurrent.FutureTask.run(Unknown Source)19:49:23 at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)19:49:23 at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)19:49:23 at java.lang.Thread.run(Unknown Source)19:49:23 Caused by: java.io.IOException: Remote call on Channel to /10.10.82.93 failed*19:49:23* at hudson.remoting.Channel.call(Channel.java:961)19:49:23 at org.jenkinsci.plugins.gitclient.RemoteGitImpl$CommandInvocationHandler.execute(RemoteGitImpl.java:146)19:49:23 ... 18 more*19:49:23* Caused by: java.lang.NoSuchFieldError: executor*19:49:23* at org.jenkinsci.remoting.util.AnonymousClassWarnings.check(AnonymousClassWarnings.java:65)19:49:23 at org.jenkinsci.remoting.util.AnonymousClassWarnings$1.annotateClass(AnonymousClassWarnings.java:119)19:49:23 at java.io.ObjectOutputStream.writeNonProxyDesc(Unknown Source)19:49:23 at java.io.ObjectOutputStream.writeClassDesc(Unknown Source)19:49:23 at java.io.ObjectOutputStream.writeOrdinaryObject(Unknown Source)19:49:23 at java.io.ObjectOutputStream.writeObject0(Unknown Source)19:49:23 at java.io.ObjectOutputStream.writeObject(Unknown Source)19:49:23 at hudson.console.ConsoleNote.encodeToBytes(ConsoleNote.java:185)19:49:23 at hudson.console.ConsoleNote.encode(ConsoleNote.java:211)19:49:23 at hudson.plugins.timestamper.TimestampNotesOutputStream.eol(TimestampNotesOutputStream.java:70)19:49:23 at hudson.console.LineTransformationOutputStream.eol(LineTransformationOutputStream.java:60)19:49:23 at hudson.console.LineTransformationOutputStream.write(LineTransformationOutputStream.java:56)19:49:23 at hudson.console.LineTransformationOutputStream.write(LineTransformationOutputStream.java:74)19:49:23 at java.io.PrintStream.write(Unknown Source)19:49:23 at sun.nio.cs.StreamEncoder.writeBytes(Unknown Source)19:49:23 at sun.nio.cs.StreamEncoder.implFlushBuffer(Unknown Source)19:49:23 at sun.nio.cs.StreamEncoder.flushBuffer(Unknown Source)19:49:23 at java.io.OutputStreamWriter.flushBuffer(Unknown Source)19:49:23 at java.io.PrintStream.newLine(Unknown Source)19:49:23 at java.io.PrintStream.println(Unknown Source)19:49:23 at org.jenkinsci.plugins.gitclient.CliGitAPIImpl$2.execute(CliGitAPIImpl.java:567)19:49:23 at org.jenkinsci.plugins.gitclient.RemoteGitImpl$CommandInvocationHandler$1.call(RemoteGitImpl.java:153)19:49:23 at org.jenkinsci.plugins.gitclient.RemoteGitImpl$CommandInvocationHandler$1.call(RemoteGitImpl.java:146)19:49:23 at hudson.remoting.UserRequest.perform(UserRequest.java:118)19:49:23 at hudson.remoting.UserRequest.perform(UserRequest.java:48)19:49:23 at hudson.remoting.Request$2.run(Request.java:328)19:49:23 at hudson.remoting.InterceptingExecutorService$1.call(InterceptingExecutorService.java:72)19:49:23 at java.util.concurrent.FutureTask.run(Unknown Source)19:49:23 at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)19:49:23 at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)19:49:23 at hudson.remoting.Engine$1$1.run(Engine.java:63)19:49:23 ... 1 more*19:49:23* Suppressed: hudson.remoting.Channel$CallSiteStackTrace: Remote call to Channel to /10.10.82.93*19:49:23* at hudson.remoting.Channel.attachCallSiteStackTrace(Channel.java:1741)19:49:23 at hudson.remoting.UserResponse.retrieve(UserRequest.java:389)19:49:23 at hudson.remoting.Channel.call(Channel.java:955)19:49:23 at org.jenkinsci.plugins.gitclient.RemoteGitImpl$CommandInvocationHandler.execute(RemoteGitImpl.java:146)19:49:23 at sun.reflect.GeneratedMethodAccessor818.invoke(Unknown Source)19:49:23 at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)19:49:23 at java.lang.reflect.Method.invoke(Unknown Source)19:49:23 at org.jenkinsci.plugins.gitclient.RemoteGitImpl$CommandInvocationHandler.invoke(RemoteGitImpl.java:132)19:49:23 at com.sun.proxy.$Proxy98.execute(Unknown Source)19:49:23 at hudson.plugins.git.GitSCM.retrieveChanges(GitSCM.java:1146)19:49:23 at hudson.plugins.git.GitSCM.checkout(GitSCM.java:1186)19:49:23 at org.jenkinsci.plugins.workflow.steps.scm.SCMStep.checkout(SCMStep.java:120)19:49:23 at org.jenkinsci.plugins.workflow.steps.scm.SCMStep$StepExecutionImpl.run(SCMStep.java:90)19:49:23 at org.jenkinsci.plugins.workflow.steps.scm.SCMStep$StepExecutionImpl.run(SCMStep.java:77)19:49:23 at org.jenkinsci.plugins.workflow.steps.SynchronousNonBlockingStepExecution$1$1.call(SynchronousNonBlockingStepExecution.java:50)19:49:23 at hudson.security.ACL.impersonate(ACL.java:290)19:49:23 at org.jenkinsci.plugins.workflow.steps.SynchronousNonBlockingStepExecution$1.run(SynchronousNonBlockingStepExecution.java:47)19:49:23 at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source)19:49:23 at java.util.concurrent.FutureTask.run(Unknown Source)19:49:23 at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)19:49:23 at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)19:49:23 ... 1 more

        Attachments

          Activity

          Hide
          markewaite Mark Waite added a comment - - edited

          Since you're running on Windows, that likely means you're using agent.jar and the JNLP protocol to connect the agent to the Jenkins master. Please check that the agent.jar you are using is matched with the Jenkins version you have installed. I found a case in my network where unexpected failures began happening with a recent upgrade. The failures were related to the outdated copies of agent.jar (and in my case, even one older that was named slave.jar).

          Also, please confirm that the plugins you upgraded did not include either the git plugin or the git client plugin. I doubt that the issue is with either of those two plugins, since I suspect they were not changed during your upgrade.

          Show
          markewaite Mark Waite added a comment - - edited Since you're running on Windows, that likely means you're using agent.jar and the JNLP protocol to connect the agent to the Jenkins master. Please check that the agent.jar you are using is matched with the Jenkins version you have installed. I found a case in my network where unexpected failures began happening with a recent upgrade. The failures were related to the outdated copies of agent.jar (and in my case, even one older that was named slave.jar). Also, please confirm that the plugins you upgraded did not include either the git plugin or the git client plugin. I doubt that the issue is with either of those two plugins, since I suspect they were not changed during your upgrade.
          Hide
          markewaite Mark Waite added a comment -

          I can't duplicate this problem. I'm running a Bitbucket branch source based multibranch Pipeline with Bitbucket server (not Bitbucket Enterprise). Can you provide any further details that will allow someone else to duplicate the problem?

          Show
          markewaite Mark Waite added a comment - I can't duplicate this problem. I'm running a Bitbucket branch source based multibranch Pipeline with Bitbucket server (not Bitbucket Enterprise). Can you provide any further details that will allow someone else to duplicate the problem?
          Hide
          zazzletian Tian Wang added a comment -

          Mark Waite

           

          Thank you Mark, the issue is resolved. I updated all slaves with new slaves.jar and everything worked.

          Show
          zazzletian Tian Wang added a comment - Mark Waite   Thank you Mark, the issue is resolved. I updated all slaves with new slaves.jar and everything worked.
          Hide
          markewaite Mark Waite added a comment -

          Thanks Tian Wang. Closing this as a configuration error rather than a bug.

          Show
          markewaite Mark Waite added a comment - Thanks Tian Wang . Closing this as a configuration error rather than a bug.

            People

            • Assignee:
              Unassigned
              Reporter:
              zazzletian Tian Wang
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: