[JIRA] (JENKINS-54549) gitscm fail for multibranch pipeline after recent plugin upgrade

7 views
Skip to first unread message

tian.wang@zazzle.com (JIRA)

unread,
Nov 8, 2018, 11:21:02 PM11/8/18
to jenkinsc...@googlegroups.com
Tian Wang created an issue
 
Jenkins / Bug JENKINS-54549
gitscm fail for multibranch pipeline after recent plugin upgrade
Issue Type: Bug Bug
Assignee: Mark Waite
Attachments: currentpluginversion.txt
Components: bitbucket-branch-source-plugin, git-plugin
Created: 2018-11-09 04:20
Priority: Minor Minor
Reporter: Tian Wang

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

 

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

Add Comment Add Comment
 
This message was sent by Atlassian Jira (v7.11.2#711002-sha1:fdc329d)

tian.wang@zazzle.com (JIRA)

unread,
Nov 8, 2018, 11:22:03 PM11/8/18
to jenkinsc...@googlegroups.com
Tian Wang updated an issue
Change By: Tian Wang
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

mark.earl.waite@gmail.com (JIRA)

unread,
Nov 8, 2018, 11:41:02 PM11/8/18
to jenkinsc...@googlegroups.com
Mark Waite assigned an issue to Unassigned
Change By: Mark Waite
Assignee: Mark Waite

mark.earl.waite@gmail.com (JIRA)

unread,
Nov 8, 2018, 11:44:01 PM11/8/18
to jenkinsc...@googlegroups.com
Mark Waite commented on Bug JENKINS-54549
 
Re: gitscm fail for multibranch pipeline after recent plugin upgrade

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).

mark.earl.waite@gmail.com (JIRA)

unread,
Nov 8, 2018, 11:45:03 PM11/8/18
to jenkinsc...@googlegroups.com
Mark Waite edited a comment on Bug JENKINS-54549
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.

mark.earl.waite@gmail.com (JIRA)

unread,
Dec 9, 2018, 10:03:02 AM12/9/18
to jenkinsc...@googlegroups.com

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?

tian.wang@zazzle.com (JIRA)

unread,
Dec 10, 2018, 3:15:02 PM12/10/18
to jenkinsc...@googlegroups.com

Mark Waite

 

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

mark.earl.waite@gmail.com (JIRA)

unread,
Dec 10, 2018, 4:22:02 PM12/10/18
to jenkinsc...@googlegroups.com
Mark Waite updated Bug JENKINS-54549
 

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

Change By: Mark Waite
Status: Open Fixed but Unreleased
Resolution: Not A Defect

mark.earl.waite@gmail.com (JIRA)

unread,
Dec 10, 2018, 4:22:03 PM12/10/18
to jenkinsc...@googlegroups.com
Mark Waite closed an issue as Not A Defect
Change By: Mark Waite
Status: Resolved Closed

mark.earl.waite@gmail.com (JIRA)

unread,
Dec 10, 2018, 4:22:03 PM12/10/18
to jenkinsc...@googlegroups.com
Reply all
Reply to author
Forward
0 new messages