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

Jenkins Builds failing Caused: java.io.IOException: Unexpected termination of the channel

XMLWordPrintable

    • Icon: Story Story
    • Resolution: Not A Defect
    • Icon: Minor Minor
    • git-plugin
    • None
    • Jenkins 2.277.1
      controller: CentOS 7.5 java 1.8.0_242"
      agents: Mac-Catalina, java 1.8.0_212; Remoting version: 4.6 git: 2.30.2

      Today, I updated the nodes with Git Path at Tool locations as /usr/local/bin/git and relaunched the nodes. after that builds are failing intermittently with this below error. Also scm checkout step also failing 

      **Error: at checkout scm step**
      ERROR: Error cloning remote repo 'origin'
       hudson.plugins.git.GitException: Command "/usr/local/bin/git fetch --no-tags --force --progress – ssh://git@git.bestbuy.com/mapps/bestbuy-app.git +refs/heads/*:refs/remotes/origin/*" returned status code 128:
       stdout: 
       stderr: remote: remote: remote: Enumerating objects: 116481 remote: remote: remote: Enumerating objects: 344390, done. 
       remote: remote: remote: Counting objects: 0% (1/344390) remote: remote: remote: Counting objects: 1% (3444/344390) ...... remote: Counting objects: 100% (344390/344390), done. 
       remote: remote: remote: Compressing objects: 0% (1/119170) ......remote: Compressing objects: 100% (119170/119170), done. 
       Receiving objects: 0% (1/344390) Receiving objects: 93% (323013/344390), 595.96 MiB | 1.35 MiB/s *client_loop: send disconnect: Broken pipe *
       fetch-pack: unexpected disconnect while reading sideband packet
       fatal: early EOF
       fatal: index-pack failed
      
      at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandIn(CliGitAPIImpl.java:2450)
       at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandWithCredentials(CliGitAPIImpl.java:2051)
       at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.access$500(CliGitAPIImpl.java:84)
       at org.jenkinsci.plugins.gitclient.CliGitAPIImpl$1.execute(CliGitAPIImpl.java:573)
       at org.jenkinsci.plugins.gitclient.CliGitAPIImpl$2.execute(CliGitAPIImpl.java:802)
       at org.jenkinsci.plugins.gitclient.RemoteGitImpl$CommandInvocationHandler$GitCommandMasterToSlaveCallable.call(RemoteGitImpl.java:161)
       at org.jenkinsci.plugins.gitclient.RemoteGitImpl$CommandInvocationHandler$GitCommandMasterToSlaveCallable.call(RemoteGitImpl.java:154)
       at hudson.remoting.UserRequest.perform(UserRequest.java:211)
       at hudson.remoting.UserRequest.perform(UserRequest.java:54)
       at hudson.remoting.Request$2.run(Request.java:376)
       at hudson.remoting.InterceptingExecutorService.lambda$wrap$0(InterceptingExecutorService.java:78)
       at java.util.concurrent.FutureTask.run(FutureTask.java:266)
       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)
       Suppressed: hudson.remoting.Channel$CallSiteStackTrace: Remote call to Everest
       at hudson.remoting.Channel.attachCallSiteStackTrace(Channel.java:1800)
       at hudson.remoting.UserRequest$ExceptionResponse.retrieve(UserRequest.java:356)
       at hudson.remoting.Channel.call(Channel.java:1001)
       at org.jenkinsci.plugins.gitclient.RemoteGitImpl$CommandInvocationHandler.execute(RemoteGitImpl.java:146)
       at sun.reflect.GeneratedMethodAccessor306.invoke(Unknown Source)
       at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
       at java.lang.reflect.Method.invoke(Method.java:498)
       at org.jenkinsci.plugins.gitclient.RemoteGitImpl$CommandInvocationHandler.invoke(RemoteGitImpl.java:132)
       at com.sun.proxy.$Proxy114.execute(Unknown Source)
       at hudson.plugins.git.GitSCM.retrieveChanges(GitSCM.java:1221)
       at hudson.plugins.git.GitSCM.checkout(GitSCM.java:1299)
       at hudson.scm.SCM.checkout(SCM.java:505)
       at hudson.model.AbstractProject.checkout(AbstractProject.java:1204)
       at hudson.model.AbstractBuild$AbstractBuildExecution.defaultCheckout(AbstractBuild.java:636)
       at jenkins.scm.SCMCheckoutStrategy.checkout(SCMCheckoutStrategy.java:86)
       at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:508)
       at hudson.model.Run.execute(Run.java:1907)
       at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43)
       at hudson.model.ResourceController.execute(ResourceController.java:97)
       at hudson.model.Executor.run(Executor.java:429)
       ERROR: Error cloning remote repo 'origin'
      
      Error During Build:
      FATAL: command execution failed
      java.io.EOFException
       at java.io.ObjectInputStream$PeekInputStream.readFully(ObjectInputStream.java:2735)
       at java.io.ObjectInputStream$BlockDataInputStream.readShort(ObjectInputStream.java:3210)
       at java.io.ObjectInputStream.readStreamHeader(ObjectInputStream.java:895)
       at java.io.ObjectInputStream.<init>(ObjectInputStream.java:357)
       at hudson.remoting.ObjectInputStreamEx.<init>(ObjectInputStreamEx.java:49)
       at hudson.remoting.Command.readFrom(Command.java:142)
       at hudson.remoting.Command.readFrom(Command.java:128)
       at hudson.remoting.AbstractSynchronousByteArrayCommandTransport.read(AbstractSynchronousByteArrayCommandTransport.java:35)
       at hudson.remoting.SynchronousCommandTransport$ReaderThread.run(SynchronousCommandTransport.java:61)
       Caused: java.io.IOException: Unexpected termination of the channel
       at hudson.remoting.SynchronousCommandTransport$ReaderThread.run(SynchronousCommandTransport.java:75)
       Caused: java.io.IOException: Backing channel 'MACSLAVE1' is disconnected.
       at hudson.remoting.RemoteInvocationHandler.channelOrFail(RemoteInvocationHandler.java:216)
       at hudson.remoting.RemoteInvocationHandler.invoke(RemoteInvocationHandler.java:286)
       at com.sun.proxy.$Proxy118.isAlive(Unknown Source)
       at hudson.Launcher$RemoteLauncher$ProcImpl.isAlive(Launcher.java:1211)
       at hudson.Launcher$RemoteLauncher$ProcImpl.join(Launcher.java:1203)
       at hudson.tasks.CommandInterpreter.join(CommandInterpreter.java:194)
       at hudson.tasks.CommandInterpreter.perform(CommandInterpreter.java:144)
       at hudson.tasks.CommandInterpreter.perform(CommandInterpreter.java:91)
       at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:20)
       at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:803)
       at hudson.model.Build$BuildExecution.build(Build.java:197)
       at hudson.model.Build$BuildExecution.doRun(Build.java:163)
       at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:513)
       at hudson.model.Run.execute(Run.java:1907)
       at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43)
       at hudson.model.ResourceController.execute(ResourceController.java:97)
       at hudson.model.Executor.run(Executor.java:429)
      

            Unassigned Unassigned
            harasai Harasai Kumar
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: