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

Git SSH connection issues with Jenkins

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Minor Minor
    • git-plugin
    • None
    • Windows 2016 as Master and Linux machine as slave

      Hello,

       

      I have a build that for the first  time shows an error and for the second time it is running successfully, error is related to cloning a repo  is as shown below:
      14:59:03 ERROR: Error cloning remote repo 'origin'14:59:03 hudson.plugins.git.GitException: org.eclipse.jgit.api.errors.TransportException:
      https://admin.....
      : 502 Proxy Error*14:59:03* at org.jenkinsci.plugins.gitclient.JGitAPIImpl$4.execute(JGitAPIImpl.java:1490)14:59:03 at org.jenkinsci.plugins.gitclient.RemoteGitImpl$CommandInvocationHandler$GitCommandMasterToSlaveCallable.call(RemoteGitImpl.java:161)14:59:03 at org.jenkinsci.plugins.gitclient.RemoteGitImpl$CommandInvocationHandler$GitCommandMasterToSlaveCallable.call(RemoteGitImpl.java:154)14:59:03 at hudson.remoting.UserRequest.perform(UserRequest.java:211)14:59:03 at hudson.remoting.UserRequest.perform(UserRequest.java:54)14:59:03 at hudson.remoting.Request$2.run(Request.java:375)14:59:03 at hudson.remoting.InterceptingExecutorService$1.call(InterceptingExecutorService.java:73)14:59:03 at java.util.concurrent.FutureTask.run(FutureTask.java:264)14:59:03 at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)14:59:03 at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)14:59:03 at java.lang.Thread.run(Thread.java:834)14:59:03 Suppressed: hudson.remoting.Channel$CallSiteStackTrace: Remote call to ci03*14:59:03* at hudson.remoting.Channel.attachCallSiteStackTrace(Channel.java:1800)14:59:03 at hudson.remoting.UserRequest$ExceptionResponse.retrieve(UserRequest.java:357)14:59:03 at hudson.remoting.Channel.call(Channel.java:1001)14:59:03 at org.jenkinsci.plugins.gitclient.RemoteGitImpl$CommandInvocationHandler.execute(RemoteGitImpl.java:146)14:59:03 at sun.reflect.GeneratedMethodAccessor1134.invoke(Unknown Source)14:59:03 at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)14:59:03 at java.lang.reflect.Method.invoke(Unknown Source)14:59:03 at org.jenkinsci.plugins.gitclient.RemoteGitImpl$CommandInvocationHandler.invoke(RemoteGitImpl.java:132)14:59:03 at com.sun.proxy.$Proxy93.execute(Unknown Source)14:59:03 at hudson.plugins.git.GitSCM.retrieveChanges(GitSCM.java:1221)14:59:03 at hudson.plugins.git.GitSCM.checkout(GitSCM.java:1299)14:59:03 at hudson.scm.SCM.checkout(SCM.java:505)14:59:03 at hudson.model.AbstractProject.checkout(AbstractProject.java:1206)14:59:03 at hudson.model.AbstractBuild$AbstractBuildExecution.defaultCheckout(AbstractBuild.java:637)14:59:03 at jenkins.scm.SCMCheckoutStrategy.checkout(SCMCheckoutStrategy.java:86)14:59:03 at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:509)14:59:03 at hudson.model.Run.execute(Run.java:1907)14:59:03 at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43)14:59:03 at hudson.model.ResourceController.execute(ResourceController.java:97)14:59:03 at hudson.model.Executor.run(Executor.java:429)14:59:03 Caused by: org.eclipse.jgit.api.errors.TransportException:
       
      : 502 Proxy Error*14:59:03* at org.eclipse.jgit.api.FetchCommand.call(FetchCommand.java:222)14:59:03 at org.jenkinsci.plugins.gitclient.JGitAPIImpl$4.execute(JGitAPIImpl.java:1482)14:59:03 ... 10 more*14:59:03* Caused by: org.eclipse.jgit.errors.TransportException:
      https://admin@........
      : 502 Proxy Error*14:59:03* at org.eclipse.jgit.transport.BasePackFetchConnection.doFetch(BasePackFetchConnection.java:372)14:59:03 at org.eclipse.jgit.transport.TransportHttp$SmartHttpFetchConnection.doFetch(TransportHttp.java:1345)14:59:03 at org.eclipse.jgit.transport.BasePackFetchConnection.fetch(BasePackFetchConnection.java:295)14:59:03 at org.eclipse.jgit.transport.BasePackFetchConnection.fetch(BasePackFetchConnection.java:286)14:59:03 at org.eclipse.jgit.transport.FetchProcess.fetchObjects(FetchProcess.java:233)14:59:03 at org.eclipse.jgit.transport.FetchProcess.executeImp(FetchProcess.java:130)14:59:03 at org.eclipse.jgit.transport.FetchProcess.execute(FetchProcess.java:91)14:59:03 at org.eclipse.jgit.transport.Transport.fetch(Transport.java:1260)14:59:03 at org.eclipse.jgit.api.FetchCommand.call(FetchCommand.java:211)14:59:03 ... 11 more*14:59:03* Caused by: org.eclipse.jgit.errors.TransportException:
      https://admin@.......
      : 502 Proxy Error*14:59:03* at org.eclipse.jgit.transport.TransportHttp$Service.openResponse(TransportHttp.java:1588)14:59:03 at org.eclipse.jgit.transport.TransportHttp$MultiRequestService.execute(TransportHttp.java:1693)14:59:03 at org.eclipse.jgit.transport.TransportHttp$Service$HttpExecuteStream.read(TransportHttp.java:1618)14:59:03 at org.eclipse.jgit.util.io.UnionInputStream.read(UnionInputStream.java:116)14:59:03 at org.eclipse.jgit.util.IO.readFully(IO.java:201)14:59:03 at org.eclipse.jgit.transport.PacketLineIn.readLength(PacketLineIn.java:284)14:59:03 at org.eclipse.jgit.transport.PacketLineIn.readString(PacketLineIn.java:148)14:59:03 at org.eclipse.jgit.transport.PacketLineIn.readACK(PacketLineIn.java:107)14:59:03 at org.eclipse.jgit.transport.BasePackFetchConnection.negotiate(BasePackFetchConnection.java:683)14:59:03 at org.eclipse.jgit.transport.BasePackFetchConnection.doFetch(BasePackFetchConnection.java:358)14:59:03 ... 19 more*14:59:03* ERROR: Error cloning remote repo 'origin'
       

      I tried to enable Wiping out workspace but I still et the same issue.

       

      Regards,

      AbdelRahman

            markewaite Mark Waite
            abdelrahman_ghizawi AbdelRahman
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: