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

ssh_exchange_identification connection reset by peer

      Hi everyone,

      I have an issue with Kubernetes Plugin and Jenkins Slave. If I build a simple pipeline, everything works, for example:

      node {
      
      git branch: 'master',
      
      credentialsId: ‘crediantials-number’,
      
      url: my_repository
      
      }
      

      However, if I try to build a pipeline via Kubernetes Plugin, for example:

      def label = "test"
      
      podTemplate(label: label) {
      
        node(label) {
      
          stage('Deploy Test on Kubernetes') {
      
            git branch: 'master',
      
            credentialsId: ‘crediantials-number’,
      
            url: my_repository
      
          }
      
        }
      
      }
      

      I receive the next error:

      	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
      	at hudson.remoting.Engine$1.lambda$newThread$0(Engine.java:93)
      	at java.lang.Thread.run(Thread.java:748)
      	Suppressed: hudson.remoting.Channel$CallSiteStackTrace: Remote call to JNLP4-connect connection from 10.47.0.152/10.47.0.152:34226
      		at hudson.remoting.Channel.attachCallSiteStackTrace(Channel.java:1737)
      		at hudson.remoting.UserResponse.retrieve(UserRequest.java:313)
      		at hudson.remoting.Channel.call(Channel.java:952)
      		at org.jenkinsci.plugins.gitclient.RemoteGitImpl$CommandInvocationHandler.execute(RemoteGitImpl.java:146)
      		at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      		at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
      		at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      

      I attach some files in order to provide further information.

      Thanks in advance,

      Regards

       

          [JENKINS-50831] ssh_exchange_identification connection reset by peer

          Mark Waite added a comment -

          The log file shows:

          using GIT_SSH to set credentials
           > git fetch --tags --progress my_repository +refs/heads/*:refs/remotes/origin/*
          ERROR: Error cloning remote repo 'origin'
          hudson.plugins.git.GitException: Command "git fetch --tags --progress my_repository +refs/heads/*:refs/remotes/origin/*" returned status code 128:
          stdout:
          stderr: ssh_exchange_identification: read: Connection reset by peer
          fatal: Could not read from remote repository.
          

          The ssh server on your git host is closing the connection. It could be due to any number of network connection issues between the agent running that pod template and the ssh server on your git host. It is very, very rare that those types of issues are bugs.

          Please use the Internet Relay Chat or the Jenkins users mailing list to request help with authentication and connectivity issues. There are many more people monitoring those lists than there are people who monitor bug reports submitted to the git plugin

          Mark Waite added a comment - The log file shows: using GIT_SSH to set credentials > git fetch --tags --progress my_repository +refs/heads/*:refs/remotes/origin/* ERROR: Error cloning remote repo 'origin' hudson.plugins.git.GitException: Command "git fetch --tags --progress my_repository +refs/heads/*:refs/remotes/origin/*" returned status code 128: stdout: stderr: ssh_exchange_identification: read: Connection reset by peer fatal: Could not read from remote repository. The ssh server on your git host is closing the connection. It could be due to any number of network connection issues between the agent running that pod template and the ssh server on your git host. It is very, very rare that those types of issues are bugs. Please use the Internet Relay Chat or the Jenkins users mailing list to request help with authentication and connectivity issues. There are many more people monitoring those lists than there are people who monitor bug reports submitted to the git plugin

          Rodrigo Porto added a comment -

          Hi,

          Thank you very much for the information,

          Regards

          Rodrigo Porto added a comment - Hi, Thank you very much for the information, Regards

          Marcelo added a comment -

          Hey rdrgporto, sorry to back this old topic here. I'm having a similar issue with my environment. Did you find some solution on this specific? Thank you. 

          Marcelo added a comment - Hey rdrgporto , sorry to back this old topic here. I'm having a similar issue with my environment. Did you find some solution on this specific? Thank you. 

          Rodrigo Porto added a comment -

          Hi, Marcelo

          I am sorry, I did not find a solution. I uninstalled Kubernetes plugin. I use kubeconfig file to perform tasks with Kubernetes nowadays.

          Regards

          Rodrigo Porto added a comment - Hi, Marcelo I am sorry, I did not find a solution. I uninstalled Kubernetes plugin. I use kubeconfig file to perform tasks with Kubernetes nowadays. Regards

            markewaite Mark Waite
            rdrgporto Rodrigo Porto
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: